403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/Users/SERVERWEB/AppData/Local/Microsoft/Edge/User Data/Default/Cache/Cache_Data/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/Users/SERVERWEB/AppData/Local/Microsoft/Edge/User Data/Default/Cache/Cache_Data/f_000097
"use strict";
(self["webpackChunkdeportes_gamq"] = self["webpackChunkdeportes_gamq"] || []).push([["main"],{

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

__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_23__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layouts/layout.component */ 58979);
/* harmony import */ var _core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core/guards/auth.guard */ 34978);
/* harmony import */ var _core_guards_non_auth_guard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/guards/non-auth.guard */ 86796);
/* harmony import */ var _pages_account_profile_profile_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pages/account/profile/profile.component */ 42155);
/* harmony import */ var _pages_account_settings_settings_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pages/account/settings/settings.component */ 76795);
/* harmony import */ var _pages_modules_facilities_facilities_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pages/modules/facilities/facilities.component */ 13801);
/* harmony import */ var _pages_modules_employees_employees_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pages/modules/employees/employees.component */ 29121);
/* harmony import */ var _pages_modules_surfaces_surfaces_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pages/modules/surfaces/surfaces.component */ 51343);
/* harmony import */ var _pages_modules_categories_categories_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/modules/categories/categories.component */ 19715);
/* harmony import */ var _pages_modules_clasificadores_ruat_clasificadores_ruat_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/modules/clasificadores-ruat/clasificadores-ruat.component */ 99881);
/* harmony import */ var _pages_modules_system_configurations_system_configurations_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pages/modules/system-configurations/system-configurations.component */ 61513);
/* harmony import */ var _pages_modules_fields_fields_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./pages/modules/fields/fields.component */ 60525);
/* harmony import */ var _pages_modules_booking_one_time_booking_one_time_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./pages/modules/booking-one-time/booking-one-time.component */ 56311);
/* harmony import */ var _pages_modules_booking_recurrent_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./pages/modules/booking-recurrent/booking-recurrent.component */ 39569);
/* harmony import */ var _pages_modules_booking_schools_booking_periodo_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pages/modules/booking-schools/booking-periodo.component */ 39486);
/* harmony import */ var _pages_modals_booking_booking_details_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./pages/modals/booking/booking-details.component */ 68857);
/* harmony import */ var _pages_modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pages/modules/reports/ticket/ticket.component */ 89291);
/* harmony import */ var _pages_modules_taxpayers_taxpayers_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./pages/modules/taxpayers/taxpayers.component */ 33769);
/* harmony import */ var _pages_modules_organizations_organizations_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./pages/modules/organizations/organizations.component */ 15249);
/* harmony import */ var _pages_dashboards_admin_dashboard_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./pages/dashboards/admin/dashboard.component */ 94558);
/* harmony import */ var _pages_dashboards_calendar_calendar_dashboard_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./pages/dashboards/calendar/calendar-dashboard.component */ 32790);
/* harmony import */ var _pages_dashboards_map_map_dashboard_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./pages/dashboards/map/map-dashboard.component */ 86568);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/core */ 37580);


// Auth























const routes = [{
  path: '',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  canActivateChild: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: "inicio",
    component: _pages_dashboards_admin_dashboard_component__WEBPACK_IMPORTED_MODULE_19__.DashboardComponent
  }, {
    path: "inicio/employee",
    component: _pages_dashboards_calendar_calendar_dashboard_component__WEBPACK_IMPORTED_MODULE_20__.CalendarDashboardComponent
  }, {
    path: "inicio/taxpayer",
    component: _pages_dashboards_map_map_dashboard_component__WEBPACK_IMPORTED_MODULE_21__.MapDashboardComponent
  }, {
    path: 'profile/profile',
    component: _pages_account_profile_profile_component__WEBPACK_IMPORTED_MODULE_3__.ProfileComponent,
    data: {
      requiredPermission: 'CAN_ACCESS'
    }
  }, {
    path: 'profile/profile-setting',
    component: _pages_account_settings_settings_component__WEBPACK_IMPORTED_MODULE_4__.SettingsComponent,
    data: {
      requiredPermission: 'CAN_ACCESS'
    }
  }]
}, {
  path: 'admin',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  // loadChildren: () => import('./settings/settings.module').then(m => m.SettingsModule), 
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: "facilities",
    component: _pages_modules_facilities_facilities_component__WEBPACK_IMPORTED_MODULE_5__.FacilitiesComponent
  }, {
    path: "employees",
    component: _pages_modules_employees_employees_component__WEBPACK_IMPORTED_MODULE_6__.EmployeesComponent
  }, {
    path: "area",
    component: _pages_modules_surfaces_surfaces_component__WEBPACK_IMPORTED_MODULE_7__.SurfacesComponent
  }, {
    path: "categories",
    component: _pages_modules_categories_categories_component__WEBPACK_IMPORTED_MODULE_8__.CategoriesComponent
  }, {
    path: "classifiers",
    component: _pages_modules_clasificadores_ruat_clasificadores_ruat_component__WEBPACK_IMPORTED_MODULE_9__.ClasificadoresRuatComponent
  }, {
    path: "config",
    component: _pages_modules_system_configurations_system_configurations_component__WEBPACK_IMPORTED_MODULE_10__.SystemConfigurationsComponent
  }]
}, {
  path: 'settings',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: "fields",
    component: _pages_modules_fields_fields_component__WEBPACK_IMPORTED_MODULE_11__.FieldsComponent
  }]
}, {
  path: 'reservations',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: 'one-time',
    component: _pages_modules_booking_one_time_booking_one_time_component__WEBPACK_IMPORTED_MODULE_12__.BookingOneTimeComponent
  }, {
    path: 'recurrent',
    component: _pages_modules_booking_recurrent_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_13__.BookingRecurrentComponent
  }, {
    path: 'schools',
    component: _pages_modules_booking_schools_booking_periodo_component__WEBPACK_IMPORTED_MODULE_14__.BookingPeriodoComponent
  }, {
    path: "details",
    component: _pages_modals_booking_booking_details_component__WEBPACK_IMPORTED_MODULE_15__.BookingDetailsComponent
  }, {
    path: "ticket",
    component: _pages_modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_16__.TicketComponent
  }]
}, {
  path: 'taxpayers',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: '',
    component: _pages_modules_taxpayers_taxpayers_component__WEBPACK_IMPORTED_MODULE_17__.TaxpayersComponent
  }]
}, {
  path: 'organizations',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  children: [{
    path: '',
    component: _pages_modules_organizations_organizations_component__WEBPACK_IMPORTED_MODULE_18__.OrganizationsComponent
  }]
}, {
  path: 'reports',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_pages_modules_reports_reports_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./pages/modules/reports/reports.module */ 79820)).then(m => m.ReportsModule),
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard]
}, /*EXTRA PAGES  */
{
  path: 'pages',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  canActivateChild: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
  data: {
    requiredPermission: 'CAN_ACCESS'
  },
  children: [{
    path: '',
    loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_pages_extrapages_extraspages_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./pages/extrapages/extraspages.module */ 52279)).then(m => m.ExtraspagesModule)
  }]
}, /* PUBLIC ACCES */
// { path: 'landing', loadChildren: () => import('./public/landing/landing.module').then(m => m.LandingModule)},  
{
  path: 'auth',
  canActivate: [_core_guards_non_auth_guard__WEBPACK_IMPORTED_MODULE_2__.NoAuthGuard],
  loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_public_account_account_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./public/account/account.module */ 33807)).then(m => m.AccountModule)
}, {
  path: 'public',
  loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_public_extrapages_extraspages_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./public/extrapages/extraspages.module */ 69020)).then(m => m.ExtraspagesModule)
}, {
  path: '**',
  redirectTo: ''
}];
class AppRoutingModule {
  static {
    this.ɵfac = function AppRoutingModule_Factory(t) {
      return new (t || AppRoutingModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_22__["ɵɵdefineNgModule"]({
      type: AppRoutingModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_22__["ɵɵdefineInjector"]({
      imports: [_angular_router__WEBPACK_IMPORTED_MODULE_23__.RouterModule.forRoot(routes), _angular_router__WEBPACK_IMPORTED_MODULE_23__.RouterModule]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_22__["ɵɵsetNgModuleScope"](AppRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_23__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_23__.RouterModule]
  });
})();

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AppComponent: () => (/* binding */ AppComponent)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 95072);



class AppComponent {
  constructor() {
    this.title = 'deportes-gamq';
    this.subscriberId = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.subscriberId;
    this.applicationIdentifier = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.applicationIdentifier;
    this.styles = {
      bellButton: {
        root: {
          svg: {
            color: 'white',
            width: '45px',
            height: '40px',
            fill: 'white'
          }
        },
        dot: {
          rect: {
            fill: 'rgb(221, 0, 49)',
            strokeWidth: '0.2',
            stroke: 'white',
            width: '3.5px',
            height: '3.5px'
          },
          left: '40%'
        }
      },
      header: {
        root: {
          backgroundColor: '',
          '&:hover': {
            backgroundColor: ''
          },
          '.some_class': {
            color: ''
          }
        }
      },
      layout: {
        root: {
          backgroundColor: ''
        }
      },
      popover: {
        arrow: {
          backgroundColor: '',
          border: ''
        }
      }
    };
  }
  static {
    this.ɵfac = function AppComponent_Factory(t) {
      return new (t || AppComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: AppComponent,
      selectors: [["app-root"]],
      decls: 1,
      vars: 0,
      template: function AppComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "router-outlet");
        }
      },
      dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet],
      styles: [".ng-dropdown-panel {\n  background-color: #ffffff !important;\n  border: 1px solid #ced4da !important;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;\n  z-index: 1060 !important;\n}\n  [data-layout-mode=dark] .ng-dropdown-panel,   [data-bs-theme=dark] .ng-dropdown-panel,   .dark-mode .ng-dropdown-panel {\n  background-color: #2a3042 !important;\n  border-color: #32394e !important;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvYXBwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0Usb0NBQUE7RUFDQSxvQ0FBQTtFQUNBLG9EQUFBO0VBQ0Esd0JBQUE7QUFBSjtBQU1JOzs7RUFDRSxvQ0FBQTtFQUNBLGdDQUFBO0VBQ0EsbURBQUE7QUFGTiIsInNvdXJjZXNDb250ZW50IjpbIjo6bmctZGVlcCB7XHJcbiAgLm5nLWRyb3Bkb3duLXBhbmVsIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmZmZmYgIWltcG9ydGFudDtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNjZWQ0ZGEgIWltcG9ydGFudDtcclxuICAgIGJveC1zaGFkb3c6IDAgMnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuMTUpICFpbXBvcnRhbnQ7XHJcbiAgICB6LWluZGV4OiAxMDYwICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIC8vIERhcmsgbW9kZSBzdXBwb3J0XHJcbiAgW2RhdGEtbGF5b3V0LW1vZGU9XCJkYXJrXCJdLFxyXG4gIFtkYXRhLWJzLXRoZW1lPVwiZGFya1wiXSxcclxuICAuZGFyay1tb2RlIHtcclxuICAgIC5uZy1kcm9wZG93bi1wYW5lbCB7XHJcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICMyYTMwNDIgIWltcG9ydGFudDtcclxuICAgICAgYm9yZGVyLWNvbG9yOiAjMzIzOTRlICFpbXBvcnRhbnQ7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuNCkgIWltcG9ydGFudDtcclxuICAgIH1cclxuICB9XHJcbn0iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AppModule: () => (/* binding */ AppModule),
/* harmony export */   createTranslateLoader: () => (/* binding */ createTranslateLoader)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/platform-browser */ 80436);
/* harmony import */ var ngx_pipes__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-pipes */ 60315);
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app-routing.module */ 94114);
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app.component */ 20092);
/* harmony import */ var _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./layouts/layouts.module */ 67431);
/* harmony import */ var _pages_pages_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pages/pages.module */ 98423);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/platform-browser/animations */ 43835);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../environments/environment */ 45312);
/* harmony import */ var _core_helpers_error_interceptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./core/helpers/error.interceptor */ 40033);
/* harmony import */ var _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ngx-translate/http-loader */ 18952);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./store */ 8144);
/* harmony import */ var _ngrx_store_devtools__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ngrx/store-devtools */ 11925);
/* harmony import */ var _ngrx_effects__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ngrx/effects */ 70347);
/* harmony import */ var _core_helpers_auth_interceptor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./core/helpers/auth.interceptor */ 47767);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common/locales/es */ 41565);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/dashboards/dashboards.module */ 82446);


// search module





// Auth




// Language















// import { NotificationCenterModule } from '@novu/notification-center-angular';
(0,_angular_common__WEBPACK_IMPORTED_MODULE_9__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_10__["default"], 'es');
function createTranslateLoader(http) {
  return new _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_11__.TranslateHttpLoader(http, 'assets/i18n/', '.json');
}
class AppModule {
  static {
    this.ɵfac = function AppModule_Factory(t) {
      return new (t || AppModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineNgModule"]({
      type: AppModule,
      bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent]
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineInjector"]({
      providers: [{
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_12__.LOCALE_ID,
        useValue: 'es'
      }, {
        provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_13__.HTTP_INTERCEPTORS,
        useClass: _core_helpers_auth_interceptor__WEBPACK_IMPORTED_MODULE_7__.AuthInterceptor,
        multi: true
      }, {
        provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_13__.HTTP_INTERCEPTORS,
        useClass: _core_helpers_error_interceptor__WEBPACK_IMPORTED_MODULE_5__.ErrorInterceptor,
        multi: true
      }, (0,_angular_common_http__WEBPACK_IMPORTED_MODULE_13__.provideHttpClient)((0,_angular_common_http__WEBPACK_IMPORTED_MODULE_13__.withInterceptorsFromDi)())],
      imports: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__.TranslateModule.forRoot({
        defaultLanguage: 'es',
        loader: {
          provide: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__.TranslateLoader,
          useFactory: createTranslateLoader,
          deps: [_angular_common_http__WEBPACK_IMPORTED_MODULE_13__.HttpClient]
        }
      }), _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_15__.BrowserAnimationsModule, _angular_platform_browser__WEBPACK_IMPORTED_MODULE_16__.BrowserModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_13__.HttpClientModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, ngx_pipes__WEBPACK_IMPORTED_MODULE_17__.NgPipesModule, _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_2__.LayoutsModule, _pages_pages_module__WEBPACK_IMPORTED_MODULE_3__.PagesModule, _pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_8__.DashboardsModule, _ngrx_store__WEBPACK_IMPORTED_MODULE_18__.StoreModule.forRoot(_store__WEBPACK_IMPORTED_MODULE_6__.rootReducer), _ngrx_store_devtools__WEBPACK_IMPORTED_MODULE_19__.StoreDevtoolsModule.instrument({
        maxAge: 25,
        logOnly: _environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.production
      }), _ngrx_effects__WEBPACK_IMPORTED_MODULE_20__.EffectsModule.forRoot([])]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsetNgModuleScope"](AppModule, {
    declarations: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent],
    imports: [_ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__.TranslateModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_15__.BrowserAnimationsModule, _angular_platform_browser__WEBPACK_IMPORTED_MODULE_16__.BrowserModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_13__.HttpClientModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, ngx_pipes__WEBPACK_IMPORTED_MODULE_17__.NgPipesModule, _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_2__.LayoutsModule, _pages_pages_module__WEBPACK_IMPORTED_MODULE_3__.PagesModule, _pages_dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_8__.DashboardsModule, _ngrx_store__WEBPACK_IMPORTED_MODULE_18__.StoreRootModule, _ngrx_store_devtools__WEBPACK_IMPORTED_MODULE_19__.StoreDevtoolsModule, _ngrx_effects__WEBPACK_IMPORTED_MODULE_20__.EffectsRootModule]
  });
})();

/***/ }),

/***/ 44107:
/*!**************************************************!*\
  !*** ./src/app/core/constants/Configurations.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AplicaAConfiguracion: () => (/* binding */ AplicaAConfiguracion),
/* harmony export */   CategoriaConfiguracion: () => (/* binding */ CategoriaConfiguracion),
/* harmony export */   ClaveConfiguracion: () => (/* binding */ ClaveConfiguracion),
/* harmony export */   EstadoControlConfiguracion: () => (/* binding */ EstadoControlConfiguracion),
/* harmony export */   LabelsConfiguracion: () => (/* binding */ LabelsConfiguracion),
/* harmony export */   TipoValorConfiguracion: () => (/* binding */ TipoValorConfiguracion),
/* harmony export */   UnidadMedida: () => (/* binding */ UnidadMedida),
/* harmony export */   obtenerLabelConfiguracion: () => (/* binding */ obtenerLabelConfiguracion)
/* harmony export */ });
// Categorías principales de configuraciones
var CategoriaConfiguracion;
(function (CategoriaConfiguracion) {
  CategoriaConfiguracion["PAGOS"] = "PAGOS";
  CategoriaConfiguracion["ANTICIPACION"] = "ANTICIPACION";
  CategoriaConfiguracion["DURACION"] = "DURACION";
  CategoriaConfiguracion["SLA"] = "SLA";
  CategoriaConfiguracion["TIMEOUTS"] = "TIMEOUTS";
  CategoriaConfiguracion["RECURRENTES"] = "RECURRENTES";
  CategoriaConfiguracion["RUAT"] = "RUAT";
  CategoriaConfiguracion["LIMITES"] = "LIMITES";
  CategoriaConfiguracion["NOTIFICACIONES"] = "NOTIFICACIONES";
  // FINANCIERO = 'FINANCIERO',
  CategoriaConfiguracion["SANCIONES"] = "SANCIONES";
  CategoriaConfiguracion["FUNCIONALIDADES"] = "FUNCIONALIDADES";
})(CategoriaConfiguracion || (CategoriaConfiguracion = {}));
// Ámbito de aplicación de las configuraciones
var AplicaAConfiguracion;
(function (AplicaAConfiguracion) {
  AplicaAConfiguracion["GLOBAL"] = "global";
  AplicaAConfiguracion["CAMPO_DEPORTIVO"] = "campo_deportivo";
  AplicaAConfiguracion["COMPLEJO"] = "complejo";
  AplicaAConfiguracion["TARIFA"] = "tarifa";
  AplicaAConfiguracion["USUARIO"] = "usuario";
  AplicaAConfiguracion["ORGANIZACION"] = "organizacion";
})(AplicaAConfiguracion || (AplicaAConfiguracion = {}));
// Unidades de medida para valores numéricos
var UnidadMedida;
(function (UnidadMedida) {
  UnidadMedida["HORAS"] = "horas";
  UnidadMedida["DIAS"] = "dias";
  UnidadMedida["MINUTOS"] = "minutos";
  UnidadMedida["SEGUNDOS"] = "segundos";
  UnidadMedida["MESES"] = "meses";
  UnidadMedida["BOLIVIANOS"] = "bolivianos";
  UnidadMedida["PORCENTAJE"] = "porcentaje";
  UnidadMedida["CANTIDAD"] = "cantidad";
  UnidadMedida["PERSONAS"] = "personas";
  UnidadMedida["DIA_MES"] = "dia_mes";
  UnidadMedida["INTENTOS"] = "intentos";
})(UnidadMedida || (UnidadMedida = {}));
// Claves específicas de configuraciones (para acceso rápido)
var ClaveConfiguracion;
(function (ClaveConfiguracion) {
  // Integración RUAT
  ClaveConfiguracion["CODIGO_ALCALDIA_RUAT"] = "CODIGO_ALCALDIA_RUAT";
  ClaveConfiguracion["SERVICIO_MUNICIPAL_RUAT"] = "SERVICIO_MUNICIPAL_RUAT";
  ClaveConfiguracion["USUARIO_RUAT"] = "USUARIO_RUAT";
  ClaveConfiguracion["CLAVE_RUAT"] = "CLAVE_RUAT";
  ClaveConfiguracion["CODIGO_USUARIO_RUAT"] = "CODIGO_USUARIO_RUAT";
  // Banderas de Funcionalidad
  ClaveConfiguracion["HABILITAR_RESERVAS_EVENTOS"] = "HABILITAR_RESERVAS_EVENTOS";
  ClaveConfiguracion["HABILITAR_RESERVAS_ORGANIZACIONES"] = "HABILITAR_RESERVAS_ORGANIZACIONES";
  ClaveConfiguracion["HABILITAR_RESERVAS_RECURRENTES"] = "HABILITAR_RESERVAS_RECURRENTES";
  ClaveConfiguracion["HABILITAR_SOLICITUD_RESERVAS_EVENTOS"] = "HABILITAR_SOLICITUD_RESERVAS_EVENTOS";
  ClaveConfiguracion["HABILITAR_SOLICITUD_RESERVAS_ORGANIZACIONES"] = "HABILITAR_SOLICITUD_RESERVAS_ORGANIZACIONES";
  ClaveConfiguracion["HABILITAR_SOLICITUD_RESERVAS_RECURRENTES"] = "HABILITAR_SOLICITUD_RESERVAS_RECURRENTES";
  //Anticipaciones
  ClaveConfiguracion["HORAS_ANTICIPACION_RESERVAS_PUNTUALES"] = "HORAS_ANTICIPACION_RESERVAS_PUNTUALES";
  // HORAS_ANTICIPACION_EVENTOS = 'HORAS_ANTICIPACION_EVENTOS',
  ClaveConfiguracion["DIAS_ANTICIPACION_EVENTOS"] = "DIAS_ANTICIPACION_EVENTOS";
  ClaveConfiguracion["HORAS_ANTICIPACION_RECURRENTES"] = "HORAS_ANTICIPACION_RECURRENTES";
  // DIAS_ANTICIPACION_RECURRENTES = 'DIAS_ANTICIPACION_RECURRENTES',
  // Límites de Duración
  ClaveConfiguracion["DURACION_MINIMA_RESERVA"] = "DURACION_MINIMA_RESERVA";
  ClaveConfiguracion["DURACION_MAXIMA_EVENTOS"] = "DURACION_MAXIMA_EVENTOS";
  ClaveConfiguracion["DURACION_MAXIMA_RECURRENTES"] = "DURACION_MAXIMA_RECURRENTES";
  // Capacidad y Límites
  ClaveConfiguracion["MAXIMO_RESERVAS_ACTIVAS_POR_USUARIO"] = "MAXIMO_RESERVAS_ACTIVAS_POR_USUARIO";
  ClaveConfiguracion["MAXIMO_RESERVAS_POR_DIA_USUARIO"] = "MAXIMO_RESERVAS_POR_DIA_USUARIO";
  ClaveConfiguracion["MAXIMO_INTENTOS_REINTENTO_RESERVAS"] = "MAXIMO_INTENTOS_REINTENTO_RESERVAS";
  // Pagos
  ClaveConfiguracion["HORAS_VALIDACION_PAGO"] = "HORAS_VALIDACION_PAGO";
  // Pagos Recurrentes
  ClaveConfiguracion["DIA_VENCIMIENTO_PAGO_RECURRENTE"] = "DIA_VENCIMIENTO_PAGO_RECURRENTE";
  ClaveConfiguracion["DIAS_GRACIA_PAGO_RECURRENTE"] = "DIAS_GRACIA_PAGO_RECURRENTE";
  ClaveConfiguracion["DIAS_CANCELACION_POR_IMPAGO"] = "DIAS_CANCELACION_POR_IMPAGO";
  ClaveConfiguracion["DIAS_ANTICIPACION_RECORDATORIO_PAGO"] = "DIAS_ANTICIPACION_RECORDATORIO_PAGO";
  // Notificaciones
  ClaveConfiguracion["HORAS_ANTICIPACION_RECORDATORIO"] = "HORAS_ANTICIPACION_RECORDATORIO";
  ClaveConfiguracion["MINUTOS_ANTICIPACION_ALERTA_CHECKIN"] = "MINUTOS_ANTICIPACION_ALERTA_CHECKIN";
  ClaveConfiguracion["MINUTOS_ANTICIPACION_NOTIFICACION_FIN"] = "MINUTOS_ANTICIPACION_NOTIFICACION_FIN";
  // Financiero
  // PORCENTAJE_RECARGO_PAGO_TARDIO = 'PORCENTAJE_RECARGO_PAGO_TARDIO',
  // DIAS_PROCESAMIENTO_REEMBOLSO = 'DIAS_PROCESAMIENTO_REEMBOLSO',
  // HORAS_MINIMAS_REEMBOLSO_CANCELACION = 'HORAS_MINIMAS_REEMBOLSO_CANCELACION',
  // PORCENTAJE_REEMBOLSO_CANCELACION = 'PORCENTAJE_REEMBOLSO_CANCELACION',
  // SLA y Timeouts
  ClaveConfiguracion["HORAS_SLA_APROBACION"] = "HORAS_SLA_APROBACION";
  ClaveConfiguracion["HORAS_ADVERTENCIA_SLA"] = "HORAS_ADVERTENCIA_SLA";
  ClaveConfiguracion["MINUTOS_GRACIA_NO_SHOW"] = "MINUTOS_GRACIA_NO_SHOW";
  ClaveConfiguracion["MINUTOS_TIMEOUT_GATEWAY_PAGO"] = "MINUTOS_TIMEOUT_GATEWAY_PAGO";
  // Sanciones
  ClaveConfiguracion["MAXIMO_NO_SHOWS_ANTES_SUSPENSION"] = "MAXIMO_NO_SHOWS_ANTES_SUSPENSION";
  ClaveConfiguracion["DIAS_SUSPENSION_PRIMERA_FALTA"] = "DIAS_SUSPENSION_PRIMERA_FALTA";
  ClaveConfiguracion["DIAS_SUSPENSION_SEGUNDA_FALTA"] = "DIAS_SUSPENSION_SEGUNDA_FALTA";
  ClaveConfiguracion["DIAS_SUSPENSION_TERCERA_FALTA"] = "DIAS_SUSPENSION_TERCERA_FALTA";
})(ClaveConfiguracion || (ClaveConfiguracion = {}));
// Tipos de valores que pueden almacenar las configuraciones
var TipoValorConfiguracion;
(function (TipoValorConfiguracion) {
  TipoValorConfiguracion["NUMERICO"] = "NUMERICO";
  TipoValorConfiguracion["TEXTO"] = "TEXTO";
  TipoValorConfiguracion["BOOLEANO"] = "BOOLEANO";
  TipoValorConfiguracion["JSON"] = "JSON";
})(TipoValorConfiguracion || (TipoValorConfiguracion = {}));
// Estados de control de configuraciones
var EstadoControlConfiguracion;
(function (EstadoControlConfiguracion) {
  EstadoControlConfiguracion["MODIFICABLE"] = "MODIFICABLE";
  EstadoControlConfiguracion["SOLO_LECTURA"] = "SOLO_LECTURA";
  EstadoControlConfiguracion["REQUIERE_APROBACION"] = "REQUIERE_APROBACION";
})(EstadoControlConfiguracion || (EstadoControlConfiguracion = {}));
// Mapeo de labels para mostrar en la interfaz
const LabelsConfiguracion = {
  // Categorías
  [CategoriaConfiguracion.PAGOS]: 'Pagos',
  [CategoriaConfiguracion.ANTICIPACION]: 'Anticipación',
  [CategoriaConfiguracion.DURACION]: 'Duración',
  [CategoriaConfiguracion.SLA]: 'SLA',
  [CategoriaConfiguracion.TIMEOUTS]: 'Timeouts',
  [CategoriaConfiguracion.RECURRENTES]: 'Recurrentes',
  [CategoriaConfiguracion.RUAT]: 'RUAT',
  [CategoriaConfiguracion.LIMITES]: 'Límites',
  [CategoriaConfiguracion.NOTIFICACIONES]: 'Notificaciones',
  // [CategoriaConfiguracion.FINANCIERO]: 'Financiero',
  [CategoriaConfiguracion.SANCIONES]: 'Sanciones',
  [CategoriaConfiguracion.FUNCIONALIDADES]: 'Funcionalidades',
  // Ámbito de Aplicación
  [AplicaAConfiguracion.GLOBAL]: 'Global',
  [AplicaAConfiguracion.CAMPO_DEPORTIVO]: 'Campo Deportivo',
  [AplicaAConfiguracion.COMPLEJO]: 'Complejo',
  [AplicaAConfiguracion.TARIFA]: 'Tarifa',
  [AplicaAConfiguracion.USUARIO]: 'Usuario',
  [AplicaAConfiguracion.ORGANIZACION]: 'Organización',
  // Unidades de Medida
  [UnidadMedida.HORAS]: 'Horas',
  [UnidadMedida.DIAS]: 'Días',
  [UnidadMedida.MINUTOS]: 'Minutos',
  [UnidadMedida.SEGUNDOS]: 'Segundos',
  [UnidadMedida.MESES]: 'Meses',
  [UnidadMedida.BOLIVIANOS]: 'Bolivianos',
  [UnidadMedida.PORCENTAJE]: 'Porcentaje',
  [UnidadMedida.CANTIDAD]: 'Cantidad',
  [UnidadMedida.PERSONAS]: 'Personas',
  [UnidadMedida.DIA_MES]: 'Día del Mes',
  [UnidadMedida.INTENTOS]: 'Intentos',
  // Tipos de Valor
  [TipoValorConfiguracion.NUMERICO]: 'Numérico',
  [TipoValorConfiguracion.TEXTO]: 'Texto',
  [TipoValorConfiguracion.BOOLEANO]: 'Boolean',
  [TipoValorConfiguracion.JSON]: 'JSON',
  // Estados de Control
  [EstadoControlConfiguracion.MODIFICABLE]: 'Modificable',
  [EstadoControlConfiguracion.SOLO_LECTURA]: 'Solo Lectura',
  [EstadoControlConfiguracion.REQUIERE_APROBACION]: 'Requiere Aprobación'
};
function obtenerLabelConfiguracion(valor, tipo) {
  const mapeos = {
    categoria: CategoriaConfiguracion,
    aplicaA: AplicaAConfiguracion,
    unidadMedida: UnidadMedida,
    tipoValor: TipoValorConfiguracion,
    estadoControl: EstadoControlConfiguracion
  };
  const enumObj = mapeos[tipo];
  if (enumObj && LabelsConfiguracion[valor]) {
    return LabelsConfiguracion[valor];
  }
  return valor;
}

/***/ }),

/***/ 23513:
/*!*******************************************!*\
  !*** ./src/app/core/constants/Estados.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EstadoActual: () => (/* binding */ EstadoActual),
/* harmony export */   EstadoPago: () => (/* binding */ EstadoPago),
/* harmony export */   EstadoReserva: () => (/* binding */ EstadoReserva),
/* harmony export */   EstadoRuat: () => (/* binding */ EstadoRuat),
/* harmony export */   EstadoUsuario: () => (/* binding */ EstadoUsuario),
/* harmony export */   EstadoValidacion: () => (/* binding */ EstadoValidacion),
/* harmony export */   StatusUtils: () => (/* binding */ StatusUtils)
/* harmony export */ });
// Estados de Reserva (estadoReserva)
var EstadoReserva;
(function (EstadoReserva) {
  EstadoReserva["SOLICITADA"] = "SOLICITADA";
  EstadoReserva["PENDIENTE"] = "PENDIENTE";
  EstadoReserva["PAGADA"] = "PAGADA";
  EstadoReserva["EN_CURSO"] = "EN_CURSO";
  EstadoReserva["COMPLETADA"] = "COMPLETADA";
  EstadoReserva["CANCELADA"] = "CANCELADA";
  EstadoReserva["EXPIRADA"] = "EXPIRADA";
  EstadoReserva["NO_SHOW"] = "NO_SHOW"; // User didn't show up for reservation -> updated by user
})(EstadoReserva || (EstadoReserva = {}));
// Estados de Validación (estadoValidacion)
var EstadoValidacion;
(function (EstadoValidacion) {
  EstadoValidacion["PENDIENTE"] = "PENDIENTE";
  EstadoValidacion["APROBADA"] = "APROBADA";
  EstadoValidacion["RECHAZADA"] = "RECHAZADA";
})(EstadoValidacion || (EstadoValidacion = {}));
// Estados de Pago (estadoPago)
var EstadoPago;
(function (EstadoPago) {
  EstadoPago["PENDIENTE"] = "PENDIENTE";
  EstadoPago["PAGADO"] = "PAGADO";
  EstadoPago["PARCIAL"] = "PARCIAL";
  EstadoPago["REEMBOLSADO"] = "REEMBOLSADO";
  EstadoPago["FALLIDO"] = "FALLIDO";
})(EstadoPago || (EstadoPago = {}));
// Estados de Usuario (estadoUsuario)
var EstadoUsuario;
(function (EstadoUsuario) {
  EstadoUsuario["PENDIENTE_VERIFICACION"] = "PENDIENTE_VERIFICACION";
  EstadoUsuario["ACTIVO"] = "ACTIVO";
  EstadoUsuario["INACTIVO"] = "INACTIVO";
  EstadoUsuario["SANCIONADO"] = "SANCIONADO";
  EstadoUsuario["BLOQUEADO"] = "BLOQUEADO"; // Bloqueado por múltiples infracciones o alguna razón administrativa, no podrá reservar
})(EstadoUsuario || (EstadoUsuario = {}));
var EstadoRuat;
(function (EstadoRuat) {
  EstadoRuat["ACTIVO"] = "ACTIVO";
  EstadoRuat["BAJA"] = "BAJA";
})(EstadoRuat || (EstadoRuat = {}));
// Estados de Complejo y Campo Deportivo (estadoActual)
var EstadoActual;
(function (EstadoActual) {
  EstadoActual["ACTIVO"] = "ACTIVO";
  EstadoActual["MANTENIMIENTO"] = "MANTENIMIENTO";
  EstadoActual["CERRADO"] = "CERRADO";
  EstadoActual["EVENTO_MUNICIPAL"] = "EVENTO_MUNICIPAL"; // Reservado para evento prioritario
})(EstadoActual || (EstadoActual = {}));
const StatusUtils = {
  getEstadoReservaOptions() {
    return Object.keys(EstadoReserva).map(key => ({
      value: EstadoReserva[key],
      label: this.formatEnumLabel(key)
    }));
  },
  getEstadoValidacionOptions() {
    return Object.keys(EstadoValidacion).map(key => ({
      value: EstadoValidacion[key],
      label: this.formatEnumLabel(key)
    }));
  },
  getEstadoPagoOptions() {
    return Object.keys(EstadoPago).map(key => ({
      value: EstadoPago[key],
      label: this.formatEnumLabel(key)
    }));
  },
  getEstadoUsuarioOptions() {
    return Object.keys(EstadoUsuario).map(key => ({
      value: EstadoUsuario[key],
      label: this.formatEnumLabel(key)
    }));
  },
  getEstadoActualOptions() {
    return Object.keys(EstadoActual).map(key => ({
      value: EstadoActual[key],
      label: this.formatEnumLabel(key)
    }));
  },
  formatEnumLabel(key) {
    return key.split('_').map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ');
  },
  getStatusColor(status) {
    const colorMap = {
      // EstadoReserva
      'SOLICITADA': 'info',
      'PENDIENTE': 'warning',
      'PAGADA': 'success',
      'EN_CURSO': 'primary',
      'COMPLETADA': 'success',
      'CANCELADA': 'danger',
      'EXPIRADA': 'warning',
      'NO_SHOW': 'warning',
      'BORRADOR': 'secondary',
      // EstadoValidacion
      'APROBADA': 'success',
      'RECHAZADA': 'danger',
      //'REVISION': 'info',    
      // EstadoPago
      'PAGADO': 'success',
      'PARCIAL': 'info',
      'REEMBOLSADO': 'secondary',
      'FALLIDO': 'danger',
      // EstadoUsuario
      'ACTIVO': 'success',
      'INACTIVO': 'secondary',
      'PENDIENTE_VERIFICACION': 'warning',
      'SANCIONADO': 'danger',
      'BLOQUEADO': 'danger',
      // EstadoActual
      'MANTENIMIENTO': 'warning',
      'CERRADO': 'danger',
      'EVENTO_MUNICIPAL': 'info'
    };
    return colorMap[status] || 'info';
  }
};

/***/ }),

/***/ 39919:
/*!********************************************!*\
  !*** ./src/app/core/constants/Features.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CategoriaCampo: () => (/* binding */ CategoriaCampo),
/* harmony export */   DiaSemana: () => (/* binding */ DiaSemana),
/* harmony export */   TipoEstructura: () => (/* binding */ TipoEstructura),
/* harmony export */   TipoExcepcion: () => (/* binding */ TipoExcepcion),
/* harmony export */   TipoOrganizacion: () => (/* binding */ TipoOrganizacion)
/* harmony export */ });
var CategoriaCampo;
(function (CategoriaCampo) {
  CategoriaCampo["A"] = "A";
  CategoriaCampo["B"] = "B";
  CategoriaCampo["ELITE"] = "ELITE";
})(CategoriaCampo || (CategoriaCampo = {}));
var TipoEstructura;
(function (TipoEstructura) {
  TipoEstructura["TECHADO"] = "Techado";
  TipoEstructura["ABIERTO"] = "Abierto";
  TipoEstructura["CERRADO"] = "Cerrado";
})(TipoEstructura || (TipoEstructura = {}));
var DiaSemana;
(function (DiaSemana) {
  DiaSemana["LUNES"] = "lunes";
  DiaSemana["MARTES"] = "martes";
  DiaSemana["MIERCOLES"] = "miercoles";
  DiaSemana["JUEVES"] = "jueves";
  DiaSemana["VIERNES"] = "viernes";
  DiaSemana["SABADO"] = "sabado";
  DiaSemana["DOMINGO"] = "domingo";
})(DiaSemana || (DiaSemana = {}));
var TipoExcepcion;
(function (TipoExcepcion) {
  TipoExcepcion["CERRADO"] = "cerrado";
  TipoExcepcion["HORARIO_ESPECIAL"] = "horario_especial";
  TipoExcepcion["MANTENIMIENTO"] = "mantenimiento";
  TipoExcepcion["EVENTO_MUNICIPAL"] = "evento_municipal";
})(TipoExcepcion || (TipoExcepcion = {}));
var TipoOrganizacion;
(function (TipoOrganizacion) {
  TipoOrganizacion["ASOCIACION"] = "ASOCIACION";
  TipoOrganizacion["CLUB"] = "CLUB";
  TipoOrganizacion["ESCUELA_MUNICIPAL"] = "ESCUELA_MUNICIPAL";
  TipoOrganizacion["ORGANIZACION"] = "ORGANIZACION";
})(TipoOrganizacion || (TipoOrganizacion = {}));

/***/ }),

/***/ 98312:
/*!******************************************!*\
  !*** ./src/app/core/constants/Places.ts ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CityAcronym: () => (/* binding */ CityAcronym),
/* harmony export */   Districts: () => (/* binding */ Districts)
/* harmony export */ });
const CityAcronym = [{
  id: 1,
  acronym: "CH",
  value: "CHUQUISACA"
}, {
  id: 2,
  acronym: "LP",
  value: "LA PAZ"
}, {
  id: 3,
  acronym: "CB",
  value: "COCHABAMBA"
}, {
  id: 4,
  acronym: "OR",
  value: "ORURO"
}, {
  id: 5,
  acronym: "PT",
  value: "POTOSI"
}, {
  id: 6,
  acronym: "TJ",
  value: "TARIJA"
}, {
  id: 7,
  acronym: "SC",
  value: "SANTA CRUZ"
}, {
  id: 8,
  acronym: "BN",
  value: "BENI"
}, {
  id: 9,
  acronym: "CO",
  value: "COBIJA"
}
// { "id":"9", "acronym": "PN",  "description": "PANDO" }
];
const Districts = [{
  value: 'Distrito 1',
  label: '(Tacata)',
  area: 'Ámbito urbano',
  comprende: 'las zonas de Sapenco y Tacata.'
}, {
  value: 'Distrito 2',
  label: '(Piñami)',
  area: 'Ámbito urbano',
  comprende: 'Iquircollo Central.'
}, {
  value: 'Distrito 3',
  label: '(Santo Domingo)',
  area: 'Ámbito urbano',
  comprende: 'los sectores Purgatorio, Cota, Santo Domingo y Sapenco.'
}, {
  value: 'Distrito 4',
  label: '(La Chulla)',
  area: 'Ámbito rural-urbano',
  conprende: 'las comunidades de Paucarpata, Illataco, La Chulla, Esmeralda e Ironcollo.'
}, {
  value: 'Distrito 5',
  label: '(Pandoja - Piñami)',
  area: 'Ámbito urbano-rural',
  comprende: 'las comunidades de Pandoja, Piñami, Pojpocollo, Barrio Minero y Esquilan.'
}, {
  value: 'Distrito 6',
  label: '(Urkupiña)',
  area: 'Ámbito rural-urbano',
  comprende: 'las comunidades de Caico Alto, Molle Molle, Cotapachi y Urkupiña.'
}, {
  value: 'Distrito 7',
  label: '(Bella Vista)',
  area: 'Ámbito rural',
  comprende: 'las comunidades de Potrero, Bella Vista, Falsuri y Marquina.'
}, {
  value: 'Distrito 8',
  label: '(El Paso)',
  area: 'Ámbito rural-urbano',
  comprende: 'Las comunidades de Chocaya, Molle Molle, Urinzaya, Aranzaya, Pihusi, Apote, Mosoj Rancho,Okhosuru, Pandoja, Chojñacollo, Khorapata, Callajchullpa, Llaukenquiri, Totorcahua, Águila Rancho y El Paso.'
}, {
  value: 'Distrito 9',
  label: '(Misicuni)',
  area: 'Ámbito rural-cordillera',
  comprende: 'todas las comunidades situadas en la Cordillera, con escasa densidad poblacional y accesibilidad.'
}, {
  value: 'Distrito 10',
  label: '(Ámbito urbano)'
}];

/***/ }),

/***/ 73695:
/*!*********************************************!*\
  !*** ./src/app/core/constants/TipoCobro.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TipoCobro: () => (/* binding */ TipoCobro),
/* harmony export */   frecuencia: () => (/* binding */ frecuencia),
/* harmony export */   tiposConcepto: () => (/* binding */ tiposConcepto)
/* harmony export */ });
const TipoCobro = [{
  id: "1",
  value: "por_hora",
  label: "Por Horas"
}, {
  id: "2",
  value: "por_persona",
  label: "Por Persona"
}, {
  id: "3",
  value: "por_evento",
  label: "Por Evento"
}, {
  id: "4",
  value: "por_club",
  label: "Por Club"
}, {
  id: "5",
  value: "por_sesion",
  label: "Por Sesion"
}, {
  id: "6",
  value: "mensualidad",
  label: "Mensualidad"
}];
// En constants/TipoCobro.ts
const frecuencia = [{
  value: 'lunes_a_viernes',
  label: 'Lunes a Viernes',
  dias: [1, 2, 3, 4, 5],
  sesiones: 12345
}, {
  value: 'lunes_a_sabado',
  label: 'Lunes a Sábado',
  dias: [1, 2, 3, 4, 5, 6],
  sesiones: 123456
}, {
  value: 'todos_los_dias',
  label: 'Todos los Días',
  dias: [1, 2, 3, 4, 5, 6, 7],
  sesiones: 1234567
}, {
  value: 'personalizado',
  label: 'Personalizado',
  dias: [],
  sesiones: null
}];
const tiposConcepto = [{
  value: 'fijo',
  label: 'Monto Fijo'
}, {
  value: 'porcentaje',
  label: 'Porcentaje'
}, {
  value: 'por_hora',
  label: 'Por Hora'
}];

/***/ }),

/***/ 55007:
/*!********************************************!*\
  !*** ./src/app/core/constants/UserData.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UserCivilStatus: () => (/* binding */ UserCivilStatus),
/* harmony export */   UserDocType: () => (/* binding */ UserDocType),
/* harmony export */   UserGender: () => (/* binding */ UserGender),
/* harmony export */   UserRol: () => (/* binding */ UserRol),
/* harmony export */   UserStatus: () => (/* binding */ UserStatus)
/* harmony export */ });
const UserRol = [{
  "tipo": 0,
  "id": "ADMINISTRADOR",
  "institucion": "GAMQ DEPORTES",
  "avatarF": "avatar-super-w.png",
  "avatarM": "avatar-super-m.png"
}, {
  "tipo": 1,
  "id": "ENCARGADO",
  "institucion": "GAMQ DEPORTES",
  "avatarF": "avatar-admin-w.png",
  "avatarM": "avatar-admin-m.png"
}, {
  "tipo": 2,
  "id": "CONTRIBUYENTE",
  "institucion": "GAMQ DEPORTES",
  "avatarF": "avatar-op-w.png",
  "avatarM": "avatar-op-m.png"
}];
const UserStatus = [{
  "id": 0,
  "state": "Pendiente"
}, {
  "id": 1,
  "state": "Activo"
}, {
  "id": 2,
  "state": "Bloqueado"
}, {
  "id": 3,
  "state": "Inactivo"
}, {
  "id": 4,
  "state": "Baja"
}, {
  "id": 6,
  "state": "Locked" //The account is temporarily locked due to multiple failed login attempts. 
}];
const UserGender = [{
  "id": "F",
  "description": "FEMENINO"
}, {
  "id": "M",
  "description": "MASCULINO"
}];
const UserCivilStatus = [{
  "type": "SO",
  "description": "SOLTERO(A)"
}, {
  "type": "CA",
  "description": "CASADO(A)"
}, {
  "type": "VI",
  "description": "VIUDO(A)"
}, {
  "type": "DI",
  "description": "DIVORCIADO(A)"
}];
const UserDocType = [{
  "type": "CI",
  "description": "CEDULA DE IDENTIDAD"
}, {
  "type": "CE",
  "description": "CARNET DE EXTRANJERO"
}];


/***/ }),

/***/ 41914:
/*!***********************************!*\
  !*** ./src/app/core/data/menu.ts ***!
  \***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MENU_BASE: () => (/* binding */ MENU_BASE)
/* harmony export */ });
const MENU_BASE = [/* SECTION OF THE MENU THAT CAN BE ACCESED BY ADMIN OR ENCARGADOS OR CONTRIBUYENTES (the uncomenteds menus are for contribuyente the others can be used for admins or encargados) */
// {"uuid":"91b69bcd-6273-479c-88a3-9c3bd796584c","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Dashboard de Admin","accion":"VER","ruta":"/inicio","orden":0,"icono":"ri-dashboard-2-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
{
  "uuid": "43e436ff-7bc4-416e-b0ea-21f93021a1c7",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Calendario",
  "accion": "VER",
  "ruta": "/inicio/employee",
  "orden": 1,
  "icono": "ri-dashboard-2-line",
  "estado": false,
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "d2092175-c678-4f62-8eda-0bcd6395a630",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Mapa",
  "accion": "VER",
  "ruta": "/inicio/taxpayer",
  "orden": 1,
  "icono": "ri-road-map-line",
  "estado": false,
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "1295af1c-3661-408e-a879-311cf53f9678",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Mapa",
  "accion": "RESERVAR",
  "ruta": "/inicio/taxpayer",
  "orden": 1,
  "icono": "ri-road-map-line",
  "estado": false,
  "permisoHijoListDto": [],
  "subNivel": false
},
//  {"uuid":"9f998d6d-fcf1-4823-8d04-3723e4c6cd41","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Contribuyentes","accion":"CREAR","ruta":"/taxpayers","orden":3,"icono":"ri-account-circle-line","estado":false,"permisoHijoListDto":[],"subNivel":false}, 
//  {"uuid":"85e528f4-86f0-405e-b12b-68fabe2c8026","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Contribuyentes","accion":"BLOQUEAR","ruta":"/taxpayers","orden":3,"icono":"ri-account-circle-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
//  {"uuid":"7936fe46-eb5e-45c0-a0c8-501d4f29dc77","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Contribuyentes","accion":"EXPORTAR","ruta":"/taxpayers","orden":3,"icono":"ri-account-circle-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
//  {"uuid":"c8aee0b2-70f1-411b-915c-96bbd1ec2e0b","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Contribuyentes","accion":"ACTUALIZAR","ruta":"/taxpayers","orden":3,"icono":"ri-account-circle-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
//  {"uuid":"a9f1892e-c0e8-4f28-aea1-1234fd80a1aa","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Contribuyentes","accion":"VER","ruta":"/taxpayers","orden":3,"icono":"ri-account-circle-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
{
  "uuid": "7c232c5e-3833-49bd-ae7a-54525aa880d1",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Organizaciones",
  "accion": "VER",
  "ruta": "/organizations",
  "orden": 5,
  "icono": "ri-parent-line",
  "estado": false,
  "permisoHijoListDto": [],
  "subNivel": false
},
//  {"uuid":"4c14d611-cafd-4c62-946d-bdfa905cc4d7","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Organizaciones","accion":"CREAR","ruta":"/organizations","orden":5,"icono":"ri-parent-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
//  {"uuid":"1bc2cb58-a9c6-452f-820f-f7cfa75c96e8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Organizaciones","accion":"ACTUALIZAR","ruta":"/organizations","orden":5,"icono":"ri-parent-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
//  {"uuid":"f01cc4bf-741b-477a-9209-219dae5a30ac","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Organizaciones","accion":"ELIMINAR","ruta":"/organizations","orden":5,"icono":"ri-parent-line","estado":false,"permisoHijoListDto":[],"subNivel":false},
{
  "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas",
  "accion": "",
  "ruta": "",
  "orden": 6,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoHijoListDto": [{
    "uuid": "cdff6f71-b264-470f-b4a4-80518f47f10e",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "CREAR",
    "ruta": "/reservations/details",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "412bd268-3266-4814-8fb0-96be5e401b0a",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "CAMBIAR-HORARIO",
    "ruta": "/reservations/one-time",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "3a43b7da-8aca-4699-885b-0ffb8bdba158",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "GENERAR TICKET",
    "ruta": "/reservations/ticket",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "37ee150e-3970-4895-a488-9127673250be",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "ANULAR",
    "ruta": "/reservations/one-time",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "f23d40e1-e995-47ea-b35a-3ede2a9901ea",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "VALIDAR",
    "ruta": "/reservations/one-time",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "2c5d6d42-4393-4cff-be30-5e51713265f6",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "ACTUALIZAR",
    "ruta": "/reservations/one-time",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "1e767a1a-e158-4373-8b03-0d7bd55221ee",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Puntuales",
    "accion": "VER",
    "ruta": "/reservations/one-time",
    "orden": 1,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "d8bac92f-22b1-4acf-9b7b-80885a079df6",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "VALIDAR",
    "ruta": "/reservations/recurrent",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "aed6ff34-2015-408a-856d-71b5fec1a91a",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "ANULAR",
    "ruta": "/reservations/recurrent",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "2442d951-ac63-4da9-aaba-c168a483ae69",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "ACTUALIZAR",
    "ruta": "/reservations/recurrent",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "e24db4e8-b038-4b57-b0c3-0a51a963d603",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "VER",
    "ruta": "/reservations/recurrent",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "e6280259-8ee3-438e-9e79-ff5ebb72151c",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "GENERAR TICKET",
    "ruta": "/reservations/ticket",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "b5c58992-ff58-440b-9063-cd4213565b6d",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Reservas Recurrentes",
    "accion": "CREAR",
    "ruta": "/reservations/details",
    "orden": 2,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "a89b4238-1304-43ff-b89b-3d22d08f3cd1",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Escuelas Municipales",
    "accion": "ANULAR",
    "ruta": "/reservations/schools",
    "orden": 3,
    "icono": "ri-government-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "e2957248-77b6-4aad-9fd7-17ad23bde135",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Escuelas Municipales",
    "accion": "VER",
    "ruta": "/reservations/schools",
    "orden": 3,
    "icono": "ri-government-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "6ba7f3f5-cc94-4df6-b73c-9afc26056dd3",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Escuelas Municipales",
    "accion": "CREAR",
    "ruta": "/reservations/schools",
    "orden": 3,
    "icono": "ri-government-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }, {
    "uuid": "7234a26e-8116-46e1-be5f-39d78e7e69ed",
    "modulo": "DEPORTESAPP",
    "codigo": "SIS-013",
    "nombreMenu": "Escuelas Municipales",
    "accion": "ACTUALIZAR",
    "ruta": "/reservations/schools",
    "orden": 3,
    "icono": "ri-government-line",
    "estado": false,
    "permisoPadreDto": {
      "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
      "modulo": "DEPORTESAPP",
      "nombreMenu": "Reservas",
      "accion": "",
      "ruta": "",
      "orden": 6,
      "icono": "ri-profile-line",
      "estado": false,
      "permisoHijoListDto": [],
      "subNivel": false
    },
    "permisoHijoListDto": [],
    "subNivel": false
  }],
  "subNivel": false
}, {
  "uuid": "1e767a1a-e158-4373-8b03-0d7bd55221ee",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Puntuales",
  "accion": "VER",
  "ruta": "/reservations/one-time",
  "orden": 1,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "37ee150e-3970-4895-a488-9127673250be",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Puntuales",
  "accion": "ANULAR",
  "ruta": "/reservations/one-time",
  "orden": 1,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "3a43b7da-8aca-4699-885b-0ffb8bdba158",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Puntuales",
  "accion": "GENERAR TICKET",
  "ruta": "/reservations/ticket",
  "orden": 1,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "cdff6f71-b264-470f-b4a4-80518f47f10e",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Puntuales",
  "accion": "CREAR",
  "ruta": "/reservations/details",
  "orden": 1,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
},
// {"uuid":"f23d40e1-e995-47ea-b35a-3ede2a9901ea","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reservas Puntuales","accion":"VALIDAR","ruta":"/reservations/one-time","orden":1,"icono":"ri-profile-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"2c5d6d42-4393-4cff-be30-5e51713265f6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reservas Puntuales","accion":"ACTUALIZAR","ruta":"/reservations/one-time","orden":1,"icono":"ri-profile-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"412bd268-3266-4814-8fb0-96be5e401b0a","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reservas Puntuales","accion":"CAMBIAR-HORARIO","ruta":"/reservations/one-time","orden":1,"icono":"ri-profile-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
{
  "uuid": "e6280259-8ee3-438e-9e79-ff5ebb72151c",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Recurrentes",
  "accion": "GENERAR TICKET",
  "ruta": "/reservations/ticket",
  "orden": 2,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "e24db4e8-b038-4b57-b0c3-0a51a963d603",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Recurrentes",
  "accion": "VER",
  "ruta": "/reservations/recurrent",
  "orden": 2,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "b5c58992-ff58-440b-9063-cd4213565b6d",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Recurrentes",
  "accion": "CREAR",
  "ruta": "/reservations/details",
  "orden": 2,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "aed6ff34-2015-408a-856d-71b5fec1a91a",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Reservas Recurrentes",
  "accion": "ANULAR",
  "ruta": "/reservations/recurrent",
  "orden": 2,
  "icono": "ri-profile-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
},
// {"uuid":"d8bac92f-22b1-4acf-9b7b-80885a079df6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reservas Recurrentes","accion":"VALIDAR","ruta":"/reservations/recurrent","orden":2,"icono":"ri-profile-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"2442d951-ac63-4da9-aaba-c168a483ae69","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reservas Recurrentes","accion":"ACTUALIZAR","ruta":"/reservations/recurrent","orden":2,"icono":"ri-profile-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
{
  "uuid": "a89b4238-1304-43ff-b89b-3d22d08f3cd1",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Escuelas Municipales",
  "accion": "ANULAR",
  "ruta": "/reservations/schools",
  "orden": 3,
  "icono": "ri-government-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "e2957248-77b6-4aad-9fd7-17ad23bde135",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Escuelas Municipales",
  "accion": "VER",
  "ruta": "/reservations/schools",
  "orden": 3,
  "icono": "ri-government-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}, {
  "uuid": "6ba7f3f5-cc94-4df6-b73c-9afc26056dd3",
  "modulo": "DEPORTESAPP",
  "codigo": "SIS-013",
  "nombreMenu": "Escuelas Municipales",
  "accion": "CREAR",
  "ruta": "/reservations/schools",
  "orden": 3,
  "icono": "ri-government-line",
  "estado": false,
  "permisoPadreDto": {
    "uuid": "fccd8b9e-baa9-42c8-baac-a08d42e52aac",
    "modulo": "DEPORTESAPP",
    "nombreMenu": "Reservas",
    "accion": "",
    "ruta": "",
    "orden": 6,
    "icono": "ri-profile-line",
    "estado": false,
    "permisoHijoListDto": [],
    "subNivel": false
  },
  "permisoHijoListDto": [],
  "subNivel": false
}
// {"uuid":"7234a26e-8116-46e1-be5f-39d78e7e69ed","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Escuelas Municipales","accion":"ACTUALIZAR","ruta":"/reservations/schools","orden":3,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"fccd8b9e-baa9-42c8-baac-a08d42e52aac","modulo":"DEPORTESAPP","nombreMenu":"Reservas","accion":"","ruta":"","orden":6,"icono":"ri-profile-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
/* MENU IN REPORTES AND CONFIGURACIONES CAN BE ACCESED FOR ADMINS AND ENCARGADOS: */
// {"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[
//   {"uuid":"66ef6872-eff7-4878-8464-595e298dc9bc","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Ingresos","accion":"GENERAR","ruta":"/reports/payments","orden":1,"icono":"ri-file-copy-2-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"290c46db-02ea-4428-ab72-cda29b1c4ce3","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Reservas Puntuales","accion":"GENERAR","ruta":"/reports/list/puntual","orden":2,"icono":"ri-file-list-3-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"a761d826-fa90-40e3-87a5-3474c4f3db0f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Reservas Recurrentes","accion":"GENERAR","ruta":"/reports/list/recurrente","orden":3,"icono":"ri-file-list-3-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"dbf55e92-c0e0-4d97-9bd3-735ed58eb974","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Mensualidades","accion":"GENERAR","ruta":"/reports/list/mensual","orden":4,"icono":"ri-survey-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false}
// ],"subNivel":false,"isCollapsed":true},
// {"uuid":"66ef6872-eff7-4878-8464-595e298dc9bc","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Ingresos","accion":"GENERAR","ruta":"/reports/payments","orden":1,"icono":"ri-file-copy-2-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"290c46db-02ea-4428-ab72-cda29b1c4ce3","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Reservas Puntuales","accion":"GENERAR","ruta":"/reports/list/puntual","orden":2,"icono":"ri-file-list-3-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"a761d826-fa90-40e3-87a5-3474c4f3db0f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Reservas Recurrentes","accion":"GENERAR","ruta":"/reports/list/recurrente","orden":3,"icono":"ri-file-list-3-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"dbf55e92-c0e0-4d97-9bd3-735ed58eb974","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Reporte de Mensualidades","accion":"GENERAR","ruta":"/reports/list/mensual","orden":4,"icono":"ri-survey-line","estado":false,"permisoPadreDto":{"uuid":"5d5d14c0-01cb-4b5e-b5c7-06df460097c3","modulo":"DEPORTESAPP","nombreMenu":"Reportes","accion":"","ruta":"","orden":7,"icono":"ri-file-list-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[
//   {"uuid":"937f67f7-33f0-47c7-8617-b41474b9feba","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"CREAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":
//     {"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"68980c8c-0be3-4f4c-8ef9-411a1e789ee8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"ACTUALIZAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":
//     {"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"5c3d151e-d4c9-4932-aaa4-603d0fbe7b6d","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"ELIMINAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":
//     {"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"d64aa296-0f48-46d3-ba63-c09fa8634b90","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"VER","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":
//     {"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false}
// ],"subNivel":false},
// {"uuid":"937f67f7-33f0-47c7-8617-b41474b9feba","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"CREAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":{"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"68980c8c-0be3-4f4c-8ef9-411a1e789ee8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"ACTUALIZAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":{"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"5c3d151e-d4c9-4932-aaa4-603d0fbe7b6d","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"ELIMINAR","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":{"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"d64aa296-0f48-46d3-ba63-c09fa8634b90","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Campos Deportivos","accion":"VER","ruta":"/settings/fields","orden":1,"icono":"ri-store-3-line","estado":false,"permisoPadreDto":{"uuid":"e675ff7a-6cca-4e4e-ac59-be571413a583","modulo":"DEPORTESAPP","nombreMenu":"Configuraciones","accion":"","ruta":"","orden":9,"icono":"ri-settings-3-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
/* ONLY ADMIN MENU SECTION (Not Encargado, not contribuyente): */
// {"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[
//   {"uuid":"e67c15c1-30ab-4330-bff3-03820d1b2003","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"VER","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"40d72007-ba8b-493f-8cf8-852fc77b4d38","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"CREAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"07d298b6-9a39-4a6b-a763-a940f4cd2d49","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"ELIMINAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"d8dabaf3-6b80-49a9-be87-a146b13fd5e6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"ACTUALIZAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"149a1fa1-c546-48c3-a4e6-01b7b5661cb9","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"VER","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"94bb63fb-c3ba-4dcf-b98f-2e24e560cd70","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"CREAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"20ce9b41-2706-4541-bc8a-40e81628a909","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"ELIMINAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"a841f585-782f-452e-8d03-1454b33baba5","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"ACTUALIZAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"bf0f67b9-c1c0-4c06-9214-b4e68da2372f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"ACTUALIZAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"838b6e2f-4096-45d4-9e3d-4a297888d838","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"VER","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"1edf4db0-0afe-4fe1-b04d-921117d9e1ea","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"CREAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"dfc0c1b0-fa62-4447-9d69-0b8c336fd9cf","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"ELIMINAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"8cee97b5-60cd-4b5a-b9c2-1209bc0e67f3","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"ELIMINAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"cf62c6d8-e0f6-439d-9d4c-d41ed27a21b5","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"VER","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"36d25505-f7a0-4ea2-b2fd-807520270000","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"ACTUALIZAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"6d101629-4096-4b4a-8ca7-0152589b8843","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"CREAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"0656bd00-7e31-4797-acce-5e40c9c75177","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"ELIMINAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"9345b8e4-030f-489e-a7e0-f27841784832","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"CREAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"b8736afa-7718-44de-a5b5-0776a43c9a3a","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"ACTUALIZAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"67f90927-be5c-4962-a657-cd35bd2b05a8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"VER","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"f18e93f9-5f63-4a8e-8a5e-5bda7bfc69d8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"VER","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"a68fc88f-57c4-4158-b1b7-f9b9021caed6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"ACTUALIZAR","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"0713501e-bfa2-48be-84d7-846ef64eab6f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"CREAR","ruta":"bx bx-terminal","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
//   {"uuid":"9cbe62cc-8972-483e-958e-c4f9ce251291","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"ELIMINAR","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false}
// ],"subNivel":false},
// {"uuid":"40d72007-ba8b-493f-8cf8-852fc77b4d38","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"CREAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"07d298b6-9a39-4a6b-a763-a940f4cd2d49","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"ELIMINAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"d8dabaf3-6b80-49a9-be87-a146b13fd5e6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"ACTUALIZAR","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"e67c15c1-30ab-4330-bff3-03820d1b2003","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Complejos Deportivos","accion":"VER","ruta":"/admin/facilities","orden":1,"icono":"ri-government-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"94bb63fb-c3ba-4dcf-b98f-2e24e560cd70","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"CREAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"20ce9b41-2706-4541-bc8a-40e81628a909","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"ELIMINAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"149a1fa1-c546-48c3-a4e6-01b7b5661cb9","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"VER","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"a841f585-782f-452e-8d03-1454b33baba5","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Encargados","accion":"ACTUALIZAR","ruta":"/admin/employees","orden":2,"icono":"ri-user-2-fill","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"838b6e2f-4096-45d4-9e3d-4a297888d838","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"VER","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"dfc0c1b0-fa62-4447-9d69-0b8c336fd9cf","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"ELIMINAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"1edf4db0-0afe-4fe1-b04d-921117d9e1ea","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"CREAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"bf0f67b9-c1c0-4c06-9214-b4e68da2372f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Superficies","accion":"ACTUALIZAR","ruta":"/admin/area","orden":3,"icono":"ri-home-6-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"36d25505-f7a0-4ea2-b2fd-807520270000","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"ACTUALIZAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"cf62c6d8-e0f6-439d-9d4c-d41ed27a21b5","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"VER","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"6d101629-4096-4b4a-8ca7-0152589b8843","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"CREAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"8cee97b5-60cd-4b5a-b9c2-1209bc0e67f3","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Categorias","accion":"ELIMINAR","ruta":"/admin/categories","orden":4,"icono":"ri-football-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"67f90927-be5c-4962-a657-cd35bd2b05a8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"VER","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"0656bd00-7e31-4797-acce-5e40c9c75177","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"ELIMINAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"b8736afa-7718-44de-a5b5-0776a43c9a3a","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"ACTUALIZAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"9345b8e4-030f-489e-a7e0-f27841784832","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Clasificadores Ruat","accion":"CREAR","ruta":"/admin/classifiers","orden":5,"icono":"ri-registered-line","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"0713501e-bfa2-48be-84d7-846ef64eab6f","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"CREAR","ruta":"bx bx-terminal","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"9cbe62cc-8972-483e-958e-c4f9ce251291","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"ELIMINAR","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"a68fc88f-57c4-4158-b1b7-f9b9021caed6","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"ACTUALIZAR","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
// {"uuid":"f18e93f9-5f63-4a8e-8a5e-5bda7bfc69d8","modulo":"DEPORTESAPP","codigo":"SIS-013","nombreMenu":"Configuraciones de Sistema","accion":"VER","ruta":"/admin/config","orden":6,"icono":"bx bx-terminal","estado":false,"permisoPadreDto":{"uuid":"eccaab59-9916-4086-9320-59eebe8d2fee","modulo":"DEPORTESAPP","nombreMenu":"Administracion","accion":"","ruta":"","orden":10,"icono":"ri-shield-user-line","estado":false,"permisoHijoListDto":[],"subNivel":false},"permisoHijoListDto":[],"subNivel":false},
];

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthGuard: () => (/* binding */ AuthGuard)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/auth.service */ 68010);



class AuthGuard {
  constructor(router, authenticationService) {
    this.router = router;
    this.authenticationService = authenticationService;
  }
  canActivate(route, state) {
    const currentUser = this.authenticationService.currentUser();
    if (!currentUser) {
      this.authenticationService.logout();
      return false;
    }
    const hasPermission = this.checkPermissions(route, state);
    if (!hasPermission) {
      this.router.navigate(['/']);
    }
    return hasPermission;
  }
  canActivateChild(childRoute, state) {
    return this.canActivate(childRoute, state);
  }
  checkPermissions(route, state) {
    if (state.url === "/" || state.url === "") {
      return true;
    }
    let currentRoute = route;
    while (currentRoute.firstChild) {
      currentRoute = currentRoute.firstChild;
    }
    const requiredPermission = currentRoute.data["requiredPermission"] || currentRoute.data["permission"];
    if (requiredPermission) {
      return requiredPermission === "CAN_ACCESS" || this.authenticationService.hasRoutePermission(requiredPermission);
    }
    const baseUrl = state.url.split("?")[0].split("/").slice(0, 3).join("/");
    return this.authenticationService.hasRoutePermission(baseUrl);
  }
  static {
    this.ɵfac = function AuthGuard_Factory(t) {
      return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthenticationService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: AuthGuard,
      factory: AuthGuard.ɵfac,
      providedIn: "root"
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NoAuthGuard: () => (/* binding */ NoAuthGuard)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/auth.service */ 68010);



class NoAuthGuard {
  constructor(router, authenticationService) {
    this.router = router;
    this.authenticationService = authenticationService;
  }
  canActivate() {
    const currentUser = this.authenticationService.currentUser();
    if (currentUser) {
      this.router.navigate(['/']);
      return false;
    }
    return true;
  }
  static {
    this.ɵfac = function NoAuthGuard_Factory(t) {
      return new (t || NoAuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthenticationService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: NoAuthGuard,
      factory: NoAuthGuard.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthInterceptor: () => (/* binding */ AuthInterceptor),
/* harmony export */   authInterceptorProviders: () => (/* binding */ authInterceptorProviders)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/token-storage.service */ 87413);



const TOKEN_HEADER_KEY = 'Authorization';
class AuthInterceptor {
  constructor(storage) {
    this.storage = storage;
  }
  intercept(req, next) {
    let authReq = req;
    const token = this.storage.getToken();
    if (token != null) {
      authReq = req.clone({
        headers: req.headers.set(TOKEN_HEADER_KEY, 'Bearer ' + token)
      });
    }
    return next.handle(authReq);
  }
  static {
    this.ɵfac = function AuthInterceptor_Factory(t) {
      return new (t || AuthInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__.TokenStorageService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: AuthInterceptor,
      factory: AuthInterceptor.ɵfac
    });
  }
}
const authInterceptorProviders = [{
  provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HTTP_INTERCEPTORS,
  useClass: AuthInterceptor,
  multi: true
}];

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ErrorInterceptor: () => (/* binding */ ErrorInterceptor)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 77919);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 61318);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/auth.service */ 68010);




class ErrorInterceptor {
  constructor(authenticationService) {
    this.authenticationService = authenticationService;
  }
  intercept(request, next) {
    return next.handle(request).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.catchError)(err => {
      if (err.status === 401) {
        // auto logout if 401 response returned from api
        this.authenticationService.logout();
        location.reload();
      }
      const error = err.error.message || err.statusText;
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.throwError)(error);
    }));
  }
  static {
    this.ɵfac = function ErrorInterceptor_Factory(t) {
      return new (t || ErrorInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthenticationService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
      token: ErrorInterceptor,
      factory: ErrorInterceptor.ɵfac
    });
  }
}

/***/ }),

/***/ 40503:
/*!********************************************************************!*\
  !*** ./src/app/core/services/api-users/permission-user.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PermissionUserService: () => (/* binding */ PermissionUserService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var src_app_global_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/global-component */ 35461);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);





const CODE_APP = src_app_global_component__WEBPACK_IMPORTED_MODULE_1__.GlobalComponent.CODE_APP;
const USERS_API = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.apiLoginUrl}/permiso`;
class PermissionUserService {
  constructor(http) {
    this.http = http;
  }
  getPermissionsApp() {
    return this.http.get(`${USERS_API}/padres/${CODE_APP}`);
  }
  getPermissionsUser(user) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpParams();
    params = params.append('uuidUsuario', user.uuid);
    params = params.append('codigoModulo', CODE_APP);
    let headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpHeaders({
      'Content-Type': 'application/json',
      'Authorization': 'Bearer ' + user.token
    });
    return this.http.get(`${USERS_API}/permisos-porusuario`, {
      params: params,
      headers: headers
    });
  }
  static {
    this.ɵfac = function PermissionUserService_Factory(t) {
      return new (t || PermissionUserService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
      token: PermissionUserService,
      factory: PermissionUserService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UserService: () => (/* binding */ UserService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 70271);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 61318);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _apiResponses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../apiResponses */ 77765);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 46443);





const usersUrl = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.apiLoginUrl}`;
class UserService {
  constructor(http) {
    this.http = http;
  }
  loginByUsername(username, password) {
    return this.http.post(`${usersUrl}/auth/signin`, {
      username,
      password
    }).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_2__.map)(res => res), (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.catchError)((0,_apiResponses__WEBPACK_IMPORTED_MODULE_1__.handleError)(`loguear usuario`)));
  }
  // loginByUsername(username: String, password: String) {
  //     return this.http.post<any>(`${usersUrl}/auth/signin`, {username, password});
  // }
  getAllUsers() {
    return this.http.get(`${usersUrl}/listar/usuarios`);
  }
  getUserByUuid(uuid) {
    return this.http.get(`${usersUrl}/usuario/${uuid}`);
  }
  updateUser(data) {
    return this.http.put(`${usersUrl}/user/update`, data);
  }
  changePassword(uuidUsuario, newPassword) {
    return this.http.post(`${usersUrl}/user/change-password`, {
      uuidUsuario,
      newPassword
    });
  }
  updatePersona(persona) {
    return this.http.put(`${usersUrl}/persona`, persona);
  }
  static {
    this.ɵfac = function UserService_Factory(t) {
      return new (t || UserService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
      token: UserService,
      factory: UserService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   handleError: () => (/* binding */ handleError),
/* harmony export */   handleResponse: () => (/* binding */ handleResponse)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 77919);

function handleResponse(response) {
  if (response.status === 'OK') {
    return response.payload;
  } else {
    throw new Error(response.payload?.message || 'Respuesta inesperada del servidor');
  }
}
function handleError(operation = 'operación') {
  return error => {
    let message = `Error en ${operation}`;
    if (error?.error?.message) {
      message = error.error.message;
    } else if (error?.message) {
      message = error.message;
    } else if (typeof error === 'string') {
      message = error;
    }
    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.throwError)(() => new Error(message));
  };
}
// export function handleError(operation = 'operación') {
//   return (error: any) => {
//     return throwError(() => new Error(error?.message || `Error en ${operation}`));
//   };
// }
// update(data: Vehicle): Observable<Vehicle> {
//   return this.http.put<{ status: string; payload: any }>(`${url}`, data).pipe(
//     map((response) => {
//       if (response.status === 'OK') {
//         return response.payload as Vehicle;
//       } else {
//         const msg = typeof response.payload === 'string' ? response.payload : JSON.stringify(response.payload);
//         throw new Error(`Error del servidor: ${msg}`);
//       }
//     }),
//     catchError((error) => {
//       let errorMessage = 'Error desconocido';
//       if (error.error) {
//         if (typeof error.error === 'string') {
//           errorMessage = error.error;
//         } else if (typeof error.error === 'object') {
//           errorMessage = error.error.message || error.error.details || JSON.stringify(error.error);
//         }
//       } else if (error.message) {
//         errorMessage = error.message;
//       }
//       return throwError(() => new Error(errorMessage));
//     })
//   );
// }

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CamposDeportivoService: () => (/* binding */ CamposDeportivoService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);

/**Enviroments */



/**Models */
const httpOptions = {
  headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${window.sessionStorage.getItem('auth-token')}`
  })
};
class CamposDeportivoService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/campoDeportivo';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByComplejo(data) {
    return this.http.get(`${this.apiUrl}/complejo/${data.uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function CamposDeportivoService_Factory(t) {
      return new (t || CamposDeportivoService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: CamposDeportivoService,
      factory: CamposDeportivoService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CategoriasService: () => (/* binding */ CategoriasService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/**Enviroments */



/**Models */
class CategoriasService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/categorias';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function CategoriasService_Factory(t) {
      return new (t || CategoriasService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: CategoriasService,
      factory: CategoriasService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClasificadorRuatService: () => (/* binding */ ClasificadorRuatService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class ClasificadorRuatService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/clasificadores';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function ClasificadorRuatService_Factory(t) {
      return new (t || ClasificadorRuatService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: ClasificadorRuatService,
      factory: ClasificadorRuatService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionSistemaService: () => (/* binding */ ConfiguracionSistemaService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 43942);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);


/**Enviroments */



/**Models */
const httpOptions = {
  headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${window.sessionStorage.getItem('auth-token')}`
  })
};
class ConfiguracionSistemaService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/configuracionSistema';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByClave(clave) {
    return this.http.get(`${this.apiUrl}/clave/${clave}`);
  }
  getByCategoria(categoria) {
    return this.http.get(`${this.apiUrl}/categoria/${categoria}`);
  }
  getByAplicaA(aplicaA) {
    return this.http.get(`${this.apiUrl}/aplicaA/${aplicaA}`);
  }
  getByReferenciaUuid(referenciaUuid) {
    return this.http.get(`${this.apiUrl}/referencia/${referenciaUuid}`);
  }
  getModificablesPorUsuario() {
    return this.http.get(`${this.apiUrl}/modificables/usuario`);
  }
  getCategorias() {
    return this.http.get(`${this.apiUrl}/categorias`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data, httpOptions);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data, httpOptions);
  }
  updateByClave(clave, data) {
    return this.http.put(`${this.apiUrl}/clave/${clave}`, data, httpOptions);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`, httpOptions);
  }
  desactivar(uuid) {
    return this.http.put(`${this.apiUrl}/desactivar/${uuid}`, {}, httpOptions);
  }
  // Métodos utilitarios para obtener valores específicos
  getValorTexto(clave, valorPorDefecto = '') {
    return new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
      this.getByClave(clave).subscribe({
        next: response => {
          const valor = response.payload?.valorTexto || valorPorDefecto;
          observer.next(valor);
          observer.complete();
        },
        error: () => {
          observer.next(valorPorDefecto);
          observer.complete();
        }
      });
    });
  }
  getValorNumerico(clave, valorPorDefecto = 0) {
    return new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
      this.getByClave(clave).subscribe({
        next: response => {
          const valor = response.payload?.valorNumerico || valorPorDefecto;
          observer.next(valor);
          observer.complete();
        },
        error: () => {
          observer.next(valorPorDefecto);
          observer.complete();
        }
      });
    });
  }
  getValorBoolean(clave, valorPorDefecto = false) {
    return new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
      this.getByClave(clave).subscribe({
        next: response => {
          const valor = response.payload?.valorBoolean !== null ? response.payload?.valorBoolean : valorPorDefecto;
          observer.next(valor);
          observer.complete();
        },
        error: () => {
          observer.next(valorPorDefecto);
          observer.complete();
        }
      });
    });
  }
  static {
    this.ɵfac = function ConfiguracionSistemaService_Factory(t) {
      return new (t || ConfiguracionSistemaService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
      token: ConfiguracionSistemaService,
      factory: ConfiguracionSistemaService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComplejosService: () => (/* binding */ ComplejosService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/**Enviroments */



class ComplejosService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/complejos';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function ComplejosService_Factory(t) {
      return new (t || ComplejosService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: ComplejosService,
      factory: ComplejosService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ContribuyentesService: () => (/* binding */ ContribuyentesService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class ContribuyentesService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/contribuyente';
    this.contribuyente = {
      uuid: "d133432d-ecc5-4952-af1b-1ca825f815f9",
      userName: "contribuyente",
      password: "Contribuyente",
      nombre: "FABIOLA",
      apPaterno: "MORALES",
      apMaterno: "S",
      nroCarnet: "8695227",
      nroNit: "",
      ciExpedido: "COCHABAMBA",
      sexo: "F",
      direccion: "",
      celular: "72248669",
      correo: "moralessfaby.dev@gmail.com",
      tipoContribuyente: "NA",
      codigoContribuyente: "0A025F03001B0E001407505B51",
      tipoDocumento: "CI",
      estadoCivil: "SOLTERO",
      fechaNac: "23/04/1999",
      estadoUsuario: "Active"
      // estado:	false
    };
  }
  loginByUsername(user, pass) {
    return this.http.post(`${this.apiUrl}/login`, {
      user,
      pass
    });
  }
  // loginByUsername(user: string, pass: string) {
  //   const params = { user, pass };
  //   return this.http.get<any>(`${this.apiUrl}/login`, { params });
  // }
  // loginByUsername(username: string, password: string){
  //   if (username === this.contribuyente.userName && password === this.contribuyente.password) {
  //     return of(this.contribuyente);
  //   } else {
  //     return new Observable(observer => {
  //       observer.error('Invalid credentials');
  //       observer.complete();
  //     });
  //   }
  // }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByEmail(email) {
    return this.http.get(`${this.apiUrl}/email/${email}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function ContribuyentesService_Factory(t) {
      return new (t || ContribuyentesService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: ContribuyentesService,
      factory: ContribuyentesService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EncargadoService: () => (/* binding */ EncargadoService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class EncargadoService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/encargado';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByUserUuid(uuid) {
    return this.http.get(`${this.apiUrl}/user/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function EncargadoService_Factory(t) {
      return new (t || EncargadoService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: EncargadoService,
      factory: EncargadoService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EstudianteEscuelaService: () => (/* binding */ EstudianteEscuelaService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class EstudianteEscuelaService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/estudiante-escuela';
  }
  // Basic CRUD Operations
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByMatricula(matricula) {
    return this.http.get(`${this.apiUrl}/matricula/${matricula}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  // Business Operations
  getByContribuyente(contribuyenteUuid) {
    return this.http.get(`${this.apiUrl}/contribuyente/${contribuyenteUuid}`);
  }
  getByEscuela(codigoEscuela) {
    return this.http.get(`${this.apiUrl}/escuela/${codigoEscuela}`);
  }
  getActivos() {
    return this.http.get(`${this.apiUrl}/activos`);
  }
  getInactivos() {
    return this.http.get(`${this.apiUrl}/inactivos`);
  }
  inactivarEstudiante(uuid) {
    return this.http.patch(`${this.apiUrl}/${uuid}/inactivar`, {});
  }
  activarEstudiante(uuid) {
    return this.http.patch(`${this.apiUrl}/${uuid}/activar`, {});
  }
  generarMatricula(codigoEscuela) {
    return this.http.get(`${this.apiUrl}/generar-matricula/${codigoEscuela}`);
  }
  // Payment related operations
  getMensualidadesByEstudiante(estudianteUuid) {
    return this.http.get(`${this.apiUrl}/${estudianteUuid}/mensualidades`);
  }
  getMensualidadesPendientes(estudianteUuid) {
    return this.http.get(`${this.apiUrl}/${estudianteUuid}/mensualidades-pendientes`);
  }
  static {
    this.ɵfac = function EstudianteEscuelaService_Factory(t) {
      return new (t || EstudianteEscuelaService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: EstudianteEscuelaService,
      factory: EstudianteEscuelaService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HorarioExcepcionService: () => (/* binding */ HorarioExcepcionService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class HorarioExcepcionService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/horarioExcepcion';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function HorarioExcepcionService_Factory(t) {
      return new (t || HorarioExcepcionService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: HorarioExcepcionService,
      factory: HorarioExcepcionService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HorarioFijoService: () => (/* binding */ HorarioFijoService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class HorarioFijoService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/horarioFijo';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function HorarioFijoService_Factory(t) {
      return new (t || HorarioFijoService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: HorarioFijoService,
      factory: HorarioFijoService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   OrganizacionService: () => (/* binding */ OrganizacionService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class OrganizacionService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/organizaciones';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  getByRepresentante(contribuyenteUuid) {
    return this.http.get(`${this.apiUrl}/representante/${contribuyenteUuid}`);
  }
  getByContribuyente(contribuyenteUuid) {
    return this.http.get(`${this.apiUrl}/contribuyente/${contribuyenteUuid}`);
  }
  static {
    this.ɵfac = function OrganizacionService_Factory(t) {
      return new (t || OrganizacionService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: OrganizacionService,
      factory: OrganizacionService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PagoService: () => (/* binding */ PagoService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);



class PagoService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/pagos';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  static {
    this.ɵfac = function PagoService_Factory(t) {
      return new (t || PagoService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: PagoService,
      factory: PagoService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReportsService: () => (/* binding */ ReportsService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);

/** Environments */



class ReportsService {
  constructor(http) {
    this.http = http;
    this.apiUrl = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl}/reporte`;
  }
  getPuntualReport(fechaini, fechafin, tipocobro = 'TODO', estado = 'TODO', cancha = 'TODO') {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('fechaini', fechaini);
    params = params.append('fechafin', fechafin);
    params = params.append('tipocobro', tipocobro);
    params = params.append('estado', estado);
    params = params.append('cancha', cancha);
    return this.http.get(`${this.apiUrl}/lista-Reservas`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getRecurrentReport(fechaini, fechafin, tipocobro = 'TODO', estado = 'TODO', cancha = 'TODO') {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('fechaini', fechaini);
    params = params.append('fechafin', fechafin);
    params = params.append('tipocobro', tipocobro);
    params = params.append('estado', estado);
    params = params.append('cancha', cancha);
    return this.http.get(`${this.apiUrl}/lista-Recurrentes`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getMonthlyReport(fechaini, fechafin, estado = 'TODO', escuelita = 'TODO', estudiante = 'TODO') {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('fechaini', fechaini);
    params = params.append('fechafin', fechafin);
    params = params.append('estado', estado);
    params = params.append('escuelita', escuelita);
    params = params.append('estudiante', estudiante);
    return this.http.get(`${this.apiUrl}/lista-mensuales`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getStudentMonthlyReport(fechaini, fechafin, estado = 'TODO', matricula = 'TODO', alumno = 'TODO') {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('fechaini', fechaini);
    params = params.append('fechafin', fechafin);
    params = params.append('estado', estado);
    params = params.append('matricula', matricula);
    params = params.append('alumno', alumno);
    return this.http.get(`${this.apiUrl}/lista-alumno`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getPaymentsReport(fecha_ini, fecha_fin) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('fecha_ini', fecha_ini);
    params = params.append('fecha_fin', fecha_fin);
    return this.http.get(`${this.apiUrl}/lista-Pagos`, {
      responseType: 'arraybuffer',
      params
    });
  }
  // Ticket Reports
  getTicketReservaPuntual(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-reservap`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketReservaPersona(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-reser-per`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketReservaEvento(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-reser-ev`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketRecurrenteSesion(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-recuses`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketRecurrentePersona(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-recuper`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketRecurrenteMensualidad(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-recumes`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getTicketByPeriodo(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-mensual`, {
      responseType: 'arraybuffer',
      params
    });
  }
  getPayTicket(uuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams();
    params = params.append('uuid', uuid);
    return this.http.get(`${this.apiUrl}/ticket-pago`, {
      responseType: 'arraybuffer',
      params
    });
  }
  downloadPdf(observable, filename = 'report.pdf') {
    observable.subscribe({
      next: data => {
        const blob = new Blob([data], {
          type: 'application/pdf'
        });
        const url = window.URL.createObjectURL(blob);
        const link = document.createElement('a');
        link.href = url;
        link.download = filename;
        link.click();
        window.URL.revokeObjectURL(url);
      },
      error: error => {
        console.error('Error downloading PDF:', error);
      }
    });
  }
  downloadPuntualReport(fechaini, fechafin, tipocobro = 'TODO', estado = 'TODO', cancha = 'TODO', filename = 'reporte-puntual.pdf') {
    this.downloadPdf(this.getPuntualReport(fechaini, fechafin, tipocobro, estado, cancha), filename);
  }
  downloadRecurrentReport(fechaini, fechafin, tipocobro = 'TODO', estado = 'TODO', cancha = 'TODO', filename = 'reporte-recurrente.pdf') {
    this.downloadPdf(this.getRecurrentReport(fechaini, fechafin, tipocobro, estado, cancha), filename);
  }
  downloadMonthlyReport(fechaini, fechafin, estado = 'TODO', escuelita = 'TODO', filename = 'reporte-mensual.pdf') {
    this.downloadPdf(this.getMonthlyReport(fechaini, fechafin, estado, escuelita), filename);
  }
  downloadPaymentsReport(fecha_ini, fecha_fin, filename = 'reporte-pagos.pdf') {
    this.downloadPdf(this.getPaymentsReport(fecha_ini, fecha_fin), filename);
  }
  downloadTicketReservaPuntual(uuid, filename = 'ticket-reserva-puntual.pdf') {
    this.downloadPdf(this.getTicketReservaPuntual(uuid), filename);
  }
  downloadTicketReservaPersona(uuid, filename = 'ticket-reserva-persona.pdf') {
    this.downloadPdf(this.getTicketReservaPersona(uuid), filename);
  }
  downloadTicketReservaEvento(uuid, filename = 'ticket-reserva-evento.pdf') {
    this.downloadPdf(this.getTicketReservaEvento(uuid), filename);
  }
  downloadTicketRecurrenteSesion(uuid, filename = 'ticket-recurrente-sesion.pdf') {
    this.downloadPdf(this.getTicketRecurrenteSesion(uuid), filename);
  }
  downloadTicketRecurrentePersona(uuid, filename = 'ticket-recurrente-persona.pdf') {
    this.downloadPdf(this.getTicketRecurrentePersona(uuid), filename);
  }
  downloadTicketRecurrenteMensualidad(uuid, filename = 'ticket-recurrente-mensualidad.pdf') {
    this.downloadPdf(this.getTicketRecurrenteMensualidad(uuid), filename);
  }
  downloadTicketMensual(uuid, filename = 'ticket-mensual.pdf') {
    this.downloadPdf(this.getTicketByPeriodo(uuid), filename);
  }
  static {
    this.ɵfac = function ReportsService_Factory(t) {
      return new (t || ReportsService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: ReportsService,
      factory: ReportsService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservaPeriodoService: () => (/* binding */ ReservaPeriodoService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);




class ReservaPeriodoService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/reservas-periodo';
  }
  getAll(page = 0, size = 20, filters) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('page', page.toString()).set('size', size.toString());
    if (filters) {
      Object.entries(filters).forEach(([key, value]) => {
        if (value !== null && value !== undefined && value !== '') {
          params = params.set(key, value.toString());
        }
      });
    }
    return this.http.get(`${this.apiUrl}`, {
      params
    });
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByMatricula(matricula) {
    return this.http.get(`${this.apiUrl}/matricula/${matricula}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  getByContribuyente(contribuyenteUuid) {
    return this.http.get(`${this.apiUrl}/contribuyente/${contribuyenteUuid}`);
  }
  getByEscuela(codigoEscuela) {
    return this.http.get(`${this.apiUrl}/escuela/${codigoEscuela}`);
  }
  getActivos() {
    return this.http.get(`${this.apiUrl}/activos`);
  }
  getInactivos() {
    return this.http.get(`${this.apiUrl}/inactivos`);
  }
  inactivarEstudiante(uuid) {
    return this.http.patch(`${this.apiUrl}/${uuid}/inactivar`, {});
  }
  activarEstudiante(uuid) {
    return this.http.patch(`${this.apiUrl}/${uuid}/activar`, {});
  }
  generarMatricula(codigoEscuela) {
    return this.http.get(`${this.apiUrl}/generar-matricula/${codigoEscuela}`);
  }
  getMensualidadesByEstudiante(estudianteUuid) {
    return this.http.get(`${this.apiUrl}/${estudianteUuid}/mensualidades`);
  }
  getMensualidadesPendientes(estudianteUuid) {
    return this.http.get(`${this.apiUrl}/${estudianteUuid}/mensualidades-pendientes`);
  }
  static {
    this.ɵfac = function ReservaPeriodoService_Factory(t) {
      return new (t || ReservaPeriodoService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: ReservaPeriodoService,
      factory: ReservaPeriodoService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservaPuntualService: () => (/* binding */ ReservaPuntualService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);




class ReservaPuntualService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/reservas-puntuales';
  }
  getAll(page = 0, size = 20, filters) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('page', page.toString()).set('size', size.toString());
    if (filters) {
      Object.entries(filters).forEach(([key, value]) => {
        if (value !== null && value !== undefined && value !== '') {
          params = params.set(key, value.toString());
        }
      });
    }
    return this.http.get(`${this.apiUrl}`, {
      params
    });
  }
  checkExpiredReservations(horasTimeout) {
    return this.http.post(`${this.apiUrl}/verificar-expiradas`, null, {
      params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('horasTimeout', horasTimeout.toString())
    });
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByReservaUuid(reservaUuid) {
    return this.http.get(`${this.apiUrl}/reserva/${reservaUuid}`);
  }
  getByFechaUso(fechaUso) {
    return this.http.get(`${this.apiUrl}/fecha-uso/${fechaUso.toISOString().split('T')[0]}`);
  }
  getByCampoYFecha(uuidCampo, fechaUso) {
    return this.http.get(`${this.apiUrl}/campo/${uuidCampo}/fecha/${fechaUso.toISOString().split('T')[0]}`);
  }
  getActivasByCampoYFecha(uuidCampo, fechaUso) {
    return this.http.get(`${this.apiUrl}/activas/campo/${uuidCampo}/fecha/${fechaUso.toISOString().split('T')[0]}`);
  }
  verificarConflictos(uuidCampo, fechaUso, horaInicio, horaFin, excludeReservaUuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('campoUuid', uuidCampo).set('fechaUso', fechaUso.toISOString().split('T')[0]).set('horaInicio', horaInicio).set('horaFin', horaFin);
    if (excludeReservaUuid) {
      params = params.set('excludeReservaUuid', excludeReservaUuid);
    }
    return this.http.get(`${this.apiUrl}/conflictos`, {
      params
    });
  }
  create(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  registrarUsoReal(uuid, fechaUsoReal) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('fechaUsoReal', fechaUsoReal.toISOString());
    return this.http.put(`${this.apiUrl}/${uuid}/registrar-uso`, null, {
      params
    });
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function ReservaPuntualService_Factory(t) {
      return new (t || ReservaPuntualService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: ReservaPuntualService,
      factory: ReservaPuntualService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservaRecurrenteService: () => (/* binding */ ReservaRecurrenteService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);




class ReservaRecurrenteService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/reservas-recurrentes';
  }
  getAll(page = 0, size = 20, filters) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('page', page.toString()).set('size', size.toString());
    if (filters) {
      Object.entries(filters).forEach(([key, value]) => {
        if (value !== null && value !== undefined && value !== '') {
          params = params.set(key, value.toString());
        }
      });
    }
    return this.http.get(`${this.apiUrl}`, {
      params
    });
  }
  checkExpiredReservations(horasTimeout) {
    return this.http.post(`${this.apiUrl}/verificar-expiradas`, null, {
      params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('horasTimeout', horasTimeout.toString())
    });
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByReservaUuid(reservaUuid) {
    return this.http.get(`${this.apiUrl}/reserva/${reservaUuid}`);
  }
  getByTipoRecurrencia(tipoRecurrencia) {
    return this.http.get(`${this.apiUrl}/tipo/${tipoRecurrencia}`);
  }
  getActivas() {
    return this.http.get(`${this.apiUrl}/activas/vigentes`);
  }
  getActivasByCampo(uuidCampo) {
    return this.http.get(`${this.apiUrl}/activas/campo/${uuidCampo}`);
  }
  getActivasEnFecha(fecha) {
    return this.http.get(`${this.apiUrl}/activas/fecha/${fecha.toISOString().split('T')[0]}`);
  }
  activar(uuid) {
    return this.http.put(`${this.apiUrl}/${uuid}/activar`, null);
  }
  desactivar(uuid) {
    return this.http.put(`${this.apiUrl}/${uuid}/desactivar`, null);
  }
  create(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function ReservaRecurrenteService_Factory(t) {
      return new (t || ReservaRecurrenteService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: ReservaRecurrenteService,
      factory: ReservaRecurrenteService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservaService: () => (/* binding */ ReservaService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);




class ReservaService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/reservas';
  }
  getAll(page = 0, size = 20) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('page', page.toString()).set('size', size.toString());
    return this.http.get(`${this.apiUrl}`, {
      params
    });
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  getByNumeroReserva(numeroReserva) {
    return this.http.get(`${this.apiUrl}/numero/${numeroReserva}`);
  }
  getByFechaReserva(fechaIni, fechaFin, page = 0, size = 20) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('fechaIni', fechaIni.toISOString()).set('fechaFin', fechaFin.toISOString()).set('page', page.toString()).set('size', size.toString());
    return this.http.get(`${this.apiUrl}/buscar/fechas`, {
      params
    });
  }
  getByCampoDeportivo(uuidCampo) {
    return this.http.get(`${this.apiUrl}/campo/${uuidCampo}`);
  }
  getByContribuyente(uuidContribuyente) {
    return this.http.get(`${this.apiUrl}/contribuyente/${uuidContribuyente}`);
  }
  getByEstado(estadoReserva) {
    return this.http.get(`${this.apiUrl}/estado/${estadoReserva}`);
  }
  getByTipo(tipoReserva) {
    return this.http.get(`${this.apiUrl}/tipo/${tipoReserva}`);
  }
  getActivasByCampoYFecha(uuidCampo, fechaIni, fechaFin) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('fechaIni', fechaIni.toISOString()).set('fechaFin', fechaFin.toISOString());
    return this.http.get(`${this.apiUrl}/activas/campo/${uuidCampo}`, {
      params
    });
  }
  aprobarReserva(uuid, aprobadoPor) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('aprobadoPor', aprobadoPor);
    return this.http.put(`${this.apiUrl}/${uuid}/aprobar`, null, {
      params
    });
  }
  rechazarReserva(uuid, motivoRechazo, aprobadoPor) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('motivoRechazo', motivoRechazo).set('aprobadoPor', aprobadoPor);
    return this.http.put(`${this.apiUrl}/${uuid}/rechazar`, null, {
      params
    });
  }
  cancelarReserva(uuid, motivo) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('motivo', motivo);
    return this.http.put(`${this.apiUrl}/${uuid}/cancelar`, null, {
      params
    });
  }
  verificarConflictos(uuidCampo, fechaIni, fechaFin, excludeReservaUuid) {
    let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpParams().set('uuidCampo', uuidCampo).set('fechaIni', fechaIni.toISOString()).set('fechaFin', fechaFin.toISOString());
    if (excludeReservaUuid) {
      params = params.set('excludeReservaUuid', excludeReservaUuid);
    }
    return this.http.get(`${this.apiUrl}/verificar/conflictos`, {
      params
    });
  }
  create(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  countByEstado(estadoReserva) {
    return this.http.get(`${this.apiUrl}/contador/estado/${estadoReserva}`);
  }
  countByCampoYEstado(uuidCampo, estadoReserva) {
    return this.http.get(`${this.apiUrl}/contador/campo/${uuidCampo}/estado/${estadoReserva}`);
  }
  verificarRequisitosAprobacion(uuidCampo, reservaData) {
    return this.http.post(`${this.apiUrl}/campo/${uuidCampo}/verificar-aprobacion`, reservaData);
  }
  previewNumeroReserva(tipoReserva) {
    return this.http.get(`${this.apiUrl}/numero-reserva/preview?tipo=${tipoReserva}`);
  }
  generateNumeroReserva(tipoReserva) {
    return this.http.post(`${this.apiUrl}/numero-reserva/generar`, {
      tipoReserva
    });
  }
  validateNumeroReserva(numeroReserva) {
    return this.http.post(`${this.apiUrl}/numero-reserva/validar`, numeroReserva);
  }
  verificarDisponibilidadNumeroReserva(numeroReserva) {
    return this.http.get(`${this.apiUrl}/numero-reserva/verificar/${numeroReserva}`);
  }
  static {
    this.ɵfac = function ReservaService_Factory(t) {
      return new (t || ReservaService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: ReservaService,
      factory: ReservaService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SuperficiesService: () => (/* binding */ SuperficiesService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/**Enviroments */



class SuperficiesService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/superficie';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function SuperficiesService_Factory(t) {
      return new (t || SuperficiesService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: SuperficiesService,
      factory: SuperficiesService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TarifaService: () => (/* binding */ TarifaService)
/* harmony export */ });
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 46443);
/**Enviroments */



class TarifaService {
  constructor(http) {
    this.http = http;
    this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl + '/tarifas';
  }
  getAll() {
    return this.http.get(`${this.apiUrl}`);
  }
  getByUuid(uuid) {
    return this.http.get(`${this.apiUrl}/${uuid}`);
  }
  save(data) {
    return this.http.post(`${this.apiUrl}`, data);
  }
  update(data) {
    return this.http.put(`${this.apiUrl}`, data);
  }
  delete(uuid) {
    return this.http.delete(`${this.apiUrl}/${uuid}`);
  }
  static {
    this.ɵfac = function TarifaService_Factory(t) {
      return new (t || TarifaService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: TarifaService,
      factory: TarifaService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthenticationService: () => (/* binding */ AuthenticationService)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/UserData */ 55007);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 10819);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 56196);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ 59452);
/* harmony import */ var _constants_Configurations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants/Configurations */ 44107);
/* harmony import */ var src_app_global_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/global-component */ 35461);
/* harmony import */ var _data_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../data/menu */ 41914);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _api_users_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./api-users/users.service */ 81394);
/* harmony import */ var _api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./api/contribuyentes.service */ 68081);
/* harmony import */ var _api_encargado_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./api/encargado.service */ 93653);
/* harmony import */ var _api_users_permission_user_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./api-users/permission-user.service */ 40503);
/* harmony import */ var _api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./api/configuracionSistema.service */ 93866);
/* harmony import */ var _ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ruatRequest.service */ 92169);
/* harmony import */ var _token_storage_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./token-storage.service */ 87413);
















class AuthenticationService {
  constructor(http, router, authUserService, authContribuyente, staffService, permissionService, systemConfigsService, ruatService, storageService) {
    this.http = http;
    this.router = router;
    this.authUserService = authUserService;
    this.authContribuyente = authContribuyente;
    this.staffService = staffService;
    this.permissionService = permissionService;
    this.systemConfigsService = systemConfigsService;
    this.ruatService = ruatService;
    this.storageService = storageService;
    this.APP_NAME = src_app_global_component__WEBPACK_IMPORTED_MODULE_3__.GlobalComponent.NAME_APP;
    this.adminPermission = src_app_global_component__WEBPACK_IMPORTED_MODULE_3__.GlobalComponent.ADMIN_MENU;
    this.loginEventSubject = new rxjs__WEBPACK_IMPORTED_MODULE_12__.Subject();
    this.loginEvent$ = this.loginEventSubject.asObservable();
    this.systemConfigList = {};
    this.systemStatus = {
      backend: false,
      configurations: false,
      ruat: false,
      message: ''
    };
    this.currentUserSubject = storageService.getUser();
    this.systemConfigList = this.storageService.getConfigs() || {};
  }
  initializeSession() {}
  emitLoginEvent(event) {
    this.loginEventSubject.next(event);
  }
  login(username, password, rememberMe) {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let staffResult = null;
      try {
        staffResult = yield _this.loginStaffUser(username, password);
      } catch (e) {
        staffResult = null;
      }
      if (staffResult?.token) {
        const modulos = staffResult.modulos || [];
        if (!modulos.includes(_this.APP_NAME)) {
          return {
            success: false,
            errorType: 'NO_MODULE',
            message: 'No tiene acceso a este módulo'
          };
        }
        ;
        const permissionResult = yield _this.userHasPermission(staffResult);
        if (permissionResult.status !== 'ADMIN' && permissionResult.status !== 'STAFF') {
          switch (permissionResult.status) {
            case 'NO_ADMIN_PERMISSION':
            case 'NO_PERMISSIONS':
              return {
                success: false,
                errorType: 'NO_PERMISSIONS',
                message: 'No tiene permisos para acceder a este módulo'
              };
            case 'NO_ASSIGNATION':
              return {
                success: false,
                errorType: 'NO_ASSIGNATION',
                message: 'No tiene asignación como encargado o staff'
              };
          }
        }
        const configResult = yield _this.loadSystemConfigs(false);
        if (!configResult.configsStatus) {
          return {
            success: false,
            errorType: 'CONFIG_ERROR',
            message: configResult.errorMessage
          };
        }
        _this.storageService.saveAuthData({
          menu: _this.sortMenuItemsRecursive(permissionResult.permissions),
          configs: configResult.configs || {},
          user: staffResult,
          staff: permissionResult.assignations,
          token: staffResult.token,
          ruatToken: configResult.ruatToken || ''
        }, rememberMe);
        _this.emitLoginEvent({
          message: permissionResult.status === 'ADMIN' ? 'welcome_admin' : 'welcome_staff',
          configsLoaded: Object.keys(_this.getAllConfigs() || {}).length,
          ruatStatus: configResult.ruatStatus
        });
        return {
          success: true,
          redirect: permissionResult.status === 'ADMIN' ? '/inicio' : '/inicio/employee'
        };
      }
      let contribuyenteResult = null;
      try {
        contribuyenteResult = yield _this.loginContribuyente(username, password);
      } catch (e) {
        contribuyenteResult = null;
      }
      if (!contribuyenteResult?.uuid) {
        return {
          success: false,
          errorType: 'BAD_CREDENTIALS',
          message: 'Usuario o contraseña incorrectos'
        };
      }
      const configResult = yield _this.loadSystemConfigs(true);
      if (!configResult.configsStatus) {
        return {
          success: false,
          errorType: 'CONFIG_ERROR',
          message: configResult.errorMessage
        };
      }
      _this.storageService.saveAuthData({
        menu: _this.sortMenuItemsRecursive(_data_menu__WEBPACK_IMPORTED_MODULE_4__.MENU_BASE),
        configs: configResult.configs || {},
        user: contribuyenteResult,
        staff: null,
        token: 'CONTRIBUYENTE_SESSION',
        ruatToken: configResult.ruatToken || ''
      }, rememberMe);
      _this.emitLoginEvent({
        message: 'welcome_contribuyente',
        configsLoaded: Object.keys(_this.getAllConfigs() || {}).length,
        ruatStatus: configResult.ruatStatus
      });
      return {
        success: true,
        redirect: '/inicio/taxpayer'
      };
    })();
  }
  loginStaffUser(username, password) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const response = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this2.authUserService.loginByUsername(username, password));
        if (!response?.token) throw 'badCredentials';
        _this2.currentUserSubject = response;
        return response;
      } catch (error) {
        if (_this2.isBackendError(error)) throw {
          backendError: true
        };
        if (error.status === 401) throw 'badCredentials';
        throw 'serverError';
      }
    })();
  }
  loginContribuyente(username, password) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const response = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this3.authContribuyente.loginByUsername(username, password));
        if (response?.status !== 'OK') throw 'badCredentials';
        _this3.currentUserSubject = response.payload;
        return response.payload;
      } catch (error) {
        if (_this3.isBackendError(error)) throw {
          backendError: true
        };
        if (error.status === 401) throw 'badCredentials';
        throw 'serverError';
      }
    })();
  }
  userHasPermission(user) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const [userPermissions, userAssignations] = yield Promise.all([(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this4.permissionService.getPermissionsUser(user)), (0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this4.staffService.getByUserUuid(user.uuid)).then(res => res?.status === 'OK' ? res.payload : null).catch(() => null)]);
        if (!Array.isArray(userPermissions) || userPermissions.length === 0) {
          return {
            status: 'NO_PERMISSIONS',
            permissions: []
          };
        }
        const isAdmin = userPermissions.some(p => p.nombreMenu === _this4.adminPermission);
        if (isAdmin) {
          userPermissions.forEach(menu => {
            if (!menu.permisoPadreDto) menu.isCollapsed = true;
          });
          return {
            status: 'ADMIN',
            permissions: userPermissions
          };
        }
        if (userAssignations && userAssignations.complejoDto) {
          userPermissions.forEach(menu => {
            if (!menu.permisoPadreDto) menu.isCollapsed = true;
          });
          return {
            status: 'STAFF',
            permissions: userPermissions,
            assignations: userAssignations
          };
        }
        return {
          status: 'NO_ASSIGNATION',
          permissions: []
        };
      } catch (error) {
        throw new Error('Ocurrió un error al verificar los permisos');
      }
    })();
  }
  loadSystemConfigs(isContribuyente) {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this5.systemStatus = {
        backend: false,
        configurations: false,
        ruat: false,
        message: ''
      };
      try {
        const configResponse = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this5.systemConfigsService.getAll());
        if (!configResponse) {
          _this5.systemStatus.message = 'No response from backend';
          return {
            configsStatus: false,
            ruatStatus: false,
            errorType: 'BACKEND',
            errorMessage: _this5.systemStatus.message
          };
        }
        if (configResponse.status !== 'OK' || !Array.isArray(configResponse.payload)) {
          _this5.systemStatus.message = 'Invalid configuration response';
          return {
            configsStatus: false,
            ruatStatus: false,
            errorType: 'INVALID_RESPONSE',
            errorMessage: _this5.systemStatus.message
          };
        }
        const configsMap = {};
        for (const config of configResponse.payload) {
          if (!config.activo) continue;
          if (!isContribuyente && config.aplicaA === _constants_Configurations__WEBPACK_IMPORTED_MODULE_2__.AplicaAConfiguracion.USUARIO) continue;
          configsMap[config.clave] = config;
        }
        _this5.systemConfigList = configsMap;
        _this5.systemStatus.backend = true;
        _this5.systemStatus.configurations = true;
        const ruatResult = yield _this5.authRuat(configsMap);
        _this5.systemStatus.ruat = ruatResult.success;
        if (!ruatResult.success) {
          _this5.systemStatus.message = 'RUAT authentication failed';
        }
        return {
          configsStatus: true,
          configs: configsMap,
          ruatStatus: ruatResult.success,
          ruatToken: ruatResult.token,
          errorType: ruatResult.success ? undefined : 'RUAT',
          errorMessage: ruatResult.error
        };
      } catch (error) {
        if (error?.status === 0) {
          _this5.systemStatus.message = 'Backend unreachable or CORS blocked';
          return {
            configsStatus: false,
            ruatStatus: false,
            errorType: 'CORS',
            errorMessage: _this5.systemStatus.message
          };
        }
        _this5.systemStatus.message = error?.message || 'Unknown error';
        return {
          configsStatus: false,
          ruatStatus: false,
          errorType: 'UNKNOWN',
          errorMessage: _this5.systemStatus.message
        };
      }
    })();
  }
  authRuat(configsMap) {
    var _this6 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this6.storageService.getTokenRuat()) {
        return {
          success: true,
          token: _this6.storageService.getTokenRuat() ?? undefined
        };
      }
      const usuario = configsMap[_constants_Configurations__WEBPACK_IMPORTED_MODULE_2__.ClaveConfiguracion.USUARIO_RUAT]?.valorTexto || '';
      const clave = configsMap[_constants_Configurations__WEBPACK_IMPORTED_MODULE_2__.ClaveConfiguracion.CLAVE_RUAT]?.valorTexto || '';
      if (!usuario || !clave) {
        return {
          success: false,
          error: 'Missing RUAT credentials'
        };
      }
      try {
        const response = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_13__.firstValueFrom)(_this6.ruatService.authenticate(usuario, clave));
        if (response?.token) {
          _this6.ruatService.setToken(response.token);
          return {
            success: true,
            token: response.token
          };
        }
        return {
          success: false,
          error: 'Invalid RUAT token'
        };
      } catch (error) {
        return {
          success: false,
          error
        };
      }
    })();
  }
  isBackendError(error) {
    return error.status === 0 || error.status === 504 || error.status === 502 || error.name === 'HttpErrorResponse' || error.error && error.error instanceof ProgressEvent || error.message?.includes('CORS') || error.message?.includes('Network') || error.message?.includes('Failed to fetch') || error.message?.includes('Http failure');
  }
  /*
   * Logout the user
   */
  logout() {
    this.storageService.signOut();
    this.currentUserSubject = null;
    this.router.navigate(['/auth/login']);
    return (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.of)(undefined).pipe();
  }
  /**
   * GETTERS
   */
  hasPermission(modulo) {
    const menu = this.storageService.getMenu();
    return menu.filter(permission => permission.nombreMenu === modulo).map(permission => permission.accion);
  }
  hasRoutePermission(route) {
    const menu = this.storageService.getMenu();
    return menu.some(permission => permission.ruta === route);
  }
  tokenUser() {
    return this.storageService.getToken();
  }
  currentUser() {
    return this.currentUserSubject;
  }
  staff() {
    return this.storageService.getStaff();
  }
  isLoggedIn() {
    const token = this.storageService.getToken();
    return !!token;
  }
  get isAuthenticated() {
    return !!this.storageService.getToken();
  }
  isRuatAuthenticated() {
    return !!this.storageService.getTokenRuat();
  }
  getSystemConfig(clave) {
    return this.systemConfigList[clave];
  }
  getAllConfigs() {
    return this.storageService.getConfigs();
  }
  isAdmin() {
    const menu = this.storageService.getMenu();
    return menu.some(permission => permission.nombreMenu === this.adminPermission);
  }
  getUserRole() {
    const token = this.storageService.getToken()?.trim();
    const menu = this.storageService.getMenu();
    if (token === 'CONTRIBUYENTE_SESSION') {
      return 'Contribuyente';
    } else {
      if (this.isAdmin()) {
        return 'Admin';
      }
      return 'Encargado';
    }
  }
  getUserFullName() {
    if (!this.currentUserSubject) return '';
    if (this.storageService.getToken() === 'CONTRIBUYENTE_SESSION') {
      return this.currentUserSubject.nombreCompleto || this.currentUserSubject.nombre + ' ' + this.currentUserSubject.primerApellido + (this.currentUserSubject.segundoApellido ? ' ' + this.currentUserSubject.segundoApellido : '') || this.currentUserSubject.userName || 'Contribuyente';
    } else {
      return this.currentUserSubject.designacion?.personaDto?.fullName || this.currentUserSubject.designacion?.personaDto?.nombre + ' ' + this.currentUserSubject.designacion?.personaDto?.apPaterno || this.currentUserSubject.username || 'Usuario';
    }
  }
  getAvatar() {
    const token = this.storageService.getToken();
    const user = this.storageService.getUser();
    const menu = this.storageService.getMenu();
    let avatar = "default-profile1.png";
    let role;
    if (token === 'CONTRIBUYENTE_SESSION') {
      role = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserRol.find(item => item.tipo == 2); //CLIENT
    } else if (menu.some(permission => permission.nombreMenu === this.adminPermission)) {
      role = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserRol.find(item => item.tipo === 0); //ADMINISTRADOR
    } else {
      role = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserRol.find(item => item.tipo == 1); //STAFF
    }
    if (role !== undefined) {
      avatar = role.avatarF;
      if (user?.designacion && user.designacion.personaDto.sexo === 'M') {
        avatar = role.avatarM;
      }
    }
    return avatar;
  }
  sortMenuItemsRecursive(menuItems) {
    return menuItems.map(item => {
      if (item.permisoHijoListDto && item.permisoHijoListDto.length > 0) {
        return {
          ...item,
          permisoHijoListDto: this.sortMenuItems(item.permisoHijoListDto)
        };
      }
      return item;
    }).sort((a, b) => {
      const orderCompare = (a.orden || 0) - (b.orden || 0);
      if (orderCompare !== 0) return orderCompare;
      const aPriority = this.getActionPriority(a.accion);
      const bPriority = this.getActionPriority(b.accion);
      return aPriority - bPriority;
    });
  }
  sortMenuItems(menuItems) {
    return menuItems.sort((a, b) => {
      const orderCompare = (a.orden || 0) - (b.orden || 0);
      if (orderCompare !== 0) return orderCompare;
      const aPriority = this.getActionPriority(a.accion);
      const bPriority = this.getActionPriority(b.accion);
      return aPriority - bPriority;
    });
  }
  getActionPriority(accion) {
    const actionOrder = ['LISTAR', 'VER', 'CREAR', 'EDITAR', 'ACTUALIZAR', 'VALIDAR', 'ANULAR', 'GENERAR TICKET', 'CAMBIAR-HORARIO', 'EXPORTAR', 'BLOQUEAR', 'ELIMINAR'];
    const index = actionOrder.indexOf(accion);
    return index !== -1 ? index : actionOrder.length;
  }
  static {
    this.ɵfac = function AuthenticationService_Factory(t) {
      return new (t || AuthenticationService)(_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_16__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_17__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_api_users_users_service__WEBPACK_IMPORTED_MODULE_5__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__.ContribuyentesService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_api_encargado_service__WEBPACK_IMPORTED_MODULE_7__.EncargadoService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_api_users_permission_user_service__WEBPACK_IMPORTED_MODULE_8__.PermissionUserService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_9__.ConfiguracionSistemaService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵinject"](_token_storage_service__WEBPACK_IMPORTED_MODULE_11__.TokenStorageService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineInjectable"]({
      token: AuthenticationService,
      factory: AuthenticationService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__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 */ 10819);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 51567);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 70271);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);



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 {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
      token: EventService,
      factory: EventService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__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_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-cookie-service */ 39213);



class LanguageService {
  constructor(translate, cookieService) {
    this.translate = translate;
    this.cookieService = cookieService;
    this.languages = ['es', 'en', 'de', 'it', 'ru'];
    let browserLang;
    /***
     * cookie Language Get
    */
    this.translate.addLangs(this.languages);
    if (this.cookieService.check('lang')) {
      browserLang = this.cookieService.get('lang');
    } else {
      browserLang = translate.getBrowserLang();
    }
    translate.use(browserLang.match(/es|en|de|it|ru/) ? browserLang : 'es');
  }
  /***
   * Cookie Language set
   */
  setLanguage(lang) {
    this.translate.use(lang);
    this.cookieService.set('lang', lang);
  }
  static {
    this.ɵfac = function LanguageService_Factory(t) {
      return new (t || LanguageService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_1__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_2__.CookieService));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
      token: LanguageService,
      factory: LanguageService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PaginationService: () => (/* binding */ PaginationService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

class PaginationService {
  constructor() {
    // Pagination
    this.pageSize = 5;
    this.page = 1;
    this.startIndex = 1;
    this.endIndex = 9;
    //sort direction
    this.sortColumn = '';
    this.sortDirection = 'asc';
  }
  changePage(alldata, pageSize) {
    const startItem = (this.page - 1) * pageSize;
    const endItem = startItem + pageSize;
    this.startIndex = startItem + 1;
    this.endIndex = Math.min(endItem, alldata.length);
    return alldata.slice(startItem, endItem);
  }
  onSort(column, items, isAscending = true) {
    return [...items].sort((a, b) => {
      const valueA = this.getNestedProperty(a, column);
      const valueB = this.getNestedProperty(b, column);
      if (valueA == null && valueB == null) return 0;
      if (valueA == null) return isAscending ? 1 : -1;
      if (valueB == null) return isAscending ? -1 : 1;
      if (this.isDate(valueA) || this.isDate(valueB)) {
        const dateA = new Date(valueA).getTime();
        const dateB = new Date(valueB).getTime();
        return isAscending ? dateA - dateB : dateB - dateA;
      }
      if (typeof valueA === 'number' && typeof valueB === 'number') {
        return isAscending ? valueA - valueB : valueB - valueA;
      }
      if (typeof valueA === 'boolean' && typeof valueB === 'boolean') {
        return isAscending ? valueA === valueB ? 0 : valueA ? -1 : 1 : valueA === valueB ? 0 : valueA ? 1 : -1;
      }
      return isAscending ? String(valueA).localeCompare(String(valueB)) : String(valueB).localeCompare(String(valueA));
    });
  }
  isDate(value) {
    return value instanceof Date || typeof value === 'string' && !isNaN(Date.parse(value));
  }
  getNestedProperty(obj, path) {
    return path.split('.').reduce((o, p) => {
      if (o == null) return null;
      const arrayMatch = p.match(/(\w+)\[(\d+)\]/);
      if (arrayMatch) {
        const arrayName = arrayMatch[1];
        const index = parseInt(arrayMatch[2]);
        return o[arrayName]?.[index];
      }
      return o[p];
    }, obj);
  }
  static {
    this.ɵfac = function PaginationService_Factory(t) {
      return new (t || PaginationService)();
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
      token: PaginationService,
      factory: PaginationService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RuatRequestsService: () => (/* binding */ RuatRequestsService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);




const apiUrl = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.backendUrl}/ruat`;
class RuatRequestsService {
  constructor(http) {
    this.http = http;
  }
  getToken() {
    return sessionStorage.getItem('ruat-token') || window.sessionStorage.getItem('ruat-token');
  }
  isTokenAvailable() {
    return !!this.getToken();
  }
  authenticate(usuario, clave) {
    const requestData = {
      'usuario': usuario,
      'clave': clave
    };
    return this.http.post(`${apiUrl}/login`, requestData);
  }
  getContribuyentePorCi(codigoAlcaldia, numeroDocumento, tipoDocumento, expedido) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const requestData = {
      'token': token,
      'contribuyenteRequest': {
        'codigoAlcaldia': codigoAlcaldia,
        'numeroDocumento': numeroDocumento,
        'tipoDocumento': tipoDocumento,
        'expedido': expedido
      }
    };
    return this.http.post(`${apiUrl}/buscar`, requestData);
  }
  registerContribuyente(codigoAlcaldia, codigoUsuario, data) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const requestData = {
      'token': token,
      'registro': {
        codigoAlcaldia: codigoAlcaldia,
        codigoUsuario: codigoUsuario,
        numeroDocumento: data.numeroDocumento,
        tipoDocumento: data.tipoDocumento,
        expedido: data.expedido,
        nombre: data.nombre,
        primerApellido: data.primerApellido,
        segundoApellido: data.segundoApellido,
        estadoCivil: data.estadoCivil,
        fechaNacimiento: data.fechaNacimiento,
        genero: data.genero,
        apellidoEsposo: "",
        motivo: "REGISTRO TASAS Y OTROS INGRESOS",
        observacion: "REGISTRO PARA DEPORTESAPP - GAMQ"
      }
    };
    return this.http.post(`${apiUrl}/registro`, requestData);
  }
  getDeudasContribuyente(codigoAlcaldia, tipoConsulta, nroDocumento, tipoDocumento) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
      'Authorization': `Bearer ${token}`
    });
    const requestData = {
      'codigoAlcaldia': codigoAlcaldia,
      'tipoConsulta': tipoConsulta,
      'numeroDocumento': nroDocumento,
      'tipoDocumento': tipoDocumento
    };
    return this.http.post(`${apiUrl}/RuatServiciosWebTasasOI/tasasOI/consultaDeudaTasaContrib`, requestData, {
      headers
    });
  }
  createTasa(codigoAlcaldia, codigoUsuario, servicioMunicipal, data, codigoContribuyente) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const requestData = {
      'token': token,
      'tasa': {
        codigoAlcaldia: codigoAlcaldia,
        codigoUsuario: codigoUsuario,
        codigoContribuyente: codigoContribuyente,
        servicioMunicipal: servicioMunicipal,
        datosConcepto: data.datosConcepto,
        observacion: data.observacion
      }
    };
    return this.http.post(`${apiUrl}/creartasa`, requestData);
  }
  cancelTasa(codigoAlcaldia, codigoUsuario, data) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const requestData = {
      'token': token,
      'anular': {
        'codigoAlcaldia': codigoAlcaldia,
        'codigoUsuario': codigoUsuario,
        'numeroTasa': data.numeroTasa,
        'tipoTasa': 'TO',
        'motivoTasa': data.motivo,
        'observacion': data.observacion
      }
    };
    return this.http.post(`${apiUrl}/anulartasa`, requestData);
  }
  consultaPagoTasa(codigoAlcaldia, nroTasa) {
    const token = this.getToken();
    if (!token) {
      throw new Error('RUAT token not available');
    }
    const requestData = {
      'token': token,
      'pago': {
        'codigoAlcaldia': codigoAlcaldia,
        'numeroTasa': nroTasa,
        'tipoTasa': 'TO'
      }
    };
    return this.http.post(`${apiUrl}/pago`, requestData);
  }
  setToken(token) {
    sessionStorage.setItem('ruat-token', token);
    window.sessionStorage.setItem('ruat-token', token);
  }
  removeToken() {
    sessionStorage.removeItem('ruat-token');
    window.sessionStorage.removeItem('ruat-token');
  }
  static {
    this.ɵfac = function RuatRequestsService_Factory(t) {
      return new (t || RuatRequestsService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient));
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
      token: RuatRequestsService,
      factory: RuatRequestsService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

/***/ 87413:
/*!********************************************************!*\
  !*** ./src/app/core/services/token-storage.service.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TokenStorageService: () => (/* binding */ TokenStorageService)
/* harmony export */ });
/* harmony import */ var src_app_global_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/global-component */ 35461);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);


const STORAGE_KEYS = src_app_global_component__WEBPACK_IMPORTED_MODULE_0__.GlobalComponent.STORAGE_KEYS;
class TokenStorageService {
  constructor() {}
  saveAuthData(data, rememberMe = false) {
    sessionStorage.setItem(STORAGE_KEYS.TOKEN, data.token);
    sessionStorage.setItem(STORAGE_KEYS.RUAT_TOKEN, data.ruatToken ?? '');
    if (rememberMe) {
      localStorage.setItem(STORAGE_KEYS.CONFIGS, JSON.stringify(data.configs));
      localStorage.setItem(STORAGE_KEYS.MENU, typeof data.menu === 'string' ? data.menu : JSON.stringify(data.menu));
      localStorage.setItem(STORAGE_KEYS.USER, typeof data.user === 'string' ? data.user : JSON.stringify(data.user));
      if (data.staff) {
        localStorage.setItem(STORAGE_KEYS.STAFF, typeof data.staff === 'string' ? data.staff : JSON.stringify(data.staff));
      }
      localStorage.setItem(STORAGE_KEYS.REMEMBER_ME, 'true');
    } else {
      localStorage.removeItem(STORAGE_KEYS.CONFIGS);
      localStorage.removeItem(STORAGE_KEYS.MENU);
      localStorage.removeItem(STORAGE_KEYS.USER);
      localStorage.removeItem(STORAGE_KEYS.STAFF);
      sessionStorage.setItem(STORAGE_KEYS.CONFIGS, JSON.stringify(data.configs));
      sessionStorage.setItem(STORAGE_KEYS.MENU, typeof data.menu === 'string' ? data.menu : JSON.stringify(data.menu));
      sessionStorage.setItem(STORAGE_KEYS.USER, typeof data.user === 'string' ? data.user : JSON.stringify(data.user));
      if (data.staff) {
        sessionStorage.setItem(STORAGE_KEYS.STAFF, typeof data.staff === 'string' ? data.staff : JSON.stringify(data.staff));
      }
    }
  }
  signOut() {
    sessionStorage.clear();
    if (!this.isRememberMe()) {
      localStorage.removeItem(STORAGE_KEYS.USER);
      localStorage.removeItem(STORAGE_KEYS.STAFF);
      localStorage.removeItem(STORAGE_KEYS.MENU);
      localStorage.removeItem(STORAGE_KEYS.CONFIGS);
    }
    localStorage.removeItem(STORAGE_KEYS.REMEMBER_ME);
  }
  get primaryStorage() {
    return this.isRememberMe() ? localStorage : sessionStorage;
  }
  /**
   * setters
   */
  saveUserData(user) {
    this.primaryStorage.setItem(STORAGE_KEYS.USER, JSON.stringify(user));
  }
  saveToken(token) {
    sessionStorage.setItem(STORAGE_KEYS.TOKEN, token);
  }
  saveRuatToken(token) {
    sessionStorage.setItem(STORAGE_KEYS.RUAT_TOKEN, token);
  }
  /**
   * Getters
   */
  getToken() {
    return sessionStorage.getItem(STORAGE_KEYS.TOKEN);
  }
  getTokenRuat() {
    return sessionStorage.getItem(STORAGE_KEYS.RUAT_TOKEN);
  }
  isRememberMe() {
    return localStorage.getItem(STORAGE_KEYS.REMEMBER_ME) === 'true';
  }
  getMenu() {
    return this.read(STORAGE_KEYS.MENU) ?? [];
  }
  getConfigs() {
    return this.read(STORAGE_KEYS.CONFIGS) ?? {};
  }
  getUser() {
    return this.read(STORAGE_KEYS.USER);
  }
  getStaff() {
    return this.read(STORAGE_KEYS.STAFF);
  }
  isAuthenticated() {
    return !!this.getToken();
  }
  hasStaffAssignments() {
    return !!this.getStaff();
  }
  // private read(key: string): any {
  //   const fromSession = sessionStorage.getItem(key);
  //   if (fromSession) return this.parse(fromSession);
  //   const fromLocal = localStorage.getItem(key);
  //   if (fromLocal) return this.parse(fromLocal);
  //   return null;
  // }
  // private parse(value: string): any {
  //   try { return JSON.parse(value); } catch { return value; }
  // }
  read(key) {
    return this.getFrom(sessionStorage, key) ?? this.getFrom(localStorage, key);
  }
  getFrom(storage, key) {
    const item = storage.getItem(key);
    if (!item) return null;
    try {
      return JSON.parse(item);
    } catch {
      return item;
    }
  }
  static {
    this.ɵfac = function TokenStorageService_Factory(t) {
      return new (t || TokenStorageService)();
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: TokenStorageService,
      factory: TokenStorageService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   GlobalComponent: () => (/* binding */ GlobalComponent)
/* harmony export */ });
const GlobalComponent = {
  STORAGE_KEYS: {
    CONFIGS: 'systemConfigs',
    MENU: 'menu',
    USER: 'currentUser',
    STAFF: 'assignaments',
    TOKEN: 'auth-token',
    RUAT_TOKEN: 'ruat-token',
    REMEMBER_ME: 'remember_me'
  },
  /* APP DETAILS */
  CODE_APP: "SIS-013",
  NAME_APP: "DEPORTESAPP",
  ADMIN_MENU: 'Administracion',
  super_admin: {
    username: 'faby25',
    whatsApp: '+59172248669',
    email: 'moralessfaby.dev@gmail.com'
  },
  contact_info: {
    phone: '(591) 4 4362771-72-73',
    email: 'gamqtdi@gmail.com',
    address: 'Mercado Martín Cárdenas, Planta Baja, Quillacollo'
  },
  admin_deportes: {
    role: 'Aministrador',
    avatar: 'default-profile1.png',
    name: 'Pedro Luis Sevilla Calderón',
    phone: '60367407',
    email: 'gamqtdi@gmail.com',
    address: 'Mercado Martín Cárdenas, Planta Baja, Quillacollo'
  },
  /* RUAT CREDENTIALS PRODUCTION */
  // apiRuatUrl: "https://aplicaciones.ruat.gob.bo",
  RUAT_usuario: "SWTRAMITESURKUPINIAQUI",
  RUAT_clave: "Gam#1209",
  RUAT_codigoUsuario: "ERODRIGUEZ2.QUI",
  /* RUAT CREDENTIALS TEST */
  // apiRuatUrl: "https://consolidacionjboss.ruat.gob.bo", 
  // RUAT_usuario: "SWTRAMITESURKUPINIAQUI",
  // RUAT_clave: "S1234567",
  // RUAT_codigoUsuario: "PRUEBAS_1.QUI", 
  // RUAT_passwordUsuario: "Ruat_123$",
  RUAT_codigoAlcaldia: "QUI"
  // RUAT_motivo: "REGISTRO TASAS Y OTROS INGRESOS",
  // RUAT_servicioMunicipal: "2174", 
  // RUAT_tipoTasa: "TO", 
};

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FooterComponent: () => (/* binding */ FooterComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

class FooterComponent {
  constructor() {
    this.year = new Date().getFullYear();
  }
  ngOnInit() {}
  static {
    this.ɵfac = function FooterComponent_Factory(t) {
      return new (t || FooterComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: FooterComponent,
      selectors: [["app-footer"]],
      decls: 7,
      vars: 1,
      consts: [[1, "footer", "py-0", "mb-0"], [1, "row", "mb-0", "py-0"], [1, "col-sm-6"], [1, "text-sm-end", "d-none", "d-sm-block"]],
      template: function FooterComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "footer", 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", 2)(5, "div", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Gobierno Autonomo Municipal de Quillacollo. Todos los derechos reservados. ");
          _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.year, " \u00A9 Jefatura de Tecnolog\u00EDas de Informaci\u00F3n. ");
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HorizontalTopbarComponent: () => (/* binding */ HorizontalTopbarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/token-storage.service */ 87413);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 60316);






const _c0 = ["sideMenu"];
const _c1 = (a0, a1) => ({
  "has-arrow": a0,
  "has-dropdown": a1
});
const _c2 = a0 => ({
  "mega-dropdown-menu": a0
});
const _c3 = a0 => ({
  "row": a0
});
const _c4 = a0 => ({
  "col-lg-4": a0
});
function HorizontalTopbarComponent_For_19_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 16)(1, "span", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 1, item_r1.nombreMenu));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge badge-pill ", item_r1.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, item_r1.badge.text));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 20);
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("bx ", subitem_r5.icono, " icon nav-icon");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_For_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 18)(1, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_For_6_Template_a_click_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](9);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subChilditem_r8 = ctx.$implicit;
    const subSubitem_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subChilditem_r8.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem_r9.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, subChilditem_r8.nombreMenu), " ");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](8);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 27)(4, "ul", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](5, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_For_6_Template, 4, 5, "li", 18, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subSubitem_r9.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem_r9.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 3, subSubitem_r9.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r2.getSubMenu(subSubitem_r9.permisoHijoListDto));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_2_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](8);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subSubitem_r9.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem_r9.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 3, subSubitem_r9.nombreMenu), " ");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_1_Template, 7, 5)(2, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Conditional_2_Template, 3, 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, subSubitem_r9.permisoHijoListDto ? 1 : 2);
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.toggleSubItem($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_Conditional_1_Template, 1, 3, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27)(5, "ul", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](6, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_For_7_Template, 3, 1, "li", 18, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subitem_r5.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, subitem_r5.icono ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, subitem_r5.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r2.getSubMenu(subitem_r5.permisoHijoListDto));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_4_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 20);
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("bx ", subitem_r5.icon, " icon nav-icon");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_4_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_4_Conditional_1_Template, 1, 3, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subitem_r5.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subitem_r5.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, subitem_r5.icon ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 4, subitem_r5.nombreMenu), " ");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 23)(1, "ul", 24)(2, "li", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_3_Template, 8, 5)(4, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Conditional_4_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const subitem_r5 = ctx.$implicit;
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c4, item_r1.nombreMenu == "MENUITEMS.BASEUI.TEXT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, ctx_r2.hasItems(subitem_r5) ? 3 : 4);
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _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 HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.toggleItem($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_Conditional_5_Template, 3, 6, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 22)(7, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](8, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_For_9_Template, 5, 4, "div", 23, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](10, _c1, !item_r1.badge, item_r1.badge));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("", item_r1.icono, " icon nav-icon");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 8, item_r1.nombreMenu), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](5, item_r1.badge ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c2, item_r1.nombreMenu === "MENUITEMS.BASEUI.TEXT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c3, item_r1.nombreMenu == "MENUITEMS.BASEUI.TEXT"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r2.getSubMenu(item_r1.permisoHijoListDto));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 20);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("bx ", item_r1.icono, " icon nav-icon");
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge ", item_r1.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, item_r1.badge.text));
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Conditional_1_Template, 1, 3, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Conditional_5_Template, 3, 6, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", item_r1.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, item_r1.icono ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, item_r1.nombreMenu), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](5, item_r1.badge ? 5 : -1);
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_0_Template, 10, 17)(1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Conditional_1_Template, 6, 6);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, ctx_r2.hasItems(item_r1) ? 0 : 1);
  }
}
function HorizontalTopbarComponent_For_19_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, HorizontalTopbarComponent_For_19_Conditional_1_Conditional_1_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, !item_r1.permisoPadreDto ? 1 : -1);
  }
}
function HorizontalTopbarComponent_For_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, HorizontalTopbarComponent_For_19_Conditional_0_Template, 4, 3, "li", 16)(1, HorizontalTopbarComponent_For_19_Conditional_1_Template, 2, 1);
  }
  if (rf & 2) {
    const item_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, item_r1.isTitle ? 0 : 1);
  }
}
class HorizontalTopbarComponent {
  constructor(router, translate, storage) {
    this.router = router;
    this.translate = translate;
    this.storage = storage;
    this.menuItems = [];
    this.mobileMenuButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    translate.setDefaultLang('en');
  }
  ngOnInit() {
    this.menuItems = this.storage.getMenu();
  }
  /***
   * Activate droup down set
   */
  ngAfterViewInit() {
    this.initActiveMenu();
  }
  removeActivation(items) {
    items.forEach(item => {
      if (item.classList.contains("menu-link")) {
        if (!item.classList.contains("active")) {
          item.setAttribute("aria-expanded", false);
        }
        item.nextElementSibling ? item.nextElementSibling.classList.remove("show") : null;
      }
      if (item.classList.contains("nav-link")) {
        if (item.nextElementSibling) {
          item.nextElementSibling.classList.remove("show");
        }
        item.setAttribute("aria-expanded", false);
      }
      item.classList.remove("active");
    });
  }
  // remove active items of two-column-menu
  activateParentDropdown(item) {
    item.classList.add("active");
    let parentCollapseDiv = item.closest(".collapse.menu-dropdown");
    if (parentCollapseDiv) {
      // to set aria expand true remaining
      parentCollapseDiv.classList.add("show");
      parentCollapseDiv.parentElement.children[0].classList.add("active");
      parentCollapseDiv.parentElement.children[0].setAttribute("aria-expanded", "true");
      if (parentCollapseDiv.parentElement.closest(".collapse.menu-dropdown")) {
        parentCollapseDiv.parentElement.closest(".collapse").classList.add("show");
        if (parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling) parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling.classList.add("active");
        parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling.setAttribute("aria-expanded", "true");
      }
      return false;
    }
    return false;
  }
  updateActive(event) {
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link"));
      this.removeActivation(items);
    }
    this.activateParentDropdown(event.target);
  }
  initActiveMenu() {
    const pathName = window.location.pathname;
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link"));
      let activeItems = items.filter(x => x.classList.contains("active"));
      this.removeActivation(activeItems);
      let matchingMenuItem = items.find(x => {
        return x.pathname === pathName;
      });
      if (matchingMenuItem) {
        this.activateParentDropdown(matchingMenuItem);
      }
    }
  }
  toggleSubItem(event) {
    if (event.target && event.target.nextElementSibling) event.target.nextElementSibling.classList.toggle("show");
  }
  toggleItem(event) {
    let isCurrentMenuId = event.target.closest('a.nav-link');
    let isMenu = isCurrentMenuId.nextElementSibling;
    let dropDowns = Array.from(document.querySelectorAll('#navbar-nav .show'));
    dropDowns.forEach(node => {
      node.classList.remove('show');
    });
    isMenu ? isMenu.classList.add('show') : null;
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const iconItems = Array.from(ul.getElementsByTagName("a"));
      let activeIconItems = iconItems.filter(x => x.classList.contains("active"));
      activeIconItems.forEach(item => {
        item.setAttribute('aria-expanded', "false");
        item.classList.remove("active");
      });
    }
    if (isCurrentMenuId) {
      this.activateParentDropdown(isCurrentMenuId);
    }
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.permisoHijoListDto !== undefined ? item.permisoHijoListDto.length > 0 : false;
  }
  /**
   * remove active and mm-active class
   */
  _removeAllClass(className) {
    const els = document.getElementsByClassName(className);
    while (els[0]) {
      els[0].classList.remove(className);
    }
  }
  getSubMenu(menuItems) {
    const commonItems = menuItems.filter(item1 => this.menuItems.some(item2 => item1.nombreMenu === item2.nombreMenu));
    const uniqueMenuItemsMap = commonItems.reduce((map, item) => {
      if (!map.has(item.nombreMenu)) {
        map.set(item.nombreMenu, item);
      }
      return map;
    }, new Map());
    return Array.from(uniqueMenuItemsMap.values());
  }
  static {
    this.ɵfac = function HorizontalTopbarComponent_Factory(t) {
      return new (t || HorizontalTopbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__.TokenStorageService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: HorizontalTopbarComponent,
      selectors: [["app-horizontal-topbar"]],
      viewQuery: function HorizontalTopbarComponent_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.sideMenu = _t.first);
        }
      },
      outputs: {
        mobileMenuButtonClicked: "mobileMenuButtonClicked"
      },
      decls: 20,
      vars: 0,
      consts: [[1, "app-menu", "navbar-menu"], [1, "navbar-brand-box"], ["href", "/", 1, "logo", "logo-dark"], [1, "logo-sm"], ["src", "assets/icons/logos/logo-sm.png ", "alt", "", "height", "22"], [1, "logo-lg"], ["src", "assets/icons/logos/logo-dark.png", "alt", "", "height", "65"], ["href", "/", 1, "logo", "logo-light"], ["src", "assets/icons/logos/logo-sm.png", "alt", "", "height", "22"], ["src", "assets/icons/logos/logo-light.png", "alt", "", "height", "65"], ["type", "button", "id", "vertical-hover", 1, "btn", "btn-sm", "p-0", "fs-20", "header-item", "float-end", "btn-vertical-sm-hover"], [1, "ri-record-circle-line"], ["id", "scrollbar"], [1, "container-fluid"], ["id", "two-column-menu"], ["id", "navbar-nav", 1, "navbar-nav"], [1, "menu-title"], ["data-key", "t-menu"], [1, "nav-item"], ["href", "javascript:void(0);", "data-bs-toggle", "collapse", "aria-expanded", "false", 1, "is-parent", "nav-link", "menu-link", 3, "click", "ngClass"], [1, ""], [3, "class"], ["id", "sidebarDashboards", 1, "collapse", "menu-dropdown", 3, "ngClass"], [3, "ngClass"], ["aria-expanded", "false", 1, "nav", "nav-sm", "flex-column"], ["href", "javascript:void(0);", "data-bs-toggle", "collapse", "aria-expanded", "false", 1, "nav-link", 3, "click"], [1, "", 3, "class"], [1, "collapse", "menu-dropdown"], ["data-bs-toggle", "collapse", "aria-expanded", "false", 1, "nav-link", 3, "click", "routerLink"], [1, "nav-link", 3, "click", "routerLink"], [1, "side-nav-link-ref", "nav-link", "menu-link", "123", 3, "routerLink"]],
      template: function HorizontalTopbarComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "a", 2)(3, "span", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "img", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "a", 7)(8, "span", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "img", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 12)(15, "div", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "ul", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](18, HorizontalTopbarComponent_For_19_Template, 2, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx.getSubMenu(ctx.menuItems));
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterLink, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__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_4__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../topbar/topbar.component */ 56414);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../footer/footer.component */ 17856);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rightsidebar/rightsidebar.component */ 56730);
/* harmony import */ var _horizontal_topbar_horizontal_topbar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../horizontal-topbar/horizontal-topbar.component */ 93028);






class HorizontalComponent {
  constructor() {
    this.isCondensed = false;
  }
  ngOnInit() {}
  onSettingsButtonClicked() {
    document.body.classList.toggle('right-bar-enabled');
    const rightBar = document.getElementById('theme-settings-offcanvas');
    if (rightBar != null) {
      rightBar.classList.toggle('show');
      rightBar.setAttribute('style', "visibility: visible;");
    }
  }
  onToggleMobileMenu() {
    if (document.documentElement.clientWidth <= 1024) {
      document.body.classList.toggle('menu');
    }
  }
  static {
    this.ɵfac = function HorizontalComponent_Factory(t) {
      return new (t || HorizontalComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
      type: HorizontalComponent,
      selectors: [["app-horizontal"]],
      decls: 9,
      vars: 0,
      consts: [["id", "layout-wrapper"], [3, "mobileMenuButtonClicked"], [1, "main-content"], [1, "page-content"], [1, "container-fluid"], [3, "settingsButtonClicked"]],
      template: function HorizontalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "app-topbar", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("mobileMenuButtonClicked", function HorizontalComponent_Template_app_topbar_mobileMenuButtonClicked_1_listener() {
            return ctx.onToggleMobileMenu();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "app-horizontal-topbar");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 2)(4, "div", 3)(5, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](6, "router-outlet");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](7, "app-footer");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "app-rightsidebar", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("settingsButtonClicked", function HorizontalComponent_Template_app_rightsidebar_settingsButtonClicked_8_listener() {
            return ctx.onSettingsButtonClicked();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        }
      },
      dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterOutlet, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_0__.TopbarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_1__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_2__.RightsidebarComponent, _horizontal_topbar_horizontal_topbar_component__WEBPACK_IMPORTED_MODULE_3__.HorizontalTopbarComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LayoutComponent: () => (/* binding */ LayoutComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vertical/vertical.component */ 17642);
/* harmony import */ var _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./horizontal/horizontal.component */ 64338);
/* harmony import */ var _two_column_two_column_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./two-column/two-column.component */ 70188);





function LayoutComponent_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-vertical");
  }
}
function LayoutComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-horizontal");
  }
}
function LayoutComponent_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-two-column");
  }
}
function LayoutComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-vertical");
  }
}
/**
 * Layout Component
 */
class LayoutComponent {
  constructor(store) {
    this.store = store;
  }
  ngOnInit() {
    this.store.select('layout').subscribe(data => {
      this.layoutType = data.LAYOUT;
      document.documentElement.setAttribute('data-layout', data.LAYOUT);
      document.documentElement.setAttribute('data-theme', data.LAYOUT_THEME);
      document.documentElement.setAttribute('data-theme-colors', data.LAYOUT_THEME_COLOR);
      document.documentElement.setAttribute('data-bs-theme', data.LAYOUT_MODE);
      document.documentElement.setAttribute('data-layout-width', data.LAYOUT_WIDTH);
      document.documentElement.setAttribute('data-layout-position', data.LAYOUT_POSITION);
      document.documentElement.setAttribute('data-topbar', data.TOPBAR);
      data.LAYOUT == "vertical" || data.LAYOUT == "twocolumn" ? document.documentElement.setAttribute('data-sidebar', data.SIDEBAR_COLOR) : '';
      data.LAYOUT == "vertical" || data.LAYOUT == "twocolumn" ? document.documentElement.setAttribute('data-sidebar-size', data.SIDEBAR_SIZE) : '';
      data.LAYOUT == "vertical" || data.LAYOUT == "twocolumn" ? document.documentElement.setAttribute('data-sidebar-image', data.SIDEBAR_IMAGE) : '';
      data.LAYOUT == "vertical" || data.LAYOUT == "twocolumn" ? document.documentElement.setAttribute('data-layout-style', data.SIDEBAR_VIEW) : '';
      document.documentElement.setAttribute('data-preloader', data.DATA_PRELOADER);
      document.documentElement.setAttribute('data-sidebar-visibility', data.SIDEBAR_VISIBILITY);
    });
  }
  /**
  * Check if the vertical layout is requested
  */
  isVerticalLayoutRequested() {
    return this.layoutType === 'vertical';
  }
  /**
   * Check if the semibox layout is requested
   */
  isSemiboxLayoutRequested() {
    return this.layoutType === 'semibox';
  }
  /**
   * Check if the horizontal layout is requested
   */
  isHorizontalLayoutRequested() {
    return this.layoutType === 'horizontal';
  }
  /**
   * Check if the horizontal layout is requested
   */
  isTwoColumnLayoutRequested() {
    return this.layoutType === 'twocolumn';
  }
  static {
    this.ɵfac = function LayoutComponent_Factory(t) {
      return new (t || LayoutComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_4__.Store));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
      type: LayoutComponent,
      selectors: [["app-layout"]],
      decls: 4,
      vars: 4,
      template: function LayoutComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, LayoutComponent_Conditional_0_Template, 1, 0, "app-vertical")(1, LayoutComponent_Conditional_1_Template, 1, 0, "app-horizontal")(2, LayoutComponent_Conditional_2_Template, 1, 0, "app-two-column")(3, LayoutComponent_Conditional_3_Template, 1, 0, "app-vertical");
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](0, ctx.isVerticalLayoutRequested() ? 0 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](1, ctx.isHorizontalLayoutRequested() ? 1 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](2, ctx.isTwoColumnLayoutRequested() ? 2 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](3, ctx.isSemiboxLayoutRequested() ? 3 : -1);
        }
      },
      dependencies: [_vertical_vertical_component__WEBPACK_IMPORTED_MODULE_0__.VerticalComponent, _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_1__.HorizontalComponent, _two_column_two_column_component__WEBPACK_IMPORTED_MODULE_2__.TwoColumnComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LayoutsModule: () => (/* binding */ LayoutsModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/services/language.service */ 83318);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var _layout_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./layout.component */ 58979);
/* harmony import */ var _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vertical/vertical.component */ 17642);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./topbar/topbar.component */ 56414);
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sidebar/sidebar.component */ 76072);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./footer/footer.component */ 17856);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./rightsidebar/rightsidebar.component */ 56730);
/* harmony import */ var _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./horizontal/horizontal.component */ 64338);
/* harmony import */ var _horizontal_topbar_horizontal_topbar_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./horizontal-topbar/horizontal-topbar.component */ 93028);
/* harmony import */ var _two_column_two_column_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./two-column/two-column.component */ 70188);
/* harmony import */ var _two_column_sidebar_two_column_sidebar_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./two-column-sidebar/two-column-sidebar.component */ 93178);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 37580);








// Component pages











class LayoutsModule {
  static {
    this.ɵfac = function LayoutsModule_Factory(t) {
      return new (t || LayoutsModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineNgModule"]({
      type: LayoutsModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineInjector"]({
      providers: [_core_services_language_service__WEBPACK_IMPORTED_MODULE_0__.LanguageService],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_13__.RouterModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbNavModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_15__.SimplebarAngularModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__.TranslateModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbCollapseModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.ReactiveFormsModule]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵsetNgModuleScope"](LayoutsModule, {
    declarations: [_layout_component__WEBPACK_IMPORTED_MODULE_1__.LayoutComponent, _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_2__.VerticalComponent, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_3__.TopbarComponent, _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_4__.SidebarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_5__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_6__.RightsidebarComponent, _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_7__.HorizontalComponent, _horizontal_topbar_horizontal_topbar_component__WEBPACK_IMPORTED_MODULE_8__.HorizontalTopbarComponent, _two_column_two_column_component__WEBPACK_IMPORTED_MODULE_9__.TwoColumnComponent, _two_column_sidebar_two_column_sidebar_component__WEBPACK_IMPORTED_MODULE_10__.TwoColumnSidebarComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_13__.RouterModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbNavModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_15__.SimplebarAngularModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__.TranslateModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbCollapseModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.ReactiveFormsModule]
  });
})();

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RightsidebarComponent: () => (/* binding */ RightsidebarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/store/layouts/layout-selector */ 84784);
/* harmony import */ var src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/store/layouts/layout-action */ 68951);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/services/event.service */ 30944);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! simplebar-angular */ 67363);









const _c0 = ["filtetcontent"];
function RightsidebarComponent_ng_template_10_ng_template_203_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 122)(1, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Mostrar Menu lateral");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Escoger entre mostrar o esconder menu lateral.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 18)(6, "div", 19)(7, "div", 20)(8, "input", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_203_Template_input_change_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r6);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeVisibility("show"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "label", 124)(10, "span", 23)(11, "span", 47)(12, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "span", 26)(14, "span", 27)(15, "span", 27)(16, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "span", 28)(18, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 30)(20, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "MOstrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 19)(24, "div", 20)(25, "input", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_203_Template_input_change_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r6);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeVisibility("hidden"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "label", 126)(27, "span", 23)(28, "span", 28)(29, "span", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](30, "span", 30)(31, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Esconder");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarVisibility === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarVisibility === "hidden");
  }
}
function RightsidebarComponent_ng_template_10_ng_template_204_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 128)(1, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Layout Width");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Choose Fluid or Boxed layout.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 18)(6, "div", 19)(7, "div", 20)(8, "input", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_204_Template_input_change_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeWidth("fluid", "lg"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "label", 130)(10, "span", 23)(11, "span", 24)(12, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "span", 26)(14, "span", 27)(15, "span", 27)(16, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "span", 28)(18, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 30)(20, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Fluid");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 19)(24, "div", 20)(25, "input", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_204_Template_input_change_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeWidth("boxed", "sm-hover"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "label", 132)(27, "span", 133)(28, "span", 24)(29, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](30, "span", 26)(31, "span", 27)(32, "span", 27)(33, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "span", 28)(35, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](36, "span", 30)(37, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](39, "Boxed");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.width === "fluid");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.width === "boxed");
  }
}
function RightsidebarComponent_ng_template_10_ng_template_242_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 134)(1, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Sidebar Size");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Choose a size of Sidebar.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 18)(6, "div", 19)(7, "div", 105)(8, "input", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_242_Template_input_change_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarSize("lg"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "label", 136)(10, "span", 23)(11, "span", 24)(12, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "span", 26)(14, "span", 27)(15, "span", 27)(16, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "span", 28)(18, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 30)(20, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Default");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 19)(24, "div", 105)(25, "input", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_242_Template_input_change_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarSize("md"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "label", 138)(27, "span", 23)(28, "span", 24)(29, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](30, "span", 139)(31, "span", 44)(32, "span", 44)(33, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "span", 28)(35, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](36, "span", 30)(37, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](39, "Compact");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "div", 19)(41, "div", 105)(42, "input", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_242_Template_input_change_42_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarSize("sm"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](43, "label", 141)(44, "span", 23)(45, "span", 24)(46, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](47, "span", 43)(48, "span", 44)(49, "span", 44)(50, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](51, "span", 28)(52, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](53, "span", 30)(54, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](55, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](56, "Small (Icon View)");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "div", 19)(58, "div", 105)(59, "input", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_242_Template_input_change_59_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarSize("sm-hover"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](60, "label", 143)(61, "span", 23)(62, "span", 24)(63, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](64, "span", 43)(65, "span", 44)(66, "span", 44)(67, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](68, "span", 28)(69, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](70, "span", 30)(71, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](72, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73, "Small Hover View");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.size === "lg");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.size === "md");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.size === "sm");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.size === "sm-hover");
  }
}
function RightsidebarComponent_ng_template_10_ng_template_243_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 144)(1, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Sidebar View");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Choose Default or Detached Sidebar view.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 18)(6, "div", 19)(7, "div", 105)(8, "input", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_243_Template_input_change_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r9);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebar("default"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "label", 146)(10, "span", 23)(11, "span", 24)(12, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "span", 26)(14, "span", 27)(15, "span", 27)(16, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "span", 28)(18, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 30)(20, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Default");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 19)(24, "div", 105)(25, "input", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_243_Template_input_change_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r9);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebar("detached"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "label", 148)(27, "span", 29)(28, "span", 149);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](29, "span", 37)(30, "span", 38)(31, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "span", 150)(33, "span", 24)(34, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](35, "span", 27)(36, "span", 27)(37, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](38, "span", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](40, "Detached");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarView === "default");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarView === "detached");
  }
}
function RightsidebarComponent_ng_template_10_ng_template_244_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 103)(1, "h6", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Color Menu");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 18)(4, "div", 19)(5, "div", 105)(6, "input", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarColor("light"));
    })("click", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.removeActive());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "label", 153)(8, "span", 23)(9, "span", 24)(10, "span", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](11, "span", 26)(12, "span", 27)(13, "span", 27)(14, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "span", 28)(16, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](17, "span", 30)(18, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "Claro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 19)(22, "div", 105)(23, "input", 155);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_23_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarColor("dark"));
    })("click", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_click_23_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.removeActive());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](24, "label", 156)(25, "span", 23)(26, "span", 24)(27, "span", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](28, "span", 92)(29, "span", 93)(30, "span", 93)(31, "span", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "span", 28)(33, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](34, "span", 30)(35, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37, "Oscuro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "div", 19)(39, "button", 158);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_ng_template_244_Template_button_click_39_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.addActive("gradient"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "span", 23)(41, "span", 24)(42, "span", 159);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](43, "span", 160)(44, "span", 161)(45, "span", 161)(46, "span", 161);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](47, "span", 28)(48, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](49, "span", 30)(50, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](51, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](52, "Graduado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](53, "div", 162)(54, "div", 163)(55, "div", 105)(56, "input", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_56_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarColor("gradient"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "label", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](58, "span", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](59, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](60, "input", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](61, "label", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](62, "span", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](63, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](64, "input", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](65, "label", 171);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](66, "span", 172);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](67, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](68, "input", 173);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](69, "label", 174);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](70, "span", 175);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](71, "div", 176)(72, "h6", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73, "Menu con imagen");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](74, "div", 177)(75, "div", 105)(76, "input", 178);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_76_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarImage("none"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](77, "label", 179)(78, "span", 180);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](79, "i", 181);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](80, "div", 105)(81, "input", 182);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_81_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarImage("img-1"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](82, "label", 183);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](83, "img", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](84, "div", 105)(85, "input", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_85_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarImage("img-2"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](86, "label", 186);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](87, "img", 187);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](88, "div", 105)(89, "input", 188);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_89_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarImage("img-3"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](90, "label", 189);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](91, "img", 190);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](92, "div", 105)(93, "input", 191);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_ng_template_244_Template_input_change_93_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeSidebarImage("img-4"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](94, "label", 192);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](95, "img", 193);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebar === "light");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebar === "dark");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.grd === "gradient");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebar === "gradient");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebar === "gradient");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebar === "gradient");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarImage === "none");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarImage === "img-1");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarImage === "img-2");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarImage === "img-3");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.sidebarImage === "img-4");
  }
}
function RightsidebarComponent_ng_template_10_Conditional_307_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 121)(1, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Background Image");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Choose a body background image.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 18)(6, "div", 19)(7, "div", 105)(8, "input", 194);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Conditional_307_Template_input_change_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r11);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeBackgroundImage("none"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "label", 195)(10, "span", 23)(11, "span", 24)(12, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "span", 26)(14, "span", 27)(15, "span", 27)(16, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "span", 28)(18, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 30)(20, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "None");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 19)(24, "div", 105)(25, "input", 196);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Conditional_307_Template_input_change_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r11);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeBackgroundImage("img-1"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](26, "label", 197);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "One");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div", 19)(30, "div", 105)(31, "input", 198);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Conditional_307_Template_input_change_31_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r11);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeBackgroundImage("img-2"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](32, "label", 199);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Two");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "div", 19)(36, "div", 105)(37, "input", 200);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Conditional_307_Template_input_change_37_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r11);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeBackgroundImage("img-3"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](38, "label", 201);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](40, "Three");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
}
function RightsidebarComponent_ng_template_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 10)(1, "h5", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Customizar Tema");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "button", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_Template_button_click_3_listener() {
      const offcanvas_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](offcanvas_r4.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 13)(5, "ngx-simplebar", 14)(6, "div", 15)(7, "h6", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "Estructura");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Escoge tu Estructura");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 18)(12, "div", 19)(13, "div", 20)(14, "input", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_Template_input_click_14_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayout("vertical"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "label", 22)(16, "span", 23)(17, "span", 24)(18, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "span", 26)(20, "span", 27)(21, "span", 27)(22, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "span", 28)(24, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](25, "span", 30)(26, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Vertical");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div", 19)(30, "div", 20)(31, "input", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_Template_input_click_31_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayout("horizontal"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "label", 34)(33, "span", 35)(34, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](35, "span", 37)(36, "span", 38)(37, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](38, "span", 30)(39, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](41, "Horizontal");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](42, "div", 19)(43, "div", 20)(44, "input", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_Template_input_click_44_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayout("twocolumn"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](45, "label", 41)(46, "span", 23)(47, "span", 24)(48, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](49, "span", 43)(50, "span", 44)(51, "span", 44)(52, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](53, "span", 24)(54, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](55, "span", 27)(56, "span", 27)(57, "span", 27)(58, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](59, "span", 28)(60, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](61, "span", 30)(62, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](63, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](64, "dos Columnas");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](65, "div", 19)(66, "div", 20)(67, "input", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_ng_template_10_Template_input_click_67_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayout("semibox"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](68, "label", 46)(69, "span", 23)(70, "span", 47)(71, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](72, "span", 26)(73, "span", 27)(74, "span", 27)(75, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](76, "span", 28)(77, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](78, "span", 30)(79, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](80, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](81, "Semi Box");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](82, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](83, "Tema");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](84, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](85, "Escoge tu tema favorito");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](86, ".");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](87, "div", 18)(88, "div", 50)(89, "div", 20)(90, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_90_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("default"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](91, "label", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](92, "img", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](93, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](94, "Default");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](95, "div", 50)(96, "div", 20)(97, "input", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_97_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("saas"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](98, "label", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](99, "img", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](100, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](101, "Sass");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](102, "div", 50)(103, "div", 20)(104, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_104_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("corporate"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](105, "label", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](106, "img", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](107, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](108, "Corporate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](109, "div", 50)(110, "div", 20)(111, "input", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_111_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("galaxy"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](112, "label", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](113, "img", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](114, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](115, "Galaxy");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](116, "div", 50)(117, "div", 20)(118, "input", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_118_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("material"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](119, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](120, "img", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](121, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](122, "Material");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](123, "div", 50)(124, "div", 20)(125, "input", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_125_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("creative"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](126, "label", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](127, "img", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](128, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](129, "Creative");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](130, "div", 50)(131, "div", 20)(132, "input", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_132_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("minimal"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](133, "label", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](134, "img", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](135, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](136, "Minimal");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](137, "div", 50)(138, "div", 20)(139, "input", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_139_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("modern"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](140, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](141, "img", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](142, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](143, "Modern");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](144, "div", 50)(145, "div", 20)(146, "input", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_146_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("interactive"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](147, "label", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](148, "img", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](149, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](150, "Interactive");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](151, "div", 50)(152, "div", 20)(153, "input", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_153_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("classic"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](154, "label", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](155, "img", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](156, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](157, "Classic");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](158, "div", 50)(159, "div", 20)(160, "input", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_160_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changelayoutTheme("vintage"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](161, "label", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](162, "img", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](163, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](164, "Vintage");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](165, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](166, "Color ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](167, "div", 85)(168, "div", 18)(169, "div", 19)(170, "div", 20)(171, "input", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_171_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayoutMode("light"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](172, "label", 87)(173, "span", 23)(174, "span", 24)(175, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](176, "span", 26)(177, "span", 27)(178, "span", 27)(179, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](180, "span", 28)(181, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](182, "span", 30)(183, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](184, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](185, "Claro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](186, "div", 19)(187, "div", 88)(188, "input", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_188_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLayoutMode("dark"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](189, "label", 90)(190, "span", 23)(191, "span", 24)(192, "span", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](193, "span", 92)(194, "span", 93)(195, "span", 93)(196, "span", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](197, "span", 28)(198, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](199, "span", 94)(200, "span", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](201, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](202, "Oscuro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](203, RightsidebarComponent_ng_template_10_ng_template_203_Template, 34, 2, "ng-template", 96)(204, RightsidebarComponent_ng_template_10_ng_template_204_Template, 40, 2, "ng-template", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](205, "h6", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](206, "Color Cabecera");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](207, "div", 18)(208, "div", 19)(209, "div", 20)(210, "input", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_210_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeTopColor("light"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](211, "label", 99)(212, "span", 23)(213, "span", 24)(214, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](215, "span", 26)(216, "span", 27)(217, "span", 27)(218, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](219, "span", 28)(220, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](221, "span", 30)(222, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](223, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](224, "Claro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](225, "div", 19)(226, "div", 20)(227, "input", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_227_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeTopColor("dark"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](228, "label", 101)(229, "span", 23)(230, "span", 24)(231, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](232, "span", 26)(233, "span", 27)(234, "span", 27)(235, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](236, "span", 28)(237, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](238, "span", 102)(239, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](240, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](241, "Oscuro");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](242, RightsidebarComponent_ng_template_10_ng_template_242_Template, 74, 4, "ng-template", 96)(243, RightsidebarComponent_ng_template_10_ng_template_243_Template, 41, 2, "ng-template", 96)(244, RightsidebarComponent_ng_template_10_ng_template_244_Template, 96, 11, "ng-template", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](245, "div", 103)(246, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](247, "Primary Color");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](248, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](249, "Choose a color of Primary.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](250, "div", 104)(251, "div", 105)(252, "input", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_252_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeColor("default"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](253, "label", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](254, "div", 105)(255, "input", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_255_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeColor("green"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](256, "label", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](257, "div", 105)(258, "input", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_258_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeColor("purple"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](259, "label", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](260, "div", 105)(261, "input", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_261_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeColor("blue"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](262, "label", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](263, "div", 114)(264, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](265, "Preloader");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](266, "p", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](267, "Choose a preloader.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](268, "div", 18)(269, "div", 19)(270, "div", 105)(271, "input", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_271_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLoader("enable"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](272, "label", 116)(273, "span", 23)(274, "span", 24)(275, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](276, "span", 26)(277, "span", 27)(278, "span", 27)(279, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](280, "span", 28)(281, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](282, "span", 30)(283, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](284, "div", 117)(285, "div", 118)(286, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](287, "Loading...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](288, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](289, "Enable");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](290, "div", 19)(291, "div", 105)(292, "input", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function RightsidebarComponent_ng_template_10_Template_input_change_292_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.changeLoader("disable"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](293, "label", 120)(294, "span", 23)(295, "span", 24)(296, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](297, "span", 26)(298, "span", 27)(299, "span", 27)(300, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](301, "span", 28)(302, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](303, "span", 30)(304, "span", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](305, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](306, "Disable");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](307, RightsidebarComponent_ng_template_10_Conditional_307_Template, 41, 0, "div", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](90);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "default");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "saas");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "corporate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "galaxy");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "material");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "creative");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "minimal");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "modern");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "interactive");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "classic");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.theme === "vintage");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.mode === "light");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.mode === "dark");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r4.attribute === "semibox");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r4.attribute === "vertical" || ctx_r4.attribute === "horizontal");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.topbar === "light");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.topbar === "dark");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r4.attribute === "vertical" || ctx_r4.attribute === "semibox");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r4.attribute === "vertical");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r4.attribute === "vertical" || ctx_r4.attribute === "twocolumn" || ctx_r4.attribute === "semibox");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.preLoader === "enable");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("checked", ctx_r4.preLoader === "disable");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](307, ctx_r4.theme == "galaxy" ? 307 : -1);
  }
}
/**
 * Right Sidebar component
 */
class RightsidebarComponent {
  constructor(eventService, offcanvasService, store) {
    this.eventService = eventService;
    this.offcanvasService = offcanvasService;
    this.store = store;
    this.settingsButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
  }
  ngOnInit() {
    setTimeout(() => {
      if (this.offcanvasService.hasOpenOffcanvas() == false) {
        // this.openEnd(this.filtetcontent);
      }
      ;
    }, 1000);
    this.store.select('layout').subscribe(data => {
      this.layout = data.LAYOUT;
      this.theme = data.LAYOUT_THEME;
      this.themecolor = data.LAYOUT_THEME_COLOR;
      this.mode = data.LAYOUT_MODE;
      this.width = data.LAYOUT_WIDTH;
      this.position = data.LAYOUT_POSITION;
      this.topbar = data.TOPBAR;
      this.size = data.SIDEBAR_SIZE;
      this.sidebarView = data.SIDEBAR_VIEW;
      this.sidebar = data.SIDEBAR_COLOR;
      this.sidebarImage = data.SIDEBAR_IMAGE;
      this.preLoader = data.DATA_PRELOADER;
      this.sidebarVisibility = data.SIDEBAR_VISIBILITY;
    });
  }
  ngAfterViewInit() {}
  /**
   * Change the layout onclick
   * @param layout Change the layout
   */
  changeLayout(layout) {
    this.attribute = layout;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changelayout)({
      layout
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getLayoutTheme).subscribe(layout => {
      document.documentElement.setAttribute('data-layout', layout);
    });
    setTimeout(() => {
      window.dispatchEvent(new Event('resize'));
    }, 100);
  }
  // Add Active Class
  addActive(grdSidebar) {
    this.grd = grdSidebar;
    document.documentElement.setAttribute('data-sidebar', grdSidebar);
    document.getElementById('collapseBgGradient')?.classList.toggle('show');
    document.getElementById('collapseBgGradient1')?.classList.add('active');
  }
  // Remove Active Class
  removeActive() {
    this.grd = '';
    document.getElementById('collapseBgGradient1')?.classList.remove('active');
    document.getElementById('collapseBgGradient')?.classList.remove('show');
  }
  // When the user clicks on the button, scroll to the top of the document
  topFunction() {
    document.body.scrollTop = 0;
    document.documentElement.scrollTop = 0;
  }
  //  Filter Offcanvas Set
  openEnd(content) {
    this.offcanvasService.open(content, {
      position: 'end'
    });
    setTimeout(() => {
      this.attribute = document.documentElement.getAttribute('data-layout');
      if (this.attribute == 'vertical') {
        var vertical = document.getElementById('customizer-layout01');
        if (vertical != null) {
          vertical.setAttribute('checked', 'true');
        }
      }
      if (this.attribute == 'horizontal') {
        const horizontal = document.getElementById('customizer-layout02');
        if (horizontal != null) {
          horizontal.setAttribute('checked', 'true');
        }
      }
      if (this.attribute == 'twocolumn') {
        const Twocolumn = document.getElementById('customizer-layout03');
        if (Twocolumn != null) {
          Twocolumn.setAttribute('checked', 'true');
        }
      }
      if (this.attribute == 'semibox') {
        const Twocolumn = document.getElementById('customizer-layout04');
        if (Twocolumn != null) {
          Twocolumn.setAttribute('checked', 'true');
        }
      }
    }, 100);
  }
  // Show Profile Sidebar
  showSidebarProgile(event) {
    if (event.target.checked == true) {
      document.documentElement.setAttribute("data-sidebar-user-show", "");
    } else {
      document.documentElement.removeAttribute("data-sidebar-user-show");
    }
  }
  // Theme Change
  changelayoutTheme(theme) {
    this.theme = theme;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeTheme)({
      theme
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getTheme).subscribe(theme => {
      document.documentElement.setAttribute('data-theme', theme);
    });
    if (theme == 'saas') {
      const layout = 'horizontal';
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changelayout)({
        layout
      }));
    } else if (theme == 'creative') {
      const layout = 'twocolumn';
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changelayout)({
        layout
      }));
    } else {
      const layout = 'vertical';
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changelayout)({
        layout
      }));
    }
    if (theme == 'galaxy') {
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeMode)({
        mode: 'dark'
      }));
    } else {
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeMode)({
        mode: 'light'
      }));
    }
    if (theme == 'modern') {
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarSize)({
        sidebarSize: 'sm-hover'
      }));
    } else {
      this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarSize)({
        sidebarSize: 'lg'
      }));
    }
    setTimeout(() => {
      window.dispatchEvent(new Event('resize'));
    }, 100);
  }
  // Change Theme Color
  changeColor(themecolor) {
    this.themecolor = themecolor;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeThemeColor)({
      themecolor
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getThemeColor).subscribe(themecolor => {
      document.documentElement.setAttribute('data-theme-colors', themecolor);
    });
  }
  // Mode Change
  changeLayoutMode(mode) {
    this.mode = mode;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeMode)({
      mode
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getLayoutMode).subscribe(mode => {
      document.documentElement.setAttribute('data-bs-theme', mode);
    });
    // document.documentElement.setAttribute('data-bs-theme', mode)
  }
  // Visibility Change
  changeVisibility(sidebarvisibility) {
    this.sidebarVisibility = sidebarvisibility;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarVisibility)({
      sidebarvisibility
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarVisibilitye).subscribe(visibility => {
      document.documentElement.setAttribute('data-sidebar-visibility', visibility);
    });
  }
  // Width Change
  changeWidth(layoutWidth, size) {
    this.width = layoutWidth;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeLayoutWidth)({
      layoutWidth
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getLayoutWith).subscribe(width => {
      document.documentElement.setAttribute('data-layout-width', width);
      document.documentElement.setAttribute('data-sidebar-size', size);
    });
    setTimeout(() => {
      window.dispatchEvent(new Event('resize'));
    }, 100);
  }
  // Position Change
  changePosition(layoutPosition) {
    this.position = layoutPosition;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeLayoutPosition)({
      layoutPosition
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getLayoutPosition).subscribe(position => {
      document.documentElement.setAttribute('data-layout-position', position);
    });
  }
  // Topbar Change
  changeTopColor(topbarColor) {
    this.topbar = topbarColor;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeTopbar)({
      topbarColor
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getTopbarColor).subscribe(color => {
      document.documentElement.setAttribute('data-topbar', color);
    });
  }
  // Sidebar Size Change
  changeSidebarSize(sidebarSize) {
    this.size = sidebarSize;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarSize)({
      sidebarSize
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarSize).subscribe(size => {
      document.documentElement.setAttribute('data-sidebar-size', size);
    });
  }
  // Sidebar Size Change
  changeSidebar(sidebarView) {
    this.sidebarView = sidebarView;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarView)({
      sidebarView
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarView).subscribe(view => {
      document.documentElement.setAttribute('data-layout-style', view);
    });
  }
  // Sidebar Color Change
  changeSidebarColor(sidebarColor) {
    this.sidebar = sidebarColor;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarColor)({
      sidebarColor
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarColor).subscribe(color => {
      document.documentElement.setAttribute('data-sidebar', color);
    });
  }
  // Sidebar Image Change
  changeSidebarImage(sidebarImage) {
    this.sidebarImage = sidebarImage;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeSidebarImage)({
      sidebarImage
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarImage).subscribe(image => {
      document.documentElement.setAttribute('data-sidebar-image', image);
    });
  }
  // Sidebar Image Change
  changeBackgroundImage(backgroundImage) {
    this.backgroundImage = backgroundImage;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeBackgrounImage)({
      backgroundImage
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getBackgroundImage).subscribe(image => {
      document.documentElement.setAttribute('data-body-image', image);
    });
  }
  // PreLoader Image Change
  changeLoader(Preloader) {
    this.preLoader = Preloader;
    this.store.dispatch((0,src_app_store_layouts_layout_action__WEBPACK_IMPORTED_MODULE_1__.changeDataPreloader)({
      Preloader
    }));
    this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getPreloader).subscribe(loader => {
      document.documentElement.setAttribute('data-preloader', loader);
    });
    var preloader = document.getElementById("preloader");
    if (preloader) {
      setTimeout(function () {
        document.getElementById("preloader").style.opacity = "0";
        document.getElementById("preloader").style.visibility = "hidden";
      }, 1000);
    }
  }
  static {
    this.ɵfac = function RightsidebarComponent_Factory(t) {
      return new (t || RightsidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_2__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbOffcanvas), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_5__.Store));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
      type: RightsidebarComponent,
      selectors: [["app-rightsidebar"]],
      viewQuery: function RightsidebarComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.filtetcontent = _t.first);
        }
      },
      outputs: {
        settingsButtonClicked: "settingsButtonClicked"
      },
      decls: 12,
      vars: 0,
      consts: [["filtetcontent", ""], ["id", "back-to-top", 1, "btn", "btn-danger", "btn-icon", 3, "click"], [1, "ri-arrow-up-line"], ["id", "preloader"], ["id", "status"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "customizer-setting", "d-none", "d-md-block"], ["data-bs-toggle", "offcanvas", "data-bs-target", "#theme-settings-offcanvas", "aria-controls", "theme-settings-offcanvas", 1, "btn-info", "rounded-pill", "shadow-lg", "btn", "btn-icon", "btn-lg", "p-2", 3, "click"], [1, "mdi", "mdi-spin", "mdi-cog-outline", "fs-22"], [1, "d-flex", "align-items-center", "bg-primary", "bg-gradient", "p-3", "offcanvas-header"], [1, "m-0", "me-2", "text-white"], ["type", "button", "data-bs-dismiss", "offcanvas", "aria-label", "Close", 1, "btn-close", "btn-close-white", "ms-auto", 3, "click"], [1, "offcanvas-body", "p-0", "right-sidebar"], [1, "h-100"], [1, "p-4"], [1, "mb-0", "fw-semibold", "text-uppercase"], [1, "text-muted"], [1, "row"], [1, "col-4"], [1, "form-check", "card-radio"], ["id", "customizer-layout01", "name", "data-layout", "type", "radio", "value", "vertical", 1, "form-check-input", 3, "click"], ["for", "customizer-layout01", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "d-flex", "gap-1", "h-100"], [1, "flex-shrink-0"], [1, "bg-light", "d-flex", "h-100", "flex-column", "gap-1", "p-1"], [1, "d-block", "p-1", "px-2", "bg-primary-subtle", "rounded", "mb-2"], [1, "d-block", "p-1", "px-2", "pb-0", "bg-primary-subtle"], [1, "flex-grow-1"], [1, "d-flex", "h-100", "flex-column"], [1, "bg-light", "d-block", "p-1"], [1, "bg-light", "d-block", "p-1", "mt-auto"], [1, "fs-13", "text-center", "mt-2"], ["id", "customizer-layout02", "name", "data-layout", "type", "radio", "value", "horizontal", 1, "form-check-input", 3, "click"], ["for", "customizer-layout02", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "d-flex", "h-100", "flex-column", "gap-1"], [1, "bg-light", "d-flex", "p-1", "gap-1", "align-items-center"], [1, "d-block", "p-1", "bg-primary-subtle", "rounded", "me-1"], [1, "d-block", "p-1", "pb-0", "px-2", "bg-primary-subtle", "ms-auto"], [1, "d-block", "p-1", "pb-0", "px-2", "bg-primary-subtle"], ["id", "customizer-layout03", "name", "data-layout", "type", "radio", "value", "twocolumn", 1, "form-check-input", 3, "click"], ["for", "customizer-layout03", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "bg-light", "d-flex", "h-100", "flex-column", "gap-1"], [1, "d-block", "p-1", "bg-primary-subtle", "mb-2"], [1, "d-block", "p-1", "pb-0", "bg-primary-subtle"], ["id", "customizer-layout04", "name", "data-layout", "type", "radio", "value", "semibox", 1, "form-check-input", 3, "click"], ["for", "customizer-layout04", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "flex-shrink-0", "p-1"], [1, "d-flex", "h-100", "flex-column", "pt-1", "pe-2"], [1, "mt-4", "mb-0", "fw-semibold", "text-uppercase"], [1, "col-6"], ["id", "customizer-theme01", "name", "data-theme", "type", "radio", "value", "default", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme01", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/default.png", "alt", "", 1, "img-fluid"], [1, "fs-13", "text-center", "fw-medium", "mt-2"], ["id", "customizer-theme02", "name", "data-theme", "type", "radio", "value", "saas", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme02", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo//saas.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme03", "name", "data-theme", "type", "radio", "value", "corporate", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme03", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo//corporate.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme04", "name", "data-theme", "type", "radio", "value", "galaxy", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme04", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo//galaxy.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme05", "name", "data-theme", "type", "radio", "value", "material", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme05", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo//material.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme06", "name", "data-theme", "type", "radio", "value", "creative", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme06", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/creative.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme07", "name", "data-theme", "type", "radio", "value", "minimal", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme07", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/minimal.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme08", "name", "data-theme", "type", "radio", "value", "modern", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme08", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/modern.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme09", "name", "data-theme", "type", "radio", "value", "interactive", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme09", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/interactive.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme10", "name", "data-theme", "type", "radio", "value", "classic", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme10", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/classic.png", "alt", "", 1, "img-fluid"], ["id", "customizer-theme11", "name", "data-theme", "type", "radio", "value", "vintage", 1, "form-check-input", 3, "change", "checked"], ["for", "customizer-theme11", 1, "form-check-label", "p-0"], ["src", "https://themesbrand.com/velzon/assets/images/demo/vintage.png", "alt", "", 1, "img-fluid"], [1, "colorscheme-cardradio"], ["type", "radio", "name", "data-layout-mode", "id", "layout-mode-light", "value", "light", 1, "form-check-input", 3, "change", "checked"], ["for", "layout-mode-light", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "form-check", "card-radio", "dark"], ["type", "radio", "name", "data-layout-mode", "id", "layout-mode-dark", "value", "dark", 1, "form-check-input", 3, "change", "checked"], ["for", "layout-mode-dark", 1, "form-check-label", "p-0", "avatar-md", "w-100", "bg-dark", "material-shadow"], [1, "bg-light-subtle", "d-flex", "h-100", "flex-column", "gap-1", "p-1"], [1, "d-block", "p-1", "px-2", "bg-light-subtle", "rounded", "mb-2"], [1, "d-block", "p-1", "px-2", "pb-0", "bg-light-subtle"], [1, "bg-light-subtle", "d-block", "p-1"], [1, "bg-light-subtle", "d-block", "p-1", "mt-auto"], [3, "ngIf"], [1, "mt-4", "fw-semibold", "text-uppercase"], ["type", "radio", "name", "data-topbar", "id", "topbar-color-light", "value", "light", 1, "form-check-input", 3, "change", "checked"], ["for", "topbar-color-light", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-topbar", "id", "topbar-color-dark", "value", "dark", 1, "form-check-input", 3, "change", "checked"], ["for", "topbar-color-dark", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "bg-primary", "d-block", "p-1"], ["id", "sidebar-color"], [1, "d-flex", "flex-wrap", "gap-2"], [1, "form-check", "sidebar-setting", "card-radio"], ["type", "radio", "name", "data-theme-colors", "id", "themeColor-01", "value", "default", 1, "form-check-input", 3, "change"], ["for", "themeColor-01", 1, "form-check-label", "avatar-xs", "p-0"], ["type", "radio", "name", "data-theme-colors", "id", "themeColor-02", "value", "green", 1, "form-check-input", 3, "change"], ["for", "themeColor-02", 1, "form-check-label", "avatar-xs", "p-0"], ["type", "radio", "name", "data-theme-colors", "id", "themeColor-03", "value", "purple", 1, "form-check-input", 3, "change"], ["for", "themeColor-03", 1, "form-check-label", "avatar-xs", "p-0"], ["type", "radio", "name", "data-theme-colors", "id", "themeColor-04", "value", "blue", 1, "form-check-input", 3, "change"], ["for", "themeColor-04", 1, "form-check-label", "avatar-xs", "p-0"], ["id", "preloader-menu"], ["type", "radio", "name", "data-preloader", "id", "preloader-view-custom", "value", "enable", 1, "form-check-input", 3, "change", "checked"], ["for", "preloader-view-custom", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["id", "status", 1, "d-flex", "align-items-center", "justify-content-center"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-xxs", "m-auto"], ["type", "radio", "name", "data-preloader", "id", "preloader-view-none", "value", "disable", 1, "form-check-input", 3, "change", "checked"], ["for", "preloader-view-none", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["id", "body-img"], ["id", "sidebar-visibility"], ["type", "radio", "name", "data-sidebar-visibility", "id", "sidebar-visibility-show", "value", "show", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-visibility-show", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-sidebar-visibility", "id", "sidebar-visibility-hidden", "value", "hidden", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-visibility-hidden", 1, "form-check-label", "p-0", "avatar-md", "w-100", "px-2", "material-shadow"], [1, "d-flex", "h-100", "flex-column", "pt-1", "px-2"], ["id", "layout-width"], ["type", "radio", "name", "data-layout-width", "id", "layout-width-fluid", "value", "fluid", 1, "form-check-input", 3, "change", "checked"], ["for", "layout-width-fluid", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-layout-width", "id", "layout-width-boxed", "value", "boxed", 1, "form-check-input", 3, "change", "checked"], ["for", "layout-width-boxed", 1, "form-check-label", "p-0", "avatar-md", "w-100", "px-2", "material-shadow"], [1, "d-flex", "gap-1", "h-100", "border-start", "border-end"], ["id", "sidebar-size"], ["type", "radio", "name", "data-sidebar-size", "id", "sidebar-size-default", "value", "lg", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-size-default", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-sidebar-size", "id", "sidebar-size-compact", "value", "md", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-size-compact", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "d-block", "p-1", "bg-primary-subtle", "rounded", "mb-2"], ["type", "radio", "name", "data-sidebar-size", "id", "sidebar-size-small", "value", "sm", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-size-small", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-sidebar-size", "id", "sidebar-size-small-hover", "value", "sm-hover", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-size-small-hover", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["id", "sidebar-view"], ["type", "radio", "name", "data-layout-style", "id", "sidebar-view-default", "value", "default", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-view-default", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], ["type", "radio", "name", "data-layout-style", "id", "sidebar-view-detached", "value", "detached", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-view-detached", 1, "form-check-label", "p-0", "avatar-md", "w-100", "material-shadow"], [1, "bg-light", "d-flex", "p-1", "gap-1", "align-items-center", "px-2"], [1, "d-flex", "gap-1", "h-100", "p-1", "px-2"], [1, "bg-light", "d-block", "p-1", "mt-auto", "px-2"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-light", "value", "light", 1, "form-check-input", 3, "change", "click", "checked"], ["for", "sidebar-color-light", 1, "form-check-label", "p-0", "avatar-md", "w-100"], [1, "bg-white", "border-end", "d-flex", "h-100", "flex-column", "gap-1", "p-1"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-dark", "value", "dark", 1, "form-check-input", 3, "change", "click", "checked"], ["for", "sidebar-color-dark", 1, "form-check-label", "p-0", "avatar-md", "w-100"], [1, "bg-primary", "d-flex", "h-100", "flex-column", "gap-1", "p-1"], ["id", "collapseBgGradient1", "type", "button", "data-bs-toggle", "collapse", "data-bs-target", "#collapseBgGradient", "aria-expanded", "false", "aria-controls", "collapseBgGradient", 1, "btn", "btn-link", "avatar-md", "w-100", "p-0", "overflow-hidden", "border", "collapsed", 3, "click"], [1, "bg-vertical-gradient", "d-flex", "h-100", "flex-column", "gap-1", "p-1"], [1, "d-block", "p-1", "px-2", "bg-white", "bg-opacity-10", "rounded", "mb-2"], [1, "d-block", "p-1", "px-2", "pb-0", "bg-white", "bg-opacity-10"], ["id", "collapseBgGradient", 1, "collapse"], [1, "d-flex", "gap-2", "flex-wrap", "img-switch", "p-2", "px-3", "bg-light", "rounded"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-gradient", "value", "gradient", "onchange", "document.documentElement.setAttribute('data-sidebar', 'gradient')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebar-color-gradient", 1, "form-check-label", "p-0", "avatar-xs", "rounded-circle"], [1, "avatar-title", "rounded-circle", "bg-vertical-gradient"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-gradient-2", "value", "gradient-2", "onchange", "document.documentElement.setAttribute('data-sidebar', 'gradient-2')", 1, "form-check-input", 3, "checked"], ["for", "sidebar-color-gradient-2", 1, "form-check-label", "p-0", "avatar-xs", "rounded-circle"], [1, "avatar-title", "rounded-circle", "bg-vertical-gradient-2"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-gradient-3", "value", "gradient-3", "onchange", "document.documentElement.setAttribute('data-sidebar', 'gradient-3')", 1, "form-check-input", 3, "checked"], ["for", "sidebar-color-gradient-3", 1, "form-check-label", "p-0", "avatar-xs", "rounded-circle"], [1, "avatar-title", "rounded-circle", "bg-vertical-gradient-3"], ["type", "radio", "name", "data-sidebar", "id", "sidebar-color-gradient-4", "value", "gradient-4", "onchange", "document.documentElement.setAttribute('data-sidebar', 'gradient-4')", 1, "form-check-input", 3, "checked"], ["for", "sidebar-color-gradient-4", 1, "form-check-label", "p-0", "avatar-xs", "rounded-circle"], [1, "avatar-title", "rounded-circle", "bg-vertical-gradient-4"], ["id", "sidebar-img"], [1, "d-flex", "gap-2", "flex-wrap", "img-switch"], ["type", "radio", "name", "data-sidebar-image", "id", "sidebarimg-none", "value", "none", "onchange", "document.documentElement.setAttribute('data-sidebar-image', 'none')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebarimg-none", 1, "form-check-label", "p-0", "avatar-sm", "h-auto"], [1, "avatar-md", "w-auto", "bg-light", "d-flex", "align-items-center", "justify-content-center"], [1, "ri-close-fill", "fs-20"], ["type", "radio", "name", "data-sidebar-image", "id", "sidebarimg-01", "value", "img-1", "onchange", "document.documentElement.setAttribute('data-sidebar-image', 'img-1')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebarimg-01", 1, "form-check-label", "p-0", "avatar-sm", "h-auto"], ["src", "assets/images/sidebar/img-1.jpg", "alt", "", 1, "avatar-md", "w-auto", "object-fit-cover"], ["type", "radio", "name", "data-sidebar-image", "id", "sidebarimg-02", "value", "img-2", "onchange", "document.documentElement.setAttribute('data-sidebar-image', 'img-2')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebarimg-02", 1, "form-check-label", "p-0", "avatar-sm", "h-auto"], ["src", "assets/images/sidebar/img-2.jpg", "alt", "", 1, "avatar-md", "w-auto", "object-fit-cover"], ["type", "radio", "name", "data-sidebar-image", "id", "sidebarimg-03", "value", "img-3", "onchange", "document.documentElement.setAttribute('data-sidebar-image', 'img-3')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebarimg-03", 1, "form-check-label", "p-0", "avatar-sm", "h-auto"], ["src", "assets/images/sidebar/img-3.jpg", "alt", "", 1, "avatar-md", "w-auto", "object-fit-cover"], ["type", "radio", "name", "data-sidebar-image", "id", "sidebarimg-04", "value", "img-4", "onchange", "document.documentElement.setAttribute('data-sidebar-image', 'img-4')", 1, "form-check-input", 3, "change", "checked"], ["for", "sidebarimg-04", 1, "form-check-label", "p-0", "avatar-sm", "h-auto"], ["src", "assets/images/sidebar/img-4.jpg", "alt", "", 1, "avatar-md", "w-auto", "object-fit-cover"], ["type", "radio", "name", "data-body-image", "id", "body-img-none", "value", "none", 1, "form-check-input", 3, "change"], ["data-body-image", "none", "for", "body-img-none", 1, "form-check-label", "p-0", "avatar-md", "w-100"], ["type", "radio", "name", "data-body-image", "id", "body-img-one", "value", "img-1", 1, "form-check-input", 3, "change"], ["data-body-image", "img-1", "for", "body-img-one", 1, "form-check-label", "p-0", "avatar-md", "w-100"], ["type", "radio", "name", "data-body-image", "id", "body-img-two", "value", "img-2", 1, "form-check-input", 3, "change"], ["data-body-image", "img-2", "for", "body-img-two", 1, "form-check-label", "p-0", "avatar-md", "w-100"], ["type", "radio", "name", "data-body-image", "id", "body-img-three", "value", "img-3", 1, "form-check-input", 3, "change"], ["data-body-image", "img-3", "for", "body-img-three", 1, "form-check-label", "p-0", "avatar-md", "w-100"]],
      template: function RightsidebarComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_Template_button_click_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx.topFunction());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 3)(3, "div", 4)(4, "div", 5)(5, "span", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Cargando...");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 7)(8, "div", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function RightsidebarComponent_Template_div_click_8_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r1);
            const filtetcontent_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](11);
            return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx.openEnd(filtetcontent_r2));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](9, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, RightsidebarComponent_ng_template_10_Template, 308, 23, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplateRefExtractor"]);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, simplebar_angular__WEBPACK_IMPORTED_MODULE_7__.SimplebarAngularComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SidebarComponent: () => (/* binding */ SidebarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/token-storage.service */ 87413);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);










const _c0 = ["sideMenu"];
const _c1 = (a0, a1) => ({
  "has-arrow": a0,
  "has-dropdown": a1
});
function SidebarComponent_For_20_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 19)(1, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 1, item_r1.nombreMenu), " ");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge badge-pill ", item_r1.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, item_r1.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subitem_r5.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, subitem_r5.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subSubitem_r7.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, subSubitem_r7.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_For_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 21)(1, "a", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_For_8_Template_a_click_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](9);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem1_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", subSubitem1_r9.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-parent", subSubitem1_r9.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 3, subSubitem1_r9.nombreMenu), " ");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](7);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.toggleItem(subSubitem_r7));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Conditional_3_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 29, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngbCollapseChange", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Template_div_ngbCollapseChange_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](subSubitem_r7.isCollapsed, $event) || (subSubitem_r7.isCollapsed = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "ul", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterCreate"](7, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_For_8_Template, 4, 5, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-parent", subSubitem_r7.permisoPadreDto)("aria-expanded", !subSubitem_r7.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 5, subSubitem_r7.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](3, subSubitem_r7.badge ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngbCollapse", subSubitem_r7.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeater"](ctx_r2.getSubMenu(subSubitem_r7.permisoHijoListDto));
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subSubitem_r7.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, subSubitem_r7.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_2_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r10);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](8);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_2_Conditional_3_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", subSubitem_r7.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-parent", subSubitem_r7.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, subSubitem_r7.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](3, subSubitem_r7.badge ? 3 : -1);
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_1_Template, 9, 7)(2, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Conditional_2_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r7 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](1, ctx_r2.hasItems(subSubitem_r7) ? 1 : 2);
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4);
      const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.toggleItem(subitem_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Conditional_3_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 28, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngbCollapseChange", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Template_div_ngbCollapseChange_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4);
      const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](subitem_r5.isCollapsed, $event) || (subitem_r5.isCollapsed = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "ul", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterCreate"](7, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_For_8_Template, 3, 1, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-parent", subitem_r5.permisoPadreDto)("aria-expanded", subitem_r5.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 5, subitem_r5.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](3, subitem_r5.badge ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngbCollapse", subitem_r5.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeater"](ctx_r2.getSubMenu(subitem_r5.permisoHijoListDto));
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_2_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subitem_r5.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, subitem_r5.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_2_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_2_Conditional_4_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", subitem_r5.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-parent", subitem_r5.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("", subitem_r5.icono, " icon nav-icon");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](3, 7, subitem_r5.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](4, subitem_r5.badge ? 4 : -1);
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_1_Template, 9, 7)(2, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Conditional_2_Template, 5, 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r5 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](1, ctx_r2.hasItems(subitem_r5) ? 1 : 2);
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r2);
      const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r2.toggleItem(item_r1));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Conditional_5_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 25, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngbCollapseChange", function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Template_div_ngbCollapseChange_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r2);
      const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](item_r1.isCollapsed, $event) || (item_r1.isCollapsed = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "ul", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterCreate"](9, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_For_10_Template, 3, 1, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](10, _c1, !item_r1.badge, item_r1.badge));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("aria-expanded", !item_r1.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("", item_r1.icono, " icon nav-icon");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 8, item_r1.nombreMenu), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](5, item_r1.badge ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngbCollapse", item_r1.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeater"](ctx_r2.getSubMenu(item_r1.permisoHijoListDto));
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 23);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("bx ", item_r1.icono, " icon nav-icon");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("badge ", item_r1.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 4, item_r1.badge.text), "");
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Conditional_1_Template, 1, 3, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Conditional_5_Template, 3, 6, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", item_r1.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](1, item_r1.icono ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](4, 4, item_r1.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](5, item_r1.badge ? 5 : -1);
  }
}
function SidebarComponent_For_20_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_0_Template, 11, 13)(1, SidebarComponent_For_20_Conditional_1_Conditional_1_Conditional_1_Template, 6, 6);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](0, ctx_r2.hasItems(item_r1) ? 0 : 1);
  }
}
function SidebarComponent_For_20_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, SidebarComponent_For_20_Conditional_1_Conditional_1_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](1, !item_r1.permisoPadreDto ? 1 : -1);
  }
}
function SidebarComponent_For_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, SidebarComponent_For_20_Conditional_0_Template, 4, 3, "li", 19)(1, SidebarComponent_For_20_Conditional_1_Template, 2, 1);
  }
  if (rf & 2) {
    const item_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](0, item_r1.isTitle ? 0 : 1);
  }
}
class SidebarComponent {
  constructor(router, translate, authService, storage) {
    this.router = router;
    this.translate = translate;
    this.authService = authService;
    this.storage = storage;
    this.toggle = true;
    this.menuItems = [];
    this.mobileMenuButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.avatar = "default-profile1.png";
    translate.setDefaultLang('es');
  }
  ngOnInit() {
    this.userData = this.authService.currentUser();
    this.avatar = this.authService.getAvatar();
    this.menuItems = this.storage.getMenu();
    this.router.events.subscribe(event => {
      if (document.documentElement.getAttribute('data-layout') != "twocolumn") {
        if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_3__.NavigationEnd) {
          this.initActiveMenu();
        }
      }
    });
  }
  getSubMenu(menuItems) {
    const commonItems = menuItems.filter(item1 => this.menuItems.some(item2 => item1.nombreMenu === item2.nombreMenu));
    const uniqueMenuItemsMap = commonItems.reduce((map, item) => {
      if (!map.has(item.nombreMenu) && item.accion !== 'CREAR') {
        map.set(item.nombreMenu, item);
      }
      return map;
    }, new Map());
    return Array.from(uniqueMenuItemsMap.values());
  }
  /***
   * Activate droup down set
   */
  ngAfterViewInit() {
    setTimeout(() => {
      this.initActiveMenu();
    }, 0);
  }
  removeActivation(items) {
    items.forEach(item => {
      item.classList.remove("active");
    });
  }
  toggleItem(item) {
    this.menuItems.forEach(menuItem => {
      if (menuItem === item) {
        menuItem.isCollapsed = !menuItem.isCollapsed;
      } else {
        menuItem.isCollapsed = true;
      }
      if (menuItem.permisoHijoListDto.length > 0) {
        menuItem.permisoHijoListDto.forEach(subItem => {
          if (subItem === item) {
            menuItem.isCollapsed = !menuItem.isCollapsed;
            subItem.isCollapsed = !subItem.isCollapsed;
          } else {
            subItem.isCollapsed = true;
          }
          if (subItem.permisoHijoListDto) {
            subItem.permisoHijoListDto.forEach(childitem => {
              if (childitem === item) {
                childitem.isCollapsed = !childitem.isCollapsed;
                subItem.isCollapsed = !subItem.isCollapsed;
                menuItem.isCollapsed = !menuItem.isCollapsed;
              } else {
                childitem.isCollapsed = true;
              }
              if (childitem.permisoHijoListDto) {
                childitem.permisoHijoListDto.forEach(childrenitem => {
                  if (childrenitem == item) {
                    childrenitem.isCollapsed = true;
                    childitem.isCollapsed = true;
                    subItem.isCollapsed = true;
                    menuItem.isCollapsed = true;
                  } else {
                    childrenitem.isCollapsed = false;
                  }
                });
              }
            });
          }
        });
      }
    });
  }
  activateParentDropdown(item) {
    item.classList.add("active");
    let parentCollapseDiv = item.closest(".collapse.menu-dropdown");
    if (parentCollapseDiv) {
      parentCollapseDiv.parentElement.children[0].classList.add("active");
      if (parentCollapseDiv.parentElement.closest(".collapse.menu-dropdown")) {
        if (parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling) parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling.classList.add("active");
        if (parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling.closest(".collapse")) {
          parentCollapseDiv.parentElement.closest(".collapse").previousElementSibling.closest(".collapse").previousElementSibling.classList.add("active");
        }
      }
      return false;
    }
    return false;
  }
  updateActive(event) {
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link"));
      this.removeActivation(items);
    }
    this.activateParentDropdown(event.target);
  }
  initActiveMenu() {
    let pathName = window.location.pathname;
    const active = this.findMenuItem(pathName, this.menuItems);
    this.toggleItem(active);
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link"));
      let activeItems = items.filter(x => x.classList.contains("active"));
      this.removeActivation(activeItems);
      let matchingMenuItem = items.find(x => {
        return x.pathname === pathName;
      });
      if (matchingMenuItem) {
        this.activateParentDropdown(matchingMenuItem);
      }
    }
  }
  findMenuItem(pathname, menuItems) {
    for (const menuItem of menuItems) {
      if (menuItem.ruta && menuItem.ruta === pathname) {
        return menuItem;
      }
      if (menuItem.permisoHijoListDto) {
        const foundItem = this.findMenuItem(pathname, menuItem.permisoHijoListDto);
        if (foundItem) {
          return foundItem;
        }
      }
    }
    return null;
  }
  /**
   * @param item menuItem
   */
  hasItems(item) {
    return item.permisoHijoListDto !== undefined ? item.permisoHijoListDto.length > 0 : false;
  }
  /**
   * Toggle the menu bar when having mobile screen
   */
  toggleMobileMenu(event) {
    var sidebarsize = document.documentElement.getAttribute("data-sidebar-size");
    if (sidebarsize == 'sm-hover-active') {
      document.documentElement.setAttribute("data-sidebar-size", 'sm-hover');
    } else {
      document.documentElement.setAttribute("data-sidebar-size", 'sm-hover-active');
    }
  }
  /**
   * SidebarHide modal
   * @param content modal content
   */
  SidebarHide() {
    document.body.classList.remove('vertical-sidebar-enable');
  }
  static {
    this.ɵfac = function SidebarComponent_Factory(t) {
      return new (t || SidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_1__.TokenStorageService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
      type: SidebarComponent,
      selectors: [["app-sidebar"]],
      viewQuery: function SidebarComponent_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.sideMenu = _t.first);
        }
      },
      outputs: {
        mobileMenuButtonClicked: "mobileMenuButtonClicked"
      },
      decls: 23,
      vars: 0,
      consts: [["collapse", "ngbCollapse"], [1, "app-menu", "navbar-menu"], [1, "navbar-brand-box"], ["routerLink", "/", 1, "logo", "logo-dark"], [1, "logo-sm"], ["src", "assets/icons/logos/logo-sm.png", "alt", "", "height", "30"], [1, "logo-lg"], ["src", "assets/icons/logos/logo-dark.png", "alt", "", "height", "65"], ["routerLink", "/", 1, "logo", "logo-light"], ["src", "assets/icons/logos/logo-light.png", "alt", "", "height", "65"], ["type", "button", "id", "vertical-hover", 1, "btn", "btn-sm", "p-0", "fs-20", "header-item", "float-end", "btn-vertical-sm-hover"], [1, "ri-record-circle-line"], ["id", "scrollbar"], [1, "container-fluid"], ["id", "two-column-menu"], [1, "sidebar-menu-scroll", 2, "max-height", "calc(100vh - 150px)"], ["id", "navbar-nav", 1, "metismenu", "list-unstyled", "navbar-nav"], [1, "sidebar-background"], [1, "vertical-overlay", 3, "click"], [1, "menu-title"], ["data-key", "t-menu"], [1, "nav-item"], ["href", "javascript:void(0);", "data-bs-toggle", "collapse", 1, "is-parent", "nav-link", "menu-link", 3, "click", "ngClass"], [1, ""], [3, "class"], [1, "collapse", "menu-dropdown", 3, "ngbCollapseChange", "ngbCollapse"], ["aria-expanded", "false", 1, "nav", "nav-sm", "flex-column"], ["href", "javascript:void(0);", "data-bs-toggle", "collapse", 1, "nav-link", 3, "click"], [1, "collapse", "menu-dropdown", "sub-menu", 3, "ngbCollapseChange", "ngbCollapse"], [1, "collapse", "menu-dropdown", "extra-sub-menu", 3, "ngbCollapseChange", "ngbCollapse"], [1, "nav-link", 3, "click", "routerLink"], ["routerLinkActive", "active", 1, "side-nav-link-ref", "nav-link", "menu-link", 3, "routerLink"], [1, "", 3, "class"]],
      template: function SidebarComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "a", 3)(3, "span", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "img", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "a", 8)(8, "span", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "img", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "span", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "button", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 12)(15, "div", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "ngx-simplebar", 15)(18, "ul", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterCreate"](19, SidebarComponent_For_20_Template, 2, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "div", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SidebarComponent_Template_div_click_22_listener() {
            return ctx.SidebarHide();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](19);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrepeater"](ctx.getSubMenu(ctx.menuItems));
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgClass, _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterLinkActive, simplebar_angular__WEBPACK_IMPORTED_MODULE_6__.SimplebarAngularComponent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbCollapse, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TopbarComponent: () => (/* binding */ TopbarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/services/event.service */ 30944);
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/services/language.service */ 83318);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-cookie-service */ 39213);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/services/auth.service */ 68010);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/services/token-storage.service */ 87413);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 34456);














const _c0 = ["removenotification"];
const _c1 = a0 => ({
  "active": a0
});
function TopbarComponent_For_41_Conditional_0_a_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const menu_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", menu_r2.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](menu_r2.nombreMenu);
  }
}
function TopbarComponent_For_41_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, TopbarComponent_For_41_Conditional_0_a_0_Template, 4, 2, "a", 97);
  }
  if (rf & 2) {
    const menu_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", menu_r2);
  }
}
function TopbarComponent_For_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, TopbarComponent_For_41_Conditional_0_Template, 1, 1, "a", 96);
  }
  if (rf & 2) {
    const menu_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵconditional"](0, menu_r2.ruta && menu_r2.accion === "VER" ? 0 : -1);
  }
}
function TopbarComponent_Conditional_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 48);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", ctx_r2.valueset, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
  }
}
function TopbarComponent_Conditional_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 48);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", ctx_r2.flagvalue, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
  }
}
function TopbarComponent_For_63_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_For_63_Template_a_click_0_listener() {
      const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r4).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r2.setLanguage(item_r5.text, item_r5.lang, item_r5.flag));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "img", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r5 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](3, _c1, ctx_r2.cookieValue === item_r5.lang));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", item_r5.flag, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r5.text);
  }
}
function TopbarComponent_ng_template_88_For_4_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 110)(2, "a", 111)(3, "h6", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 113)(6, "p", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "p", 115)(9, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "i", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", item_r7.img, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r7.title);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r7.desc);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", item_r7.time, "");
  }
}
function TopbarComponent_ng_template_88_For_4_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 117)(1, "span", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 110)(4, "a", 111)(5, "h6", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "p", 115)(8, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "i", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassMapInterpolate1"]("bx ", item_r7.icon, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("", item_r7.desc, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r7.time);
  }
}
function TopbarComponent_ng_template_88_For_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 104)(1, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, TopbarComponent_ng_template_88_For_4_Conditional_2_Template, 12, 4)(3, TopbarComponent_ng_template_88_For_4_Conditional_3_Template, 11, 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 107)(5, "input", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtwoWayListener"]("ngModelChange", function TopbarComponent_ng_template_88_For_4_Template_input_ngModelChange_5_listener($event) {
      const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtwoWayBindingSet"](item_r7.state, $event) || (item_r7.state = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("change", function TopbarComponent_ng_template_88_For_4_Template_input_change_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r2.onCheckboxChange($event, "1"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const item_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵconditional"](2, item_r7.img ? 2 : 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("value", item_r7.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtwoWayProperty"]("ngModel", item_r7.state);
  }
}
function TopbarComponent_ng_template_88_ForEmpty_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 105)(1, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "img", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 122)(4, "h6", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, " Hey! No tienes ninguna notificac\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
}
function TopbarComponent_ng_template_88_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 106)(1, "button", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Ver todas las notificaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](3, "i", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
}
function TopbarComponent_ng_template_88_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 101)(1, "ngx-simplebar", 102)(2, "div", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterCreate"](3, TopbarComponent_ng_template_88_For_4_Template, 6, 3, "div", 104, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterTrackByIndex"], false, TopbarComponent_ng_template_88_ForEmpty_5_Template, 6, 0, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, TopbarComponent_ng_template_88_Conditional_6_Template, 4, 0, "div", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeater"](ctx_r2.allnotifications);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵconditional"](6, (ctx_r2.allnotifications == null ? null : ctx_r2.allnotifications.length) > 0 ? 6 : -1);
  }
}
function TopbarComponent_ng_template_92_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 105)(1, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "img", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 122)(4, "h6", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, " Hey! No tienes ninguna notificac\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
}
function TopbarComponent_span_113_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassMapInterpolate1"]("badge ", ctx_r2.getStatusBadgeClass(), " ms-1 fs-11");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r2.userData.estadoUsuario, " ");
  }
}
function TopbarComponent_ng_template_134_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 126)(1, "div", 127)(2, "button", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_ng_template_134_Template_button_click_2_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](modal_r10.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 129)(4, "div", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "lord-icon", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 132)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8, "Estas seguro ?");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "p", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10, "Estas seguro de quitar esta notificaci\u00F3n ?");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 134)(12, "button", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_ng_template_134_Template_button_click_12_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](modal_r10.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "button", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_ng_template_134_Template_button_click_14_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r9);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r2.notificationDelete());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "Si, eliminar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }
}
class TopbarComponent {
  constructor(document, eventService, languageService, modalService, _cookiesService, translate, authService, router, storage) {
    this.document = document;
    this.eventService = eventService;
    this.languageService = languageService;
    this.modalService = modalService;
    this._cookiesService = _cookiesService;
    this.translate = translate;
    this.authService = authService;
    this.router = router;
    this.storage = storage;
    this.menuItems = [];
    this.avatar = "default-profile1.png";
    this.userFullName = '';
    this.mobileMenuButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.total = 0;
    this.cart_length = 0;
    this.totalNotify = 0;
    this.newNotify = 0;
    this.readNotify = 0;
    this.isDropdownOpen = false;
    this.listLang = [{
      text: 'English',
      flag: 'assets/icons/flags/us.svg',
      lang: 'en'
    }, {
      text: 'Español',
      flag: 'assets/icons/flags/spain.svg',
      lang: 'es'
    }];
    this.checkedValGet = [];
  }
  ngOnInit() {
    this.menuItems = this.storage.getMenu();
    this.userData = this.authService.currentUser();
    this.avatar = this.authService.getAvatar();
    this.userRole = this.authService.getUserRole();
    this.userFullName = this.authService.getUserFullName();
    this.element = document.documentElement;
    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/icons/flags/us.svg';
      }
    } else {
      this.flagvalue = val.map(element => element.flag);
    }
  }
  getUserName() {
    if (!this.userData) return '';
    return this.userData.username || this.userData.userName || '';
  }
  getStatusBadgeClass() {
    const status = this.userData.estadoUsuario.toLowerCase();
    switch (status) {
      case 'activo':
        return 'bg-success';
      case 'pendiente verificación':
        return 'bg-warning';
      case 'inactivo':
        return 'bg-secondary';
      case 'sancionado':
        return 'bg-danger';
      case 'bloqueado':
        return 'bg-dark';
      default:
        return 'bg-info';
    }
  }
  toggleMobileMenu(event) {
    document.querySelector('.hamburger-icon')?.classList.toggle('open');
    event.preventDefault();
    this.mobileMenuButtonClicked.emit();
  }
  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) {
        this.element.mozRequestFullScreen();
      } else if (this.element.webkitRequestFullscreen) {
        this.element.webkitRequestFullscreen();
      } else if (this.element.msRequestFullscreen) {
        this.element.msRequestFullscreen();
      }
    } else {
      if (this.document.exitFullscreen) {
        this.document.exitFullscreen();
      } else if (this.document.mozCancelFullScreen) {
        this.document.mozCancelFullScreen();
      } else if (this.document.webkitExitFullscreen) {
        this.document.webkitExitFullscreen();
      } else if (this.document.msExitFullscreen) {
        this.document.msExitFullscreen();
      }
    }
  }
  openModal(content) {
    this.modalService.open(content, {
      centered: true
    });
  }
  changeMode(mode) {
    this.mode = mode;
    this.eventService.broadcast('changeMode', mode);
    switch (mode) {
      case 'light':
        document.documentElement.setAttribute('data-bs-theme', "light");
        break;
      case 'dark':
        document.documentElement.setAttribute('data-bs-theme', "dark");
        break;
      default:
        document.documentElement.setAttribute('data-bs-theme', "light");
        break;
    }
  }
  setLanguage(text, lang, flag) {
    this.countryName = text;
    this.flagvalue = flag;
    this.cookieValue = lang;
    this.languageService.setLanguage(lang);
  }
  logout() {
    this.authService.logout();
    this.router.navigate(['/auth/login']);
  }
  windowScroll() {
    if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
      document.getElementById("back-to-top").style.display = "block";
      document.getElementById('page-topbar')?.classList.add('topbar-shadow');
    } else {
      document.getElementById("back-to-top").style.display = "none";
      document.getElementById('page-topbar')?.classList.remove('topbar-shadow');
    }
  }
  deleteItem(event, id) {
    var price = event.target.closest('.dropdown-item').querySelector('.item_price').innerHTML;
    var Total_price = this.total - price;
    this.total = Total_price;
    this.cart_length = this.cart_length - 1;
    this.total > 1 ? document.getElementById("empty-cart").style.display = "none" : document.getElementById("empty-cart").style.display = "block";
    document.getElementById('item_' + id)?.remove();
  }
  toggleDropdown(event) {
    event.stopPropagation();
    this.isDropdownOpen = !this.isDropdownOpen;
  }
  Search() {
    const searchOptions = document.getElementById("search-close-options");
    const dropdown = document.getElementById("search-dropdown");
    const input = document.getElementById("search-options");
    const filter = input.value.toUpperCase();
    const inputLength = filter.length;
    if (inputLength > 0) {
      dropdown.classList.add("show");
      searchOptions.classList.remove("d-none");
      const notifyItems = document.getElementsByClassName("notify-item");
      Array.from(notifyItems).forEach(element => {
        const spanText = element.querySelector("span")?.innerText.toLowerCase() || '';
        element.style.display = spanText.includes(filter.toLowerCase()) ? "block" : "none";
      });
    } else {
      dropdown.classList.remove("show");
      searchOptions.classList.add("d-none");
    }
  }
  closeBtn() {
    var searchOptions = document.getElementById("search-close-options");
    var dropdown = document.getElementById("search-dropdown");
    var searchInputReponsive = document.getElementById("search-options");
    dropdown.classList.remove("show");
    searchOptions.classList.add("d-none");
    searchInputReponsive.value = "";
  }
  onCheckboxChange(event, id) {
    this.notifyId = id;
    var result;
    if (id == '1') {
      var checkedVal = [];
      for (var i = 0; i < this.allnotifications.length; i++) {
        if (this.allnotifications[i].state == true) {
          result = this.allnotifications[i].id;
          checkedVal.push(result);
        }
      }
      this.checkedValGet = checkedVal;
    } else {
      var checkedVal = [];
      for (var i = 0; i < this.messages.length; i++) {
        if (this.messages[i].state == true) {
          result = this.messages[i].id;
          checkedVal.push(result);
        }
      }
      this.checkedValGet = checkedVal;
    }
    checkedVal.length > 0 ? document.getElementById("notification-actions").style.display = 'block' : document.getElementById("notification-actions").style.display = 'none';
  }
  notificationDelete() {
    if (this.notifyId == '1') {
      for (var i = 0; i < this.checkedValGet.length; i++) {
        for (var j = 0; j < this.allnotifications.length; j++) {
          if (this.allnotifications[j].id == this.checkedValGet[i]) {
            this.allnotifications.splice(j, 1);
          }
        }
      }
    } else {
      for (var i = 0; i < this.checkedValGet.length; i++) {
        for (var j = 0; j < this.messages.length; j++) {
          if (this.messages[j].id == this.checkedValGet[i]) {
            this.messages.splice(j, 1);
          }
        }
      }
    }
    this.calculatenotification();
    this.modalService.dismissAll();
  }
  calculatenotification() {
    this.totalNotify = 0;
    this.checkedValGet = [];
    this.checkedValGet.length > 0 ? document.getElementById("notification-actions").style.display = 'block' : document.getElementById("notification-actions").style.display = 'none';
    if (this.totalNotify == 0) {
      document.querySelector('.empty-notification-elem')?.classList.remove('d-none');
    }
  }
  static {
    this.ɵfac = function TopbarComponent_Factory(t) {
      return new (t || TopbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_0__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_language_service__WEBPACK_IMPORTED_MODULE_1__.LanguageService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_7__.CookieService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_9__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_3__.TokenStorageService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
      type: TopbarComponent,
      selectors: [["app-topbar"]],
      viewQuery: function TopbarComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx.removenotification = _t.first);
        }
      },
      outputs: {
        mobileMenuButtonClicked: "mobileMenuButtonClicked"
      },
      decls: 136,
      vars: 14,
      consts: [["nav", "ngbNav"], ["removenotification", ""], ["id", "page-topbar", "data-scroll-header", "", 3, "scroll"], [1, "layout-width"], [1, "navbar-header"], [1, "d-flex"], [1, "navbar-brand-box", "horizontal-logo"], ["href", "/", 1, "logo", "logo-dark"], [1, "logo-sm"], ["src", "assets/icons/logos/logo-sm.png ", "alt", "", "height", "22"], [1, "logo-lg"], ["src", "assets/icons/logos/logo-dark.png", "alt", "", "height", "65"], ["href", "/", 1, "logo", "logo-light"], ["src", "assets/icons/logos/logo-sm.png", "alt", "", "height", "22"], ["src", "assets/icons/logos/logo-light.png", "alt", "", "height", "65"], ["type", "button", "id", "topnav-hamburger-icon", 1, "btn", "btn-sm", "px-3", "fs-16", "header-item", "vertical-menu-btn", "topnav-hamburger", "material-shadow-none", 3, "click"], [1, "hamburger-icon"], [1, "app-search", "d-none", "d-md-block"], [1, "position-relative"], ["type", "text", "placeholder", "Buscar...", "autocomplete", "off", "id", "search-options", "value", "", 1, "form-control", 3, "keyup"], [1, "mdi", "mdi-magnify", "search-widget-icon"], ["id", "search-close-options", 1, "mdi", "mdi-close-circle", "search-widget-icon", "search-widget-icon-close", "d-none", 3, "click"], ["id", "search-dropdown", 1, "dropdown-menu", "dropdown-menu-lg"], [2, "max-height", "320px"], [1, "dropdown-header"], [1, "text-overflow", "text-muted", "mb-0", "text-uppercase"], [1, "dropdown-item", "bg-transparent", "text-wrap"], ["href", "/reservations", 1, "btn", "btn-soft-secondary", "btn-sm", "rounded-pill", "me-1"], [1, "mdi", "mdi-magnify", "ms-1"], ["href", "/inicio/taxpayer", 1, "btn", "btn-soft-secondary", "btn-sm", "rounded-pill"], [1, "dropdown-header", "mt-2"], [1, "text-overflow", "text-muted", "mb-1", "text-uppercase"], [1, "text-center", "pt-3", "pb-1"], ["href", "/pages/faqs", 1, "btn", "btn-primary", "btn-sm"], [1, "ri-arrow-right-line", "ms-1"], [1, "d-flex", "align-items-center"], ["ngbDropdown", "", 1, "dropdown", "d-md-none", "topbar-head-dropdown", "header-item"], ["type", "button", "id", "page-header-search-dropdown", "data-bs-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-icon", "btn-topbar", "material-shadow-none", "btn-ghost-secondary", "rounded-circle"], [1, "bx", "bx-search", "fs-22"], ["aria-labelledby", "page-header-search-dropdown", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-lg", "dropdown-menu-end", "p-0"], [1, "p-3"], [1, "form-group", "m-0"], [1, "input-group"], ["type", "text", "placeholder", "Buscar ...", "aria-label", "Recipient's username", 1, "form-control"], ["type", "submit", 1, "btn", "btn-primary"], [1, "mdi", "mdi-magnify"], ["ngbDropdown", "", 1, "dropdown", "ms-1", "topbar-head-dropdown", "header-item"], ["type", "button", "data-bs-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-icon", "btn-topbar", "btn-ghost-secondary", "rounded-circle"], ["alt", "Header Language", "height", "20", 1, "rounded", 3, "src"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], ["href", "javascript:void(0);", "data-lang", "eng", 1, "dropdown-item", "notify-item", "language", "py-2", 3, "ngClass"], [1, "ms-1", "header-item", "d-none", "d-sm-flex"], ["type", "button", "data-toggle", "fullscreen", 1, "btn", "btn-icon", "btn-topbar", "material-shadow-none", "btn-ghost-secondary", "rounded-circle", 3, "click"], [1, "bx", "bx-fullscreen", "fs-22"], ["type", "button", 1, "btn", "btn-icon", "btn-topbar", "material-shadow-none", "btn-ghost-secondary", "rounded-circle", "light-dark-mode"], [1, "bx", "bx-moon", "fs-22", 3, "click"], [1, "bx", "bx-sun", "fs-22", 3, "click"], ["ngbDropdown", "", 1, "dropdown", "topbar-head-dropdown", "ms-1", "header-item", 3, "autoClose"], ["ngbDropdownMenu", "", "aria-labelledby", "page-header-notifications-dropdown", 1, "dropdown-menu", "dropdown-menu-lg", "dropdown-menu-end", "p-0"], [1, "dropdown-head", "bg-secondary", "bg-pattern", "rounded-top"], [1, "row", "align-items-center"], [1, "col"], [1, "m-0", "fs-16", "fw-semibold", "text-white"], [1, "col-auto", "dropdown-tabs"], [1, "badge", "bg-light", "text-body", "fs-13"], [1, "px-2", "pt-2"], ["ngbNav", "", "id", "notificationItemsTab", 1, "nav", "nav-tabs", "dropdown-tabs", "nav-tabs-custom", 3, "activeId"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["id", "notificationItemsTabContent", 1, "tab-content"], [1, "tab-content", "text-muted"], [3, "ngbNavOutlet"], ["id", "notification-actions", 1, "notification-actions"], [1, "d-flex", "text-muted", "justify-content-center"], ["id", "select-content", 1, "text-body", "fw-semibold", "px-1"], ["type", "button", "data-bs-toggle", "modal", "data-bs-target", "#removeNotificationModal", 1, "btn", "btn-link", "link-danger", "p-0", "ms-3", 3, "click"], ["ngbDropdown", "", 1, "dropdown", "ms-sm-3", "header-item", "topbar-user"], ["type", "button", "id", "page-header-user-dropdown", "data-bs-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "material-shadow-none"], ["alt", "Header Avatar", 1, "rounded-circle", "header-profile-user", 3, "src"], [1, "text-start", "ms-xl-2"], [1, "d-none", "d-xl-inline-block", "ms-1", "fw-medium", "user-name-text"], [1, "d-none", "d-xl-block", "ms-1", "fs-12", "user-name-sub-text"], [1, "text-muted"], [3, "class", 4, "ngIf"], ["routerLink", "/profile/profile", 1, "dropdown-item"], [1, "mdi", "mdi-account-circle", "text-muted", "fs-16", "align-middle", "me-1"], [1, "align-middle"], ["routerLink", "/pages/faqs", 1, "dropdown-item"], [1, "mdi", "mdi-lifebuoy", "text-muted", "fs-16", "align-middle", "me-1"], [1, "dropdown-divider"], ["routerLink", "/profile/profile-setting", 1, "dropdown-item"], [1, "mdi", "mdi-cog-outline", "text-muted", "fs-16", "align-middle", "me-1"], ["href", "javascript: void(0);", 1, "dropdown-item", 3, "click"], [1, "mdi", "mdi-logout", "text-muted", "fs-16", "align-middle", "me-1"], ["data-key", "t-logout", 1, "align-middle"], [1, "dropdown-item", "notify-item", 3, "routerLink"], ["class", "dropdown-item notify-item", 3, "routerLink", 4, "ngIf"], [1, "ri-user-settings-line", "align-middle", "fs-18", "text-muted", "me-2"], ["href", "javascript:void(0);", "data-lang", "eng", 1, "dropdown-item", "notify-item", "language", "py-2", 3, "click", "ngClass"], ["alt", "user-image", "height", "18", 1, "me-2", "rounded", 3, "src"], ["id", "all-noti-tab", "role", "tabpanel", 1, "tab-pane", "fade", "show", "active", "py-2", "ps-2"], [2, "max-height", "300px"], [1, "pe-2"], [1, "text-reset", "notification-item", "d-block", "dropdown-item", "position-relative"], ["id", "alerts-tab", "role", "tabpanel", "aria-labelledby", "alerts-tab", 1, "tab-pane", "p-4"], [1, "my-3", "text-center"], [1, "px-2", "fs-15"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "change", "ngModel", "value"], ["alt", "user-pic", 1, "me-3", "rounded-circle", "avatar-xs", 3, "src"], [1, "flex-grow-1"], ["href", "javascript:void(0);", 1, "stretched-link"], [1, "mt-0", "mb-1", "fs-13", "fw-semibold"], [1, "fs-13", "text-muted"], [1, "mb-1"], [1, "mb-0", "fs-11", "fw-medium", "text-uppercase", "text-muted"], [1, "mdi", "mdi-clock-outline"], [1, "avatar-xs", "me-3"], [1, "avatar-title", "bg-info-subtle", "text-info", "rounded-circle", "fs-16"], [1, "mt-0", "mb-2", "lh-base"], [1, "w-25", "w-sm-50", "pt-3", "mx-auto"], ["src", "assets/images/svg/bell.svg", "alt", "user-pic", 1, "img-fluid"], [1, "text-center", "pb-5", "mt-2"], [1, "fs-18", "fw-semibold", "lh-base"], ["type", "button", 1, "btn", "btn-soft-success", "waves-effect", "waves-light"], [1, "ri-arrow-right-line", "align-middle"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "NotificationModalbtn-close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#f7b84b,secondary:#f06548", 2, "width", "100px", "height", "100px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["type", "button", "data-bs-dismiss", "modal", 1, "btn", "w-sm", "btn-light", 3, "click"], ["type", "button", "id", "delete-notification", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function TopbarComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "header", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("scroll", function TopbarComponent_Template_header_scroll_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.windowScroll());
          }, false, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresolveWindow"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 3)(2, "div", 4)(3, "div", 5)(4, "div", 6)(5, "a", 7)(6, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](7, "img", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "img", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "a", 12)(11, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "img", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](14, "img", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "button", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_button_click_15_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.toggleMobileMenu($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "span")(18, "span")(19, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "form", 17)(21, "div", 18)(22, "input", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup", function TopbarComponent_Template_input_keyup_22_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.Search());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](23, "span", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_span_click_24_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.closeBtn());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "div", 22)(26, "ngx-simplebar", 23)(27, "div", 24)(28, "h6", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](29, "Busquedas Recientes");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](30, "div", 26)(31, "a", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](32, " Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](33, "i", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](34, "a", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](35, " Complejos ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](36, "i", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](37, "div", 30)(38, "h6", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](39, "Paginas");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterCreate"](40, TopbarComponent_For_41_Template, 1, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "div", 32)(43, "a", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](44, "Preguntas Frecuentes ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](45, "i", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](46, "div", 35)(47, "div", 36)(48, "button", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](49, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](50, "div", 39)(51, "form", 40)(52, "div", 41)(53, "div", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](54, "input", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](55, "button", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](56, "i", 45);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](57, "div", 46)(58, "button", 47);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](59, TopbarComponent_Conditional_59_Template, 1, 1, "img", 48)(60, TopbarComponent_Conditional_60_Template, 1, 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](61, "div", 49);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterCreate"](62, TopbarComponent_For_63_Template, 4, 5, "a", 50, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](64, "div", 51)(65, "button", 52);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_button_click_65_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.fullscreen());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](66, "i", 53);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](67, "div", 51)(68, "button", 54)(69, "i", 55);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_i_click_69_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.changeMode("dark"));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](70, "i", 56);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_i_click_70_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.changeMode("light"));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](71, "div", 57)(72, "div", 58)(73, "div", 59)(74, "div", 40)(75, "div", 60)(76, "div", 61)(77, "h6", 62);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](78, " Notificaciones ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](79, "div", 63)(80, "span", 64);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](81);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](82, "div", 65)(83, "ul", 66, 0)(85, "li", 67)(86, "a", 68);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](87);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](88, TopbarComponent_ng_template_88_Template, 7, 2, "ng-template", 69);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](89, "li", 67)(90, "a", 68);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](91, " Importante ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](92, TopbarComponent_ng_template_92_Template, 6, 0, "ng-template", 69);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](93, "div", 70)(94, "div", 71);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](95, "div", 72);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](96, "div", 73)(97, "div", 74)(98, "div", 75);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](99);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](100, " Resultado seleccionados ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](101, "button", 76);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_button_click_101_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            const removenotification_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](135);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.openModal(removenotification_r8));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](102, "Quitar");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](103, "div", 77)(104, "button", 78)(105, "span", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](106, "img", 79);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](107, "span", 80)(108, "span", 81);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](109);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](110, "span", 82)(111, "span", 83);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](112);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](113, TopbarComponent_span_113_Template, 2, 4, "span", 84);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](114, "div", 49)(115, "h6", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](116);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](117, "a", 85);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](118, "i", 86);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](119, "span", 87);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](120, "Perfil");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](121, "a", 88);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](122, "i", 89);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](123, "span", 87);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](124, "Ayuda");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](125, "div", 90);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](126, "a", 91);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](127, "i", 92);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](128, "span", 87);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](129, "Configuraciones");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](130, "a", 93);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_130_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx.logout());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](131, "i", 94);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](132, "span", 95);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](133, "Salir");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](134, TopbarComponent_ng_template_134_Template, 16, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          const nav_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](84);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](40);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeater"](ctx.menuItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](19);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵconditional"](59, ctx.flagvalue === undefined ? 59 : 60);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeater"](ctx.listLang);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("autoClose", false);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.allnotifications == null ? null : ctx.allnotifications.length, " Nuevos");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" Todo (", ctx.allnotifications == null ? null : ctx.allnotifications.length, ") ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavOutlet", nav_r11);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.checkedValGet.length);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("src", "assets/icons/users/" + ctx.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.userFullName, " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.userRole);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.userRole === "Contribuyente");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("Bienvenido ", ctx.getUserName(), "!");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbDropdownMenu, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbNavOutlet, simplebar_angular__WEBPACK_IMPORTED_MODULE_10__.SimplebarAngularComponent, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgForm],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TwoColumnSidebarComponent: () => (/* binding */ TwoColumnSidebarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/token-storage.service */ 87413);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);








const _c0 = ["sideMenu"];
function TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_0_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleItem($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("permisoHijoListDto", item_r3.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMap"](item_r3.icono);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 5, item_r3.nombreMenu));
  }
}
function TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_1_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleParentItem($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", item_r3.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("permisoHijoListDto", item_r3.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMap"](item_r3.icono);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 6, item_r3.nombreMenu));
  }
}
function TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_0_Template, 5, 7, "a", 34)(1, TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Conditional_1_Template, 5, 8);
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, ctx_r1.hasItems(item_r3) ? 0 : 1);
  }
}
function TwoColumnSidebarComponent_For_26_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, TwoColumnSidebarComponent_For_26_Conditional_0_Conditional_1_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, !item_r3.permisoPadreDto ? 1 : -1);
  }
}
function TwoColumnSidebarComponent_For_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, TwoColumnSidebarComponent_For_26_Conditional_0_Template, 2, 1, "li");
  }
  if (rf & 2) {
    const item_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !item_r3.isTitle ? 0 : -1);
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subitem_r6.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subitem_r6.badge.text));
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subSubitem_r8.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subSubitem_r8.badge.text));
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_For_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 30)(1, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_For_8_Template_a_click_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](7);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem1_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subSubitem1_r10.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem1_r10.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 3, subSubitem1_r10.nombreMenu), " ");
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleSubItem(subSubitem_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Conditional_3_Template, 3, 6, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 46, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngbCollapseChange", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Template_div_ngbCollapseChange_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](subSubitem_r8.isCollapsed, $event) || (subSubitem_r8.isCollapsed = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ul", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](7, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_For_8_Template, 4, 5, "li", 30, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem_r8.permisoPadreDto)("aria-expanded", !subSubitem_r8.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 5, subSubitem_r8.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, subSubitem_r8.badge ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngbCollapse", subSubitem_r8.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r1.getSubMenu(subSubitem_r8.permisoHijoListDto));
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subSubitem_r8.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subSubitem_r8.badge.text), "");
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_2_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_2_Conditional_3_Template, 3, 6, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subSubitem_r8.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subSubitem_r8.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subSubitem_r8.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, subSubitem_r8.badge ? 3 : -1);
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_1_Template, 9, 7)(2, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Conditional_2_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r8 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, ctx_r1.hasItems(subSubitem_r8) ? 1 : 2);
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleSubItem(subitem_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Conditional_3_Template, 3, 6, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 43, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngbCollapseChange", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Template_div_ngbCollapseChange_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](subitem_r6.isCollapsed, $event) || (subitem_r6.isCollapsed = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ul", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](7, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_For_8_Template, 3, 1, "li", 30, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const item_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-expanded", subitem_r6.isCollapsed)("data-parent", subitem_r6.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 6, subitem_r6.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, subitem_r6.badge ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", item_r12.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngbCollapse", subitem_r6.isCollapsed);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r1.getSubMenu(subitem_r6.permisoHijoListDto));
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMapInterpolate1"]("badge badge-pill ", subitem_r6.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subitem_r6.badge.text), "");
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_2_Template_a_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.updateActive($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_2_Conditional_3_Template, 3, 6, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("routerLink", subitem_r6.ruta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("data-parent", subitem_r6.permisoPadreDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 4, subitem_r6.nombreMenu), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, subitem_r6.badge ? 3 : -1);
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_1_Template, 9, 8)(2, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Conditional_2_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r6 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, ctx_r1.hasItems(subitem_r6) ? 1 : 2);
  }
}
function TwoColumnSidebarComponent_For_39_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](1, TwoColumnSidebarComponent_For_39_Conditional_1_For_2_Template, 3, 1, "li", 30, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r1.getSubMenu(item_r12.permisoHijoListDto));
  }
}
function TwoColumnSidebarComponent_For_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, TwoColumnSidebarComponent_For_39_Conditional_1_Template, 3, 0, "ul", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r12 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, ctx_r1.hasItems(item_r12) ? 1 : -1);
  }
}
class TwoColumnSidebarComponent {
  constructor(router, translate, storage) {
    this.router = router;
    this.translate = translate;
    this.storage = storage;
    this.toggle = true;
    this.menuItems = [];
    this.mobileMenuButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    translate.setDefaultLang('es');
  }
  ngOnInit() {
    this.menuItems = this.storage.getMenu();
    this.router.events.subscribe(event => {
      if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__.NavigationEnd) {
        this.initActiveMenu();
      }
    });
  }
  /***
  * Activate drop down set
  */
  ngAfterViewInit() {
    setTimeout(() => {
      this.initActiveMenu();
    }, 0);
  }
  toggleSubItem(item) {
    this.menuItems.forEach(menuItem => {
      if (menuItem.permisoHijoListDto) {
        menuItem.permisoHijoListDto.forEach(subItem => {
          if (subItem == item) {
            menuItem.isCollapsed = !menuItem.isCollapsed;
            subItem.isCollapsed = !subItem.isCollapsed;
          } else {
            subItem.isCollapsed = true;
          }
          if (subItem.permisoHijoListDto) {
            subItem.permisoHijoListDto.forEach(childitem => {
              if (childitem == item) {
                childitem.isCollapsed = !childitem.isCollapsed;
                subItem.isCollapsed = !subItem.isCollapsed;
                menuItem.isCollapsed = !menuItem.isCollapsed;
              } else {
                childitem.isCollapsed = true;
              }
              if (childitem.permisoHijoListDto) {
                childitem.permisoHijoListDto.forEach(childrenitem => {
                  if (childrenitem == item) {
                    childrenitem.isCollapsed = false;
                    childitem.isCollapsed = false;
                    subItem.isCollapsed = false;
                    menuItem.isCollapsed = false;
                  } else {
                    childrenitem.isCollapsed = true;
                  }
                });
              }
            });
          }
        });
      }
    });
  }
  toggleExtraSubItem(event) {
    let isCurrentMenuId = event.target.closest('a.nav-link');
    let isMenu = isCurrentMenuId.nextElementSibling;
    if (isMenu.classList.contains("show")) {
      isMenu.classList.remove("show");
      isCurrentMenuId.setAttribute("aria-expanded", "false");
    } else {
      let dropDowns = Array.from(document.querySelectorAll('.extra-sub-menu'));
      dropDowns.forEach(node => {
        node.classList.remove('show');
      });
      let subDropDowns = Array.from(document.querySelectorAll('.menu-dropdown .nav-link'));
      subDropDowns.forEach(submenu => {
        submenu.setAttribute('aria-expanded', "false");
      });
      if (event.target && event.target.nextElementSibling) {
        isCurrentMenuId.setAttribute("aria-expanded", "true");
        event.target.nextElementSibling.classList.toggle("show");
      }
    }
  }
  updateActive(event) {
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link.active"));
      this.removeActivation(items);
    }
    this.activateParentDropdown(event.target);
  }
  // Click wise Parent active class add
  toggleParentItem(event) {
    let isCurrentMenuId = event.target.getAttribute('permisoHijoListDto');
    let isMenu = document.getElementById(isCurrentMenuId);
    let dropDowns = Array.from(document.querySelectorAll('#navbar-nav .show'));
    dropDowns.forEach(node => {
      node.classList.remove('show');
    });
    isMenu ? isMenu.classList.add('show') : null;
    const ul = document.getElementById("two-column-menu");
    if (ul) {
      const iconItems = Array.from(ul.getElementsByTagName("a"));
      let activeIconItems = iconItems.filter(x => x.classList.contains("active"));
      activeIconItems.forEach(item => {
        item.classList.remove("active");
      });
    }
    event.target.classList.add("active");
    document.body.classList.add('twocolumn-panel');
  }
  toggleItem(event) {
    let isCurrentMenuId = event.target.getAttribute('permisoHijoListDto');
    let isMenu = document.getElementById(isCurrentMenuId);
    let dropDowns = Array.from(document.querySelectorAll('#navbar-nav .show'));
    dropDowns.forEach(node => {
      node.classList.remove('show');
    });
    isMenu ? isMenu.classList.add('show') : null;
    const ul = document.getElementById("two-column-menu");
    if (ul) {
      const iconItems = Array.from(ul.getElementsByTagName("a"));
      let activeIconItems = iconItems.filter(x => x.classList.contains("active"));
      activeIconItems.forEach(item => {
        item.classList.remove("active");
      });
    }
    event.target.classList.add("active");
    document.body.classList.remove('twocolumn-panel');
  }
  // remove active items of two-column-menu
  removeActivation(items) {
    items.forEach(item => {
      if (item.classList.contains("menu-link")) {
        if (!item.classList.contains("active")) {
          item.setAttribute("aria-expanded", false);
        }
        item.nextElementSibling.classList.remove("show");
      }
      if (item.classList.contains("nav-link")) {
        if (item.nextElementSibling) {
          item.nextElementSibling.classList.remove("show");
        }
        if (item.parentElement) {
          item.parentElement.closest(".isCollapsed")?.classList.remove("show");
        }
        item.setAttribute("aria-expanded", false);
      }
      item.classList.remove("active");
    });
  }
  activateIconSidebarActive(id) {
    var menu = document.querySelector("#two-column-menu .simplebar-content-wrapper a[permisoHijoListDto='" + id + "'].nav-icon");
    if (menu !== null) {
      menu.classList.add("active");
    }
  }
  activateParentDropdown(item) {
    item.classList.add("active");
    let parentCollapseDiv = item.closest(".collapsed.menu-dropdown");
    if (parentCollapseDiv) {
      // to set aria expand true remaining
      parentCollapseDiv.classList.add("show");
      parentCollapseDiv.parentElement.children[0].classList.add("active");
      parentCollapseDiv.parentElement.children[0].setAttribute("aria-expanded", "true");
      if (parentCollapseDiv.parentElement.closest(".collapsed.menu-dropdown")) {
        parentCollapseDiv.parentElement.closest(".collapsed").classList.add("show");
        if (parentCollapseDiv.parentElement.closest(".collapsed").previousElementSibling) parentCollapseDiv.parentElement.closest(".collapsed").previousElementSibling.classList.add("active");
      }
      this.activateIconSidebarActive(parentCollapseDiv.getAttribute("id"));
      return false;
    }
    return false;
  }
  initActiveMenu() {
    const pathName = window.location.pathname;
    // Active Main Single Menu
    const mainItems = Array.from(document.querySelectorAll(".twocolumn-iconview li a"));
    let matchingMainMenuItem = mainItems.find(x => {
      return x.pathname === pathName;
    });
    if (matchingMainMenuItem) {
      this.activateParentDropdown(matchingMainMenuItem);
    }
    const ul = document.getElementById("navbar-nav");
    if (ul) {
      const items = Array.from(ul.querySelectorAll("a.nav-link"));
      let activeItems = items.filter(x => x.classList.contains("active"));
      this.removeActivation(activeItems);
      let matchingMenuItem = items.find(x => {
        return x.pathname === pathName;
      });
      if (matchingMenuItem) {
        this.activateParentDropdown(matchingMenuItem);
      } else {
        var id = pathName.replace("/", "");
        if (id) document.body.classList.add('twocolumn-panel');
        this.activateIconSidebarActive(id);
      }
    }
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.permisoHijoListDto !== undefined ? item.permisoHijoListDto.length > 0 : false;
  }
  /**
    * SidebarHide modal
    * @param content modal content
    */
  SidebarHide() {
    document.body.classList.remove('vertical-sidebar-enable');
  }
  getSubMenu(menuItems) {
    const commonItems = menuItems.filter(item1 => this.menuItems.some(item2 => item1.nombreMenu === item2.nombreMenu));
    const uniqueMenuItemsMap = commonItems.reduce((map, item) => {
      if (!map.has(item.nombreMenu)) {
        map.set(item.nombreMenu, item);
      }
      return map;
    }, new Map());
    return Array.from(uniqueMenuItemsMap.values());
  }
  static {
    this.ɵfac = function TwoColumnSidebarComponent_Factory(t) {
      return new (t || TwoColumnSidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_0__.TokenStorageService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: TwoColumnSidebarComponent,
      selectors: [["app-two-column-sidebar"]],
      viewQuery: function TwoColumnSidebarComponent_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.sideMenu = _t.first);
        }
      },
      outputs: {
        mobileMenuButtonClicked: "mobileMenuButtonClicked"
      },
      decls: 43,
      vars: 0,
      consts: [["collapse", "ngbCollapse"], ["collapsed", "ngbCollapse"], [1, "app-menu", "navbar-menu"], [1, "navbar-brand-box"], ["href", "/", 1, "logo", "logo-dark"], [1, "logo-sm"], ["src", "assets/icons/logos/logo-sm.png ", "alt", "", "height", "22"], [1, "logo-lg"], ["src", "assets/icons/logos/logo-dark.png", "alt", "", "height", "65"], ["href", "/", 1, "logo", "logo-light"], ["src", "assets/icons/logos/logo-sm.png", "alt", "", "height", "22"], ["src", "assets/icons/logos/logo-light.png", "alt", "", "height", "65"], ["type", "button", "id", "vertical-hover", 1, "btn", "btn-sm", "p-0", "fs-20", "header-item", "float-end", "btn-vertical-sm-hover"], [1, "ri-record-circle-line"], ["id", "scrollbar"], [1, "container-fluid"], ["id", "two-column-menu"], ["data-simplebar", "init", 1, "twocolumn-iconview"], [1, "simplebar-wrapper", 2, "margin", "0px"], [1, "simplebar-mask"], [1, "simplebar-offset", 2, "right", "0px", "bottom", "0px"], ["tabindex", "0", "role", "region", "aria-label", "scrollable content", 1, "simplebar-content-wrapper", 2, "height", "100%", "overflow", "hidden scroll"], [1, "simplebar-content", 2, "padding", "0px"], ["routerLink", "/", 1, "logo"], ["id", "navbar-nav", "data-simplebar", "init", 1, "navbar-nav"], [1, "simplebar-height-auto-observer-wrapper"], [1, "simplebar-height-auto-observer"], [1, "simplebar-content-wrapper", 2, "max-height", "100vh"], [1, "menu-title"], ["data-key", "t-menu"], [1, "nav-item"], [1, "simplebar-placeholder", 2, "width", "auto", "height", "183px"], [1, "sidebar-background"], [1, "vertical-overlay", 3, "click"], ["href", "javascript:void(0);", 1, "nav-icon"], ["href", "javascript:void(0);", 1, "nav-icon", 3, "click"], [1, ""], ["data-key", "t-dashboards", 1, "d-none"], [1, "nav-icon", 3, "click", "routerLink"], ["data-key", "t-widget", 1, "d-none"], ["aria-expanded", "false", 1, "nav", "nav-sm", "flex-column"], ["data-bs-toggle", "collapsed", "href", "javascript:void(0);", 1, "nav-link", 3, "click"], [3, "class"], [1, "collapse", "menu-dropdown", "sub-menu", 3, "ngbCollapseChange", "ngbCollapse", "id"], [1, "nav", "nav-sm", "flex-column"], ["href", "javascript:void(0);", "data-bs-toggle", "collapsed", 1, "nav-link", 3, "click"], [1, "collapse", "menu-dropdown", "extra-sub-menu", 3, "ngbCollapseChange", "ngbCollapse"], [1, "nav-link", 3, "click", "routerLink"]],
      template: function TwoColumnSidebarComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2)(1, "div", 3)(2, "a", 4)(3, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "img", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "a", 9)(8, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "img", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 14)(15, "div", 15)(16, "div", 16)(17, "ul", 17)(18, "div", 18)(19, "div", 19)(20, "div", 20)(21, "div", 21)(22, "div", 22)(23, "a", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "img", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](25, TwoColumnSidebarComponent_For_26_Template, 1, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ul", 24)(28, "div", 18)(29, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](30, "div", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 19)(32, "div", 20)(33, "ngx-simplebar", 27)(34, "div", 22)(35, "li", 28)(36, "span", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "Menu");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](38, TwoColumnSidebarComponent_For_39_Template, 2, 1, "li", 30, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "div", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](41, "div", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TwoColumnSidebarComponent_Template_div_click_42_listener() {
            return ctx.SidebarHide();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](25);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx.getSubMenu(ctx.menuItems));
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx.getSubMenu(ctx.menuItems));
        }
      },
      dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterLink, simplebar_angular__WEBPACK_IMPORTED_MODULE_4__.SimplebarAngularComponent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbCollapse, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 70188:
/*!************************************************************!*\
  !*** ./src/app/layouts/two-column/two-column.component.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TwoColumnComponent: () => (/* binding */ TwoColumnComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/services/event.service */ 30944);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../topbar/topbar.component */ 56414);
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../sidebar/sidebar.component */ 76072);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../footer/footer.component */ 17856);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../rightsidebar/rightsidebar.component */ 56730);
/* harmony import */ var _two_column_sidebar_two_column_sidebar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../two-column-sidebar/two-column-sidebar.component */ 93178);








function TwoColumnComponent_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "app-sidebar");
  }
}
function TwoColumnComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "app-two-column-sidebar");
  }
}
/**
 * TwoColumnComponent
 */
class TwoColumnComponent {
  constructor(eventService) {
    this.eventService = eventService;
    this.isCondensed = false;
  }
  ngOnInit() {
    window.addEventListener('resize', () => {
      if (document.documentElement.getAttribute('data-layout') == "twocolumn") {
        if (document.documentElement.clientWidth <= 767) {
          this.eventService.broadcast('changeLayout', 'vertical');
          document.documentElement.setAttribute('data-layout', 'vertical');
          document.body.classList.add('twocolumn-panel');
        } else {
          this.eventService.broadcast('changeLayout', 'twocolumn');
          document.documentElement.setAttribute('data-layout', 'twocolumn');
          document.body.classList.remove('twocolumn-panel');
          document.getElementById('side-bar')?.classList.add('d-none');
        }
      } else {
        if (document.body.classList.contains('twocolumn-panel')) {
          if (document.documentElement.clientWidth <= 767) {
            this.eventService.broadcast('changeLayout', 'vertical');
            document.documentElement.setAttribute('data-layout', 'vertical');
          } else {
            this.eventService.broadcast('changeLayout', 'twocolumn');
            document.documentElement.setAttribute('data-layout', 'twocolumn');
            document.body.classList.remove('twocolumn-panel');
            document.getElementById('side-bar')?.classList.add('d-none');
          }
        }
      }
    });
  }
  /**
   * On mobile toggle button clicked
   */
  onToggleMobileMenu() {
    if (document.documentElement.clientWidth <= 767) {
      document.body.classList.toggle('vertical-sidebar-enable');
      document.getElementById('side-bar')?.classList.remove('d-none');
    } else {
      document.body.classList.toggle('twocolumn-panel');
      document.getElementById('side-bar')?.classList.add('d-none');
    }
  }
  /**
   * on settings button clicked from topbar
   */
  onSettingsButtonClicked() {
    document.body.classList.toggle('right-bar-enabled');
    const rightBar = document.getElementById('theme-settings-offcanvas');
    if (rightBar != null) {
      rightBar.classList.toggle('show');
      rightBar.setAttribute('style', "visibility: visible;");
    }
  }
  isTwoColumnLayoutRequested() {
    return 'twocolumn' === document.documentElement.getAttribute('data-layout');
  }
  issemiboxLayoutRequested() {
    return 'semibox' === document.documentElement.getAttribute('data-layout');
  }
  onResize(event) {
    if (document.body.getAttribute('layout') == "twocolumn") {
      if (event.target.innerWidth <= 767) {
        this.eventService.broadcast('changeLayout', 'vertical');
      } else {
        this.eventService.broadcast('changeLayout', 'twocolumn');
        document.body.classList.remove('twocolumn-panel');
        document.body.classList.remove('vertical-sidebar-enable');
      }
    }
  }
  static {
    this.ɵfac = function TwoColumnComponent_Factory(t) {
      return new (t || TwoColumnComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_0__.EventService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
      type: TwoColumnComponent,
      selectors: [["app-two-column"]],
      decls: 11,
      vars: 2,
      consts: [["id", "layout-wrapper", 3, "resize"], [3, "mobileMenuButtonClicked"], ["id", "side-bar", 1, "d-none"], [1, "main-content"], [1, "page-content"], [1, "container-fluid"], [3, "settingsButtonClicked"]],
      template: function TwoColumnComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("resize", function TwoColumnComponent_Template_div_resize_0_listener($event) {
            return ctx.onResize($event);
          }, false, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresolveWindow"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "app-topbar", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("mobileMenuButtonClicked", function TwoColumnComponent_Template_app_topbar_mobileMenuButtonClicked_1_listener() {
            return ctx.onToggleMobileMenu();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, TwoColumnComponent_Conditional_2_Template, 1, 0, "app-sidebar")(3, TwoColumnComponent_Conditional_3_Template, 1, 0, "app-two-column-sidebar");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "app-sidebar", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 3)(6, "div", 4)(7, "div", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](8, "router-outlet");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](9, "app-footer");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "app-rightsidebar", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("settingsButtonClicked", function TwoColumnComponent_Template_app_rightsidebar_settingsButtonClicked_10_listener() {
            return ctx.onSettingsButtonClicked();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](2, ctx.issemiboxLayoutRequested() ? 2 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](3, ctx.isTwoColumnLayoutRequested() ? 3 : -1);
        }
      },
      dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterOutlet, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_1__.TopbarComponent, _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_2__.SidebarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_3__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_4__.RightsidebarComponent, _two_column_sidebar_two_column_sidebar_component__WEBPACK_IMPORTED_MODULE_5__.TwoColumnSidebarComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__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_6__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/store/layouts/layout-selector */ 84784);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/services/event.service */ 30944);
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../topbar/topbar.component */ 56414);
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../sidebar/sidebar.component */ 76072);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../footer/footer.component */ 17856);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rightsidebar/rightsidebar.component */ 56730);










class VerticalComponent {
  constructor(eventService, router, activatedRoute, store) {
    this.eventService = eventService;
    this.router = router;
    this.activatedRoute = activatedRoute;
    this.store = store;
    this.isCondensed = false;
  }
  ngOnInit() {
    this.router.events.subscribe(event => {
      if (document.documentElement.getAttribute('data-preloader') == 'enable') {
        if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_6__.NavigationEnd) {
          // Update the attribute state based on the current route or any other conditions
          if (event.url !== '/disabled-route') {
            document.getElementById("preloader").style.opacity = "1";
            document.getElementById("preloader").style.visibility = "";
            setTimeout(() => {
              document.getElementById("preloader").style.opacity = "0";
              document.getElementById("preloader").style.visibility = "hidden";
            }, 1000);
          } else {
            document.getElementById("preloader").style.opacity = "0";
            document.getElementById("preloader").style.visibility = "hidden";
          }
        }
      }
    });
    this.handlePreloader(this.activatedRoute.snapshot.routeConfig?.path);
    if (document.documentElement.getAttribute('data-sidebar-size') == 'lg') {
      this.store.select(src_app_store_layouts_layout_selector__WEBPACK_IMPORTED_MODULE_0__.getSidebarSize).subscribe(size => {
        this.getsize = size;
      });
      window.addEventListener('resize', () => {
        var self = this;
        if (document.documentElement.clientWidth <= 767) {
          document.documentElement.setAttribute('data-sidebar-size', '');
          document.querySelector('.hamburger-icon')?.classList.add('open');
        } else if (document.documentElement.clientWidth <= 1024) {
          document.documentElement.setAttribute('data-sidebar-size', 'sm');
          document.querySelector('.hamburger-icon')?.classList.add('open');
        } else if (document.documentElement.clientWidth >= 1024) {
          if (document.documentElement.getAttribute('data-layout-width') == 'fluid') {
            document.documentElement.setAttribute('data-sidebar-size', self.getsize);
            document.querySelector('.hamburger-icon')?.classList.remove('open');
          }
        }
      });
    }
  }
  handlePreloader(route) {
    if (route !== '/disabled-route') {
      document.getElementById("preloader").style.opacity = "1";
      document.getElementById("preloader").style.visibility = "";
      setTimeout(() => {
        document.getElementById("preloader").style.opacity = "0";
        document.getElementById("preloader").style.visibility = "hidden";
      }, 1000);
    } else {
      document.getElementById("preloader").style.opacity = "0";
      document.getElementById("preloader").style.visibility = "hidden";
    }
  }
  /**
   * On mobile toggle button clicked
   */
  onToggleMobileMenu() {
    const currentSIdebarSize = document.documentElement.getAttribute("data-sidebar-size");
    if (document.documentElement.clientWidth >= 767) {
      if (currentSIdebarSize == null) {
        document.documentElement.getAttribute('data-sidebar-size') == null || document.documentElement.getAttribute('data-sidebar-size') == "lg" ? document.documentElement.setAttribute('data-sidebar-size', 'sm') : document.documentElement.setAttribute('data-sidebar-size', 'lg');
      } else if (currentSIdebarSize == "md") {
        document.documentElement.getAttribute('data-sidebar-size') == "md" ? document.documentElement.setAttribute('data-sidebar-size', 'sm') : document.documentElement.setAttribute('data-sidebar-size', 'md');
      } else {
        document.documentElement.getAttribute('data-sidebar-size') == "sm" ? document.documentElement.setAttribute('data-sidebar-size', 'lg') : document.documentElement.setAttribute('data-sidebar-size', 'sm');
      }
    }
    if (document.documentElement.clientWidth <= 767) {
      document.body.classList.toggle('vertical-sidebar-enable');
    }
    this.isCondensed = !this.isCondensed;
  }
  /**
   * on settings button clicked from topbar
   */
  onSettingsButtonClicked() {
    document.body.classList.toggle('right-bar-enabled');
    const rightBar = document.getElementById('theme-settings-offcanvas');
    if (rightBar != null) {
      rightBar.classList.toggle('show');
      rightBar.setAttribute('style', "visibility: visible;");
    }
  }
  onResize(event) {
    if (document.body.getAttribute('layout') == "twocolumn") {
      if (event.target.innerWidth <= 767) {
        this.eventService.broadcast('changeLayout', 'vertical');
      } else {
        this.eventService.broadcast('changeLayout', 'twocolumn');
        document.body.classList.remove('twocolumn-panel');
        document.body.classList.remove('vertical-sidebar-enable');
      }
    }
  }
  static {
    this.ɵfac = function VerticalComponent_Factory(t) {
      return new (t || VerticalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_1__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_8__.Store));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
      type: VerticalComponent,
      selectors: [["app-vertical"]],
      decls: 9,
      vars: 0,
      consts: [["id", "layout-wrapper", 3, "resize"], [3, "mobileMenuButtonClicked"], [1, "main-content"], [1, "page-content"], [1, "container-fluid"], [3, "settingsButtonClicked"]],
      template: function VerticalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("resize", function VerticalComponent_Template_div_resize_0_listener($event) {
            return ctx.onResize($event);
          }, false, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresolveWindow"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-topbar", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("mobileMenuButtonClicked", function VerticalComponent_Template_app_topbar_mobileMenuButtonClicked_1_listener() {
            return ctx.onToggleMobileMenu();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "app-sidebar");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 2)(4, "div", 3)(5, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "router-outlet");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](7, "app-footer");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "app-rightsidebar", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("settingsButtonClicked", function VerticalComponent_Template_app_rightsidebar_settingsButtonClicked_8_listener() {
            return ctx.onSettingsButtonClicked();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        }
      },
      dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterOutlet, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_2__.TopbarComponent, _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_3__.SidebarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_4__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_5__.RightsidebarComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 62239:
/*!**********************************************************************!*\
  !*** ./src/app/pages/account/password-reset/pass-reset.component.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PassResetComponent: () => (/* binding */ PassResetComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_public_account_auth_pass_create_must_match__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/public/account/auth/pass-create/must-match */ 84477);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api-users/users.service */ 81394);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/token-storage.service */ 87413);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);













const _c0 = a0 => ({
  "is-invalid": a0
});
const _c1 = (a0, a1) => ({
  "ri-eye-off-line": a0,
  "ri-eye-line": a1
});
function PassResetComponent_Conditional_18_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Escriba su contrase\u00F1a actual");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_18_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "La contrase\u00F1a es incorrecta");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, PassResetComponent_Conditional_18_span_1_Template, 2, 0, "span", 21)(2, PassResetComponent_Conditional_18_span_2_Template, 2, 0, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.f["currentPassword"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.f["currentPassword"].errors["invalidPassword"]);
  }
}
function PassResetComponent_Conditional_26_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Escriba su nueva contrase\u00F1a");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_26_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "La contrase\u00F1a debe tener al menos 6 caracteres");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, PassResetComponent_Conditional_26_Conditional_1_Template, 2, 0, "span")(2, PassResetComponent_Conditional_26_Conditional_2_Template, 2, 0, "span");
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, ctx_r0.f["password"].errors["required"] ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](2, ctx_r0.f["password"].errors["minlength"] ? 2 : -1);
  }
}
function PassResetComponent_Conditional_34_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Confirme su contrase\u00F1a");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_34_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Las contrase\u00F1as no coinciden");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_Conditional_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, PassResetComponent_Conditional_34_span_1_Template, 2, 0, "span", 21)(2, PassResetComponent_Conditional_34_span_2_Template, 2, 0, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.f["cpassword"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.f["cpassword"].errors["mustMatch"]);
  }
}
function PassResetComponent_span_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Cambiar Contrase\u00F1a ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function PassResetComponent_span_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Procesando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
class PassResetComponent {
  constructor(employeeService, userService, storageService, formBuilder, modalService, authService) {
    this.employeeService = employeeService;
    this.userService = userService;
    this.storageService = storageService;
    this.formBuilder = formBuilder;
    this.modalService = modalService;
    this.authService = authService;
    this.submitted = false;
    /**
     * Password Hide/Show
     */
    this.oldPasswordField = false;
    this.passwordField = false;
    this.confirmField = false;
  }
  ngOnInit() {
    if (this.userData) {
      this.initForm();
    }
  }
  initForm() {
    this.passwordForm = this.formBuilder.group({
      user: [this.userRole],
      currentPassword: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required], [this.validateCurrentPassword.bind(this)]],
      password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.minLength(6)]],
      cpassword: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required]]
    }, {
      validator: (0,src_app_public_account_auth_pass_create_must_match__WEBPACK_IMPORTED_MODULE_2__.MustMatch)('password', 'cpassword')
    });
  }
  get f() {
    return this.passwordForm.controls;
  }
  validateCurrentPassword(control) {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise(/*#__PURE__*/function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resolve) {
          setTimeout(/*#__PURE__*/(0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
            if (!control.value) {
              resolve(null);
            }
            if (!_this.userData) {
              resolve(null);
            }
            if (_this.userRole === 'Contribuyente') {
              if (_this.userData.password !== control.value) {
                resolve({
                  invalidPassword: true
                });
              } else {
                resolve(null);
              }
            } else {
              const valid = yield _this.loginEmpleado(_this.userData.username, control.value);
              if (!valid) {
                resolve({
                  invalidPassword: true
                });
              } else {
                resolve(null);
              }
            }
          }), 500);
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    })();
  }
  changePassword() {
    this.submitted = true;
    if (this.passwordForm.valid) {
      const newPassword = this.f['password'].value;
      if (this.userRole === 'Contribuyente') {
        this.updateContribuyentePassword(newPassword);
      } else {
        this.updateEmployeePassword(newPassword);
      }
    } else {
      this.notify('error', 'Formulario Inválido!');
      this.markAllFieldsAsTouched();
    }
  }
  /**
   * Update Contribuyente Password
   */
  updateContribuyentePassword(newPassword) {
    const updateData = {
      ...this.userData,
      password: newPassword
    };
    this.userService.update(updateData).subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.notify('success', "Su contraseña se ha restablecido correctamente.");
          this.updateLocalStoragePassword(newPassword);
          this.initForm();
          this.modalService.dismissAll();
        } else {
          this.notify('error', response.payload || 'Error al actualizar la contraseña');
        }
      },
      error: err => {
        this.notify('error', 'Ocurrió un error inesperado al cambiar la contraseña');
      }
    });
  }
  updateLocalStoragePassword(newPassword) {
    try {
      const currentUser = this.authService.currentUser();
      if (currentUser && currentUser.uuid === this.userData.uuid) {
        const updatedUser = {
          ...currentUser,
          password: newPassword
        };
        this.storageService.saveUserData(updatedUser);
      }
    } catch (error) {
      console.warn('Could not update local storage password:', error);
    }
  }
  updateEmployeePassword(password) {
    this.employeeService.changePassword(this.userData.uuid, password).subscribe(response => {
      this.notify('success', 'La contraseña fue actualizada exitosamente');
      this.initForm();
      this.modalService.dismissAll();
    }, error => {
      this.notify('error', 'Ocurrió un error inesperado al cambiar la contraseña');
    });
  }
  /**
   * API Requests
   */
  loginEmpleado(username, password) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise((resolve, reject) => {
        _this2.employeeService.loginByUsername(username, password).subscribe({
          next: data => {
            _this2.storageService.saveToken(data.token);
            resolve(data);
          },
          error: error => {
            resolve(null);
          }
        });
      });
    })();
  }
  toggleOldpasswordField() {
    this.oldPasswordField = !this.oldPasswordField;
  }
  togglepasswordField() {
    this.passwordField = !this.passwordField;
  }
  toggleconfirmField() {
    this.confirmField = !this.confirmField;
  }
  /**
   * Utility Methods
   */
  markAllFieldsAsTouched() {
    Object.keys(this.passwordForm.controls).forEach(key => {
      const control = this.passwordForm.get(key);
      control?.markAsTouched();
    });
  }
  notify(type, message) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 2000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    });
  }
  onCloseModal() {
    this.passwordForm.reset();
    this.modalService.dismissAll();
  }
  static {
    this.ɵfac = function PassResetComponent_Factory(t) {
      return new (t || PassResetComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_3__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_4__.ContribuyentesService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_token_storage_service__WEBPACK_IMPORTED_MODULE_5__.TokenStorageService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
      type: PassResetComponent,
      selectors: [["app-pass-reset"]],
      inputs: {
        userRole: "userRole",
        userData: "userData"
      },
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵProvidersFeature"]([_angular_common__WEBPACK_IMPORTED_MODULE_10__.DecimalPipe])],
      decls: 42,
      vars: 31,
      consts: [[1, "modal-content"], [1, "modal-header"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "text-center"], [1, "m-4", "p-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [3, "ngSubmit", "formGroup"], [1, "form-group", "row", "m-2"], [1, "col-lg-5", "col-form-label"], [1, "col-lg-7", "position-relative"], ["placeholder", "Ingrese su contrase\u00F1a actual", "formControlName", "currentPassword", 1, "form-control", "pe-5", 3, "type", "ngClass"], ["type", "button", 1, "btn", "btn-link", "position-absolute", "end-0", "top-0", "text-decoration-none", "text-muted", 3, "click"], [1, "ri-eye-fill", "align-middle", 3, "ngClass"], [1, "invalid-feedback"], ["placeholder", "Ingrese nueva contrase\u00F1a", "formControlName", "password", 1, "form-control", "pe-5", 3, "type", "ngClass"], ["placeholder", "Confirme su nueva contrase\u00F1a", "formControlName", "cpassword", 1, "form-control", "pe-5", 3, "type", "ngClass"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["type", "button", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "submit", 1, "btn", "btn-primary", 3, "disabled"], [4, "ngIf"], [1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function PassResetComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "button", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function PassResetComponent_Template_button_click_2_listener() {
            return ctx.onCloseModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "h4");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](7, "Cambio de Contrase\u00F1a");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9, "Complete el formulario para cambiar su contrase\u00F1a");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "form", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngSubmit", function PassResetComponent_Template_form_ngSubmit_10_listener() {
            return ctx.changePassword();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "div", 8)(12, "label", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](13, "Contrase\u00F1a Actual: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](14, "div", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](15, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function PassResetComponent_Template_button_click_16_listener() {
            return ctx.toggleOldpasswordField();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](17, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, PassResetComponent_Conditional_18_Template, 3, 2, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](19, "div", 8)(20, "label", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](21, "Nueva Contrase\u00F1a: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](22, "div", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](23, "input", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function PassResetComponent_Template_button_click_24_listener() {
            return ctx.togglepasswordField();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](25, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](26, PassResetComponent_Conditional_26_Template, 3, 2, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](27, "div", 8)(28, "label", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](29, "Confirmar Contrase\u00F1a: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](30, "div", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](31, "input", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](32, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function PassResetComponent_Template_button_click_32_listener() {
            return ctx.toggleconfirmField();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](33, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](34, PassResetComponent_Conditional_34_Template, 3, 2, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](35, "div", 17)(36, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function PassResetComponent_Template_button_click_36_listener() {
            return ctx.onCloseModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](37, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](38, " Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](39, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](40, PassResetComponent_span_40_Template, 2, 0, "span", 21)(41, PassResetComponent_span_41_Template, 3, 0, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.passwordForm);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("type", ctx.oldPasswordField ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](16, _c0, ctx.submitted && ctx.f["currentPassword"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](18, _c1, !ctx.oldPasswordField, ctx.oldPasswordField));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](18, ctx.submitted && ctx.f["currentPassword"].errors ? 18 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("type", ctx.passwordField ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](21, _c0, ctx.submitted && ctx.f["password"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](23, _c1, !ctx.passwordField, ctx.passwordField));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](26, ctx.submitted && ctx.f["password"].errors ? 26 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("type", ctx.confirmField ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](26, _c0, ctx.submitted && ctx.f["cpassword"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](28, _c1, !ctx.confirmField, ctx.confirmField));
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](34, ctx.submitted && ctx.f["cpassword"].errors ? 34 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx.passwordForm.invalid || ctx.passwordForm.pending);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.submitted);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 42155:
/*!************************************************************!*\
  !*** ./src/app/pages/account/profile/profile.component.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ProfileComponent: () => (/* binding */ ProfileComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var _password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../password-reset/pass-reset.component */ 62239);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);







function ProfileComponent_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _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__["ɵɵtextInterpolate1"](" ", ctx_r1.userContribuyente.nombre, " ");
  }
}
function ProfileComponent_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _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__["ɵɵtextInterpolate1"](" ", ctx_r1.userData.designacion.personaDto.fullName || ctx_r1.userData.designacion.personaDto.nombre + " " + ctx_r1.userData.designacion.personaDto.apPaterno + " " + ctx_r1.userData.designacion.personaDto.apMaterno, " ");
  }
}
function ProfileComponent_span_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _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__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.direccion);
  }
}
function ProfileComponent_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _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__["ɵɵtextInterpolate"](ctx_r1.userData.designacion.personaDto.direccion);
  }
}
function ProfileComponent_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.userEmployee.complejoDto.nombre, " ");
  }
}
function ProfileComponent_ng_template_38_ng_template_34_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "tr")(2, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Nombre :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "tr")(7, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "Tipo :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "tr")(12, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Documento :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "tr")(17, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "NIT :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "tr")(22, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23, "Tel\u00E9fono :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](24, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "tr")(27, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "E-mail :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "tr")(32, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Direcci\u00F3n :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "tr")(37, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](38, "Estado RUAT :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](40);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.tipoContribuyente === "NA" ? "Natural" : "Jur\u00EDdica");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate3"]("", ctx_r1.userContribuyente.tipoDocumento, ": ", ctx_r1.userContribuyente.numeroDocumento, " ", ctx_r1.userContribuyente.expedido ? "- " + ctx_r1.getCityDescription(ctx_r1.userContribuyente.expedido, "acronym") : "", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.nroNit || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.telefono);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.email);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.direccion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userContribuyente.estadoRuat);
  }
}
function ProfileComponent_ng_template_38_ng_template_34_Conditional_5_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "tr")(2, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Nombre :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "tr")(7, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "G\u00E9nero :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "tr")(12, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Nro. Carnet :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "tr")(17, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "Nro. Nit :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "tr")(22, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23, "Celular :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](24, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "tr")(27, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "E-mail :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "tr")(32, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Direcci\u00F3n :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const user_r3 = ctx.ngIf;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.fullName || user_r3.nombre + " " + user_r3.apPaterno + " " + user_r3.apMaterno);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.sexo === "F" ? "Femenino" : "Masculino");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"]("", user_r3.nroCarnet, " - ", user_r3.ciExpedito ? user_r3.ciExpedito : ctx_r1.getCityDescription(user_r3.ciExpedito, "acronym"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.nroNit);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.nroCelular);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.correoElectronico);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r3.direccion);
  }
}
function ProfileComponent_ng_template_38_ng_template_34_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ProfileComponent_ng_template_38_ng_template_34_Conditional_5_ng_container_0_Template, 36, 8, "ng-container", 13);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.userData.designacion.personaDto);
  }
}
function ProfileComponent_ng_template_38_ng_template_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 58)(1, "div", 59)(2, "table", 60)(3, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, ProfileComponent_ng_template_38_ng_template_34_ng_container_4_Template, 41, 10, "ng-container", 13)(5, ProfileComponent_ng_template_38_ng_template_34_Conditional_5_Template, 1, 1, "ng-container");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.userRole === "Contribuyente");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](5, ctx_r1.userRole === "Encargado" || ctx_r1.userRole === "Admin" ? 5 : -1);
  }
}
function ProfileComponent_ng_template_38_li_35_ng_template_3_span_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ProfileComponent_ng_template_38_li_35_ng_template_3_span_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Inactivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ProfileComponent_ng_template_38_li_35_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 58)(1, "div", 59)(2, "table", 60)(3, "tbody")(4, "tr")(5, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Complejo :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "tr")(10, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Ubicaci\u00F3n :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "tr")(15, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](16, "Fecha de Asignaci\u00F3n :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](19, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "tr")(21, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Fecha Final :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](25, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "tr")(27, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Horario :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "tr")(32, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Estado :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, ProfileComponent_ng_template_38_li_35_ng_template_3_span_35_Template, 2, 0, "span", 63)(36, ProfileComponent_ng_template_38_li_35_ng_template_3_span_36_Template, 2, 0, "span", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userEmployee.complejoDto == null ? null : ctx_r1.userEmployee.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.userEmployee.complejoDto == null ? null : ctx_r1.userEmployee.complejoDto.ubicacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](19, 8, ctx_r1.userEmployee.fechaAsignacion, "longDate"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](25, 11, ctx_r1.userEmployee.fechaFinAsignacion, "longDate"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"](" ", ctx_r1.userEmployee.horaEntrada, " - ", ctx_r1.userEmployee.horaSalida, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.userEmployee.activo);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r1.userEmployee.activo);
  }
}
function ProfileComponent_ng_template_38_li_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "li", 27)(1, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Designaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ProfileComponent_ng_template_38_li_35_ng_template_3_Template, 37, 14, "ng-template", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavItem", 2);
  }
}
function ProfileComponent_ng_template_38_li_36_ng_template_3_tbody_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tbody")(1, "tr")(2, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Profesi\u00F3n :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "tr")(7, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "Estado Civil :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "tr")(12, "th", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Fecha de Ingreso :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](16, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const user_r4 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"]("", user_r4.prefijo, " ", user_r4.profesion, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](user_r4.estadoCivil);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](16, 4, user_r4.fechaIngreso, "longDate"), " ");
  }
}
function ProfileComponent_ng_template_38_li_36_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 58)(1, "div", 59)(2, "table", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ProfileComponent_ng_template_38_li_36_ng_template_3_tbody_3_Template, 17, 7, "tbody", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.userData.designacion.personaDto);
  }
}
function ProfileComponent_ng_template_38_li_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "li", 27)(1, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Informaci\u00F3n Profesional ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ProfileComponent_ng_template_38_li_36_ng_template_3_Template, 4, 1, "ng-template", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavItem", 3);
  }
}
function ProfileComponent_ng_template_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 23)(1, "div", 38)(2, "div", 39)(3, "div", 40)(4, "div", 41)(5, "div", 20)(6, "h5", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7, "Acerca del Sistema");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div")(9, "div", 43)(10, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "El Sistema de Reservas de Campos Deportivos Municipales est\u00E1 dise\u00F1ado para agilizar el proceso de reserva y gesti\u00F3n de las instalaciones deportivas dentro del municipio de Quillacollo. Ya sea para campos de f\u00FAtbol, basketball, voleibol u otros espacios recreativos, este sistema garantiza un acceso equitativo, una utilizaci\u00F3n \u00F3ptima y una administraci\u00F3n eficaz");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "div", 44)(13, "div", 45)(14, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](15, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 48)(17, "p", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "Website :");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "a", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "http://quillacollo.gob.bo/");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 51)(22, "div", 23)(23, "div", 24)(24, "div", 39)(25, "div", 52)(26, "h4", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](27, "Informaci\u00F3n Personal ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 54)(29, "ul", 55, 1)(31, "li", 27)(32, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, " Mis Datos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](34, ProfileComponent_ng_template_38_ng_template_34_Template, 6, 2, "ng-template", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, ProfileComponent_ng_template_38_li_35_Template, 4, 1, "li", 56)(36, ProfileComponent_ng_template_38_li_36_Template, 4, 1, "li", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](37, "div", 40)(38, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](39, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    const personalInfoNav_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](30);
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("activeId", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavItem", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.userRole === "Encargado" && ctx_r1.userEmployee);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", (ctx_r1.userRole === "Admin" || ctx_r1.userRole === "Encargado") && ctx_r1.userData);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavOutlet", personalInfoNav_r5);
  }
}
class ProfileComponent {
  constructor(authService, modalService) {
    this.authService = authService;
    this.modalService = modalService;
    this.CityAcronym = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_0__.CityAcronym;
    this.userAvatar = "default-profile1.png";
  }
  ngOnInit() {
    const dataSaved = this.authService.currentUser();
    this.userAvatar = this.authService.getAvatar();
    this.userRole = this.authService.getUserRole();
    if (this.userRole === 'Contribuyente') {
      this.userContribuyente = dataSaved;
    } else if (this.userRole === 'Encargado') {
      this.userEmployee = this.authService.staff();
      this.userData = dataSaved;
    } else {
      this.userData = dataSaved;
    }
  }
  openModal() {
    const modalRef = this.modalService.open(_password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_1__.PassResetComponent, {
      backdrop: 'static'
    });
    modalRef.componentInstance.userRole = this.userRole;
    modalRef.componentInstance.userData = this.userContribuyente || this.userData;
  }
  getAcronymCity(city) {
    let acronym = '';
    src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_0__.CityAcronym.forEach(element => {
      if (element['value'] === city) {
        acronym = element['acronym'];
      }
    });
    return acronym;
  }
  getCityDescription(expedido, getBy = 'id') {
    if (getBy === 'acronym') {
      const cityByDescription = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_0__.CityAcronym.find(c => c.acronym === expedido);
      if (cityByDescription) {
        return cityByDescription.acronym;
      }
    } else {
      const cityById = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_0__.CityAcronym.find(c => c.id === expedido);
      if (cityById) {
        return cityById.value;
      }
    }
    return expedido;
  }
  static {
    this.ɵfac = function ProfileComponent_Factory(t) {
      return new (t || ProfileComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbModal));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
      type: ProfileComponent,
      selectors: [["app-profile"]],
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([_angular_common__WEBPACK_IMPORTED_MODULE_5__.DecimalPipe])],
      decls: 45,
      vars: 10,
      consts: [["customNav", "ngbNav"], ["personalInfoNav", "ngbNav"], [1, "profile-foreground", "position-relative", "mx-n4", "mt-n4"], [1, "profile-wid-bg"], ["src", "assets/images/fields/img-6.png", "alt", "", 1, "profile-wid-img"], [1, "pt-4", "mb-4", "mb-lg-3", "pb-lg-4", "profile-wrapper"], [1, "row", "g-4"], [1, "col-auto"], [1, "avatar-lg"], ["alt", "user-img", 1, "img-thumbnail", "rounded-circle", 3, "src"], [1, "col"], [1, "p-2"], [1, "text-white", "mb-1"], [4, "ngIf"], [1, "text-white", "text-opacity-75"], [1, "hstack", "text-white-50", "gap-1"], [1, "me-2"], [1, "ri-map-pin-user-line", "mx-1", "text-white", "text-opacity-75", "fs-16", "align-middle"], [1, "col-12", "col-lg-auto", "order-last", "order-lg-0"], [1, "row", "text", "text-white-50", "text-center"], [1, "flex-grow-1"], [1, "btn", "btn-primary", "add-btn", 3, "click"], [1, "ri-edit-fill", "me-1", "align-bottom"], [1, "row"], [1, "col-lg-12"], [1, "d-flex", "profile-wrapper"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-pills", "animation-nav", "profile-nav", "gap-2", "gap-lg-3", "flex-grow-1", 3, "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "role", "tab", 1, "nav-link"], [1, "ri-airplay-fill", "d-inline-block", "d-md-none"], [1, "d-none", "d-md-inline-block"], ["ngbNavContent", ""], [1, "flex-shrink-0"], ["routerLink", "/profile/profile-setting", 1, "btn", "btn-secondary"], [1, "ri-edit-box-line", "align-bottom"], [1, "tab-content", "pt-4", "text-muted"], [3, "ngbNavOutlet"], [1, "ri-building-line", "mx-1", "text-white", "text-opacity-75", "fs-16", "align-middle"], [1, "col-xxl-3"], [1, "card"], [1, "card-body"], [1, "d-flex", "align-items-center", "mb-4"], [1, "card-title", "mb-0"], [1, "d-flex", "align-items-center"], [1, "d-flex", "mt-1"], [1, "flex-shrink-0", "avatar-xs", "align-self-center", "me-3"], [1, "avatar-title", "bg-light", "rounded-circle", "fs-16", "text-primary"], [1, "ri-global-line"], [1, "flex-grow-1", "overflow-hidden"], [1, "mb-1"], ["href", "http://quillacollo.gob.bo/", 1, "fw-semibold"], [1, "col-xxl-9"], [1, "card-header", "align-items-center", "d-flex"], [1, "card-title", "mb-0", "me-2"], [1, "flex-shrink-0", "ms-auto"], ["ngbNav", "", "role", "tablist", 1, "nav", "justify-content-end", "nav-tabs-custom", "rounded", "card-header-tabs", "border-bottom-0", 3, "activeId"], ["class", "nav-item", 3, "ngbNavItem", 4, "ngIf"], [1, "tab-content", "text-muted"], [1, "profile-timeline", "order-status"], [1, "table-responsive"], [1, "table", "table-borderless", "mb-0"], ["scope", "row", 1, "ps-0"], [1, "text-muted"], ["class", "badge bg-success", 4, "ngIf"], ["class", "badge bg-danger", 4, "ngIf"], [1, "badge", "bg-success"], [1, "badge", "bg-danger"]],
      template: function ProfileComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2)(1, "div", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "img", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 5)(4, "div", 6)(5, "div", 7)(6, "div", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](7, "img", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div", 10)(9, "div", 11)(10, "h3", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](11, ProfileComponent_span_11_Template, 2, 1, "span", 13)(12, ProfileComponent_span_12_Template, 2, 1, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "p", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "div", 15)(16, "div", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](17, "i", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](18, ProfileComponent_span_18_Template, 2, 1, "span", 13)(19, ProfileComponent_span_19_Template, 2, 1, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](20, ProfileComponent_div_20_Template, 3, 1, "div", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 18)(22, "div", 19)(23, "div", 20)(24, "button", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ProfileComponent_Template_button_click_24_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx.openModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](25, "i", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, " Cambiar Contrase\u00F1a ");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "div", 23)(28, "div", 24)(29, "div")(30, "div", 25)(31, "ul", 26, 0)(33, "li", 27)(34, "a", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](35, "i", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "span", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37, "Mi Perfil");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](38, ProfileComponent_ng_template_38_Template, 40, 5, "ng-template", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "div", 32)(40, "a", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](41, "i", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](42, " Configuraciones ");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](43, "div", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](44, "div", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          const customNav_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](32);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("src", "assets/icons/users/" + ctx.userAvatar, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.userRole === "Contribuyente");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.userRole === "Encargado" || ctx.userRole === "Admin");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx.userRole, " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.userRole === "Contribuyente");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.userRole === "Encargado" || ctx.userRole === "Admin");
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.userRole === "Encargado" && ctx.userEmployee.complejoDto);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavOutlet", customNav_r6);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 76795:
/*!**************************************************************!*\
  !*** ./src/app/pages/account/settings/settings.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SettingsComponent: () => (/* binding */ SettingsComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../password-reset/pass-reset.component */ 62239);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api-users/users.service */ 81394);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var _shared_extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/extraspages/terms-conditions/terms-conditions.component */ 35840);
/* harmony import */ var _shared_extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/extraspages/privacy-policy/privacy-policy.component */ 72998);














const _c0 = a0 => ({
  "is-invalid": a0
});
function SettingsComponent_ng_template_34_form_0_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El nombre es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El apellido paterno es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El apellido materno es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El g\u00E9nero es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El n\u00FAmero de documento es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_option_43_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "option", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", item_r4.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](item_r4.value);
  }
}
function SettingsComponent_ng_template_34_form_0_div_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " El campo es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Ingrese un n\u00FAmero de tel\u00E9fono v\u00E1lido (8 d\u00EDgitos). ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_56_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Ingrese un correo electr\u00F3nico v\u00E1lido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_div_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " La direcci\u00F3n es requerida. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "form", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngSubmit", function SettingsComponent_ng_template_34_form_0_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 9)(2, "div", 37)(3, "div", 38)(4, "label", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Nombre(s)");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "input", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](7, SettingsComponent_ng_template_34_form_0_div_7_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 37)(9, "div", 38)(10, "label", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11, "Primer Apellido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](12, "input", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](13, SettingsComponent_ng_template_34_form_0_div_13_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "div", 37)(15, "div", 38)(16, "label", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Segundo Apellido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](18, "input", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](19, SettingsComponent_ng_template_34_form_0_div_19_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "div", 37)(21, "div", 38)(22, "label", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](23, "G\u00E9nero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "select", 47)(25, "option", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](26, "Masculino");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](27, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](28, "Femenino");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](29, SettingsComponent_ng_template_34_form_0_div_29_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](30, "div", 37)(31, "div", 38)(32, "label", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33, "Nro Documento:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](34, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](35, SettingsComponent_ng_template_34_form_0_div_35_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](36, "div", 37)(37, "div", 38)(38, "label", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](39, "Expedido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](40, "select", 53)(41, "option", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](42, "Seleccionar opci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](43, SettingsComponent_ng_template_34_form_0_option_43_Template, 2, 2, "option", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](44, SettingsComponent_ng_template_34_form_0_div_44_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](45, "div", 37)(46, "div", 38)(47, "label", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](48, "Tel\u00E9fono:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](49, "input", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](50, SettingsComponent_ng_template_34_form_0_div_50_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](51, "div", 37)(52, "div", 38)(53, "label", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](54, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](55, "input", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](56, SettingsComponent_ng_template_34_form_0_div_56_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](57, "div", 60)(58, "div", 38)(59, "label", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](60, "Direcci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](61, "input", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](62, SettingsComponent_ng_template_34_form_0_div_62_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](63, "div", 60)(64, "div", 63)(65, "button", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](66, "Actualizar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](67, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SettingsComponent_ng_template_34_form_0_Template_button_click_67_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.goBack());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](68, "Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r2.personaForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](21, _c0, ctx_r2.form["nombre"].touched && ctx_r2.form["nombre"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["nombre"].touched && ctx_r2.form["nombre"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](23, _c0, ctx_r2.form["primerApellido"].touched && ctx_r2.form["primerApellido"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["primerApellido"].touched && ctx_r2.form["primerApellido"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](25, _c0, ctx_r2.form["segundoApellido"].touched && ctx_r2.form["segundoApellido"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["segundoApellido"].touched && ctx_r2.form["segundoApellido"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](27, _c0, ctx_r2.form["genero"].touched && ctx_r2.form["genero"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["genero"].touched && ctx_r2.form["genero"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](29, _c0, ctx_r2.form["numeroDocumento"].touched && ctx_r2.form["numeroDocumento"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["numeroDocumento"].touched && ctx_r2.form["numeroDocumento"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](31, _c0, (ctx_r2.form["expedido"].touched || ctx_r2.submitted) && ctx_r2.form["expedido"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r2.CityAcronym);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["expedido"].touched && ctx_r2.form["expedido"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](33, _c0, ctx_r2.form["telefono"].touched && ctx_r2.form["telefono"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["telefono"].touched && ctx_r2.form["telefono"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](35, _c0, ctx_r2.form["email"].touched && ctx_r2.form["email"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["email"].touched && ctx_r2.form["email"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](37, _c0, ctx_r2.form["direccion"].touched && ctx_r2.form["direccion"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.form["direccion"].touched && ctx_r2.form["direccion"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r2.personaForm.invalid);
  }
}
function SettingsComponent_ng_template_34_form_1_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Ingrese un n\u00FAmero de tel\u00E9fono v\u00E1lido (8 d\u00EDgitos). ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_1_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Ingrese un correo electr\u00F3nico v\u00E1lido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_1_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " La direcci\u00F3n es requerida. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SettingsComponent_ng_template_34_form_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "form", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngSubmit", function SettingsComponent_ng_template_34_form_1_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 9)(2, "div", 37)(3, "div", 38)(4, "label", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Tel\u00E9fono:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "input", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](7, SettingsComponent_ng_template_34_form_1_div_7_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 37)(9, "div", 38)(10, "label", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](12, "input", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](13, SettingsComponent_ng_template_34_form_1_div_13_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "div", 60)(15, "div", 38)(16, "label", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Direcci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](18, "input", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](19, SettingsComponent_ng_template_34_form_1_div_19_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "div", 60)(21, "div", 63)(22, "button", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](23, "Actualizar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SettingsComponent_ng_template_34_form_1_Template_button_click_24_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.goBack());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r2.contactoForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](8, _c0, ctx_r2.contactoFormControls["telefono"].touched && ctx_r2.contactoFormControls["telefono"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.contactoFormControls["telefono"].touched && ctx_r2.contactoFormControls["telefono"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](10, _c0, ctx_r2.contactoFormControls["email"].touched && ctx_r2.contactoFormControls["email"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.contactoFormControls["email"].touched && ctx_r2.contactoFormControls["email"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](12, _c0, ctx_r2.contactoFormControls["direccion"].touched && ctx_r2.contactoFormControls["direccion"].invalid));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.contactoFormControls["direccion"].touched && ctx_r2.contactoFormControls["direccion"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r2.contactoForm.invalid);
  }
}
function SettingsComponent_ng_template_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, SettingsComponent_ng_template_34_form_0_Template, 69, 39, "form", 35)(1, SettingsComponent_ng_template_34_form_1_Template, 26, 14, "form", 35);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.userRole === "Contribuyente");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.userRole === "Admin" || ctx_r2.userRole === "Encargado");
  }
}
function SettingsComponent_li_35_ng_template_4_tr_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr")(1, "th", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Complejo Asignado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "td", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r2.userEmployee.complejoDto == null ? null : ctx_r2.userEmployee.complejoDto.nombre);
  }
}
function SettingsComponent_li_35_ng_template_4_tr_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr")(1, "th", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Horario:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "td", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate2"]("", ctx_r2.userEmployee.horaEntrada, " - ", ctx_r2.userEmployee.horaSalida, "");
  }
}
function SettingsComponent_li_35_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 74)(1, "table", 75)(2, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, SettingsComponent_li_35_ng_template_4_tr_3_Template, 5, 1, "tr", 76)(4, SettingsComponent_li_35_ng_template_4_tr_4_Template, 5, 2, "tr", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "tr")(6, "th", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7, "Profesi\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "td", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "tr")(11, "th", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, "Fecha de Ingreso:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](13, "td", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](15, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.userRole === "Encargado" && ctx_r2.userEmployee);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.userRole === "Encargado" && ctx_r2.userEmployee);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r2.userData == null ? null : ctx_r2.userData.profesion);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind2"](15, 4, ctx_r2.userData == null ? null : ctx_r2.userData.fechaIngreso, "longDate"));
  }
}
function SettingsComponent_li_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 27)(1, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " Informaci\u00F3n Laboral ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, SettingsComponent_li_35_ng_template_4_Template, 16, 7, "ng-template", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 2);
  }
}
function SettingsComponent_ng_template_40_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 82)(1, "h5", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Eliminar esta cuenta:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "p", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4, " Una vez elimine su cuenta no podr\u00E1 recuperar sus Datos. Ingrese su contrase\u00F1a para eliminar su cuenta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "div")(6, "input", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function SettingsComponent_ng_template_40_div_1_Template_input_ngModelChange_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx_r2.password, $event) || (ctx_r2.password = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 85)(8, "a", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SettingsComponent_ng_template_40_div_1_Template_a_click_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.deleteAccount());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, " Cerrar & Eliminar esta cuenta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "a", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SettingsComponent_ng_template_40_div_1_Template_a_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.goBack());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11, "Volver");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.password);
  }
}
function SettingsComponent_ng_template_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-terms-conditions", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, SettingsComponent_ng_template_40_div_1_Template, 12, 1, "div", 81);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("buttons", ctx_r2.userRole !== "Contribuyente");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.userRole === "Contribuyente");
  }
}
function SettingsComponent_ng_template_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-privacy-policy");
  }
}
class SettingsComponent {
  constructor(location, modalService, formBuilder, authService, employeeService, userService) {
    this.location = location;
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.authService = authService;
    this.employeeService = employeeService;
    this.userService = userService;
    this.CityAcronym = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_1__.CityAcronym;
    this.userAvatar = "default-profile1.png";
    this.submitted = false;
    this.personaForm = this.formBuilder.group({
      uuid: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      primerApellido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      segundoApellido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      genero: ['M', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      numeroDocumento: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      expedido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      telefono: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.pattern('^[0-9]{8}$')]],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.email]],
      direccion: ['']
    });
    this.contactoForm = this.formBuilder.group({
      telefono: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.pattern('^[0-9]{8}$')]],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.email]],
      direccion: ['']
    });
    // private getAcronymFromId(expedido: any,getBy:string = 'id'): string {
    //   if(getBy ==='acronym'){
    //     const cityByDescription = CityAcronym.find(c => c.acronym === expedido);
    //     if (cityByDescription) {
    //       return cityByDescription.acronym;
    //     }  
    //   }else{
    //     const cityById = CityAcronym.find(c => c.id === expedido);  
    //     if (cityById) {
    //       return cityById.value;
    //     }
    //   }
    //   return expedido;
    // }
    this.password = '';
  }
  ngOnInit() {
    const dataSaved = this.authService.currentUser();
    this.userRole = this.authService.getUserRole();
    this.userAvatar = this.authService.getAvatar();
    if (this.userRole === 'Contribuyente') {
      this.userContribuyente = dataSaved;
      this.loadContribuyenteData(this.userContribuyente);
    } else if (this.userRole === 'Admin') {
      this.userData = dataSaved.designacion.personaDto;
      this.loadContactoData(this.userData);
    } else {
      this.userData = dataSaved.designacion.personaDto;
      this.userEmployee = this.authService.staff();
      this.loadContactoData(this.userData);
    }
  }
  loadContribuyenteData(contribuyente) {
    if (contribuyente) {
      this.personaForm.patchValue({
        uuid: contribuyente.uuid,
        nombre: contribuyente.nombre,
        primerApellido: contribuyente.primerApellido,
        segundoApellido: contribuyente.segundoApellido,
        genero: contribuyente.genero,
        numeroDocumento: contribuyente.numeroDocumento,
        expedido: contribuyente.expedido,
        telefono: contribuyente.telefono,
        email: contribuyente.email,
        direccion: contribuyente.direccion
      });
    }
  }
  loadContactoData(persona) {
    if (persona) {
      this.contactoForm.patchValue({
        telefono: persona.nroCelular || persona.telefono,
        email: persona.correoElectronico || persona.email,
        direccion: persona.direccion
      });
    }
  }
  get form() {
    return this.personaForm.controls;
  }
  get contactoFormControls() {
    return this.contactoForm.controls;
  }
  openModal() {
    const modalRef = this.modalService.open(_password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_3__.PassResetComponent, {
      backdrop: 'static'
    });
    modalRef.componentInstance.userRole = this.userRole;
    modalRef.componentInstance.userData = this.userContribuyente || this.userData;
  }
  getAcronymCity(city) {
    let acronym = '';
    src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_1__.CityAcronym.forEach(element => {
      if (element['value'] === city) {
        acronym = element['acronym'];
      }
    });
    return acronym;
  }
  getIdCity(city) {
    let acronym = null;
    src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_1__.CityAcronym.forEach(element => {
      if (element['value'] === city) {
        acronym = element['id'];
      }
    });
    return acronym;
  }
  saveData() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.submitted = true;
      if (_this.userRole === 'Contribuyente') {
        if (_this.personaForm.valid) {
          const expedidoValue = _this.personaForm.value.expedido;
          // const expedidoAcronym = this.getAcronymFromId(expedidoValue);
          const persona = {
            uuid: _this.personaForm.value.uuid,
            nombre: _this.personaForm.value.nombre,
            primerApellido: _this.personaForm.value.primerApellido,
            segundoApellido: _this.personaForm.value.segundoApellido,
            numeroDocumento: _this.personaForm.value.numeroDocumento,
            expedido: _this.personaForm.value.expedido,
            genero: _this.personaForm.value.genero,
            telefono: _this.personaForm.value.telefono,
            email: _this.personaForm.value.email,
            direccion: _this.personaForm.value.direccion,
            estadoRuat: _this.userContribuyente.estadoRuat,
            verificadoRuat: _this.userContribuyente.verificadoRuat,
            esDeportistaElite: _this.userContribuyente.esDeportistaElite,
            estaSancionado: _this.userContribuyente.estaSancionado,
            fechaNacimiento: _this.userContribuyente.fechaNacimiento,
            estadoUsuario: _this.userContribuyente.estadoUsuario,
            codigoContribuyente: _this.userContribuyente.codigoContribuyente,
            estadoCivil: _this.userContribuyente.estadoCivil,
            tipoDocumento: _this.userContribuyente.tipoDocumento,
            nroNit: _this.userContribuyente.nroNit,
            tipoContribuyente: _this.userContribuyente.tipoContribuyente,
            userName: _this.userContribuyente.userName,
            password: _this.userContribuyente.password
          };
          try {
            yield _this.updateUser(persona);
            _this.notify('success', 'Sus datos fueron actualizados con éxito');
          } catch (error) {
            _this.notify('error', 'No se pudo actualizar sus datos');
          }
        } else {
          _this.notify('error', 'Por favor, complete todos los campos obligatorios');
          return;
        }
      } else {
        if (_this.contactoForm.valid) {
          const persona = {
            uuid: _this.userData.uuid,
            nroCelular: _this.contactoForm.value.telefono,
            correoElectronico: _this.contactoForm.value.email,
            direccion: _this.contactoForm.value.direccion
          };
          _this.updatePersona(persona);
        } else {
          _this.notify('error', 'Por favor, complete todos los campos obligatorios');
          return;
        }
      }
    })();
  }
  deleteAccount() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!_this2.password) {
        _this2.notify('error', 'Por favor, ingrese su contraseña.');
        return;
      }
      // For demo purposes - in real app, you should verify password with backend
      if (_this2.password === _this2.userContribuyente.password) {
        if (window.confirm("¿Está seguro de que desea cerrar y eliminar la cuenta?")) {
          const updatedUser = {
            ..._this2.userContribuyente,
            estadoUsuario: 'Anulado'
          };
          yield _this2.updateUser(updatedUser);
          _this2.notify('success', 'Su cuenta fue anulada, usted ya no podrá realizar operaciones en el sistema');
          _this2.authService.logout();
        }
      } else {
        _this2.notify('error', 'La contraseña ingresada es incorrecta.');
      }
    })();
  }
  /* API Services */
  updatePersona(persona) {
    this.employeeService.updatePersona(persona).subscribe({
      next: data => {
        this.notify('success', 'Registro actualizado con exito');
      },
      error: error => {
        this.notify('error', 'No se puedo actualizar el Registro');
      }
    });
  }
  updateUser(persona) {
    return new Promise((resolve, reject) => {
      this.userService.update(persona).subscribe({
        next: data => {
          if (data.status === 'OK') {
            resolve(true);
          } else {
            resolve(false);
          }
        },
        error: error => {
          this.notify('error', 'No se pudo actualizar el Registro');
          reject(error);
        }
      });
    });
  }
  deleteUser(uuid) {
    this.userService.delete(uuid).subscribe({
      next: data => {
        if (data.status === 'OK') {
          this.notify('success', 'Se elimino su cuenta con exito');
          this.authService.logout();
        } else {
          this.notify('error', 'No se puedo eliminar el Registro');
        }
      },
      error: error => {
        this.notify('error', 'No se puedo actualizar el Registro');
      }
    });
  }
  /* Common functions */
  notify(type, message) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
      title: message,
      icon: type,
      timer: 2000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().DismissReason).timer) {}
    });
  }
  goBack() {
    this.location.back();
  }
  // Helper method to get display name
  getDisplayName() {
    if (this.userRole === 'Contribuyente') {
      return this.userContribuyente.nombre;
    } else {
      return this.userData?.fullName || this.userData?.nombre + ' ' + this.userData?.apPaterno + ' ' + this.userData?.apMaterno;
    }
  }
  // Helper method to get email
  getEmail() {
    if (this.userRole === 'Contribuyente') {
      return this.userContribuyente.email;
    } else {
      return this.userData?.correoElectronico || this.userData?.email;
    }
  }
  static {
    this.ɵfac = function SettingsComponent_Factory(t) {
      return new (t || SettingsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_11__.Location), _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_10__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_5__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__.ContribuyentesService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: SettingsComponent,
      selectors: [["app-settings"]],
      decls: 49,
      vars: 10,
      consts: [["customNav", "ngbNav"], [1, "position-relative", "mx-n4", "mt-n4"], [1, "profile-wid-bg", "profile-setting-img"], ["src", "assets/images/fields/img-6.png", "alt", "", 1, "profile-wid-img"], [1, "overlay-content"], [1, "text-end", "p-3"], [1, "p-0", "ms-auto", "rounded-circle", "profile-photo-edit"], [1, "btn", "btn-primary", "add-btn", 3, "click"], [1, "ri-edit-fill", "me-1", "align-bottom"], [1, "row"], [1, "col-xxl-3"], [1, "card", "mt-n5"], [1, "card-body", "p-4"], [1, "text-center"], [1, "profile-user", "position-relative", "d-inline-block", "mx-auto", "mb-4"], ["alt", "user-profile-image", 1, "rounded-circle", "avatar-xl", "img-thumbnail", "user-profile-image", 3, "src"], [1, "avatar-xs", "p-0", "rounded-circle", "profile-photo-edit"], ["id", "profile-img-file-input", "type", "file", 1, "profile-img-file-input"], ["for", "profile-img-file-input", 1, "profile-photo-edit", "avatar-xs"], [1, "avatar-title", "rounded-circle", "bg-light", "text-body"], [1, "ri-camera-fill"], [1, "fs-16", "mb-1"], [1, "text-muted", "mb-0"], [1, "col-xxl-9"], [1, "card", "mt-xxl-n5"], [1, "card-header"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs-custom", "rounded", "card-header-tabs", "border-bottom-0", 3, "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "role", "tab", 1, "nav-link"], [1, "fas", "fa-home"], ["ngbNavContent", ""], ["class", "nav-item", 3, "ngbNavItem", 4, "ngIf"], [1, "far", "fa-envelope"], [1, "tab-content"], [3, "ngbNavOutlet"], ["class", "tablelist-form", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "col-lg-6"], [1, "mb-3"], ["for", "nombre", 1, "form-label"], ["type", "text", "id", "nombre", "formControlName", "nombre", "placeholder", "Ingresa tu Nombre", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "primerApellido", 1, "form-label"], ["type", "text", "id", "primerApellido", "formControlName", "primerApellido", "placeholder", "Ingresa tu Apellido Paterno", 1, "form-control", 3, "ngClass"], ["for", "segundoApellido", 1, "form-label"], ["type", "text", "id", "segundoApellido", "formControlName", "segundoApellido", "placeholder", "Ingresa tu Apellido Materno", 1, "form-control", 3, "ngClass"], ["for", "genero", 1, "form-label"], ["formControlName", "genero", "id", "genero", 1, "form-control", 3, "ngClass"], ["value", "M"], ["value", "F"], ["for", "numeroDocumento", 1, "form-label"], ["type", "text", "formControlName", "numeroDocumento", "readonly", "", "placeholder", "N\u00FAmero de Documento", 1, "form-control", 3, "ngClass"], ["for", "expedido", 1, "form-label"], ["id", "expedido", "formControlName", "expedido", 1, "form-select", 3, "ngClass"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], ["for", "telefono", 1, "form-label"], ["type", "text", "formControlName", "telefono", "placeholder", "Ingresa tu Nro de Tel\u00E9fono", 1, "form-control", 3, "ngClass"], ["for", "email", 1, "form-label"], ["type", "email", "formControlName", "email", "placeholder", "Ingresa tu Correo Electr\u00F3nico", 1, "form-control", 3, "ngClass"], [1, "col-lg-12"], ["for", "direccion", 1, "form-label"], ["type", "text", "formControlName", "direccion", "placeholder", "Ingrese su Direcci\u00F3n", 1, "form-control", 3, "ngClass"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "submit", 1, "btn", "btn-secondary", 3, "disabled"], ["type", "button", 1, "btn", "btn-soft-danger", 3, "click"], [1, "invalid-feedback"], [3, "value"], ["for", "contactoTelefono", 1, "form-label"], ["type", "text", "id", "contactoTelefono", "formControlName", "telefono", "placeholder", "Ingresa tu Nro de Tel\u00E9fono", 1, "form-control", 3, "ngClass"], ["for", "contactoEmail", 1, "form-label"], ["type", "email", "id", "contactoEmail", "formControlName", "email", "placeholder", "Ingresa tu Correo Electr\u00F3nico", 1, "form-control", 3, "ngClass"], ["for", "contactoDireccion", 1, "form-label"], ["type", "text", "id", "contactoDireccion", "formControlName", "direccion", "placeholder", "Ingrese su Direcci\u00F3n", 1, "form-control", 3, "ngClass"], [1, "table-responsive"], [1, "table", "table-borderless", "mb-0"], [4, "ngIf"], ["scope", "row", 1, "ps-0"], [1, "text-muted"], ["scope", "row", 1, "ps-0", 2, "width", "200px"], [3, "buttons"], ["class", "px-4", 4, "ngIf"], [1, "px-4"], [1, "card-title", "text-decoration-underline", "mb-3"], ["type", "password", "id", "passwordInput", "placeholder", "Ingresa tu contrase\u00F1a", 1, "form-control", 2, "max-width", "265px", 3, "ngModelChange", "ngModel"], [1, "hstack", "gap-2", "mt-3", "justify-end"], [1, "btn", "btn-soft-danger", 3, "click"], [1, "btn", "btn-light", 3, "click"]],
      template: function SettingsComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 1)(1, "div", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "img", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 4)(4, "div", 5)(5, "div", 6)(6, "button", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SettingsComponent_Template_button_click_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "i", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, " Cambiar Contrase\u00F1a ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "div", 9)(10, "div", 10)(11, "div", 11)(12, "div", 12)(13, "div", 13)(14, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](15, "img", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "div", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](17, "input", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "label", 18)(19, "span", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](20, "i", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](21, "h5", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](22);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](23, "p", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](24);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](25, "div", 23)(26, "div", 24)(27, "div", 25)(28, "ul", 26, 0)(30, "li", 27)(31, "a", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](32, "i", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](34, SettingsComponent_ng_template_34_Template, 2, 2, "ng-template", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](35, SettingsComponent_li_35_Template, 5, 1, "li", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](36, "li", 27)(37, "a", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](38, "i", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](39, " T\u00E9rminos y Condiciones ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](40, SettingsComponent_ng_template_40_Template, 2, 2, "ng-template", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](41, "li", 27)(42, "a", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](43, "i", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](44, " Pol\u00EDticas y Privacidad ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](45, SettingsComponent_ng_template_45_Template, 1, 0, "ng-template", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](46, "div", 12)(47, "div", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](48, "div", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          const customNav_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](29);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("src", "assets/icons/users/" + ctx.userAvatar, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx.getDisplayName(), " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.getEmail());
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx.userRole === "Contribuyente" ? "Datos Personales" : "Informaci\u00F3n de Contacto", " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.userRole === "Admin" || ctx.userRole === "Encargado");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavOutlet", customNav_r7);
        }
      },
      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_10__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavOutlet, _shared_extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_7__.TermsConditionsComponent, _shared_extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_8__.PrivacyPolicyComponent, _angular_common__WEBPACK_IMPORTED_MODULE_11__.DatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DashboardComponent: () => (/* binding */ DashboardComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 64334);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _toast_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toast-service */ 11766);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ng-apexcharts */ 33117);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var _shared_widget_analytics_top_pages_top_pages_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/widget/analytics/top-pages/top-pages.component */ 20994);
/* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/cdk/bidi */ 63680);
/* harmony import */ var _toasts_container_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./toasts-container.component */ 65852);
















function DashboardComponent_apx_chart_72_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "apx-chart", 53);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("series", ctx_r0.analyticsChart.series)("chart", ctx_r0.analyticsChart.chart)("xaxis", ctx_r0.analyticsChart.xaxis)("stroke", ctx_r0.analyticsChart.stroke)("dataLabels", ctx_r0.analyticsChart.dataLabels)("yaxis", ctx_r0.analyticsChart.yaxis)("labels", ctx_r0.analyticsChart.labels)("legend", ctx_r0.analyticsChart.legend)("title", ctx_r0.analyticsChart.title)("colors", ctx_r0.analyticsChart.colors)("fill", ctx_r0.analyticsChart.fill)("plotOptions", ctx_r0.analyticsChart.plotOptions)("tooltip", ctx_r0.analyticsChart.tooltip)("grid", ctx_r0.analyticsChart.grid)("annotations", ctx_r0.analyticsChart.annotations)("markers", ctx_r0.analyticsChart.markers);
  }
}
function DashboardComponent_apx_chart_102_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "apx-chart", 54);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("series", ctx_r0.StackedColumnChart.series)("chart", ctx_r0.StackedColumnChart.chart)("dataLabels", ctx_r0.StackedColumnChart.dataLabels)("plotOptions", ctx_r0.StackedColumnChart.plotOptions)("responsive", ctx_r0.StackedColumnChart.responsive)("xaxis", ctx_r0.StackedColumnChart.xaxis)("yaxis", ctx_r0.StackedColumnChart.yaxis)("legend", ctx_r0.StackedColumnChart.legend)("fill", ctx_r0.StackedColumnChart.fill)("colors", ctx_r0.StackedColumnChart.colors)("tooltip", ctx_r0.StackedColumnChart.tooltip);
  }
}
class DashboardComponent {
  constructor(route, router, toastService, reservasService, authService) {
    this.route = route;
    this.router = router;
    this.toastService = toastService;
    this.reservasService = reservasService;
    this.authService = authService;
    this.loading = true;
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
    /**
     * Incomes By Complex Chart
     */
    this.filteredReservations = [];
    /**
     * Reservations Analytics Chart
     */
    this.reservationsList = [];
    this.totalReservations = 0;
    this.totalCancellations = 0;
    this.totalIncome = 0;
    this.conversionRatio = 0;
    this.totalPending = 0;
    this.totalRejected = 0;
    this.totalCompleted = 0;
    this.totalNoShow = 0;
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.userData = _this.authService.currentUser();
      _this.authService.loginEvent$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_9__.take)(1)).subscribe(event => {
        _this.showConsolidatedSystemStatus(event);
      });
      try {
        yield _this.getReservations();
        _this.setRevenueValue('all');
        _this.filteredReservations = _this.processReservations('Year');
        _this._StackedColumnChart();
      } catch (error) {
        console.error('Error during initialization:', error);
      }
    })();
  }
  showConsolidatedSystemStatus(event) {
    const configsLoaded = event.configsLoaded || 0;
    const finalRuatConnected = event.ruatStatus;
    let welcomeTitle = '';
    let welcomeMessage = '';
    switch (event.message) {
      case 'welcome_admin':
        welcomeTitle = '🎉 ¡Bienvenido Administrador!';
        welcomeMessage = 'Inicio de sesión exitoso con privilegios de administrador.';
        break;
      case 'welcome_staff':
        welcomeTitle = '👤 ¡Bienvenido Encargado!';
        welcomeMessage = 'Inicio de sesión exitoso.';
        break;
      default:
        welcomeTitle = '🎉 ¡Bienvenido!';
        welcomeMessage = 'Inicio de sesión exitoso.';
    }
    let statusMessage = '📊 Estado del Sistema:\n\n';
    if (configsLoaded > 0) {
      statusMessage += '✅ Sistema Principal: CONECTADO\n';
      statusMessage += `⚙️ Configuraciones: ${configsLoaded} cargadas\n`;
    } else {
      statusMessage += '⚠️ Sistema Principal: CONEXIÓN LIMITADA\n';
      statusMessage += `⚙️ Configuraciones: 0 cargadas\n`;
    }
    if (finalRuatConnected) {
      statusMessage += '✅ RUAT: CONECTADO\n';
      statusMessage += '   → Todas las funciones disponibles';
    } else {
      statusMessage += '❌ RUAT: NO DISPONIBLE\n\n';
      statusMessage += '   ⚠️ ADVERTENCIA IMPORTANTE:\n';
      statusMessage += '   • No se puede conectar al sistema RUAT\n';
      statusMessage += '   • Las reservas nuevas NO estarán disponibles\n';
      statusMessage += '   • Solo podrá consultar reservas existentes\n';
      statusMessage += '   • La verificación de contribuyentes estará limitada\n\n';
      statusMessage += '   💡 Recomendación:\n';
      statusMessage += '   • Si necesita realizar reservas, cierre sesión y vuelva a intentar más tarde\n';
      statusMessage += '   • Contacte al administrador si el problema persiste';
    }
    const fullMessage = `${welcomeMessage}\n\n${statusMessage}`;
    this.toastService.show(fullMessage, {
      classname: finalRuatConnected ? 'bg-success text-light' : 'bg-warning text-dark',
      header: welcomeTitle,
      delay: 15000
    });
  }
  onDateRangeChange(range) {
    this.filteredReservations = this.processReservations(range);
  }
  processReservations(filter) {
    const now = new Date();
    const filteredReservations = this.reservationsList.filter(reservation => reservation.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA);
    let startDate;
    let endDate;
    switch (filter) {
      case 'Today':
        startDate = new Date(now);
        startDate.setHours(0, 0, 0, 0);
        endDate = new Date(now);
        endDate.setHours(23, 59, 59, 999);
        break;
      case 'Weekly':
        const dayOfWeek = now.getDay();
        const diffToMonday = (dayOfWeek + 6) % 7;
        startDate = new Date(now);
        startDate.setDate(now.getDate() - diffToMonday);
        startDate.setHours(0, 0, 0, 0);
        endDate = new Date(startDate);
        endDate.setDate(startDate.getDate() + 6);
        endDate.setHours(23, 59, 59, 999);
        break;
      case 'Monthly':
        startDate = new Date(now.getFullYear(), now.getMonth(), 1);
        endDate = new Date(now.getFullYear(), now.getMonth() + 1, 0);
        endDate.setHours(23, 59, 59, 999);
        break;
      case 'Year':
        startDate = new Date(now.getFullYear(), 0, 1);
        startDate.setHours(0, 0, 0, 0);
        endDate = new Date(now.getFullYear(), 11, 31);
        endDate.setHours(23, 59, 59, 999);
        break;
      default:
        startDate = new Date(0);
        endDate = new Date();
        endDate.setHours(23, 59, 59, 999);
    }
    const groupedByComplex = filteredReservations.reduce((acc, reservation) => {
      const reservationDate = new Date(reservation.fechaReserva);
      if (reservationDate >= startDate && reservationDate <= endDate) {
        const complexId = reservation.campoDeportivoDto?.complejoDto?.uuid;
        if (complexId) {
          if (!acc[complexId]) {
            acc[complexId] = {
              complexName: reservation.campoDeportivoDto.complejoDto.nombre,
              total: 0,
              totalIncome: 0
            };
          }
          acc[complexId].totalIncome += reservation.montoTotal;
          acc[complexId].total += 1;
        }
      }
      return acc;
    }, {});
    const result = Object.values(groupedByComplex);
    result.sort((a, b) => b.totalIncome - a.totalIncome);
    return result;
  }
  setRevenueValue(value) {
    const currentDate = new Date();
    let temp = [];
    let startDate;
    let endDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
    switch (value) {
      case 'all':
        temp = this.reservationsList;
        break;
      case '1M':
        startDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
        temp = this.filterReservations(startDate, endDate);
        break;
      case '6M':
        startDate = new Date(currentDate.getFullYear(), currentDate.getMonth() - 5, 1);
        temp = this.filterReservations(startDate, endDate);
        break;
      case '1A':
        startDate = new Date(currentDate.getFullYear() - 1, currentDate.getMonth(), 1);
        temp = this.filterReservations(startDate, endDate);
        break;
      default:
        temp = this.reservationsList;
    }
    this.initChart(value, temp);
  }
  filterReservations(startDate, endDate) {
    startDate.setHours(0, 0, 0, 0);
    endDate.setHours(23, 59, 59, 999);
    return this.reservationsList.filter(reserva => {
      const reservaDate = new Date(reserva.fechaReserva);
      return reservaDate >= startDate && reservaDate <= endDate;
    });
  }
  processMonthlyData(reservas, labels) {
    const monthlyData = {
      pagadas: new Array(12).fill(0),
      completadas: new Array(12).fill(0),
      enCurso: new Array(12).fill(0),
      confirmadas: new Array(12).fill(0),
      pendientes: new Array(12).fill(0),
      canceladas: new Array(12).fill(0),
      rechazadas: new Array(12).fill(0),
      expiradas: new Array(12).fill(0),
      noShow: new Array(12).fill(0),
      ingresos: new Array(12).fill(0)
    };
    const monthNameToIndex = {
      'Ene': 0,
      'Feb': 1,
      'Mar': 2,
      'Abr': 3,
      'May': 4,
      'Jun': 5,
      'Jul': 6,
      'Ago': 7,
      'Sep': 8,
      'Oct': 9,
      'Nov': 10,
      'Dic': 11
    };
    reservas.forEach(reserva => {
      const month = new Date(reserva.fechaReserva).getMonth();
      switch (reserva.estadoReserva) {
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA:
          monthlyData.pagadas[month]++;
          monthlyData.ingresos[month] += reserva.montoTotal;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA:
          monthlyData.completadas[month]++;
          monthlyData.ingresos[month] += reserva.montoTotal;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO:
          monthlyData.enCurso[month]++;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA:
          monthlyData.confirmadas[month]++;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE:
          monthlyData.pendientes[month]++;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.CANCELADA:
          monthlyData.canceladas[month]++;
          break;
        // case EstadoReserva.RECHAZADA:
        //   monthlyData.rechazadas[month]++;
        //   break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EXPIRADA:
          monthlyData.expiradas[month]++;
          break;
        case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.NO_SHOW:
          monthlyData.noShow[month]++;
          break;
      }
    });
    const alignedData = {
      pagadas: [],
      completadas: [],
      enCurso: [],
      confirmadas: [],
      pendientes: [],
      canceladas: [],
      rechazadas: [],
      expiradas: [],
      noShow: [],
      ingresos: []
    };
    labels.forEach(label => {
      const monthIndex = monthNameToIndex[label];
      if (monthIndex !== undefined) {
        alignedData.pagadas.push(monthlyData.pagadas[monthIndex]);
        alignedData.completadas.push(monthlyData.completadas[monthIndex]);
        alignedData.enCurso.push(monthlyData.enCurso[monthIndex]);
        alignedData.confirmadas.push(monthlyData.confirmadas[monthIndex]);
        alignedData.pendientes.push(monthlyData.pendientes[monthIndex]);
        alignedData.canceladas.push(monthlyData.canceladas[monthIndex]);
        alignedData.rechazadas.push(monthlyData.rechazadas[monthIndex]);
        alignedData.expiradas.push(monthlyData.expiradas[monthIndex]);
        alignedData.noShow.push(monthlyData.noShow[monthIndex]);
        alignedData.ingresos.push(monthlyData.ingresos[monthIndex]);
      } else {
        alignedData.pagadas.push(0);
        alignedData.completadas.push(0);
        alignedData.enCurso.push(0);
        alignedData.confirmadas.push(0);
        alignedData.pendientes.push(0);
        alignedData.canceladas.push(0);
        alignedData.rechazadas.push(0);
        alignedData.expiradas.push(0);
        alignedData.noShow.push(0);
        alignedData.ingresos.push(0);
      }
    });
    this.totalReservations = alignedData.pagadas.reduce((acc, curr) => acc + curr, 0) + alignedData.completadas.reduce((acc, curr) => acc + curr, 0);
    this.totalIncome = alignedData.ingresos.reduce((acc, curr) => acc + curr, 0);
    this.totalCancellations = alignedData.canceladas.reduce((acc, curr) => acc + curr, 0) + alignedData.expiradas.reduce((acc, curr) => acc + curr, 0);
    this.totalPending = alignedData.pendientes.reduce((acc, curr) => acc + curr, 0);
    this.totalRejected = alignedData.rechazadas.reduce((acc, curr) => acc + curr, 0);
    this.totalCompleted = alignedData.completadas.reduce((acc, curr) => acc + curr, 0);
    this.totalNoShow = alignedData.noShow.reduce((acc, curr) => acc + curr, 0);
    const totalProcessed = this.totalReservations + this.totalCancellations + this.totalRejected + this.totalNoShow;
    this.conversionRatio = totalProcessed > 0 ? this.totalReservations / totalProcessed * 100 : 0;
    return alignedData;
  }
  getLabels(value) {
    const monthNames = ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"];
    const currentDate = new Date();
    let labels = [];
    switch (value) {
      case '1M':
        labels = [monthNames[currentDate.getMonth()]];
        break;
      case '6M':
        for (let i = 5; i >= 0; i--) {
          const month = (currentDate.getMonth() - i + 12) % 12;
          labels.push(monthNames[month]);
        }
        break;
      case '1A':
        for (let i = 11; i >= 0; i--) {
          const month = (currentDate.getMonth() - i + 12) % 12;
          labels.push(monthNames[month]);
        }
        break;
      default:
        labels = monthNames;
    }
    return labels;
  }
  initChart(value, list) {
    const colors = this.getChartColorsArray('["--vz-success","--vz-primary","--vz-danger","--vz-warning","--vz-info"]');
    const labels = this.getLabels(value);
    const monthlyData = this.processMonthlyData(list, labels);
    this.analyticsChart = {
      series: [{
        name: "Reservas Exitosas",
        type: "area",
        data: monthlyData.pagadas.map((val, idx) => val + monthlyData.completadas[idx])
      }, {
        name: "Ingresos (Bs)",
        type: "bar",
        data: monthlyData.ingresos
      }, {
        name: "Canceladas/Expiradas",
        type: "line",
        data: monthlyData.canceladas.map((val, idx) => val + monthlyData.expiradas[idx])
      }, {
        name: "Pendientes",
        type: "line",
        data: monthlyData.pendientes
      }, {
        name: "No Show",
        type: "line",
        data: monthlyData.noShow
      }],
      xaxis: {
        categories: labels,
        axisTicks: {
          show: false
        },
        axisBorder: {
          show: true
        }
      },
      yaxis: [{
        title: {
          text: "Cantidad"
        },
        labels: {
          formatter: function (val) {
            return Math.floor(val);
          }
        }
      }, {
        opposite: true,
        title: {
          text: "Ingresos (Bs)"
        },
        labels: {
          formatter: function (val) {
            return 'Bs ' + val.toFixed(0);
          }
        }
      }],
      colors: colors,
      chart: {
        type: "line",
        height: 370,
        toolbar: {
          show: true
        }
      },
      stroke: {
        curve: "straight",
        dashArray: [0, 0, 8, 8, 8],
        width: [2, 0, 2.2, 2, 2]
      },
      fill: {
        opacity: [0.5, 0.9, 1, 1, 1]
      },
      markers: {
        size: [0, 0, 0, 0, 0],
        strokeWidth: 2,
        hover: {
          size: 4
        }
      },
      grid: {
        show: true,
        xaxis: {
          lines: {
            show: true
          }
        },
        yaxis: {
          lines: {
            show: false
          }
        },
        padding: {
          top: 2,
          right: -2,
          bottom: 5,
          left: 10
        }
      },
      legend: {
        show: true,
        horizontalAlign: "center",
        offsetX: 0,
        markers: {
          width: 9,
          height: 9,
          radius: 6
        },
        itemMargin: {
          horizontal: 10,
          vertical: 0
        }
      },
      plotOptions: {
        bar: {
          columnWidth: "30%",
          barHeight: "70%"
        }
      },
      dataLabels: {
        enabled: false
      },
      tooltip: {
        shared: true,
        intersect: false,
        y: {
          formatter: function (val, opts) {
            if (opts.seriesIndex === 1) {
              return "Bs " + val.toFixed(2);
            }
            return Math.floor(val) + " reservas";
          }
        }
      }
    };
  }
  getChartColorsArray(colors) {
    colors = JSON.parse(colors);
    return colors.map(function (value) {
      var newValue = value.replace(" ", "");
      if (newValue.indexOf(",") === -1) {
        var color = getComputedStyle(document.documentElement).getPropertyValue(newValue);
        if (color) {
          color = color.replace(" ", "");
          return color;
        } else return newValue;
      } else {
        var val = value.split(',');
        if (val.length == 2) {
          var rgbaColor = getComputedStyle(document.documentElement).getPropertyValue(val[0]);
          rgbaColor = "rgba(" + rgbaColor + "," + val[1] + ")";
          return rgbaColor;
        } else {
          return newValue;
        }
      }
    });
  }
  _StackedColumnChart() {
    const colors = this.getChartColorsArray('["--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]');
    const labels = this.getLabels('6M');
    const topComplexes = this.processReservations('6M').slice(0, 4);
    const successfulSeries = {
      name: "Exitosas (Pagadas/Completadas)",
      data: topComplexes.map(complex => this.getComplexStatusData(complex.complexName, labels, ['PAGADA', 'COMPLETADA']))
    };
    const pendingSeries = {
      name: "Pendientes/Confirmadas",
      data: topComplexes.map(complex => this.getComplexStatusData(complex.complexName, labels, ['PENDIENTE', 'CONFIRMADA']))
    };
    const cancelledSeries = {
      name: "Canceladas/Expiradas",
      data: topComplexes.map(complex => this.getComplexStatusData(complex.complexName, labels, ['CANCELADA', 'EXPIRADA', 'NO_SHOW']))
    };
    const rejectedSeries = {
      name: "Rechazadas",
      data: topComplexes.map(complex => this.getComplexStatusData(complex.complexName, labels, ['RECHAZADA']))
    };
    this.StackedColumnChart = {
      series: topComplexes.length > 0 ? [successfulSeries, pendingSeries, cancelledSeries, rejectedSeries] : [{
        name: "Sin datos",
        data: []
      }],
      chart: {
        type: "bar",
        height: 350,
        stacked: true,
        toolbar: {
          show: true
        },
        zoom: {
          enabled: true
        }
      },
      responsive: [{
        breakpoint: 480,
        options: {
          legend: {
            position: "bottom",
            offsetX: -10,
            offsetY: 0
          }
        }
      }],
      plotOptions: {
        bar: {
          horizontal: false,
          borderRadius: 10,
          dataLabels: {
            total: {
              enabled: true,
              style: {
                fontSize: '13px',
                fontWeight: 900
              }
            }
          }
        }
      },
      xaxis: {
        categories: topComplexes.map(c => c.complexName),
        labels: {
          rotate: -45,
          rotateAlways: true,
          trim: true,
          maxHeight: 120
        }
      },
      yaxis: {
        title: {
          text: 'Número de Reservas'
        }
      },
      legend: {
        position: "top",
        offsetY: 0
      },
      fill: {
        opacity: 1
      },
      colors: colors,
      tooltip: {
        y: {
          formatter: function (val) {
            return val + " reservas";
          }
        }
      }
    };
  }
  getComplexStatusData(complexName, labels, statuses) {
    const currentDate = new Date();
    const startDate = new Date(currentDate.getFullYear(), currentDate.getMonth() - 5, 1);
    const endDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
    return this.reservationsList.filter(reserva => {
      const reservaDate = new Date(reserva.fechaReserva);
      return statuses.includes(reserva.estadoReserva) && reserva.campoDeportivoDto?.complejoDto?.nombre === complexName && reservaDate >= startDate && reservaDate <= endDate;
    }).length;
  }
  /* API Services */
  getReservations() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        _this2.loading = true;
        const allReservations = yield _this2.getAllPages(0, []);
        _this2.reservationsList = allReservations;
        console.log('Total reservas cargadas:', _this2.reservationsList.length);
      } catch (error) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Error al obtener las reservas',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      } finally {
        _this2.loading = false;
      }
    })();
  }
  getAllPages(page, accumulatedData) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const data = yield _this3.reservasService.getAll(page, 20).toPromise();
      if (data['status'] === 'OK') {
        const newData = accumulatedData.concat(data.payload.content);
        const pageInfo = data.payload;
        if (!pageInfo.last) {
          return _this3.getAllPages(page + 1, newData);
        } else {
          return newData;
        }
      } else {
        console.error('Error en la respuesta de la API', data);
        return accumulatedData;
      }
    })();
  }
  static {
    this.ɵfac = function DashboardComponent_Factory(t) {
      return new (t || DashboardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_toast_service__WEBPACK_IMPORTED_MODULE_3__.ToastService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_4__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
      type: DashboardComponent,
      selectors: [["app-dashboard"]],
      decls: 104,
      vars: 16,
      consts: [[1, "row", "mb-3", "pb-1"], [1, "col-12"], [1, "d-flex", "align-items-lg-center", "flex-lg-row", "flex-column"], [1, "flex-grow-1"], [1, "fs-16", "mb-1"], [1, "text-muted", "mb-0"], [1, "mt-3", "mt-lg-0"], [1, "row", "g-3", "mb-0", "align-items-center"], [1, "col-auto"], ["routerLink", "/inicio/taxpayer"], ["type", "button", 1, "btn", "btn-soft-secondary"], [1, "ri-add-circle-line", "align-middle", "me-1"], [1, "row"], [1, "col-xl-8"], [1, "card"], [1, "card-header", "border-0", "align-items-center", "d-flex"], [1, "card-title", "mb-0", "flex-grow-1"], [1, "d-flex", "gap-1"], ["type", "button", 1, "btn", "btn-soft-secondary", "btn-sm", 3, "click"], ["type", "button", 1, "btn", "btn-soft-primary", "btn-sm", 3, "click"], [1, "card-header", "p-0", "border-0", "bg-light-subtle"], [1, "row", "g-0", "text-center"], [1, "col-6", "col-sm-4", "col-lg-2"], [1, "p-3", "border", "border-dashed", "border-start-0"], [1, "mb-1"], [1, "counter-value", 3, "countUp", "options"], [1, "text-muted", "mb-0", "fs-11"], [1, "mb-1", "text-warning"], [1, "mb-1", "text-danger"], [1, "mb-1", "text-info"], [1, "p-3", "border", "border-dashed", "border-start-0", "border-end-0"], [1, "mb-1", "text-success"], [1, "card-body", "p-0", "pb-2"], [1, "w-100"], ["dir", "ltr", "class", "apex-charts", 3, "series", "chart", "xaxis", "stroke", "dataLabels", "yaxis", "labels", "legend", "title", "colors", "fill", "plotOptions", "tooltip", "grid", "annotations", "markers", 4, "ngIf"], [1, "col-xl-4", "col-md-6"], [1, "card", "card-height-100"], [1, "card-header", "align-items-center", "d-flex"], [1, "flex-shrink-0"], ["ngbDropdown", "", 1, "dropdown", "card-header-dropdown"], ["href", "javascript:void(0);", "data-bs-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "text-body", "dropdown-btn", "arrow-none"], [1, "text-muted", "fs-16"], [1, "mdi", "mdi-dots-vertical", "align-middle"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", 3, "click"], [1, "card-body"], [1, "table-responsive", "table-card"], [3, "List"], [1, "col-xl-12"], [1, "card-header"], [1, "card-title", "mb-0"], ["dir", "ltr", 3, "series", "chart", "dataLabels", "plotOptions", "responsive", "xaxis", "yaxis", "legend", "fill", "colors", "tooltip", 4, "ngIf"], ["aria-live", "polite", "aria-atomic", "true"], ["dir", "ltr", 1, "apex-charts", 3, "series", "chart", "xaxis", "stroke", "dataLabels", "yaxis", "labels", "legend", "title", "colors", "fill", "plotOptions", "tooltip", "grid", "annotations", "markers"], ["dir", "ltr", 3, "series", "chart", "dataLabels", "plotOptions", "responsive", "xaxis", "yaxis", "legend", "fill", "colors", "tooltip"]],
      template: function DashboardComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "h4", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "p", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "Revisa tus reservas en Deportes GAMQ.");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "div", 8)(11, "a", 9)(12, "button", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](14, " Reservas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "div", 12)(16, "div", 13)(17, "div", 14)(18, "div", 15)(19, "h4", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](20, "An\u00E1lisis de Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "div", 17)(22, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_button_click_22_listener() {
            return ctx.setRevenueValue("all");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](23, "Todo");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_button_click_24_listener() {
            return ctx.setRevenueValue("1M");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](25, "1M");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](26, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_button_click_26_listener() {
            return ctx.setRevenueValue("6M");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](27, "6M");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](28, "button", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_button_click_28_listener() {
            return ctx.setRevenueValue("1A");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](29, "1A");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](30, "div", 20)(31, "div", 21)(32, "div", 22)(33, "div", 23)(34, "h5", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](35, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](36, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](37, "Exitosas");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](38, "div", 22)(39, "div", 23)(40, "h5", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](41, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](42, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](43, "Pendientes");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](44, "div", 22)(45, "div", 23)(46, "h5", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](47, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](48, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](49, "Canceladas");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](50, "div", 22)(51, "div", 23)(52, "h5", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](53, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](54, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](55, "No Show");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](56, "div", 22)(57, "div", 23)(58, "h5", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](59, " Bs. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](60, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](61, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](62, "Ingresos");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](63, "div", 22)(64, "div", 30)(65, "h5", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](66, "span", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](67, "% ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](68, "p", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](69, "Tasa \u00C9xito");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](70, "div", 32)(71, "div", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](72, DashboardComponent_apx_chart_72_Template, 1, 16, "apx-chart", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](73, "div", 35)(74, "div", 36)(75, "div", 37)(76, "h4", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](77, "Ingresos por Complejo");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](78, "div", 38)(79, "div", 39)(80, "a", 40)(81, "span", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](82, "i", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](83, "div", 43)(84, "a", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_a_click_84_listener() {
            return ctx.onDateRangeChange("Today");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](85, "Hoy");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](86, "a", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_a_click_86_listener() {
            return ctx.onDateRangeChange("Weekly");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](87, "Esta Semana");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](88, "a", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_a_click_88_listener() {
            return ctx.onDateRangeChange("Monthly");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](89, "Este Mes");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](90, "a", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function DashboardComponent_Template_a_click_90_listener() {
            return ctx.onDateRangeChange("Year");
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](91, "Este A\u00F1o");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](92, "div", 45)(93, "div", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](94, "app-top-pages", 47);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](95, "div", 12)(96, "div", 48)(97, "div", 14)(98, "div", 49)(99, "h4", 50);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](100, "Estados de Reservas por Complejo (\u00FAltimos 6 meses)");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](101, "div", 45);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](102, DashboardComponent_apx_chart_102_Template, 1, 11, "apx-chart", 51);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](103, "app-toasts", 52);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("Bienvenida, ", ctx.userData.username, "!");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](30);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.totalReservations)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.totalPending)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.totalCancellations)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.totalNoShow)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.totalIncome)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("countUp", ctx.conversionRatio)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.reservationsList.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](22);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("List", ctx.filteredReservations);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.reservationsList.length > 0);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownMenu, ng_apexcharts__WEBPACK_IMPORTED_MODULE_13__.ChartComponent, ngx_countup__WEBPACK_IMPORTED_MODULE_14__.CountUpDirective, _shared_widget_analytics_top_pages_top_pages_component__WEBPACK_IMPORTED_MODULE_6__.TopPagesComponent, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_15__.Dir, _toasts_container_component__WEBPACK_IMPORTED_MODULE_7__.ToastsContainer],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvZGFzaGJvYXJkcy9hZG1pbi9kYXNoYm9hcmQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSTtJQUVFLGtCQUFBO0lBQ0EsbUJBQUE7RUFBSjtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhIChtYXgtd2lkdGg6IDc2N3B4KSB7XHJcbiAgICAuY2FyZCB7XHJcbiAgICAvLyAgIG1hcmdpbjogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMTVweDtcclxuICAgICAgbWFyZ2luLXJpZ2h0OiAtMTVweDtcclxuICAgIH1cclxuICB9Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 11766:
/*!*********************************************************!*\
  !*** ./src/app/pages/dashboards/admin/toast-service.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ToastService: () => (/* binding */ ToastService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

class ToastService {
  constructor() {
    this.toasts = [];
  }
  show(textOrTpl, options = {}) {
    this.toasts.push({
      textOrTpl,
      ...options
    });
  }
  remove(toast) {
    this.toasts = this.toasts.filter(t => t !== toast);
  }
  static {
    this.ɵfac = function ToastService_Factory(t) {
      return new (t || ToastService)();
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
      token: ToastService,
      factory: ToastService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

/***/ 65852:
/*!**********************************************************************!*\
  !*** ./src/app/pages/dashboards/admin/toasts-container.component.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ToastsContainer: () => (/* binding */ ToastsContainer)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _toast_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toast-service */ 11766);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);





function ToastsContainer_For_1_ng_template_1_ng_template_0_Template(rf, ctx) {}
function ToastsContainer_For_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ToastsContainer_For_1_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 4);
  }
  if (rf & 2) {
    const toast_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngTemplateOutlet", toast_r2.textOrTpl);
  }
}
function ToastsContainer_For_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
  }
  if (rf & 2) {
    const toast_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](toast_r2.textOrTpl);
  }
}
function ToastsContainer_For_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ngb-toast", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("hidden", function ToastsContainer_For_1_Template_ngb_toast_hidden_0_listener() {
      const toast_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.toastService.remove(toast_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ToastsContainer_For_1_ng_template_1_Template, 1, 1, "ng-template", 3)(2, ToastsContainer_For_1_ng_template_2_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const toast_r2 = ctx.$implicit;
    const text_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](3);
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMap"](toast_r2.classname);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("autohide", true)("delay", toast_r2.delay || 5000);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isTemplate(toast_r2))("ngIfElse", text_r4);
  }
}
class ToastsContainer {
  constructor(toastService) {
    this.toastService = toastService;
  }
  isTemplate(toast) {
    return toast.textOrTpl instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef;
  }
  static {
    this.ɵfac = function ToastsContainer_Factory(t) {
      return new (t || ToastsContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_toast_service__WEBPACK_IMPORTED_MODULE_0__.ToastService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: ToastsContainer,
      selectors: [["app-toasts"]],
      hostAttrs: [1, "toast-container", "position-fixed", "top-0", "end-0", "p-3", 2, "z-index", "1200"],
      decls: 2,
      vars: 0,
      consts: [["text", ""], [3, "class", "autohide", "delay"], [3, "hidden", "autohide", "delay"], [3, "ngIf", "ngIfElse"], [3, "ngTemplateOutlet"]],
      template: function ToastsContainer_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](0, ToastsContainer_For_1_Template, 4, 6, "ngb-toast", 1, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterTrackByIndex"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx.toastService.toasts);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgTemplateOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbToast],
      encapsulation: 2
    });
  }
}

/***/ }),

/***/ 32790:
/*!***************************************************************************!*\
  !*** ./src/app/pages/dashboards/calendar/calendar-dashboard.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CalendarDashboardComponent: () => (/* binding */ CalendarDashboardComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _fullcalendar_interaction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fullcalendar/interaction */ 19426);
/* harmony import */ var _fullcalendar_daygrid__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @fullcalendar/daygrid */ 75660);
/* harmony import */ var _fullcalendar_timegrid__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @fullcalendar/timegrid */ 76863);
/* harmony import */ var _fullcalendar_list__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @fullcalendar/list */ 64342);
/* harmony import */ var _fullcalendar_multimonth__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @fullcalendar/multimonth */ 43951);
/* harmony import */ var _fullcalendar_core_locales_es__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @fullcalendar/core/locales/es */ 61785);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var _modals_modal_booking_one_time_modal_booking_one_time_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../modals/modal-booking-one-time/modal-booking-one-time.component */ 85840);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs */ 64334);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _admin_toast_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../admin/toast-service */ 11766);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-cookie-service */ 39213);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @fullcalendar/angular */ 87997);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/common */ 60316);























const _c0 = ["confirmModal"];
const _forTrack0 = ($index, $item) => $item.name;
const _forTrack1 = ($index, $item) => $item.uuid;
const _forTrack2 = ($index, $item) => $item.id;
function CalendarDashboardComponent_For_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "label", 13)(1, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function CalendarDashboardComponent_For_20_Template_input_ngModelChange_1_listener($event) {
      const filter_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](filter_r3.checked, $event) || (filter_r3.checked = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function CalendarDashboardComponent_For_20_Template_input_change_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r3.onCheckboxChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "span", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const filter_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", filter_r3.checked);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleProp"]("background-color", filter_r3.color);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", filter_r3.label, " ");
  }
}
function CalendarDashboardComponent_Conditional_22_For_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "option", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const complejo_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", complejo_r6.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](complejo_r6.nombre);
  }
}
function CalendarDashboardComponent_Conditional_22_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Mostrando todos ");
  }
}
function CalendarDashboardComponent_Conditional_22_Conditional_10_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"]("", ctx.nombre, " ");
  }
}
function CalendarDashboardComponent_Conditional_22_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, CalendarDashboardComponent_Conditional_22_Conditional_10_Conditional_0_Template, 2, 1);
  }
  if (rf & 2) {
    let tmp_3_0;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](0, (tmp_3_0 = ctx_r3.getSelectedComplejo()) ? 0 : -1, tmp_3_0);
  }
}
function CalendarDashboardComponent_Conditional_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 28)(1, "label", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "select", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function CalendarDashboardComponent_Conditional_22_Template_select_ngModelChange_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx_r3.selectedComplejoUuid, $event) || (ctx_r3.selectedComplejoUuid = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function CalendarDashboardComponent_Conditional_22_Template_select_ngModelChange_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r3.onComplejoFilterChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "option", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Todos los Complejos");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](6, CalendarDashboardComponent_Conditional_22_For_7_Template, 2, 2, "option", 32, _forTrack1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, CalendarDashboardComponent_Conditional_22_Conditional_9_Template, 2, 0)(10, CalendarDashboardComponent_Conditional_22_Conditional_10_Template, 1, 1);
    _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"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx_r3.selectedComplejoUuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx_r3.complejosList);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](9, ctx_r3.selectedComplejoUuid === "all" ? 9 : 10);
  }
}
function CalendarDashboardComponent_Conditional_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 18)(1, "div", 2)(2, "div", 36)(3, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "div")(6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, "Mostrando solo eventos de este complejo");
    _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"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r3.employee.complejoDto.nombre);
  }
}
function CalendarDashboardComponent_Conditional_36_For_1_Conditional_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "span", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const event_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](event_r8.extendedProps.description);
  }
}
function CalendarDashboardComponent_Conditional_36_For_1_Conditional_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 55)(1, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " Recurrente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function CalendarDashboardComponent_Conditional_36_For_1_Conditional_23_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const event_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", event_r8.extendedProps.motivo, " ");
  }
}
function CalendarDashboardComponent_Conditional_36_For_1_Conditional_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 55)(1, "span", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, CalendarDashboardComponent_Conditional_36_For_1_Conditional_23_Conditional_3_Template, 3, 1, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const event_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleProp"]("background-color", event_r8.backgroundColor);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (event_r8.extendedProps == null ? null : event_r8.extendedProps.tipoExcepcion) || "Excepci\u00F3n", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](3, (event_r8.extendedProps == null ? null : event_r8.extendedProps.motivo) ? 3 : -1);
  }
}
function CalendarDashboardComponent_Conditional_36_For_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CalendarDashboardComponent_Conditional_36_For_1_Template_div_click_0_listener() {
      const event_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r7).$implicit;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r3.handleUpcomingEventClick(event_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 42)(2, "div", 43)(3, "div", 44)(4, "div", 45)(5, "span", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div")(8, "h6", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "div", 49)(13, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "div", 51)(16, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](17, "i", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "span", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](20, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](21, CalendarDashboardComponent_Conditional_36_For_1_Conditional_21_Template, 4, 1, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](22, CalendarDashboardComponent_Conditional_36_For_1_Conditional_22_Template, 4, 0, "div", 55)(23, CalendarDashboardComponent_Conditional_36_For_1_Conditional_23_Template, 4, 4, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const event_r8 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleProp"]("border-left-color", event_r8.backgroundColor);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r3.getEventIcon(event_r8.extendedProps == null ? null : event_r8.extendedProps.type));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (event_r8.extendedProps == null ? null : event_r8.extendedProps.campo) || "Campo", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (event_r8.extendedProps == null ? null : event_r8.extendedProps.complejo) || "Complejo", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleProp"]("background-color", event_r8.backgroundColor);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate2"](" ", event_r8.extendedProps == null ? null : event_r8.extendedProps.horaInicio, " - ", event_r8.extendedProps == null ? null : event_r8.extendedProps.horaFin, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind4"](20, 13, event_r8.start, "EEEE, dd MMMM yyyy", "", "es"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](21, (event_r8.extendedProps == null ? null : event_r8.extendedProps.description) && (event_r8.extendedProps == null ? null : event_r8.extendedProps.type) !== "excepcion" ? 21 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](22, (event_r8.extendedProps == null ? null : event_r8.extendedProps.type) === "reserva-recurrente" ? 22 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](23, (event_r8.extendedProps == null ? null : event_r8.extendedProps.type) === "excepcion" ? 23 : -1);
  }
}
function CalendarDashboardComponent_Conditional_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](0, CalendarDashboardComponent_Conditional_36_For_1_Template, 24, 18, "div", 40, _forTrack2);
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx_r3.upcomingEvents);
  }
}
function CalendarDashboardComponent_Conditional_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "No hay eventos pr\u00F3ximos programados");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function CalendarDashboardComponent_ng_template_38_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 65)(1, "h5", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Confirmaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "button", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CalendarDashboardComponent_ng_template_38_Template_button_click_4_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "div", 68)(6, "div", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "i", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, "\u00BFDesea realizar una reserva?");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "div", 71)(11, "button", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CalendarDashboardComponent_ng_template_38_Template_button_click_11_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](12, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](13, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "button", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CalendarDashboardComponent_ng_template_38_Template_button_click_14_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      ctx_r3.confirmReservation();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.close());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](15, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](16, "S\u00ED, continuar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
// import { BookingOneTimeModalComponent } from '../../booking-one-time/modal/modal.component';
class CalendarDashboardComponent {
  constructor(route, router, toastService, modalService, campoDeportivoService, complejoService, reservasService, authService, cookieService) {
    this.route = route;
    this.router = router;
    this.toastService = toastService;
    this.modalService = modalService;
    this.campoDeportivoService = campoDeportivoService;
    this.complejoService = complejoService;
    this.reservasService = reservasService;
    this.authService = authService;
    this.cookieService = cookieService;
    this.allcalendarEvents = [];
    this.complejosList = [];
    this.selectedComplejoUuid = 'all';
    this.calendarEvents = [];
    this.upcomingEvents = [];
    this.direction = 'ltr';
    this.selectedLocale = 'es';
    this.masterSelected = true;
    this.showFilters = false;
    this.filterArray = [{
      name: 'reserva-puntual',
      label: 'Reservas Puntuales',
      checked: true,
      color: '#10b981'
    }, {
      name: 'reserva-recurrente',
      label: 'Reservas Recurrentes',
      checked: true,
      color: '#3b82f6'
    }, {
      name: 'excepcion',
      label: 'Excepciones (Cerrado/Mantenimiento/Eventos)',
      checked: true,
      color: '#ef4444'
    }];
    this.filterEvents = [];
    /**
     * Calendar configuration
     */
    this.calendarOptions = {
      plugins: [_fullcalendar_daygrid__WEBPACK_IMPORTED_MODULE_10__["default"], _fullcalendar_list__WEBPACK_IMPORTED_MODULE_11__["default"], _fullcalendar_interaction__WEBPACK_IMPORTED_MODULE_12__["default"], _fullcalendar_timegrid__WEBPACK_IMPORTED_MODULE_13__["default"], _fullcalendar_multimonth__WEBPACK_IMPORTED_MODULE_14__["default"]],
      headerToolbar: {
        right: 'multiMonthYear,dayGridMonth,timeGridWeek,timeGridDay,listWeek',
        center: 'title',
        left: 'prev,next today'
      },
      initialView: 'dayGridMonth',
      themeSystem: "bootstrap",
      weekends: true,
      droppable: false,
      editable: false,
      selectable: true,
      selectMirror: true,
      dayMaxEvents: 3,
      dayMaxEventRows: 3,
      dayPopoverFormat: {
        month: 'long',
        day: 'numeric',
        year: 'numeric'
      },
      moreLinkClick: 'popover',
      moreLinkContent: args => {
        return `+${args.num} más`;
      },
      direction: 'ltr',
      locale: 'es',
      locales: [_fullcalendar_core_locales_es__WEBPACK_IMPORTED_MODULE_15__["default"]],
      slotMinTime: '06:00:00',
      slotMaxTime: '23:00:00',
      allDaySlot: false,
      eventTimeFormat: {
        hour: '2-digit',
        minute: '2-digit',
        hour12: false
      },
      eventDisplay: 'block',
      eventColor: '#3788d8',
      eventTextColor: '#ffffff',
      eventBackgroundColor: '#3788d8',
      eventBorderColor: '#3788d8',
      select: this.redirectTo.bind(this),
      eventClick: this.handleEventClick.bind(this),
      eventsSet: this.handleEvents.bind(this),
      datesSet: this.handleViewChange.bind(this)
    };
    this.currentEvents = [];
    this.canActivate = this.authService.hasPermission('Reservas');
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.breadCrumbItems = [{
        label: 'Dashboards'
      }, {
        label: 'Calendario',
        active: true
      }];
      const currentUser = _this.authService.currentUser();
      _this.employee = _this.authService.staff();
      if (_this.authService.tokenUser() === 'CONTRIBUYENTE_SESSION') {
        _this.contribuyente = currentUser ? JSON.parse(currentUser) : null;
      }
      _this.authService.loginEvent$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_16__.take)(1)).subscribe(event => {
        _this.showConsolidatedSystemStatus(event);
      });
      _this.loadCalendarViewPreference();
      if (_this.employee) {
        _this.complejosList = _this.employee && _this.employee.complejoDto ? [_this.employee.complejoDto] : [];
      } else {
        try {
          _this.complejosList = yield _this.complejoService.getAll().toPromise().then(res => {
            if (res.status === 'OK') {
              return res.payload;
            } else {
              return [];
            }
          });
        } catch (error) {
          _this.complejosList = [];
        }
      }
      _this.selectedComplejoUuid = _this.employee && _this.employee.complejoDto?.uuid ? _this.employee.complejoDto.uuid : 'all';
      _this._fetchData();
    })();
  }
  showConsolidatedSystemStatus(event) {
    const configsLoaded = event.configsLoaded || 0;
    const finalRuatConnected = event.ruatStatus;
    let welcomeTitle = '';
    let welcomeMessage = '';
    const configsCount = Object.keys(this.authService.getAllConfigs() || {}).length;
    switch (event.message) {
      case 'welcome_admin':
        welcomeTitle = '🎉 ¡Bienvenido Administrador!';
        welcomeMessage = 'Inicio de sesión exitoso con privilegios de administrador.';
        break;
      case 'welcome_staff':
        welcomeTitle = '👤 ¡Bienvenido Encargado!';
        welcomeMessage = 'Inicio de sesión exitoso.';
        break;
      default:
        welcomeTitle = '🎉 ¡Bienvenido!';
        welcomeMessage = 'Inicio de sesión exitoso.';
    }
    let statusMessage = '📊 Estado del Sistema:\n\n';
    if (configsLoaded > 0) {
      statusMessage += '✅ Sistema Principal: CONECTADO\n';
      statusMessage += `⚙️ Configuraciones: ${configsLoaded} cargadas\n`;
    } else {
      statusMessage += '⚠️ Sistema Principal: CONEXIÓN LIMITADA\n';
      statusMessage += `⚙️ Configuraciones: 0 cargadas\n`;
    }
    if (finalRuatConnected) {
      statusMessage += '✅ RUAT: CONECTADO\n';
      statusMessage += '   → Todas las funciones disponibles';
    } else {
      statusMessage += '❌ RUAT: NO DISPONIBLE\n\n';
      statusMessage += '   ⚠️ ADVERTENCIA IMPORTANTE:\n';
      statusMessage += '   • No se puede conectar al sistema RUAT\n';
      statusMessage += '   • Las reservas nuevas NO estarán disponibles\n';
      statusMessage += '   • Solo podrá consultar reservas existentes\n';
      statusMessage += '   • La verificación de contribuyentes estará limitada\n\n';
      statusMessage += '   💡 Recomendación:\n';
      statusMessage += '   • Si necesita realizar reservas, cierre sesión y vuelva a intentar más tarde\n';
      statusMessage += '   • Contacte al administrador si el problema persiste';
    }
    const fullMessage = `${welcomeMessage}\n\n${statusMessage}`;
    this.toastService.show(fullMessage, {
      classname: finalRuatConnected ? 'bg-success text-light' : 'bg-warning text-dark',
      header: welcomeTitle,
      delay: 15000
    });
  }
  onComplejoFilterChange() {
    this._fetchData();
  }
  getSelectedComplejo() {
    if (this.selectedComplejoUuid === 'all') {
      return null;
    }
    return this.complejosList.find(c => c.uuid === this.selectedComplejoUuid) || null;
  }
  _fetchData() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const [reservasPuntuales, reservasRecurrentes, camposDeportivos] = yield Promise.all([_this2.reservasService.getByTipo('puntual').toPromise(), _this2.reservasService.getByTipo('recurrente').toPromise(), _this2.campoDeportivoService.getAll().toPromise()]);
        let allEvents = [];
        if (reservasPuntuales?.status === 'OK') {
          let reservasPuntualesData = reservasPuntuales.payload.filter(item => item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO);
          if (_this2.employee) {
            reservasPuntualesData = reservasPuntualesData.filter(item => item.campoDeportivoDto?.complejoDto?.uuid === _this2.employee.complejoDto?.uuid);
          } else if (_this2.selectedComplejoUuid !== 'all') {
            reservasPuntualesData = reservasPuntualesData.filter(item => item.campoDeportivoDto?.complejoDto?.uuid === _this2.selectedComplejoUuid);
          }
          if (_this2.contribuyente) {
            reservasPuntualesData = reservasPuntualesData.filter(item => item.contribuyenteDto?.uuid === _this2.contribuyente.uuid);
          }
          const eventosPuntuales = reservasPuntualesData.map(evt => {
            const reservaPuntual = evt.reservaPuntualDto;
            const fechaBase = reservaPuntual?.fechaUso || evt.fechaReserva;
            const horaEntrada = reservaPuntual?.horaInicio;
            const horaSalida = reservaPuntual?.horaFin;
            if (!horaEntrada || !horaSalida) {
              return null;
            }
            const startTime = _this2.formatTime(horaEntrada);
            const endTime = _this2.formatTime(horaSalida);
            const campoNombre = evt.campoDeportivoDto?.nombre || 'Campo';
            const complejoNombre = evt.campoDeportivoDto?.complejoDto?.nombre || 'Complejo';
            return {
              id: `puntual-${evt.uuid}`,
              title: `${startTime}-${endTime} | ${complejoNombre} -${campoNombre}`,
              start: `${fechaBase.split('T')[0]}T${horaEntrada}`,
              end: `${fechaBase.split('T')[0]}T${horaSalida}`,
              backgroundColor: '#10b981',
              borderColor: '#059669',
              textColor: '#fff',
              extendedProps: {
                type: 'reserva-puntual',
                row: evt,
                description: evt.contribuyenteDto?.nombre || 'Cliente',
                complejo: complejoNombre,
                campo: campoNombre,
                horaInicio: startTime,
                horaFin: endTime
              }
            };
          }).filter(event => event !== null);
          allEvents = [...allEvents, ...eventosPuntuales];
        }
        if (reservasRecurrentes?.status === 'OK') {
          let reservasRecurrentesData = reservasRecurrentes.payload.filter(item => item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA || item.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO);
          if (_this2.employee) {
            reservasRecurrentesData = reservasRecurrentesData.filter(item => item.campoDeportivoDto?.complejoDto?.uuid === _this2.employee.complejoDto?.uuid);
          } else if (_this2.selectedComplejoUuid !== 'all') {
            reservasRecurrentesData = reservasRecurrentesData.filter(item => item.campoDeportivoDto?.complejoDto?.uuid === _this2.selectedComplejoUuid);
          }
          if (_this2.contribuyente) {
            reservasRecurrentesData = reservasRecurrentesData.filter(item => item.contribuyenteDto?.uuid === _this2.contribuyente.uuid);
          }
          const eventosRecurrentes = _this2.generateRecurringEvents(reservasRecurrentesData);
          allEvents = [...allEvents, ...eventosRecurrentes];
        }
        if (camposDeportivos?.status === 'OK') {
          let camposDeportivosData = camposDeportivos.payload;
          let horariosExcepcion = [];
          camposDeportivosData.forEach(campo => {
            if (campo.horariosExcepcionesDtoList && Array.isArray(campo.horariosExcepcionesDtoList)) {
              const exceptionsWithCampo = campo.horariosExcepcionesDtoList.map(exc => ({
                ...exc,
                campoDeportivoDto: campo
              }));
              horariosExcepcion = [...horariosExcepcion, ...exceptionsWithCampo];
            }
          });
          if (_this2.employee) {
            horariosExcepcion = horariosExcepcion.filter(exc => exc.campoDeportivoDto?.complejoDto?.uuid === _this2.employee.complejoDto?.uuid);
          } else if (_this2.selectedComplejoUuid !== 'all') {
            horariosExcepcion = horariosExcepcion.filter(exc => exc.campoDeportivoDto?.complejoDto?.uuid === _this2.selectedComplejoUuid);
          }
          const eventosExcepcion = horariosExcepcion.map(exc => {
            let backgroundColor = '#059669';
            let borderColor = '#dc2626';
            let title = 'CERRADO';
            const tipoExcepcion = (exc.tipoExcepcion || '').toUpperCase();
            if (tipoExcepcion.includes('MANTENIMIENTO')) {
              backgroundColor = '#f59e0b';
              borderColor = '#d97706';
              title = 'MANTENIMIENTO';
            } else if (tipoExcepcion.includes('EVENTO') || tipoExcepcion.includes('MUNICIPAL')) {
              backgroundColor = '#8b5cf6';
              borderColor = '#7c3aed';
              title = 'EVENTO MUNICIPAL';
            } else if (tipoExcepcion.includes('ESPECIAL')) {
              backgroundColor = '#06b6d4';
              borderColor = '#0891b2';
              title = 'HORARIO ESPECIAL';
            }
            const horaInicio = exc.horaApertura || '00:00:00';
            const horaFin = exc.horaCierre || '23:59:59';
            const startTime = _this2.formatTime(horaInicio);
            const endTime = _this2.formatTime(horaFin);
            const campoNombre = exc.campoDeportivoDto?.nombre || 'Campo';
            const complejoNombre = exc.campoDeportivoDto?.complejoDto?.nombre || 'Complejo';
            return {
              id: `excepcion-${exc.uuid}`,
              title: `${startTime}-${endTime} | ${complejoNombre} -${campoNombre} - ${title}`,
              start: `${exc.fecha.split('T')[0]}T${horaInicio}`,
              end: `${exc.fecha.split('T')[0]}T${horaFin}`,
              backgroundColor: backgroundColor,
              borderColor: borderColor,
              textColor: '#fff',
              extendedProps: {
                type: 'excepcion',
                row: exc,
                motivo: exc.motivo || 'Sin motivo especificado',
                tipoExcepcion: title,
                campo: campoNombre,
                complejo: complejoNombre,
                horaInicio: startTime,
                horaFin: endTime
              }
            };
          });
          allEvents = [...allEvents, ...eventosExcepcion];
        }
        _this2.allcalendarEvents = allEvents;
        _this2.calendarEvents = allEvents;
        _this2.updateUpcomingEvents();
        _this2.calendarOptions.events = _this2.calendarEvents;
      } catch (error) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          icon: 'error',
          title: 'Error',
          text: 'No se pudieron cargar los eventos del calendario'
        });
      }
    })();
  }
  /**
   * Format time from HH:mm:ss to HH:mm
   */
  formatTime(time) {
    if (!time) return '';
    const parts = time.split(':');
    return `${parts[0]}:${parts[1]}`;
  }
  /**
   * Update upcoming events list (next 10 events sorted by date)
   */
  updateUpcomingEvents() {
    const now = new Date();
    this.upcomingEvents = [...this.calendarEvents].filter(event => new Date(event.start) >= now).sort((a, b) => new Date(a.start).getTime() - new Date(b.start).getTime()).slice(0, 10);
  }
  /**
   * Generate individual events from recurring reservations
   */
  generateRecurringEvents(reservasRecurrentes) {
    const events = [];
    reservasRecurrentes.forEach(reserva => {
      const reservaRecurrente = reserva.reservaRecurrenteDto;
      const fechaInicio = new Date(reservaRecurrente?.fechaInicio);
      const fechaFin = new Date(reservaRecurrente?.fechaFin);
      let diasSemanaStr = reservaRecurrente?.diasSemana || '';
      let diasArray = [];
      if (diasSemanaStr) {
        diasArray = diasSemanaStr.split(',').map(dia => dia.trim().toUpperCase());
      }
      const dayMap = {
        'DOMINGO': 0,
        'LUNES': 1,
        'MARTES': 2,
        'MIERCOLES': 3,
        'MIÉRCOLES': 3,
        'JUEVES': 4,
        'VIERNES': 5,
        'SABADO': 6,
        'SÁBADO': 6
      };
      const daysToGenerate = diasArray.map(dia => dayMap[dia]).filter(day => day !== undefined);
      let horaEntrada = '08:00:00';
      let horaSalida = '09:00:00';
      if (reservaRecurrente?.tableroDto?.horario) {
        const horario = reservaRecurrente.tableroDto.horario;
        const firstTimeSlot = horario.find(slot => slot && slot.length >= 2);
        if (firstTimeSlot && firstTimeSlot[1]) {
          const [start, end] = firstTimeSlot[1].split('-');
          horaEntrada = start;
          horaSalida = end;
        }
      }
      if (!horaEntrada || !horaSalida) {
        return;
      }
      const startTime = this.formatTime(horaEntrada);
      const endTime = this.formatTime(horaSalida);
      const campoNombre = reserva.campoDeportivoDto?.nombre || 'Campo';
      const complejoNombre = reserva.campoDeportivoDto?.complejoDto?.nombre || 'Complejo';
      let currentDate = new Date(fechaInicio);
      while (currentDate <= fechaFin) {
        if (daysToGenerate.length === 0 || daysToGenerate.includes(currentDate.getDay())) {
          const dateStr = currentDate.toISOString().split('T')[0];
          events.push({
            id: `recurrente-${reserva.uuid}-${dateStr}`,
            title: `${startTime}-${endTime} | ${campoNombre} (R)`,
            start: `${dateStr}T${horaEntrada}`,
            end: `${dateStr}T${horaSalida}`,
            backgroundColor: '#3b82f6',
            borderColor: '#2563eb',
            textColor: '#fff',
            extendedProps: {
              type: 'reserva-recurrente',
              row: reserva,
              description: reserva.contribuyenteDto?.nombre || 'Cliente',
              complejo: complejoNombre,
              campo: campoNombre,
              horaInicio: startTime,
              horaFin: endTime
            }
          });
        }
        currentDate.setDate(currentDate.getDate() + 1);
      }
    });
    return events;
  }
  handleEvents(events) {
    this.currentEvents = events;
    this.updateUpcomingEvents();
  }
  handleEventClick(clickInfo) {
    const eventType = clickInfo.event.extendedProps['type'];
    const row = clickInfo.event.extendedProps['row'];
    if (eventType === 'excepcion') {
      const tipoExcepcion = clickInfo.event.extendedProps['tipoExcepcion'];
      const motivo = clickInfo.event.extendedProps['motivo'];
      const campo = clickInfo.event.extendedProps['campo'];
      const complejo = clickInfo.event.extendedProps['complejo'];
      const horaInicio = clickInfo.event.extendedProps['horaInicio'];
      const horaFin = clickInfo.event.extendedProps['horaFin'];
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: tipoExcepcion || 'Excepción',
        html: `
          <div class="text-start">
            <p><strong>Complejo:</strong> ${complejo || 'N/A'}</p>
            <p><strong>Campo:</strong> ${campo || 'N/A'}</p>
            <p><strong>Horario:</strong> ${horaInicio} - ${horaFin}</p>
            <p><strong>Fecha:</strong> ${clickInfo.event.start?.toLocaleDateString('es-ES', {
          weekday: 'long',
          year: 'numeric',
          month: 'long',
          day: 'numeric'
        })}</p>
            <p><strong>Motivo:</strong> ${motivo}</p>
          </div>
        `,
        icon: 'info',
        confirmButtonText: 'Cerrar'
      });
    } else {
      if (row.tipoReserva === 'puntual') {
        this.opemModalReservationPuntual(row);
      } else {
        this.opemModalReservationRecurrente(row);
      }
    }
  }
  handleUpcomingEventClick(event) {
    const eventType = event.extendedProps?.type;
    const row = event.extendedProps?.row;
    if (eventType === 'excepcion') {
      const tipoExcepcion = event.extendedProps?.tipoExcepcion;
      const motivo = event.extendedProps?.motivo;
      const campo = event.extendedProps?.campo;
      const complejo = event.extendedProps?.complejo;
      const horaInicio = event.extendedProps?.horaInicio;
      const horaFin = event.extendedProps?.horaFin;
      const eventDate = new Date(event.start);
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: tipoExcepcion || 'Excepción',
        html: `
          <div class="text-start">
            <p><strong>Complejo:</strong> ${complejo || 'N/A'}</p>
            <p><strong>Campo:</strong> ${campo || 'N/A'}</p>
            <p><strong>Horario:</strong> ${horaInicio} - ${horaFin}</p>
            <p><strong>Fecha:</strong> ${eventDate.toLocaleDateString('es-ES', {
          weekday: 'long',
          year: 'numeric',
          month: 'long',
          day: 'numeric'
        })}</p>
            <p><strong>Motivo:</strong> ${motivo}</p>
          </div>
        `,
        icon: 'info',
        confirmButtonText: 'Cerrar'
      });
    } else {
      if (row?.tipoReserva === 'puntual') {
        this.opemModalReservationPuntual(row);
      } else {
        this.opemModalReservationRecurrente(row);
      }
    }
  }
  /**
   * calendar preference
   */
  saveCalendarViewPreference(view) {
    try {
      const userId = this.authService.currentUser()?.uuid || 'anonymous';
      const key = `calendar_view_${userId}`;
      localStorage.setItem(key, view);
    } catch (error) {
      console.error('Error saving calendar view preference:', error);
    }
  }
  loadCalendarViewPreference() {
    try {
      const userId = this.authService.currentUser()?.uuid || 'anonymous';
      const key = `calendar_view_${userId}`;
      const savedView = localStorage.getItem(key);
      if (savedView && this.isValidView(savedView)) {
        this.calendarOptions.initialView = savedView;
      }
    } catch (error) {
      console.error('Error loading calendar view preference:', error);
    }
  }
  isValidView(view) {
    const validViews = ['dayGridMonth', 'timeGridWeek', 'timeGridDay', 'listWeek', 'multiMonthYear'];
    return validViews.includes(view);
  }
  handleViewChange(viewInfo) {
    const currentView = viewInfo.view.type;
    if (currentView && this.isValidView(currentView)) {
      this.saveCalendarViewPreference(currentView);
    }
  }
  opemModalReservationPuntual(row) {
    const modalRef = this.modalService.open(_modals_modal_booking_one_time_modal_booking_one_time_component__WEBPACK_IMPORTED_MODULE_3__.BookingOneTimeModalComponent, {
      backdrop: 'static',
      size: ''
    });
    modalRef.componentInstance.row = {
      ...row.reservaPuntualDto,
      reservaDto: row
    };
    modalRef.componentInstance.accion = 'show';
    modalRef.componentInstance.canActivate = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this._fetchData();
    });
  }
  opemModalReservationRecurrente(row) {
    const modalRef = this.modalService.open(_modals_modal_booking_one_time_modal_booking_one_time_component__WEBPACK_IMPORTED_MODULE_3__.BookingOneTimeModalComponent, {
      backdrop: 'static',
      size: ''
    });
    modalRef.componentInstance.row = {
      ...row.reservaRecurrenteDto,
      reservaDto: row
    };
    modalRef.componentInstance.accion = 'show';
    modalRef.componentInstance.canActivate = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this._fetchData();
    });
  }
  changeDirection() {
    this.calendarOptions.direction = this.direction;
  }
  changeLocale() {
    this.calendarOptions.locale = this.selectedLocale;
  }
  checkUncheckAll(ev) {
    this.masterSelected = ev.target.checked;
    this.filterArray.forEach(data => {
      data.checked = this.masterSelected;
    });
    this.onCheckboxChange();
  }
  onCheckboxChange() {
    const checkedTypes = this.filterArray.filter(item => item.checked).map(item => item.name);
    if (checkedTypes.length === 0) {
      this.calendarEvents = [];
    } else if (checkedTypes.length === this.filterArray.length) {
      this.calendarEvents = this.allcalendarEvents;
    } else {
      this.calendarEvents = this.allcalendarEvents.filter(event => checkedTypes.includes(event.extendedProps?.type));
    }
    this.calendarOptions.events = this.calendarEvents;
    this.updateUpcomingEvents();
  }
  toggleFilters() {
    this.showFilters = !this.showFilters;
  }
  redirectTo() {
    this.modalService.open(this.confirmModal);
  }
  confirmReservation() {
    this.modalService.dismissAll();
    this.router.navigate(['/inicio/taxpayer']);
  }
  getEventIcon(type) {
    if (type.includes('puntual')) return '📅';
    if (type.includes('recurrente')) return '🔄';
    if (type.includes('cerrado')) return '🔒';
    if (type.includes('mantenimiento')) return '🔧';
    if (type.includes('evento')) return '🎉';
    if (type.includes('especial')) return '⭐';
    return '📌';
  }
  static {
    this.ɵfac = function CalendarDashboardComponent_Factory(t) {
      return new (t || CalendarDashboardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_17__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_17__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_admin_toast_service__WEBPACK_IMPORTED_MODULE_4__.ToastService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_5__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_6__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_7__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_19__.CookieService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: CalendarDashboardComponent,
      selectors: [["app-calendar-dashboard"]],
      viewQuery: function CalendarDashboardComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.confirmModal = _t.first);
        }
      },
      decls: 40,
      vars: 11,
      consts: [["confirmModal", ""], [1, "row", "g-0"], [1, "col-12"], [1, "card", "cel-card"], [1, "card-header", "d-flex", "justify-content-between", "align-items-center"], [1, "card-title", "mb-0"], ["type", "button", 1, "btn", "btn-sm", "btn-primary", 3, "click"], [1, "ri-filter-line"], ["id", "filterCollapse"], [1, "card-body", "border-bottom", "py-3"], [1, "row", "align-items-center"], [1, "col-md-6", "col-lg-8"], [1, "d-flex", "flex-wrap", "gap-3", "align-items-center"], [1, "form-check", "mb-0"], ["type", "checkbox", 1, "form-check-input", 3, "change", "checked"], [1, "form-check-label", "fw-semibold"], [1, "vr"], [1, "col-md-6", "col-lg-4", "mt-3", "mt-md-0"], [1, "row", "mt-3"], [1, "card-body"], [3, "options", "events"], [1, "row", "g-0", "mt-2"], [1, "card", "mobile-events-list"], [1, "ri-calendar-check-line", "me-2"], [1, "badge", "bg-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "change", "ngModel"], [1, "form-check-label", "d-flex", "align-items-center", "gap-1"], [1, "badge", "rounded-pill", 2, "width", "12px", "height", "12px"], [1, "d-flex", "align-items-center", "gap-2"], [1, "form-label", "fw-semibold", "mb-0", "d-none", "d-md-block"], [1, "form-select", "form-select-sm", 3, "ngModelChange", "ngModel"], ["value", "all"], [3, "value"], [1, "form-text", "small", "mt-1", "text-end", "text-md-start"], [1, "ri-eye-line", "me-1"], [1, "ri-filter-line", "me-1"], [1, "alert", "alert-info", "py-2", "mb-0"], [1, "d-flex", "align-items-center"], [1, "ri-building-4-line", "me-2"], [1, "small", "text-muted"], [1, "card", "mb-2", "border-start", "border-4", 2, "cursor", "pointer", 3, "border-left-color"], [1, "card", "mb-2", "border-start", "border-4", 2, "cursor", "pointer", 3, "click"], [1, "card-body", "p-3"], [1, "d-flex", "align-items-start", "justify-content-between", "mb-2"], [1, "flex-grow-1"], [1, "d-flex", "align-items-center", "gap-2", "mb-1"], [1, "fs-5"], [1, "mb-0", "fw-semibold"], [1, "text-muted", "small", "mb-0"], [1, "text-end"], [1, "badge"], [1, "d-flex", "align-items-center", "justify-content-between"], [1, "ri-calendar-line", "text-muted"], [1, "text-muted", "small"], [1, "d-flex", "align-items-center", "gap-1"], [1, "mt-2"], [1, "ri-user-line", "text-muted", "small"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "ri-repeat-line"], [1, "badge", 2, "color", "white"], [1, "text-muted", "small", "mt-1", "mb-0"], [1, "ri-information-line"], [1, "text-center", "py-4"], [1, "ri-calendar-line", "fs-1", "text-muted", "mb-3"], [1, "text-muted"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "text-center", "py-3"], [1, "ri-question-line", "fs-1", "text-primary", "mb-3"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], [1, "ri-close-line", "me-1"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [1, "ri-check-line", "me-1"]],
      template: function CalendarDashboardComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4)(4, "h4", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "PANEL DE CONTROL DE RESERVAS");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "button", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CalendarDashboardComponent_Template_button_click_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.toggleFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "i", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, " Filtros ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "div", 8)(10, "div", 9)(11, "div", 10)(12, "div", 11)(13, "div", 12)(14, "label", 13)(15, "input", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function CalendarDashboardComponent_Template_input_change_15_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.checkUncheckAll($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "span", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Seleccionar Todo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](18, "div", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](19, CalendarDashboardComponent_For_20_Template, 5, 4, "label", 13, _forTrack0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](21, "div", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](22, CalendarDashboardComponent_Conditional_22_Template, 11, 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](23, CalendarDashboardComponent_Conditional_23_Template, 10, 1, "div", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "div", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](25, "full-calendar", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "div", 21)(27, "div", 2)(28, "div", 22)(29, "div", 4)(30, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](31, "i", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](32, "Pr\u00F3ximos Eventos ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](33, "span", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](34);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](35, "div", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](36, CalendarDashboardComponent_Conditional_36_Template, 2, 0)(37, CalendarDashboardComponent_Conditional_37_Template, 4, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](38, CalendarDashboardComponent_ng_template_38_Template, 17, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("collapse", !ctx.showFilters)("show", ctx.showFilters);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("checked", ctx.masterSelected);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx.filterArray);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](22, !ctx.employee && ctx.complejosList.length > 0 ? 22 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](23, ctx.employee && ctx.employee.complejoDto ? 23 : -1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("options", ctx.calendarOptions)("events", ctx.calendarEvents);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.upcomingEvents.length || 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](36, ctx.upcomingEvents && ctx.upcomingEvents.length > 0 ? 36 : 37);
        }
      },
      dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_20__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_20__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgModel, _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_21__.FullCalendarComponent, _angular_common__WEBPACK_IMPORTED_MODULE_22__.DatePipe],
      styles: ["#filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%] {\n  cursor: pointer;\n  border-radius: 4px;\n  border: 2px solid #cbd5e0;\n}\n#filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:checked {\n  background-color: #667eea;\n  border-color: #667eea;\n}\n#filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%] {\n  cursor: pointer;\n  -webkit-user-select: none;\n          user-select: none;\n  font-size: 0.875rem;\n  color: #4a5568;\n  transition: color 0.2s;\n}\n#filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]:hover {\n  color: #2d3748;\n}\n#filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] {\n  display: inline-block;\n  border: 2px solid white;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);\n}\n\n  .fc {\n  font-family: inherit;\n}\n  .fc-toolbar {\n  padding: 1rem 0;\n}\n  .fc-toolbar .fc-toolbar-title {\n  font-size: 1.5rem;\n  font-weight: 600;\n  color: #2d3748;\n}\n  .fc-toolbar .fc-button {\n  padding: 0.5rem 1rem;\n  font-weight: 500;\n  text-transform: capitalize;\n  border-radius: 6px;\n  transition: all 0.2s;\n}\n  .fc-toolbar .fc-button:hover {\n  transform: translateY(-1px);\n  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n  .fc-toolbar .fc-button.fc-button-active {\n  background-color: #667eea !important;\n  border-color: #667eea !important;\n}\n  .fc-event {\n  border-radius: 4px;\n  border: none;\n  padding: 2px 4px;\n  margin: 1px 2px;\n  font-size: 0.8rem;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.2s;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n  .fc-event:hover {\n  transform: translateY(-1px);\n  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);\n  filter: brightness(1.05);\n}\n  .fc-event .fc-event-time {\n  font-weight: 600;\n  font-size: 0.75rem;\n}\n  .fc-event .fc-event-title {\n  font-weight: 500;\n  white-space: normal;\n  line-height: 1.3;\n}\n  .fc-timegrid-event {\n  border-radius: 4px;\n  padding: 4px 6px;\n}\n  .fc-timegrid-event .fc-event-time {\n  font-weight: 700;\n  font-size: 0.85rem;\n}\n  .fc-timegrid-event .fc-event-title {\n  font-size: 0.85rem;\n  margin-top: 2px;\n}\n  .fc-list-event .fc-list-event-dot {\n  border-width: 6px;\n  border-radius: 50%;\n}\n  .fc-list-event .fc-list-event-time {\n  font-weight: 600;\n  color: #4a5568;\n}\n  .fc-list-event .fc-list-event-title {\n  font-weight: 500;\n  color: #2d3748;\n}\n  .fc-popover {\n  border: none;\n  border-radius: 8px;\n  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);\n}\n  .fc-popover .fc-popover-header {\n  background-color: #667eea;\n  padding: 0.75rem 1rem;\n  border-radius: 8px 8px 0 0;\n}\n\n.mobile-events-list[_ngcontent-%COMP%] {\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n  border: none;\n  border-radius: 8px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n  color: white;\n  padding: 1rem 1.5rem;\n  border: none;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%] {\n  font-weight: 600;\n  color: white;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] {\n  background-color: rgba(255, 255, 255, 0.25);\n  color: white;\n  font-weight: 600;\n  padding: 0.35rem 0.75rem;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] {\n  padding: 1rem;\n  max-height: 600px;\n  overflow-y: auto;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]::-webkit-scrollbar {\n  width: 6px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]::-webkit-scrollbar-track {\n  background: #f1f1f1;\n  border-radius: 10px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb {\n  background: #cbd5e0;\n  border-radius: 10px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover {\n  background: #a0aec0;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n  transition: all 0.2s;\n  border: 1px solid #e2e8f0;\n  border-radius: 8px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:hover {\n  transform: translateY(-2px);\n  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n  border-color: #cbd5e0;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] {\n  padding: 0;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%] {\n  color: #2d3748;\n  font-size: 1rem;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .text-muted[_ngcontent-%COMP%] {\n  font-size: 0.875rem;\n  color: #718096;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] {\n  font-size: 0.75rem;\n  padding: 0.35rem 0.65rem;\n  font-weight: 600;\n  color: white;\n  border-radius: 6px;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  font-size: 0.9rem;\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .text-center[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  opacity: 0.3;\n}\n\n@media (max-width: 768px) {\n  .cel-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%] {\n    flex-direction: column;\n    gap: 0.5rem;\n    align-items: flex-start !important;\n  }\n  .cel-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%] {\n    width: 100%;\n  }\n  #filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%] {\n    flex-direction: column;\n    align-items: flex-start !important;\n  }\n  #filterCollapse[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .vr[_ngcontent-%COMP%] {\n    display: none !important;\n  }\n    .fc-toolbar {\n    flex-direction: column;\n    gap: 0.5rem;\n  }\n    .fc-toolbar .fc-toolbar-chunk {\n    margin-bottom: 0.5rem;\n  }\n    .fc-event {\n    font-size: 0.7rem;\n  }\n  .mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] {\n    max-height: 400px;\n  }\n  .mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%] {\n    flex-direction: column;\n    align-items: flex-start !important;\n    gap: 0.5rem;\n  }\n  .mobile-events-list[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .text-end[_ngcontent-%COMP%] {\n    text-align: left !important;\n  }\n}\n@media print {\n  .card-header[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], #filterCollapse[_ngcontent-%COMP%], .mobile-events-list[_ngcontent-%COMP%] {\n    display: none !important;\n  }\n  .cel-card[_ngcontent-%COMP%] {\n    box-shadow: none;\n  }\n}\n@keyframes _ngcontent-%COMP%_fadeIn {\n  from {\n    opacity: 0;\n    transform: translateY(10px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n.mobile-events-list[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {\n  animation: _ngcontent-%COMP%_fadeIn 0.3s ease-in-out;\n}\n\n@media (max-width: 576px) {\n  .card-title[_ngcontent-%COMP%] {\n    font-size: 0.9rem !important;\n  }\n  .badge[_ngcontent-%COMP%] {\n    font-size: 0.7rem;\n  }\n  .form-check-label[_ngcontent-%COMP%] {\n    font-size: 0.85rem;\n  }\n}\n@media (min-width: 992px) {\n  .mobile-events-list[_ngcontent-%COMP%] {\n    max-height: 600px;\n    overflow-y: auto;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvZGFzaGJvYXJkcy9jYWxlbmRhci9jYWxlbmRhci1kYXNoYm9hcmQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSU07RUFDRSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSx5QkFBQTtBQUhSO0FBS1E7RUFDRSx5QkFBQTtFQUNBLHFCQUFBO0FBSFY7QUFPTTtFQUNFLGVBQUE7RUFDQSx5QkFBQTtVQUFBLGlCQUFBO0VBQ0EsbUJBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7QUFMUjtBQU9RO0VBQ0UsY0FBQTtBQUxWO0FBUVE7RUFDRSxxQkFBQTtFQUNBLHVCQUFBO0VBQ0Esd0NBQUE7QUFOVjs7QUFnQkU7RUFDRSxvQkFBQTtBQWJKO0FBaUJFO0VBQ0UsZUFBQTtBQWZKO0FBaUJJO0VBQ0UsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7QUFmTjtBQWtCSTtFQUNFLG9CQUFBO0VBQ0EsZ0JBQUE7RUFDQSwwQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFoQk47QUFrQk07RUFDRSwyQkFBQTtFQUNBLHdDQUFBO0FBaEJSO0FBbUJNO0VBQ0Usb0NBQUE7RUFDQSxnQ0FBQTtBQWpCUjtBQXVCRTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtFQUNBLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSx3Q0FBQTtBQXJCSjtBQXVCSTtFQUNFLDJCQUFBO0VBQ0EseUNBQUE7RUFDQSx3QkFBQTtBQXJCTjtBQXdCSTtFQUNFLGdCQUFBO0VBQ0Esa0JBQUE7QUF0Qk47QUF5Qkk7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsZ0JBQUE7QUF2Qk47QUE0QkU7RUFDRSxrQkFBQTtFQUNBLGdCQUFBO0FBMUJKO0FBNEJJO0VBQ0UsZ0JBQUE7RUFDQSxrQkFBQTtBQTFCTjtBQTZCSTtFQUNFLGtCQUFBO0VBQ0EsZUFBQTtBQTNCTjtBQWtDSTtFQUNFLGlCQUFBO0VBQ0Esa0JBQUE7QUFoQ047QUFtQ0k7RUFDRSxnQkFBQTtFQUNBLGNBQUE7QUFqQ047QUFvQ0k7RUFDRSxnQkFBQTtFQUNBLGNBQUE7QUFsQ047QUF3Q0U7RUFDRSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSwyQ0FBQTtBQXRDSjtBQXdDSTtFQUNFLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSwwQkFBQTtBQXRDTjs7QUE0Q0E7RUFDRSx3Q0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtBQXpDRjtBQTJDRTtFQUNFLDZEQUFBO0VBQ0EsWUFBQTtFQUNBLG9CQUFBO0VBQ0EsWUFBQTtBQXpDSjtBQTJDSTtFQUNFLGdCQUFBO0VBQ0EsWUFBQTtBQXpDTjtBQTRDSTtFQUNFLDJDQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0Esd0JBQUE7QUExQ047QUE4Q0U7RUFDRSxhQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtBQTVDSjtBQStDSTtFQUNFLFVBQUE7QUE3Q047QUFnREk7RUFDRSxtQkFBQTtFQUNBLG1CQUFBO0FBOUNOO0FBaURJO0VBQ0UsbUJBQUE7RUFDQSxtQkFBQTtBQS9DTjtBQWlETTtFQUNFLG1CQUFBO0FBL0NSO0FBbURJO0VBQ0Usb0JBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBakROO0FBbURNO0VBQ0UsMkJBQUE7RUFDQSx5Q0FBQTtFQUNBLHFCQUFBO0FBakRSO0FBb0RNO0VBQ0UsVUFBQTtBQWxEUjtBQW9EUTtFQUNFLGNBQUE7RUFDQSxlQUFBO0FBbERWO0FBcURRO0VBQ0UsbUJBQUE7RUFDQSxjQUFBO0FBbkRWO0FBc0RRO0VBQ0Usa0JBQUE7RUFDQSx3QkFBQTtFQUNBLGdCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0FBcERWO0FBdURRO0VBQ0UsaUJBQUE7QUFyRFY7QUE0RE07RUFDRSxZQUFBO0FBMURSOztBQWtFQTtFQUNFO0lBQ0Usc0JBQUE7SUFDQSxXQUFBO0lBQ0Esa0NBQUE7RUEvREY7RUFpRUU7SUFDRSxXQUFBO0VBL0RKO0VBb0VFO0lBQ0Usc0JBQUE7SUFDQSxrQ0FBQTtFQWxFSjtFQXFFRTtJQUNFLHdCQUFBO0VBbkVKO0VBd0VFO0lBQ0Usc0JBQUE7SUFDQSxXQUFBO0VBdEVKO0VBd0VJO0lBQ0UscUJBQUE7RUF0RU47RUEwRUU7SUFDRSxpQkFBQTtFQXhFSjtFQTRFQTtJQUNFLGlCQUFBO0VBMUVGO0VBNkVJO0lBQ0Usc0JBQUE7SUFDQSxrQ0FBQTtJQUNBLFdBQUE7RUEzRU47RUE4RUk7SUFDRSwyQkFBQTtFQTVFTjtBQUNGO0FBa0ZBO0VBQ0U7OztJQUdFLHdCQUFBO0VBaEZGO0VBbUZBO0lBQ0UsZ0JBQUE7RUFqRkY7QUFDRjtBQXFGQTtFQUNFO0lBQ0UsVUFBQTtJQUNBLDJCQUFBO0VBbkZGO0VBcUZBO0lBQ0UsVUFBQTtJQUNBLHdCQUFBO0VBbkZGO0FBQ0Y7QUFzRkE7RUFDRSxrQ0FBQTtBQXBGRjs7QUF1RkU7RUFDRTtJQUNFLDRCQUFBO0VBcEZKO0VBdUZFO0lBQ0UsaUJBQUE7RUFyRko7RUF3RkU7SUFDRSxrQkFBQTtFQXRGSjtBQUNGO0FBeUZFO0VBQ0U7SUFDRSxpQkFBQTtJQUNBLGdCQUFBO0VBdkZKO0FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIjZmlsdGVyQ29sbGFwc2Uge1xyXG4gIC5jYXJkLWJvZHkge1xyXG5cclxuICAgIC5mb3JtLWNoZWNrIHtcclxuICAgICAgLmZvcm0tY2hlY2staW5wdXQge1xyXG4gICAgICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7XHJcbiAgICAgICAgYm9yZGVyOiAycHggc29saWQgI2NiZDVlMDtcclxuXHJcbiAgICAgICAgJjpjaGVja2VkIHtcclxuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM2NjdlZWE7XHJcbiAgICAgICAgICBib3JkZXItY29sb3I6ICM2NjdlZWE7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcblxyXG4gICAgICAuZm9ybS1jaGVjay1sYWJlbCB7XHJcbiAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xyXG4gICAgICAgIHVzZXItc2VsZWN0OiBub25lO1xyXG4gICAgICAgIGZvbnQtc2l6ZTogMC44NzVyZW07XHJcbiAgICAgICAgY29sb3I6ICM0YTU1Njg7XHJcbiAgICAgICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcclxuXHJcbiAgICAgICAgJjpob3ZlciB7XHJcbiAgICAgICAgICBjb2xvcjogIzJkMzc0ODtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC5iYWRnZSB7XHJcbiAgICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XHJcbiAgICAgICAgICBib3JkZXI6IDJweCBzb2xpZCB3aGl0ZTtcclxuICAgICAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDNweCByZ2JhKDAsIDAsIDAsIDAuMik7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcblxyXG4vLyBGdWxsQ2FsZW5kYXIgY3VzdG9taXphdGlvbnNcclxuOjpuZy1kZWVwIHtcclxuICAvLyBDYWxlbmRhciBjb250YWluZXJcclxuICAuZmMge1xyXG4gICAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XHJcbiAgfVxyXG5cclxuICAvLyBUb29sYmFyIHN0eWxpbmdcclxuICAuZmMtdG9vbGJhciB7XHJcbiAgICBwYWRkaW5nOiAxcmVtIDA7XHJcbiAgICBcclxuICAgIC5mYy10b29sYmFyLXRpdGxlIHtcclxuICAgICAgZm9udC1zaXplOiAxLjVyZW07XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgIGNvbG9yOiAjMmQzNzQ4O1xyXG4gICAgfVxyXG5cclxuICAgIC5mYy1idXR0b24ge1xyXG4gICAgICBwYWRkaW5nOiAwLjVyZW0gMXJlbTtcclxuICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcclxuICAgICAgdGV4dC10cmFuc2Zvcm06IGNhcGl0YWxpemU7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgICAgdHJhbnNpdGlvbjogYWxsIDAuMnM7XHJcblxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTFweCk7XHJcbiAgICAgICAgYm94LXNoYWRvdzogMCA0cHggNnB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcclxuICAgICAgfVxyXG5cclxuICAgICAgJi5mYy1idXR0b24tYWN0aXZlIHtcclxuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNjY3ZWVhICFpbXBvcnRhbnQ7XHJcbiAgICAgICAgYm9yZGVyLWNvbG9yOiAjNjY3ZWVhICFpbXBvcnRhbnQ7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8vIEV2ZW50IHN0eWxpbmdcclxuICAuZmMtZXZlbnQge1xyXG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gICAgYm9yZGVyOiBub25lO1xyXG4gICAgcGFkZGluZzogMnB4IDRweDtcclxuICAgIG1hcmdpbjogMXB4IDJweDtcclxuICAgIGZvbnQtc2l6ZTogMC44cmVtO1xyXG4gICAgZm9udC13ZWlnaHQ6IDUwMDtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIHRyYW5zaXRpb246IGFsbCAwLjJzO1xyXG4gICAgYm94LXNoYWRvdzogMCAxcHggM3B4IHJnYmEoMCwgMCwgMCwgMC4xKTtcclxuXHJcbiAgICAmOmhvdmVyIHtcclxuICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0xcHgpO1xyXG4gICAgICBib3gtc2hhZG93OiAwIDRweCA2cHggcmdiYSgwLCAwLCAwLCAwLjE1KTtcclxuICAgICAgZmlsdGVyOiBicmlnaHRuZXNzKDEuMDUpO1xyXG4gICAgfVxyXG5cclxuICAgIC5mYy1ldmVudC10aW1lIHtcclxuICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgICAgZm9udC1zaXplOiAwLjc1cmVtO1xyXG4gICAgfVxyXG5cclxuICAgIC5mYy1ldmVudC10aXRsZSB7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7XHJcbiAgICAgIHdoaXRlLXNwYWNlOiBub3JtYWw7XHJcbiAgICAgIGxpbmUtaGVpZ2h0OiAxLjM7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAvLyBUaW1lIGdyaWQgdmlld1xyXG4gIC5mYy10aW1lZ3JpZC1ldmVudCB7XHJcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XHJcbiAgICBwYWRkaW5nOiA0cHggNnB4O1xyXG4gICAgXHJcbiAgICAuZmMtZXZlbnQtdGltZSB7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA3MDA7XHJcbiAgICAgIGZvbnQtc2l6ZTogMC44NXJlbTtcclxuICAgIH1cclxuXHJcbiAgICAuZmMtZXZlbnQtdGl0bGUge1xyXG4gICAgICBmb250LXNpemU6IDAuODVyZW07XHJcbiAgICAgIG1hcmdpbi10b3A6IDJweDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8vIExpc3QgdmlldyBzdHlsaW5nXHJcbiAgLmZjLWxpc3QtZXZlbnQge1xyXG5cclxuICAgIC5mYy1saXN0LWV2ZW50LWRvdCB7XHJcbiAgICAgIGJvcmRlci13aWR0aDogNnB4O1xyXG4gICAgICBib3JkZXItcmFkaXVzOiA1MCU7XHJcbiAgICB9XHJcblxyXG4gICAgLmZjLWxpc3QtZXZlbnQtdGltZSB7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgIGNvbG9yOiAjNGE1NTY4O1xyXG4gICAgfVxyXG5cclxuICAgIC5mYy1saXN0LWV2ZW50LXRpdGxlIHtcclxuICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcclxuICAgICAgY29sb3I6ICMyZDM3NDg7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuXHJcbiAgLy8gUG9wb3ZlciBzdHlsaW5nXHJcbiAgLmZjLXBvcG92ZXIge1xyXG4gICAgYm9yZGVyOiBub25lO1xyXG4gICAgYm9yZGVyLXJhZGl1czogOHB4O1xyXG4gICAgYm94LXNoYWRvdzogMCAxMHB4IDI1cHggcmdiYSgwLCAwLCAwLCAwLjE1KTtcclxuXHJcbiAgICAuZmMtcG9wb3Zlci1oZWFkZXIge1xyXG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNjY3ZWVhO1xyXG4gICAgICBwYWRkaW5nOiAwLjc1cmVtIDFyZW07XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDhweCA4cHggMCAwO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG5cclxuLy8gTW9iaWxlIGV2ZW50cyBsaXN0XHJcbi5tb2JpbGUtZXZlbnRzLWxpc3Qge1xyXG4gIGJveC1zaGFkb3c6IDAgMnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuMSk7XHJcbiAgYm9yZGVyOiBub25lO1xyXG4gIGJvcmRlci1yYWRpdXM6IDhweDtcclxuXHJcbiAgLmNhcmQtaGVhZGVyIHtcclxuICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgxMzVkZWcsICM2NjdlZWEgMCUsICM3NjRiYTIgMTAwJSk7XHJcbiAgICBjb2xvcjogd2hpdGU7XHJcbiAgICBwYWRkaW5nOiAxcmVtIDEuNXJlbTtcclxuICAgIGJvcmRlcjogbm9uZTtcclxuXHJcbiAgICAuY2FyZC10aXRsZSB7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIH1cclxuXHJcbiAgICAuYmFkZ2Uge1xyXG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMjUpO1xyXG4gICAgICBjb2xvcjogd2hpdGU7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgIHBhZGRpbmc6IDAuMzVyZW0gMC43NXJlbTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC5jYXJkLWJvZHkge1xyXG4gICAgcGFkZGluZzogMXJlbTtcclxuICAgIG1heC1oZWlnaHQ6IDYwMHB4O1xyXG4gICAgb3ZlcmZsb3cteTogYXV0bztcclxuXHJcbiAgICAvLyBTY3JvbGxiYXIgc3R5bGluZ1xyXG4gICAgJjo6LXdlYmtpdC1zY3JvbGxiYXIge1xyXG4gICAgICB3aWR0aDogNnB4O1xyXG4gICAgfVxyXG5cclxuICAgICY6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHtcclxuICAgICAgYmFja2dyb3VuZDogI2YxZjFmMTtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMTBweDtcclxuICAgIH1cclxuXHJcbiAgICAmOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7XHJcbiAgICAgIGJhY2tncm91bmQ6ICNjYmQ1ZTA7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7XHJcblxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICBiYWNrZ3JvdW5kOiAjYTBhZWMwO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmNhcmQge1xyXG4gICAgICB0cmFuc2l0aW9uOiBhbGwgMC4ycztcclxuICAgICAgYm9yZGVyOiAxcHggc29saWQgI2UyZThmMDtcclxuICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xyXG5cclxuICAgICAgJjpob3ZlciB7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0ycHgpO1xyXG4gICAgICAgIGJveC1zaGFkb3c6IDAgNHB4IDEycHggcmdiYSgwLCAwLCAwLCAwLjEpO1xyXG4gICAgICAgIGJvcmRlci1jb2xvcjogI2NiZDVlMDtcclxuICAgICAgfVxyXG5cclxuICAgICAgLmNhcmQtYm9keSB7XHJcbiAgICAgICAgcGFkZGluZzogMDtcclxuXHJcbiAgICAgICAgaDYge1xyXG4gICAgICAgICAgY29sb3I6ICMyZDM3NDg7XHJcbiAgICAgICAgICBmb250LXNpemU6IDFyZW07XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAudGV4dC1tdXRlZCB7XHJcbiAgICAgICAgICBmb250LXNpemU6IDAuODc1cmVtO1xyXG4gICAgICAgICAgY29sb3I6ICM3MTgwOTY7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAuYmFkZ2Uge1xyXG4gICAgICAgICAgZm9udC1zaXplOiAwLjc1cmVtO1xyXG4gICAgICAgICAgcGFkZGluZzogMC4zNXJlbSAwLjY1cmVtO1xyXG4gICAgICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgICAgICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGkge1xyXG4gICAgICAgICAgZm9udC1zaXplOiAwLjlyZW07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLy8gRW1wdHkgc3RhdGVcclxuICAgIC50ZXh0LWNlbnRlciB7XHJcbiAgICAgIGkge1xyXG4gICAgICAgIG9wYWNpdHk6IDAuMztcclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG5cclxuXHJcbi8vIFJlc3BvbnNpdmUgYWRqdXN0bWVudHNcclxuQG1lZGlhIChtYXgtd2lkdGg6IDc2OHB4KSB7XHJcbiAgLmNlbC1jYXJkIC5jYXJkLWhlYWRlciB7XHJcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgZ2FwOiAwLjVyZW07XHJcbiAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydCAhaW1wb3J0YW50O1xyXG5cclxuICAgIC5idG4tcHJpbWFyeSB7XHJcbiAgICAgIHdpZHRoOiAxMDAlO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgI2ZpbHRlckNvbGxhcHNlIC5jYXJkLWJvZHkge1xyXG4gICAgLmQtZmxleCB7XHJcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0ICFpbXBvcnRhbnQ7XHJcbiAgICB9XHJcblxyXG4gICAgLnZyIHtcclxuICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50O1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgOjpuZy1kZWVwIHtcclxuICAgIC5mYy10b29sYmFyIHtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgICAgZ2FwOiAwLjVyZW07XHJcblxyXG4gICAgICAuZmMtdG9vbGJhci1jaHVuayB7XHJcbiAgICAgICAgbWFyZ2luLWJvdHRvbTogMC41cmVtO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmZjLWV2ZW50IHtcclxuICAgICAgZm9udC1zaXplOiAwLjdyZW07XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAubW9iaWxlLWV2ZW50cy1saXN0IC5jYXJkLWJvZHkge1xyXG4gICAgbWF4LWhlaWdodDogNDAwcHg7XHJcblxyXG4gICAgLmNhcmQgLmNhcmQtYm9keSB7XHJcbiAgICAgIC5kLWZsZXgge1xyXG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICAgICAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQgIWltcG9ydGFudDtcclxuICAgICAgICBnYXA6IDAuNXJlbTtcclxuICAgICAgfVxyXG5cclxuICAgICAgLnRleHQtZW5kIHtcclxuICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0ICFpbXBvcnRhbnQ7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcbn1cclxuXHJcbi8vIFByaW50IHN0eWxlc1xyXG5AbWVkaWEgcHJpbnQge1xyXG4gIC5jYXJkLWhlYWRlciAuYnRuLFxyXG4gICNmaWx0ZXJDb2xsYXBzZSxcclxuICAubW9iaWxlLWV2ZW50cy1saXN0IHtcclxuICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDtcclxuICB9XHJcblxyXG4gIC5jZWwtY2FyZCB7XHJcbiAgICBib3gtc2hhZG93OiBub25lO1xyXG4gIH1cclxufVxyXG5cclxuLy8gQW5pbWF0aW9uIGZvciBldmVudCBsb2FkaW5nXHJcbkBrZXlmcmFtZXMgZmFkZUluIHtcclxuICBmcm9tIHtcclxuICAgIG9wYWNpdHk6IDA7XHJcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMTBweCk7XHJcbiAgfVxyXG4gIHRvIHtcclxuICAgIG9wYWNpdHk6IDE7XHJcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCk7XHJcbiAgfVxyXG59XHJcblxyXG4ubW9iaWxlLWV2ZW50cy1saXN0IC5jYXJkIHtcclxuICBhbmltYXRpb246IGZhZGVJbiAwLjNzIGVhc2UtaW4tb3V0O1xyXG59XHJcblxyXG4gIEBtZWRpYSAobWF4LXdpZHRoOiA1NzZweCkge1xyXG4gICAgLmNhcmQtdGl0bGUge1xyXG4gICAgICBmb250LXNpemU6IDAuOXJlbSAhaW1wb3J0YW50O1xyXG4gICAgfVxyXG4gICAgXHJcbiAgICAuYmFkZ2Uge1xyXG4gICAgICBmb250LXNpemU6IDAuN3JlbTtcclxuICAgIH1cclxuICAgIFxyXG4gICAgLmZvcm0tY2hlY2stbGFiZWwge1xyXG4gICAgICBmb250LXNpemU6IDAuODVyZW07XHJcbiAgICB9XHJcbiAgfVxyXG4gIFxyXG4gIEBtZWRpYSAobWluLXdpZHRoOiA5OTJweCkge1xyXG4gICAgLm1vYmlsZS1ldmVudHMtbGlzdCB7XHJcbiAgICAgIG1heC1oZWlnaHQ6IDYwMHB4O1xyXG4gICAgICBvdmVyZmxvdy15OiBhdXRvO1xyXG4gICAgfVxyXG4gIH0iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 77381:
/*!**************************************************************!*\
  !*** ./src/app/pages/dashboards/cards-row/list.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ListComponent: () => (/* binding */ ListComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-feather */ 54341);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);



/**
 * List Component
 */
class ListComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function ListComponent_Factory(t) {
      return new (t || ListComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: ListComponent,
      selectors: [["app-list"]],
      decls: 97,
      vars: 8,
      consts: [[1, "row"], [1, "col-xl-3", "col-md-6"], [1, "card", "card-animate"], [1, "card-body"], [1, "d-flex", "align-items-center"], [1, "flex-grow-1"], [1, "text-uppercase", "fw-medium", "text-muted", "mb-0"], [1, "flex-shrink-0"], [1, "text-success", "fs-14", "mb-0"], [1, "ri-arrow-right-up-line", "fs-13", "align-middle"], [1, "d-flex", "align-items-end", "justify-content-between", "mt-4"], [1, "fs-22", "fw-semibold", "ff-secondary", "mb-4"], [1, "counter-value", 3, "countUp", "options"], [1, "badge", "bg-secondary", "me-1"], [1, "text-muted"], [1, "avatar-sm", "flex-shrink-0"], [1, "avatar-title", "bg-light", "rounded", "fs-3"], ["name", "file-text", 1, "text-primary", "icon-dual-primary", "feather-icon-align"], [1, "text-danger", "fs-14", "mb-0"], [1, "ri-arrow-right-down-line", "fs-13", "align-middle"], ["name", "check-square", 1, "text-primary", "icon-dual-primary", "feather-icon-align"], ["name", "clock", 1, "text-primary", "icon-dual-primary", "feather-icon-align"], ["name", "x-octagon", 1, "text-primary", "icon-dual-primary", "feather-icon-align"]],
      template: function ListComponent_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, "div", 5)(6, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Invoices Sent");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 7)(9, "h5", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " +89.24 % ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 10)(13, "div")(14, "h4", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "span", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "k");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "2,258");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "span", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Invoices sent");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 15)(23, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "i-feather", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 1)(26, "div", 2)(27, "div", 3)(28, "div", 4)(29, "div", 5)(30, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Paid Invoices");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 7)(33, "h5", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " +8.09 % ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 10)(37, "div")(38, "h4", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "span", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "k");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "1,958");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "span", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " Paid by clients");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 15)(47, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](48, "i-feather", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 1)(50, "div", 2)(51, "div", 3)(52, "div", 4)(53, "div", 5)(54, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, "Unpaid Invoices");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 7)(57, "h5", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, " +9.01 % ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 10)(61, "div")(62, "h4", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](64, "span", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "k");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, "338");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "span", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, " Unpaid by clients");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 15)(71, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](72, "i-feather", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 1)(74, "div", 2)(75, "div", 3)(76, "div", 4)(77, "div", 5)(78, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, "Cancelled Invoices");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 7)(81, "h5", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](82, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, " +7.55 % ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 10)(85, "div")(86, "h4", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](88, "span", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, "k");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "502");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "span", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Cancelled by clients");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div", 15)(95, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](96, "i-feather", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", 559.25)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", 409.66)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", 136.98)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", 84.2)("options", ctx.option);
        }
      },
      dependencies: [angular_feather__WEBPACK_IMPORTED_MODULE_1__.FeatherComponent, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DashboardsModule: () => (/* binding */ DashboardsModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! angular-feather */ 54341);
/* harmony import */ var angular_feather_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! angular-feather/icons */ 51474);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @asymmetrik/ngx-leaflet */ 88355);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ng-apexcharts */ 33117);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-slick-carousel */ 49953);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../shared/shared.module */ 93887);
/* harmony import */ var _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../shared/widget/widget.module */ 65657);
/* harmony import */ var _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @fullcalendar/angular */ 87997);
/* harmony import */ var _calendar_calendar_dashboard_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./calendar/calendar-dashboard.component */ 32790);
/* harmony import */ var _map_map_dashboard_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map/map-dashboard.component */ 86568);
/* harmony import */ var ngx_pipes__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-pipes */ 60315);
/* harmony import */ var _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ckeditor/ckeditor5-angular */ 34225);
/* harmony import */ var _ctrl_ngx_emoji_mart__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ctrl/ngx-emoji-mart */ 34707);
/* harmony import */ var ngx_drag_drop__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-drag-drop */ 53935);
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/cdk/drag-drop */ 50854);
/* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/material/table */ 77697);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @ng-select/ng-select */ 62223);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ngx-mask */ 86769);
/* harmony import */ var _admin_dashboard_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./admin/dashboard.component */ 94558);
/* harmony import */ var _admin_toasts_container_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./admin/toasts-container.component */ 65852);
/* harmony import */ var _cards_row_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cards-row/list.component */ 77381);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 37580);




// Feather Icon





// Apex Chart Package

// Swiper Slider

// Flat Picker

//Module


// Component

















class DashboardsModule {
  static {
    this.ɵfac = function DashboardsModule_Factory(t) {
      return new (t || DashboardsModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineNgModule"]({
      type: DashboardsModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjector"]({
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.ReactiveFormsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbTooltipModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbTypeaheadModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_11__.NgApexchartsModule, angular_feather__WEBPACK_IMPORTED_MODULE_12__.FeatherModule.pick(angular_feather_icons__WEBPACK_IMPORTED_MODULE_13__.allIcons), ngx_countup__WEBPACK_IMPORTED_MODULE_14__.CountUpModule, _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_15__.LeafletModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_16__.SimplebarAngularModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_17__.SlickCarouselModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_18__.FlatpickrModule.forRoot(), _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__.SharedModule, _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_19__.FullCalendarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbCollapseModule, ngx_pipes__WEBPACK_IMPORTED_MODULE_20__.NgPipesModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_21__.CKEditorModule, _ctrl_ngx_emoji_mart__WEBPACK_IMPORTED_MODULE_22__.PickerModule, ngx_drag_drop__WEBPACK_IMPORTED_MODULE_23__.DndModule, _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_24__.DragDropModule, _angular_material_table__WEBPACK_IMPORTED_MODULE_25__.MatTableModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_26__.NgSelectModule]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsetNgModuleScope"](DashboardsModule, {
    declarations: [_admin_toasts_container_component__WEBPACK_IMPORTED_MODULE_5__.ToastsContainer, _admin_dashboard_component__WEBPACK_IMPORTED_MODULE_4__.DashboardComponent, _calendar_calendar_dashboard_component__WEBPACK_IMPORTED_MODULE_2__.CalendarDashboardComponent, _map_map_dashboard_component__WEBPACK_IMPORTED_MODULE_3__.MapDashboardComponent, _cards_row_list_component__WEBPACK_IMPORTED_MODULE_6__.ListComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.ReactiveFormsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbTooltipModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbTypeaheadModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_11__.NgApexchartsModule, angular_feather__WEBPACK_IMPORTED_MODULE_12__.FeatherModule, ngx_countup__WEBPACK_IMPORTED_MODULE_14__.CountUpModule, _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_15__.LeafletModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_16__.SimplebarAngularModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_17__.SlickCarouselModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_18__.FlatpickrModule, _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__.SharedModule, _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_19__.FullCalendarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbCollapseModule, ngx_pipes__WEBPACK_IMPORTED_MODULE_20__.NgPipesModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_21__.CKEditorModule, _ctrl_ngx_emoji_mart__WEBPACK_IMPORTED_MODULE_22__.PickerModule, ngx_drag_drop__WEBPACK_IMPORTED_MODULE_23__.DndModule, _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_24__.DragDropModule, _angular_material_table__WEBPACK_IMPORTED_MODULE_25__.MatTableModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_26__.NgSelectModule,
    // JobsModule,
    ngx_mask__WEBPACK_IMPORTED_MODULE_27__.NgxMaskDirective, ngx_mask__WEBPACK_IMPORTED_MODULE_27__.NgxMaskPipe]
  });
})();

/***/ }),

/***/ 86568:
/*!*****************************************************************!*\
  !*** ./src/app/pages/dashboards/map/map-dashboard.component.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MapDashboardComponent: () => (/* binding */ MapDashboardComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! leaflet */ 67381);
/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var leaflet_markercluster__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! leaflet.markercluster */ 35449);
/* harmony import */ var leaflet_markercluster__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(leaflet_markercluster__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 64334);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _admin_toast_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../admin/toast-service */ 11766);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/superficies.service */ 29977);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 34456);


















function MapDashboardComponent_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 24)(1, "div", 25)(2, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, "Cargando mapa...");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
  }
}
function MapDashboardComponent_ng_template_31_option_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const district_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", district_r6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", district_r6, " ");
  }
}
function MapDashboardComponent_ng_template_31_div_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 58)(1, "input", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("change", function MapDashboardComponent_ng_template_31_div_20_Template_input_change_1_listener($event) {
      const category_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r7).$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r4.onCategoryChange(category_r8.nombre, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "label", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const category_r8 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("id", "cat-" + category_r8.uuid)("checked", ctx_r4.selectedCategories.includes(category_r8.nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("for", "cat-" + category_r8.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", category_r8.nombre, " ");
  }
}
function MapDashboardComponent_ng_template_31_small_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "small", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " No hay categor\u00EDas disponibles ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function MapDashboardComponent_ng_template_31_div_34_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "li")(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Distrito:");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", ctx_r4.selectedDistrict, " ");
  }
}
function MapDashboardComponent_ng_template_31_div_34_li_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "li")(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Categor\u00EDas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", ctx_r4.selectedCategories.join(", "), " ");
  }
}
function MapDashboardComponent_ng_template_31_div_34_li_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "li")(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Precio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate2"](" ", ctx_r4.minTarifa || "0", " - ", ctx_r4.maxTarifa || "\u221E", " Bs. ");
  }
}
function MapDashboardComponent_ng_template_31_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 61)(1, "h6", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, " Filtros Activos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "ul", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, MapDashboardComponent_ng_template_31_div_34_li_5_Template, 4, 1, "li", 65)(6, MapDashboardComponent_ng_template_31_div_34_li_6_Template, 4, 1, "li", 65)(7, MapDashboardComponent_ng_template_31_div_34_li_7_Template, 4, 2, "li", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.selectedDistrict);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.selectedCategories.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.minTarifa || ctx_r4.maxTarifa);
  }
}
function MapDashboardComponent_ng_template_31_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 27)(1, "h5", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, " Filtros de B\u00FAsqueda ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_ng_template_31_Template_button_click_4_listener() {
      const offcanvas_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](offcanvas_r4.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "div", 31)(6, "form")(7, "div", 32)(8, "label", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](9, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](10, " Distrito ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "select", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayListener"]("ngModelChange", function MapDashboardComponent_ng_template_31_Template_select_ngModelChange_11_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayBindingSet"](ctx_r4.selectedDistrict, $event) || (ctx_r4.selectedDistrict = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](12, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13, "Todos los distritos");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](14, MapDashboardComponent_ng_template_31_option_14_Template, 2, 2, "option", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](15, "div", 32)(16, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](17, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](18, " Categor\u00EDas Deportivas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](19, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](20, MapDashboardComponent_ng_template_31_div_20_Template, 4, 4, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](21, MapDashboardComponent_ng_template_31_small_21_Template, 2, 0, "small", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](22, "div", 32)(23, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](24, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](25, " Rango de Tarifa (Bs.) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](26, "div", 44)(27, "div", 45)(28, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayListener"]("ngModelChange", function MapDashboardComponent_ng_template_31_Template_input_ngModelChange_28_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayBindingSet"](ctx_r4.minTarifa, $event) || (ctx_r4.minTarifa = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](29, "div", 47)(30, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](31, "a");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](32, "div", 45)(33, "input", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayListener"]("ngModelChange", function MapDashboardComponent_ng_template_31_Template_input_ngModelChange_33_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayBindingSet"](ctx_r4.maxTarifa, $event) || (ctx_r4.maxTarifa = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](34, MapDashboardComponent_ng_template_31_div_34_Template, 8, 3, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](35, "div", 51)(36, "div", 52)(37, "button", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_ng_template_31_Template_button_click_37_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r4.applyFilters());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](38, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](39, " Aplicar Filtros ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](40, "button", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_ng_template_31_Template_button_click_40_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r4.clearFilters());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](41, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](42, " Limpiar Filtros ");
    _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"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayProperty"]("ngModel", ctx_r4.selectedDistrict);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r4.uniqueDistricts);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r4.categoryList);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.categoryList.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayProperty"]("ngModel", ctx_r4.minTarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtwoWayProperty"]("ngModel", ctx_r4.maxTarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r4.selectedCategories.length > 0 || ctx_r4.selectedDistrict || ctx_r4.minTarifa || ctx_r4.maxTarifa);
  }
}
class MapDashboardComponent {
  get enableSolicitudRecurrentBooking() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get enableRecurrentBooking() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  constructor(route, router, toastService, authService, categoriesService, complexService, fieldService, surfacesService, offcanvasService) {
    this.route = route;
    this.router = router;
    this.toastService = toastService;
    this.authService = authService;
    this.categoriesService = categoriesService;
    this.complexService = complexService;
    this.fieldService = fieldService;
    this.surfacesService = surfacesService;
    this.offcanvasService = offcanvasService;
    this.userRole = '';
    this.loading = false;
    this.temp = [];
    this.complexList = [];
    this.surfaceList = [];
    this.categoryList = [];
    this.fieldList = [];
    this.selectedCategories = [];
    this.selectedDistrict = '';
    this.minTarifa = null;
    this.maxTarifa = null;
    this.icon = leaflet__WEBPACK_IMPORTED_MODULE_2__.icon({
      iconUrl: 'assets/icons/pin-location.png',
      iconSize: [44, 52],
      popupAnchor: [1, -34],
      shadowSize: [41, 41]
    });
    this.searchQuery = '';
    this.searchResults = [];
    this.showSearchResults = false;
    this.systemConfigList = {};
  }
  ngOnInit() {
    this.authService.loginEvent$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.take)(1)).subscribe(event => {
      this.showConsolidatedSystemStatus(event);
    });
    this.systemConfigList = this.authService.getAllConfigs();
    const currentUser = this.authService.currentUser();
    this.userRole = this.authService.getUserRole();
    if (this.userRole === 'Contribuyente') {
      this.userData = currentUser;
    } else if (this.userRole === 'Admin') {
      this.userData = currentUser.designacion.personaDto;
    } else {
      this.userData = currentUser.designacion.personaDto;
      this.assignations = this.authService.staff();
    }
    this.initializeData();
  }
  showConsolidatedSystemStatus(event) {
    const configsLoaded = event.configsLoaded || 0;
    const finalRuatConnected = event.ruatStatus;
    let welcomeTitle = '';
    let welcomeMessage = '';
    switch (event.message) {
      case 'welcome_admin':
        welcomeTitle = '🎉 ¡Bienvenido Administrador!';
        welcomeMessage = 'Inicio de sesión exitoso con privilegios de administrador.';
        break;
      case 'welcome_staff':
        welcomeTitle = '👤 ¡Bienvenido Encargado!';
        welcomeMessage = 'Inicio de sesión exitoso.';
        break;
      default:
        welcomeTitle = '🎉 ¡Bienvenido!';
        welcomeMessage = 'Inicio de sesión exitoso.';
    }
    let statusMessage = '📊 Estado del Sistema:\n\n';
    if (configsLoaded > 0) {
      statusMessage += '✅ Sistema Principal: CONECTADO\n';
      statusMessage += `⚙️ Configuraciones: ${configsLoaded} cargadas\n`;
    } else {
      statusMessage += '⚠️ Sistema Principal: CONEXIÓN LIMITADA\n';
      statusMessage += `⚙️ Configuraciones: 0 cargadas\n`;
    }
    if (finalRuatConnected) {
      statusMessage += '✅ RUAT: CONECTADO\n';
      statusMessage += '   → Todas las funciones disponibles';
    } else {
      statusMessage += '❌ RUAT: NO DISPONIBLE\n\n';
      statusMessage += '   ⚠️ ADVERTENCIA IMPORTANTE:\n';
      statusMessage += '   • No se puede conectar al sistema RUAT\n';
      statusMessage += '   • Las reservas nuevas NO estarán disponibles\n';
      statusMessage += '   • Solo podrá consultar reservas existentes\n';
      statusMessage += '   • La verificación de contribuyentes estará limitada\n\n';
      statusMessage += '   💡 Recomendación:\n';
      statusMessage += '   • Si necesita realizar reservas, cierre sesión y vuelva a intentar más tarde\n';
      statusMessage += '   • Contacte al administrador si el problema persiste';
    }
    const fullMessage = `${welcomeMessage}\n\n${statusMessage}`;
    this.toastService.show(fullMessage, {
      classname: finalRuatConnected ? 'bg-success text-light' : 'bg-warning text-dark',
      header: welcomeTitle,
      delay: 15000
    });
  }
  initializeData() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.loading = true;
      try {
        yield _this.getComplexes();
        yield _this.getSurfaces();
        yield _this.getFields();
        yield _this.getCategories();
        _this.setMaps();
      } catch (error) {
        console.error('Error initializing data:', error);
      } finally {
        _this.loading = false;
      }
    })();
  }
  setMaps() {
    this.main = leaflet__WEBPACK_IMPORTED_MODULE_2__.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
      maxZoom: 19
    });
    this.baseMaps = {
      "Mapa Básico": this.main
    };
    this.setMarkersWithClustering();
  }
  setMarkersWithClustering() {
    this.mainList = leaflet__WEBPACK_IMPORTED_MODULE_2__.markerClusterGroup({
      chunkedLoading: true,
      maxClusterRadius: 50,
      spiderfyOnMaxZoom: true,
      showCoverageOnHover: true,
      zoomToBoundsOnClick: true,
      iconCreateFunction: cluster => {
        const count = cluster.getChildCount();
        let size = 'small';
        if (count > 10) size = 'medium';
        if (count > 25) size = 'large';
        return leaflet__WEBPACK_IMPORTED_MODULE_2__.divIcon({
          html: `<div class="cluster-marker cluster-${size}">${count}</div>`,
          className: 'marker-cluster-custom',
          iconSize: leaflet__WEBPACK_IMPORTED_MODULE_2__.point(40, 40)
        });
      }
    });
    this.complexList.forEach((element, index) => {
      const complex = this.setPopup(element);
      this.mainList.addLayer(complex);
    });
    let filteredMarkers = this.getFilteredList();
    this.overlayMaps = {
      "<span style='color: blue'>Todos los Complejos</span>": this.mainList,
      ...filteredMarkers
    };
    window.handleButtonClick = this.handleButtonClick.bind(this);
  }
  setMarkers() {
    let listMarkers = [];
    this.complexList.forEach(element => {
      const complex = this.setPopup(element);
      listMarkers.push(complex);
    });
    this.mainList = leaflet__WEBPACK_IMPORTED_MODULE_2__.layerGroup(listMarkers);
    let filteredMarkers = this.getFilteredList();
    this.overlayMaps = {
      "<span style='color: blue'>Todos los Complejos</span>": this.mainList,
      ...filteredMarkers
    };
    window.handleButtonClick = this.handleButtonClick.bind(this);
    this.configDefaultMap();
  }
  configDefaultMap() {
    this.map = leaflet__WEBPACK_IMPORTED_MODULE_2__.map('map', {
      zoom: 14,
      center: [-17.4010000, -66.2871000],
      layers: [this.main, this.mainList]
    });
    this.layerControl = leaflet__WEBPACK_IMPORTED_MODULE_2__.control.layers(this.baseMaps, this.overlayMaps).addTo(this.map);
    this.addLocationControl();
    this.addCustomSearchControl();
    this.addLegend();
  }
  addLocationControl() {
    const LocationControl = leaflet__WEBPACK_IMPORTED_MODULE_2__.Control.extend({
      options: {
        position: 'topleft'
      },
      onAdd: map => {
        const container = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-custom');
        container.innerHTML = `
                    <button class="btn-locate" title="Mi ubicación" style="
                        width: 30px;
                        height: 30px;
                        background: white;
                        border: 1px solid #ccc;
                        border-radius: 4px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        transition: all 0.2s;
                    ">
                        <i class="ri-user-location-line" style="font-size: 18px; color: #555;"></i>
                    </button>
                `;
        leaflet__WEBPACK_IMPORTED_MODULE_2__.DomEvent.disableClickPropagation(container);
        const locateButton = container.querySelector('.btn-locate');
        locateButton.addEventListener('mouseenter', () => {
          locateButton.style.background = '#f8f9fa';
          locateButton.style.borderColor = '#999';
        });
        locateButton.addEventListener('mouseleave', () => {
          locateButton.style.background = 'white';
          locateButton.style.borderColor = '#ccc';
        });
        locateButton.addEventListener('click', () => {
          this.locateUser();
        });
        return container;
      }
    });
    const locationControl = new LocationControl();
    this.map.addControl(locationControl);
  }
  locateUser() {
    if (!navigator.geolocation) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire('Error', 'La geolocalización no es soportada por tu navegador', 'error');
      return;
    }
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: 'Buscando tu ubicación...',
      allowOutsideClick: false,
      didOpen: () => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().showLoading();
      }
    });
    navigator.geolocation.getCurrentPosition(position => {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().close();
      const {
        latitude,
        longitude,
        accuracy
      } = position.coords;
      this.map.setView([latitude, longitude], 15, {
        animate: true,
        duration: 1
      });
      if (this.userLocationMarker) {
        this.map.removeLayer(this.userLocationMarker);
      }
      if (this.accuracyCircle) {
        this.map.removeLayer(this.accuracyCircle);
      }
      const userIcon = leaflet__WEBPACK_IMPORTED_MODULE_2__.divIcon({
        html: `
                        <div class="user-location-marker">
                            <div class="pulse"></div>
                            <div class="dot"></div>
                        </div>
                    `,
        className: 'user-location-icon',
        iconSize: [20, 20],
        iconAnchor: [10, 10]
      });
      this.accuracyCircle = leaflet__WEBPACK_IMPORTED_MODULE_2__.circle([latitude, longitude], {
        radius: accuracy,
        color: '#007bff',
        fillColor: '#007bff',
        fillOpacity: 0.1,
        weight: 1,
        dashArray: '5, 5'
      }).addTo(this.map);
      this.userLocationMarker = leaflet__WEBPACK_IMPORTED_MODULE_2__.marker([latitude, longitude], {
        icon: userIcon,
        zIndexOffset: 1000
      }).addTo(this.map).bindPopup(`
                    <div class="text-center">
                        <strong><i class="ri-user-location-line"></i> Tu ubicación actual</strong>
                        <br>
                        <small>Precisión: ±${Math.round(accuracy)} metros</small>
                        <br>
                        <small>Lat: ${latitude.toFixed(6)}</small>
                        <br>
                        <small>Lng: ${longitude.toFixed(6)}</small>
                    </div>
                `).openPopup();
    }, error => {
      let errorMessage = 'No se pudo obtener tu ubicación';
      switch (error.code) {
        case error.PERMISSION_DENIED:
          errorMessage = 'Permiso de ubicación denegado. Por favor, habilita la ubicación en tu navegador.';
          break;
        case error.POSITION_UNAVAILABLE:
          errorMessage = 'La información de ubicación no está disponible.';
          break;
        case error.TIMEOUT:
          errorMessage = 'Tiempo de espera agotado para obtener la ubicación.';
          break;
      }
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire('Error', errorMessage, 'error');
    }, {
      enableHighAccuracy: true,
      timeout: 10000,
      maximumAge: 60000
    });
  }
  addLegend() {
    const LegendControl = leaflet__WEBPACK_IMPORTED_MODULE_2__.Control.extend({
      options: {
        position: 'bottomright'
      },
      onAdd: map => {
        const div = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'info legend');
        div.innerHTML = `
                    <h6>Leyenda</h6>
                    <div class="legend-item">
                        <img src="assets/icons/pin-location.png" width="20" height="24"> Complejo Activo
                    </div>
                    <div class="legend-item">
                        <span class="legend-color" style="background: #28a745"></span> Complejo Activo
                    </div>
                    <div class="legend-item">
                        <span class="legend-color" style="background: #ffc107"></span> En Mantenimiento
                    </div>
                    <div class="legend-item">
                        <span class="legend-color" style="background: #dc3545"></span> Cerrado
                    </div>
                    <div class="legend-item">
                        <span class="legend-color" style="background: #0dcaf0"></span> Con Iluminación
                    </div>
                `;
        return div;
      }
    });
    const legend = new LegendControl();
    legend.addTo(this.map);
  }
  addCustomSearchControl() {
    const SearchControl = leaflet__WEBPACK_IMPORTED_MODULE_2__.Control.extend({
      options: {
        position: 'topright'
      },
      onAdd: map => {
        const container = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'leaflet-bar leaflet-control custom-search-control');
        container.style.background = 'white';
        container.style.padding = '0';
        container.style.borderRadius = '8px';
        container.style.boxShadow = '0 2px 8px rgba(0,0,0,0.15)';
        container.style.minWidth = '200px';
        container.style.zIndex = '1000';
        const searchWrapper = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'search-wrapper', container);
        searchWrapper.style.position = 'relative';
        const searchInput = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('input', 'search-input', searchWrapper);
        searchInput.type = 'text';
        searchInput.placeholder = 'Buscar complejo deportivo...';
        searchInput.style.width = '100%';
        searchInput.style.background = 'light';
        searchInput.style.padding = '12px 45px 12px 15px';
        searchInput.style.border = 'none';
        searchInput.style.outline = 'none';
        searchInput.style.fontSize = '14px';
        searchInput.style.borderRadius = '8px';
        searchInput.style.border = '2px solid #e9ecef';
        searchInput.style.transition = 'border-color 0.2s';
        const searchIcon = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('i', 'ri-search-line', searchWrapper);
        searchIcon.style.position = 'absolute';
        searchIcon.style.right = '15px';
        searchIcon.style.top = '50%';
        searchIcon.style.transform = 'translateY(-50%)';
        searchIcon.style.color = '#6c757d';
        searchIcon.style.fontSize = '18px';
        searchIcon.style.pointerEvents = 'none';
        const resultsContainer = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'search-results', container);
        resultsContainer.style.display = 'none';
        resultsContainer.style.maxHeight = '400px';
        resultsContainer.style.overflowY = 'auto';
        resultsContainer.style.borderTop = '1px solid #e9ecef';
        resultsContainer.style.borderRadius = '0 0 8px 8px';
        leaflet__WEBPACK_IMPORTED_MODULE_2__.DomEvent.disableClickPropagation(container);
        leaflet__WEBPACK_IMPORTED_MODULE_2__.DomEvent.disableScrollPropagation(container);
        searchInput.addEventListener('focus', () => {
          searchInput.style.borderColor = '#007bff';
          if (this.searchResults.length > 0) {
            resultsContainer.style.display = 'block';
          }
        });
        searchInput.addEventListener('blur', () => {
          searchInput.style.borderColor = '#e9ecef';
          setTimeout(() => {
            resultsContainer.style.display = 'none';
          }, 200);
        });
        searchInput.addEventListener('input', e => {
          this.onSearchInput(e.target.value, resultsContainer);
        });
        return container;
      }
    });
    this.searchControl = new SearchControl();
    this.map.addControl(this.searchControl);
  }
  onSearchInput(query, resultsContainer) {
    this.searchQuery = query.toLowerCase().trim();
    if (this.searchQuery.length < 2) {
      resultsContainer.style.display = 'none';
      this.searchResults = [];
      return;
    }
    this.searchResults = this.complexList.filter(complex => {
      const matchName = complex.nombre?.toLowerCase().includes(this.searchQuery);
      const matchLocation = complex.ubicacion?.toLowerCase().includes(this.searchQuery);
      const matchDistrict = complex.distrito?.toLowerCase().includes(this.searchQuery);
      const matchEncargado = complex.encargadosDtoList?.some(enc => enc.nombre?.toLowerCase().includes(this.searchQuery));
      const matchSurface = complex.camposDeportivosDtoList?.some(campo => campo.superficieDto?.descripcion?.toLowerCase().includes(this.searchQuery));
      const matchSport = complex.camposDeportivosDtoList?.some(campo => campo.tarifasDtoList?.some(tarifa => tarifa.categoriasDtoList?.some(cat => cat.categoriaDto.nombre?.toLowerCase().includes(this.searchQuery))));
      return matchName || matchLocation || matchDistrict || matchEncargado || matchSport || matchSurface;
    });
    this.searchResults.sort((a, b) => {
      const aScore = this.calculateRelevanceScore(a);
      const bScore = this.calculateRelevanceScore(b);
      return bScore - aScore;
    });
    this.renderSearchResults(resultsContainer);
  }
  calculateRelevanceScore(complex) {
    let score = 0;
    if (complex.nombre?.toLowerCase() === this.searchQuery) score += 10;
    if (complex.nombre?.toLowerCase().includes(this.searchQuery)) score += 5;
    if (complex.ubicacion?.toLowerCase().includes(this.searchQuery)) score += 3;
    if (complex.distrito?.toLowerCase().includes(this.searchQuery)) score += 2;
    if (complex.estadoActual?.toLowerCase() === 'activo') score += 2;
    return score;
  }
  renderSearchResults(container) {
    container.innerHTML = '';
    if (this.searchResults.length === 0) {
      container.style.display = 'block';
      const noResults = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'search-result-item no-results', container);
      noResults.style.padding = '15px';
      noResults.style.textAlign = 'center';
      noResults.style.color = '#6c757d';
      noResults.innerHTML = '<i class="ri-information-line"></i> No se encontraron resultados';
      return;
    }
    container.style.display = 'block';
    const limitedResults = this.searchResults.slice(0, 10);
    limitedResults.forEach(complex => {
      const resultItem = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'search-result-item', container);
      resultItem.style.padding = '12px 15px';
      resultItem.style.cursor = 'pointer';
      resultItem.style.borderBottom = '1px solid #e9ecef';
      resultItem.style.transition = 'background-color 0.2s';
      const estadoBadge = this.getEstadoBadgeText(complex.estadoActual);
      const uniqueSurfaces = Array.from(new Set(complex.camposDeportivosDtoList?.map(campo => campo.superficieDto?.descripcion).filter(Boolean)));
      const uniqueCategories = this.getAvailableDisciplines(complex);
      resultItem.innerHTML = `
                <div class="d-flex justify-content-between align-items-start">
                    <div class="flex-grow-1">
                        <div class="fw-semibold text-dark mb-1">${this.highlightMatch(complex.nombre, this.searchQuery)}</div>
                        <div class="mb-1">
                            <small class="text-muted">
                                <i class="ri-map-pin-line"></i> 
                                ${this.highlightMatch(complex.ubicacion, this.searchQuery)}
                                ${complex.distrito ? ` - ${this.highlightMatch(complex.distrito, this.searchQuery)}` : ''}
                            </small>
                        </div>
                        ${complex.encargadosDtoList?.length > 0 ? `
                        <div class="mb-1">
                            <small class="text-muted">
                                <i class="ri-user-line"></i> 
                                ${complex.encargadosDtoList.map(enc => this.highlightMatch(enc.nombre, this.searchQuery)).join(', ')}
                            </small>
                        </div>
                        ` : ''}
                        ${uniqueSurfaces.length > 0 ? `
                        <div class="mb-1">
                            <small class="text-muted">
                                <i class="ri-landscape-line"></i> 
                                ${uniqueSurfaces.map(surface => this.highlightMatch(surface, this.searchQuery)).join(', ')}
                            </small>
                        </div>
                        ` : ''}
                        ${uniqueCategories.length > 0 ? `
                        <div class="mb-1">
                            <small class="text-muted">
                                <i class="ri-basketball-line"></i> 
                                ${uniqueCategories.map(category => this.highlightMatch(category, this.searchQuery)).join(', ')}
                            </small>
                        </div>
                        ` : ''}
                    </div>                    
                    <span class="badge ${estadoBadge.class} ms-2">${estadoBadge.text}</span>
                </div>
            `;
      resultItem.addEventListener('mouseenter', () => {
        resultItem.style.backgroundColor = '#f8f9fa';
      });
      resultItem.addEventListener('mouseleave', () => {
        resultItem.style.backgroundColor = 'transparent';
      });
      resultItem.addEventListener('click', () => {
        this.selectSearchResult(complex);
        container.style.display = 'none';
      });
    });
    if (this.searchResults.length > 10) {
      const moreResults = leaflet__WEBPACK_IMPORTED_MODULE_2__.DomUtil.create('div', 'search-result-item', container);
      moreResults.style.padding = '10px 15px';
      moreResults.style.textAlign = 'center';
      moreResults.style.color = '#6c757d';
      moreResults.style.fontSize = '12px';
      moreResults.innerHTML = `<i class="ri-more-line"></i> +${this.searchResults.length - 10} resultados más...`;
    }
  }
  selectSearchResult(complex) {
    if (this.currentSearchMarker) {
      this.map.removeLayer(this.currentSearchMarker);
    }
    this.map.setView([complex.latitud, complex.longitud], 17, {
      animate: true,
      duration: 0.5
    });
    this.mainList.eachLayer(layer => {
      if (layer.getLatLng) {
        const latlng = layer.getLatLng();
        if (latlng.lat === complex.latitud && latlng.lng === complex.longitud) {
          setTimeout(() => {
            layer.openPopup();
          }, 500);
        }
      }
    });
    const highlightCircle = leaflet__WEBPACK_IMPORTED_MODULE_2__.circle([complex.latitud, complex.longitud], {
      color: '#0d6efd',
      fillColor: '#0d6efd',
      fillOpacity: 0.1,
      radius: 100,
      weight: 2
    }).addTo(this.map);
    setTimeout(() => {
      this.map.removeLayer(highlightCircle);
    }, 3000);
  }
  setPopup(element) {
    const complex = leaflet__WEBPACK_IMPORTED_MODULE_2__.marker([element.latitud, element.longitud], {
      icon: this.icon
    });
    const popupContent = document.createElement('div');
    const estadoBadge = this.getEstadoBadge(element.estadoActual);
    const encargado = element.encargadosDtoList && element.encargadosDtoList[0] ? element.encargadosDtoList[0].nombre : 'No asignado';
    const camposInfo = this.getCamposInfo(element);
    const priceRange = this.getPriceRange(element);
    const uniqueCategories = this.getAvailableDisciplines(element);
    popupContent.innerHTML = `
            <div class="map-popup-content" style="min-width: 320px;">
                <div class="d-flex justify-content-between align-items-start mb-2">
                    <h5 class="mb-0"><strong>${element.nombre}</strong></h5>
                    ${estadoBadge}
                </div>                
                <div class="popup-info">           
                    <div class="info-row">
                        <i class="ri-building-line me-2"></i>
                        <span><strong>Estructura:</strong> ${element.tipoEstructura || 'N/A'}</span>
                    </div>
                    ${element.encargadosDtoList.length > 0 ? `
                    <div class="info-row">
                        <i class="ri-user-line me-2"></i>
                        <span><strong>Encargado(s):</strong>                        
                        ${encargado}
                        </span>
                    </div>
                    ` : ''}    
                    ${element.telefonoPrincipal ? `
                    <div class="info-row">
                        <i class="ri-phone-line me-2"></i>
                        <span><strong>Teléfono:</strong> 
                            <a href="tel:${element.telefonoPrincipal}" class="text-decoration-none">
                                ${element.telefonoPrincipal}
                            </a>
                        </span>
                    </div>
                    ` : ''}
                    <div class="info-row">
                        <i class="ri-road-map-line me-2"></i>
                        <span><strong>Ubicación:</strong> ${element.ubicacion}</span>
                    </div>
                </div>
                <hr class="my-2">
                <div class="campos-section">
                    <div class="d-flex align-items-center mb-1">
                        <i class="ri-landscape-line me-2"></i>
                        <strong>Campos Deportivos (${camposInfo.total})</strong>
                    </div>
                    ${camposInfo.html}
                    ${uniqueCategories.length > 0 ? `
                    <div class="available-sports">
                        <i class="ri-basketball-line me-2"></i> 
                        <strong>Disiplinas:</strong>
                        <small class="text-muted">
                            ${uniqueCategories.map(category => this.highlightMatch(category, this.searchQuery)).join(', ')}
                        </small>
                    </div>
                    ` : ''}
                </div>
                ${priceRange ? `
                    <div class="price-range mt-2">
                        <i class="ri-price-tag-3-line"></i>
                        <strong>Precios desde:</strong> ${priceRange}
                    </div>
                ` : ''}
                <div class="facilities mt-2">
                    ${element.tieneIluminacion ? '<span class="badge bg-info me-1"><i class="ri-lightbulb-line"></i> Iluminación</span>' : ''}
                    ${element.tieneVestuarios ? '<span class="badge bg-info me-1"><i class="ri-door-line"></i> Vestuarios</span>' : ''}
                    ${element.tieneGraderias ? '<span class="badge bg-info me-1"><i class="ri-community-line"></i> Graderías</span>' : ''}
                </div>
                ${element.observaciones ? `
                    <div class="observaciones mt-2">
                        <small class="text-muted"><i class="ri-information-line"></i> ${element.observaciones}</small>
                    </div>
                ` : ''}
                ${element.estadoActual.toLowerCase() === 'activo' ? `
                    <div class="mt-3 d-flex gap-1">
                        <button class="btn btn-primary btn-sm w-100 mb-2 btn-reserva-puntual">
                            <i class="ri-calendar-check-line"></i>Reserva Puntual
                        </button>                        
                        ${this.userRole !== 'Contribuyente' || this.userRole === 'Contribuyente' && this.userData.estadoUsuario === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO && (this.enableRecurrentBooking || this.enableSolicitudRecurrentBooking) ? `
                            <button class="btn btn-success btn-sm w-100 mb-2 btn-reserva-recurrente">
                                <i class="ri-repeat-line"></i>Reserva Recurrente
                            </button>
                        ` : ''}
                    </div>
                ` : ''}
            </div>
        `;
    const btnPuntual = popupContent.querySelector('.btn-reserva-puntual');
    const btnRecurrente = popupContent.querySelector('.btn-reserva-recurrente');
    if (btnPuntual) {
      btnPuntual.addEventListener('click', e => {
        e.preventDefault();
        e.stopPropagation();
        this.goToReservation(element, 'puntual');
      });
    }
    if (btnRecurrente) {
      btnRecurrente.addEventListener('click', e => {
        e.preventDefault();
        e.stopPropagation();
        this.goToReservation(element, 'recurrente');
      });
    }
    complex.bindPopup(popupContent, {
      maxWidth: 350
    });
    return complex;
  }
  getCamposInfo(complejo) {
    if (!complejo.camposDeportivosDtoList || complejo.camposDeportivosDtoList.length === 0) {
      return {
        html: '<small class="text-muted">No hay campos disponibles</small>',
        total: 0
      };
    }
    const groupedBySurface = {};
    complejo.camposDeportivosDtoList.forEach(campo => {
      const superficie = campo.superficieDto?.descripcion || 'Sin especificar';
      if (!groupedBySurface[superficie]) {
        groupedBySurface[superficie] = [];
      }
      groupedBySurface[superficie].push(campo);
    });
    let html = '<div class="campos-list">';
    Object.keys(groupedBySurface).forEach(superficie => {
      const campos = groupedBySurface[superficie];
      const activeCampos = campos.filter(c => c.estadoActual === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.ACTIVO).length;
      html += `
                <div class="surface-group mb-1">
                    <small>
                        <strong>${superficie}</strong>: ${campos.length} campo${campos.length > 1 ? 's' : ''}
                        ${activeCampos < campos.length ? ` (${activeCampos} activo${activeCampos !== 1 ? 's' : ''})` : ''}
                    </small>
                </div>
            `;
    });
    html += '</div>';
    return {
      html,
      total: complejo.camposDeportivosDtoList.length
    };
  }
  getAvailableDisciplines(complex) {
    return Array.from(new Set(complex.camposDeportivosDtoList?.flatMap(campo => campo.tarifasDtoList?.flatMap(tarifa => tarifa.categoriasDtoList?.map(cat => cat.categoriaDto.nombre))).filter(Boolean)));
  }
  getPriceRange(complejo) {
    if (!complejo.camposDeportivosDtoList || complejo.camposDeportivosDtoList.length === 0) {
      return null;
    }
    let minPrice = Infinity;
    let maxPrice = -Infinity;
    complejo.camposDeportivosDtoList.forEach(campo => {
      if (campo.tarifasDtoList && campo.tarifasDtoList.length > 0) {
        campo.tarifasDtoList.forEach(tarifa => {
          if (tarifa.activo && tarifa.precioBase) {
            const precio = parseFloat(tarifa.precioBase);
            minPrice = Math.min(minPrice, precio);
            maxPrice = Math.max(maxPrice, precio);
          }
        });
      }
    });
    if (minPrice === Infinity || maxPrice === -Infinity) {
      return null;
    }
    if (minPrice === maxPrice) {
      return `Bs. ${minPrice.toFixed(2)}`;
    }
    return `Bs. ${minPrice.toFixed(2)} - ${maxPrice.toFixed(2)}`;
  }
  getEstadoBadge(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.ACTIVO:
        return '<span class="badge bg-success">Activo</span>';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.MANTENIMIENTO:
        return '<span class="badge bg-warning">Mantenimiento</span>';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.CERRADO:
        return '<span class="badge bg-danger">Cerrado</span>';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.EVENTO_MUNICIPAL:
        return '<span class="badge bg-danger">Reservado para Evento Municipal</span>';
      default:
        return '<span class="badge bg-secondary">N/A</span>';
    }
  }
  getEstadoBadgeText(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.ACTIVO:
        return {
          text: 'Activo',
          class: 'bg-success'
        };
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.MANTENIMIENTO:
        return {
          text: 'Mantenimiento',
          class: 'bg-warning'
        };
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.CERRADO:
        return {
          text: 'Cerrado',
          class: 'bg-danger'
        };
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.EVENTO_MUNICIPAL:
        return {
          text: 'Reservado para Evento Municipal',
          class: 'bg-danger'
        };
      default:
        return {
          text: 'N/A',
          class: 'bg-secondary'
        };
    }
  }
  highlightMatch(text, query) {
    if (!text || !query) return text || '';
    const regex = new RegExp(`(${query})`, 'gi');
    return text.replace(regex, '<mark style="background-color: #fff3cd; padding: 0 2px;">$1</mark>');
  }
  filterByStatus(status) {
    const filtered = this.complexList.filter(complex => complex.estadoActual === status);
    this.updateMapMarkers(filtered);
  }
  getFilteredList() {
    let filteredMarkers = [];
    this.surfaceList.forEach(item => {
      const complexesBySurface = this.complexList.filter(complex => complex.camposDeportivosDtoList?.some(c => c.superficieDto?.descripcion === item.descripcion));
      const mergedList = [...new Set([...complexesBySurface])];
      const markers = mergedList.map(element => {
        const complex = this.setPopup(element);
        return complex;
      });
      if (markers.length > 0) {
        filteredMarkers[item.descripcion] = leaflet__WEBPACK_IMPORTED_MODULE_2__.layerGroup(markers);
      }
    });
    return filteredMarkers;
  }
  onCategoryChange(categoryName, event) {
    if (event.target.checked) {
      this.selectedCategories.push(categoryName);
    } else {
      const index = this.selectedCategories.indexOf(categoryName);
      if (index > -1) {
        this.selectedCategories.splice(index, 1);
      }
    }
  }
  applyFilters() {
    let filteredComplexes = [...this.complexList];
    if (this.selectedDistrict) {
      filteredComplexes = filteredComplexes.filter(c => c.distrito === this.selectedDistrict);
    }
    if (this.minTarifa !== null || this.maxTarifa !== null) {
      filteredComplexes = filteredComplexes.filter(complejo => {
        if (!complejo.camposDeportivosDtoList) return false;
        return complejo.camposDeportivosDtoList.some(campo => {
          if (!campo.tarifasDtoList) return false;
          return campo.tarifasDtoList.some(tarifa => {
            if (!tarifa.activo || !tarifa.precioBase) return false;
            const precio = parseFloat(tarifa.precioBase);
            if (this.minTarifa !== null && precio < this.minTarifa) return false;
            if (this.maxTarifa !== null && precio > this.maxTarifa) return false;
            return true;
          });
        });
      });
    }
    if (this.selectedCategories.length > 0) {
      filteredComplexes = filteredComplexes.filter(complejo => {
        if (!complejo.camposDeportivosDtoList) return false;
        return complejo.camposDeportivosDtoList.some(campo => {
          if (!campo.tarifasDtoList) return false;
          return campo.tarifasDtoList.some(tarifa => {
            if (!tarifa.categoriasDtoList) return false;
            return tarifa.categoriasDtoList.some(tc => {
              return this.selectedCategories.includes(tc.categoriaDto?.nombre);
            });
          });
        });
      });
    }
    this.updateMapMarkers(filteredComplexes);
    this.offcanvasService.dismiss();
  }
  clearFilters() {
    this.selectedCategories = [];
    this.selectedDistrict = '';
    this.minTarifa = null;
    this.maxTarifa = null;
    this.updateMapMarkers(this.complexList);
    this.offcanvasService.dismiss();
  }
  updateMapMarkers(complexes) {
    if (this.mainList) {
      this.map.removeLayer(this.mainList);
    }
    let listMarkers = [];
    complexes.forEach(element => {
      const complex = this.setPopup(element);
      listMarkers.push(complex);
    });
    this.mainList = leaflet__WEBPACK_IMPORTED_MODULE_2__.layerGroup(listMarkers);
    this.mainList.addTo(this.map);
    if (complexes.length === 0) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: 'Sin resultados',
        text: 'No se encontraron complejos con los filtros aplicados',
        icon: 'info',
        confirmButtonColor: '#299cdb'
      });
    }
  }
  get uniqueDistricts() {
    const districts = this.complexList.map(c => c.distrito).filter(d => d && d.trim() !== '');
    return [...new Set(districts)].sort();
  }
  /* API Services */
  getComplexes() {
    this.complexService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.complexList = data.payload;
          this.temp = data.payload;
          this.setMarkers();
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'No se pudo recuperar los complejos deportivos',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  getFields() {
    this.fieldService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.fieldList = data.payload;
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'No se pudo recuperar los campos deportivos',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  getCategories() {
    this.categoriesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'No se pudo recuperar las categorías',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  getSurfaces() {
    this.surfacesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.surfaceList = data.payload;
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'No se pudo recuperar las superficies',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  handleButtonClick(data) {
    this.router.navigate(['/reservations/details'], {
      state: {
        data: data
      }
    });
  }
  goToReservation(complejo, bookingType) {
    this.router.navigate(['/reservations/details'], {
      state: {
        data: complejo,
        tipoReserva: bookingType
      }
    });
  }
  openEnd(content) {
    this.offcanvasService.open(content, {
      position: 'end'
    });
  }
  static {
    this.ɵfac = function MapDashboardComponent_Factory(t) {
      return new (t || MapDashboardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_14__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_14__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_admin_toast_service__WEBPACK_IMPORTED_MODULE_6__.ToastService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_8__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_9__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_10__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_11__.SuperficiesService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbOffcanvas));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
      type: MapDashboardComponent,
      selectors: [["app-map-dashboard"]],
      decls: 33,
      vars: 5,
      consts: [["filtetcontent", ""], [1, "row", "g-0"], [1, "col-12"], [1, "card", "map-card"], [1, "card-header", "border-0", "d-flex", "flex-wrap", "align-items-center"], [1, "card-title", "flex-grow-1", "mb-0"], [1, "ri-map-pin-2-line"], [1, "flex-shrink-0"], [1, "d-flex", "gap-2", "flex-wrap"], [1, "d-flex", "align-items-center", "gap-2"], [1, "badge", "bg-primary"], [1, "badge", "bg-info"], [1, "d-flex", "gap-1", "flex-wrap"], ["type", "button", 1, "btn", "btn-outline-success", "btn-sm", 3, "click"], [1, "ri-check-line"], ["type", "button", 1, "btn", "btn-outline-danger", "btn-sm", 3, "click"], [1, "ri-close-line"], ["type", "button", 1, "btn", "btn-outline-primary", "btn-sm", 3, "click"], [1, "ri-list-check", "align-bottom", "me-1"], ["type", "button", 1, "btn", "btn-primary", "btn-sm", 3, "click"], [1, "ri-filter-3-line", "align-bottom", "me-1"], [1, "card-body", "p-0", "position-relative"], ["class", "map-loading-overlay", 4, "ngIf"], ["id", "map", 1, "map-container"], [1, "map-loading-overlay"], ["role", "status", 1, "spinner-border", "text-primary"], [1, "visually-hidden"], [1, "offcanvas-header", "bg-light"], [1, "offcanvas-title"], [1, "ri-filter-3-line"], ["type", "button", 1, "btn-close", 3, "click"], [1, "offcanvas-body"], [1, "mb-2"], ["for", "distrito-select", 1, "form-label", "text-muted", "text-uppercase", "fw-semibold", "mb-3"], [1, "ri-map-pin-line"], ["name", "distrito", 1, "form-select", 3, "ngModelChange", "ngModel"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "form-label", "text-muted", "text-uppercase", "fw-semibold", "mb-3"], [1, "ri-price-tag-3-line"], [1, "category-filter-grid"], ["class", "form-check mb-2", 4, "ngFor", "ngForOf"], ["class", "text-muted", 4, "ngIf"], [1, "ri-money-dollar-circle-line"], [1, "row", "g-2", "align-items-center"], [1, "col"], ["type", "number", "name", "minTarifa", "placeholder", "M\u00EDnimo", "min", "0", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "col-auto"], [1, "text-muted"], ["type", "number", "name", "maxTarifa", "placeholder", "M\u00E1ximo", "min", "0", 1, "form-control", 3, "ngModelChange", "ngModel"], ["class", "alert alert-info", 4, "ngIf"], [1, "offcanvas-footer", "border-top", "p-2"], [1, "d-grid", "gap-2"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [1, "ri-search-line"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click"], [1, "ri-close-circle-line"], [3, "value"], [1, "form-check", "mb-2"], ["type", "checkbox", 1, "form-check-input", 3, "change", "id", "checked"], [1, "form-check-label", 3, "for"], [1, "alert", "alert-info"], [1, "alert-heading", "mb-2"], [1, "ri-filter-2-line"], [1, "mb-0", "ps-3"], [4, "ngIf"]],
      template: function MapDashboardComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4)(4, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](5, "i", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](6, " PANEL DE CONTROL DE COMPLEJOS DEPORTIVOS ");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](11);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](12, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](14, "div", 12)(15, "button", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_Template_button_click_15_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx.filterByStatus("ACTIVO"));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](16, "i", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](17, " Activos ");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](18, "div", 12)(19, "button", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_Template_button_click_19_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx.filterByStatus("CERRADO"));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](20, "i", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](21, " Cerrados ");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](22, "button", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_Template_button_click_22_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx.goToReservation(null, "puntual"));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](23, "i", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](24, "Ver como Lista ");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](25, "button", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function MapDashboardComponent_Template_button_click_25_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r1);
            const filtetcontent_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](32);
            return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx.openEnd(filtetcontent_r2));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](26, "i", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](27, "Filtrar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](28, "div", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](29, MapDashboardComponent_div_29_Template, 4, 0, "div", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](30, "div", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](31, MapDashboardComponent_ng_template_31_Template, 43, 7, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](11);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"]("", ctx.complexList.length, " Complejos");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"]("", ctx.fieldList.length, " Campos");
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("loading", ctx.loading);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgForm],
      styles: [".custom-geosearch-control[_ngcontent-%COMP%]   .geosearch-bar[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  padding-right: 0;\n}\n\n.custom-geosearch-control[_ngcontent-%COMP%]   .geosearch-input[_ngcontent-%COMP%] {\n  flex-grow: 1;\n  margin-right: 5px;\n}\n\n.custom-geosearch-control[_ngcontent-%COMP%]   .reset[_ngcontent-%COMP%] {\n  position: static;\n  margin: 0;\n  padding: 0 10px;\n  height: 100%;\n  display: flex;\n  align-items: center;\n}\n\n.custom-geosearch-control[_ngcontent-%COMP%]   .reset[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%] {\n  width: 12px;\n  height: 12px;\n}\n\n.row.g-0[_ngcontent-%COMP%] {\n  margin: 0;\n}\n\n.map-card[_ngcontent-%COMP%] {\n  height: calc(100vh - 118px); \n\n  display: flex;\n  flex-direction: column;\n}\n\n.card-body[_ngcontent-%COMP%] {\n  flex-grow: 1;\n  padding: 0 !important;\n}\n\n.map-container[_ngcontent-%COMP%] {\n  height: 100%;\n}\n\n@media (max-width: 767px) {\n  .map-card[_ngcontent-%COMP%] {\n    margin: -15px;\n    border-radius: 3;\n  }\n  .card-header[_ngcontent-%COMP%] {\n    padding: 10px 15px;\n  }\n}\n.map-container[_ngcontent-%COMP%] {\n  height: 600px;\n  width: 100%;\n  position: relative;\n  z-index: 1;\n  border-radius: 0 0 8px 8px;\n}\n.map-container.loading[_ngcontent-%COMP%] {\n  filter: blur(2px);\n  pointer-events: none;\n}\n\n.map-card[_ngcontent-%COMP%] {\n  border-radius: 8px;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n  overflow: hidden;\n}\n\n  .leaflet-popup-content-wrapper {\n  border-radius: 8px;\n  padding: 0;\n  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n}\n  .leaflet-popup-content {\n  margin: 0;\n  padding: 16px;\n  font-size: 13px;\n  line-height: 1.5;\n  min-width: 280px !important;\n}\n  .map-popup-content .info-row {\n  display: flex;\n  align-items: flex-start;\n}\n  .map-popup-content .campos-section {\n  background-color: #f8f9fa;\n  padding: 10px;\n  border-radius: 6px;\n  margin-top: 10px;\n}\n  .map-popup-content .campos-section .surface-group {\n  padding-left: 8px;\n  border-left: 3px solid #299cdb;\n}\n  .map-popup-content .price-range {\n  background-color: #fff3cd;\n  padding: 8px 10px;\n  border-radius: 6px;\n  font-size: 12px;\n}\n  .map-popup-content .facilities {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 4px;\n}\n  .map-popup-content .observaciones {\n  background-color: #e7f3ff;\n  padding: 6px 10px;\n  border-radius: 4px;\n  border-left: 3px solid #299cdb;\n}\n  .map-popup-content .reservation-info {\n  padding: 6px 10px;\n  background-color: #f0f8ff;\n  border-radius: 4px;\n  border-left: 3px solid #299cdb;\n}\n  .map-popup-content .alert-sm {\n  padding: 8px 10px;\n  font-size: 12px;\n  margin-bottom: 0;\n  border-radius: 6px;\n}\n  .map-popup-content .alert-sm.alert-info {\n  background-color: #d1ecf1;\n  border-color: #bee5eb;\n  color: #0c5460;\n}\n  .map-popup-content .alert-sm.alert-warning {\n  background-color: #fff3cd;\n  border-color: #ffeaa7;\n  color: #856404;\n}\n  .custom-geosearch-control {\n  position: absolute;\n  top: 80px;\n  left: 10px;\n  z-index: 1000;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n  border-radius: 4px;\n}\n  .custom-geosearch-control input {\n  padding: 8px 12px;\n  border: 1px solid #ddd;\n  border-radius: 4px;\n  font-size: 14px;\n  width: 250px;\n}\n  .custom-geosearch-control input:focus {\n  outline: none;\n  border-color: #299cdb;\n  box-shadow: 0 0 0 0.2rem rgba(41, 156, 219, 0.25);\n}\n  .leaflet-control-layers {\n  border-radius: 8px;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n  .marker-cluster {\n  background-clip: padding-box;\n  border-radius: 20px;\n}\n  .marker-cluster div {\n  width: 30px;\n  height: 30px;\n  margin-left: 5px;\n  margin-top: 5px;\n  text-align: center;\n  border-radius: 15px;\n  font: 12px \"Helvetica Neue\", Arial, Helvetica, sans-serif;\n}\n  .marker-cluster span {\n  line-height: 30px;\n}\n\n.offcanvas-header[_ngcontent-%COMP%] {\n  border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.offcanvas-header[_ngcontent-%COMP%]   .offcanvas-title[_ngcontent-%COMP%] {\n  font-size: 18px;\n  font-weight: 600;\n}\n.offcanvas-body[_ngcontent-%COMP%] {\n  padding: 20px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%] {\n  font-size: 12px;\n  letter-spacing: 0.5px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .form-select[_ngcontent-%COMP%], .offcanvas-body[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%] {\n  font-size: 14px;\n  border-radius: 6px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%] {\n  max-height: 250px;\n  overflow-y: auto;\n  padding-right: 8px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]::-webkit-scrollbar {\n  width: 6px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]::-webkit-scrollbar-track {\n  border-radius: 10px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]::-webkit-scrollbar-thumb {\n  background: #299cdb;\n  border-radius: 10px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover {\n  background: #1f7ea7;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%] {\n  padding-left: 1.5rem;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:checked {\n  background-color: #299cdb;\n  border-color: #299cdb;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .category-filter-grid[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%] {\n  cursor: pointer;\n  font-size: 13px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .alert-info[_ngcontent-%COMP%] {\n  background-color: #e7f3ff;\n  border-color: #b3d9ff;\n  border-radius: 8px;\n  font-size: 13px;\n}\n.offcanvas-body[_ngcontent-%COMP%]   .alert-info[_ngcontent-%COMP%]   .alert-heading[_ngcontent-%COMP%] {\n  font-size: 14px;\n  color: #004085;\n}\n\n@media (max-width: 768px) {\n  .map-container[_ngcontent-%COMP%] {\n    height: calc(100vh - 200px);\n    min-height: 400px;\n  }\n  .card-header[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%] {\n    font-size: 14px;\n    margin-bottom: 10px;\n  }\n  .card-header[_ngcontent-%COMP%]   .flex-shrink-0[_ngcontent-%COMP%] {\n    width: 100%;\n  }\n    .leaflet-popup-content {\n    min-width: 240px !important;\n  }\n    .map-popup-content .info-row {\n    font-size: 11px;\n  }\n    .map-popup-content .info-row i {\n    font-size: 14px;\n    min-width: 18px;\n  }\n    .custom-geosearch-control {\n    top: 70px;\n  }\n    .custom-geosearch-control input {\n    width: 200px;\n    font-size: 13px;\n  }\n}\n@media (max-width: 576px) {\n  .map-container[_ngcontent-%COMP%] {\n    height: calc(100vh - 220px);\n  }\n    .leaflet-popup-content {\n    min-width: 200px !important;\n  }\n    .custom-geosearch-control {\n    left: 50%;\n    transform: translateX(-50%);\n  }\n    .custom-geosearch-control input {\n    width: calc(100vw - 40px);\n    max-width: 300px;\n  }\n}\n.map-loading[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  z-index: 9999;\n  text-align: center;\n}\n.map-loading[_ngcontent-%COMP%]   .spinner-border[_ngcontent-%COMP%] {\n  width: 3rem;\n  height: 3rem;\n  color: #299cdb;\n}\n\n.map-empty-state[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n  padding: 40px;\n  text-align: center;\n  color: #6c757d;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvZGFzaGJvYXJkcy9tYXAvbWFwLWRhc2hib2FyZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQTtFQUNJLGFBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FBRko7O0FBS0U7RUFDRSxZQUFBO0VBQ0EsaUJBQUE7QUFGSjs7QUFLRTtFQUNFLGdCQUFBO0VBQ0EsU0FBQTtFQUNBLGVBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0FBRko7O0FBS0U7RUFDRSxXQUFBO0VBQ0EsWUFBQTtBQUZKOztBQUtFO0VBQ0UsU0FBQTtBQUZKOztBQUtFO0VBQ0UsMkJBQUEsRUFBQSw0Q0FBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtBQUZKOztBQUtFO0VBQ0UsWUFBQTtFQUNBLHFCQUFBO0FBRko7O0FBS0U7RUFDRSxZQUFBO0FBRko7O0FBS0U7RUFDRTtJQUNFLGFBQUE7SUFDQSxnQkFBQTtFQUZKO0VBS0U7SUFDRSxrQkFBQTtFQUhKO0FBQ0Y7QUFNQTtFQUNFLGFBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0VBQ0EsMEJBQUE7QUFKRjtBQU1FO0VBQ0UsaUJBQUE7RUFDQSxvQkFBQTtBQUpKOztBQVFBO0VBQ0Usa0JBQUE7RUFDQSx3Q0FBQTtFQUNBLGdCQUFBO0FBTEY7O0FBVUk7RUFDSSxrQkFBQTtFQUNBLFVBQUE7RUFDQSwwQ0FBQTtBQVBSO0FBVUk7RUFDSSxTQUFBO0VBQ0EsYUFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLDJCQUFBO0FBUlI7QUFZUTtFQUNJLGFBQUE7RUFDQSx1QkFBQTtBQVZaO0FBYVE7RUFDSSx5QkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBWFo7QUFhWTtFQUNJLGlCQUFBO0VBQ0EsOEJBQUE7QUFYaEI7QUFlUTtFQUNJLHlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7QUFiWjtBQWdCUTtFQUNJLGFBQUE7RUFDQSxlQUFBO0VBQ0EsUUFBQTtBQWRaO0FBaUJRO0VBQ0kseUJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsOEJBQUE7QUFmWjtBQWtCUTtFQUNJLGlCQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLDhCQUFBO0FBaEJaO0FBbUJRO0VBQ0ksaUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTtBQWpCWjtBQW1CWTtFQUNJLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxjQUFBO0FBakJoQjtBQW9CWTtFQUNJLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxjQUFBO0FBbEJoQjtBQXdCSTtFQUNJLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7RUFDQSxhQUFBO0VBQ0Esd0NBQUE7RUFDQSxrQkFBQTtBQXRCUjtBQXdCUTtFQUNJLGlCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxZQUFBO0FBdEJaO0FBd0JZO0VBQ0ksYUFBQTtFQUNBLHFCQUFBO0VBQ0EsaURBQUE7QUF0QmhCO0FBNEJJO0VBQ0ksa0JBQUE7RUFDQSx3Q0FBQTtBQTFCUjtBQThCSTtFQUNJLDRCQUFBO0VBQ0EsbUJBQUE7QUE1QlI7QUE4QlE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSx5REFBQTtBQTVCWjtBQStCUTtFQUNJLGlCQUFBO0FBN0JaOztBQW9DSTtFQUNJLDJDQUFBO0FBakNSO0FBbUNRO0VBQ0ksZUFBQTtFQUNBLGdCQUFBO0FBakNaO0FBcUNJO0VBQ0ksYUFBQTtBQW5DUjtBQXFDUTtFQUNJLGVBQUE7RUFDQSxxQkFBQTtBQW5DWjtBQXNDUTs7RUFFSSxlQUFBO0VBQ0Esa0JBQUE7QUFwQ1o7QUF1Q1E7RUFDSSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFyQ1o7QUF1Q1k7RUFDSSxVQUFBO0FBckNoQjtBQXdDWTtFQUNJLG1CQUFBO0FBdENoQjtBQXlDWTtFQUNJLG1CQUFBO0VBQ0EsbUJBQUE7QUF2Q2hCO0FBeUNnQjtFQUNJLG1CQUFBO0FBdkNwQjtBQTJDWTtFQUNJLG9CQUFBO0FBekNoQjtBQTJDZ0I7RUFDSSxlQUFBO0FBekNwQjtBQTJDb0I7RUFDSSx5QkFBQTtFQUNBLHFCQUFBO0FBekN4QjtBQTZDZ0I7RUFDSSxlQUFBO0VBQ0EsZUFBQTtBQTNDcEI7QUFnRFE7RUFDSSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0FBOUNaO0FBZ0RZO0VBQ0ksZUFBQTtFQUNBLGNBQUE7QUE5Q2hCOztBQXNEQTtFQUNJO0lBQ0ksMkJBQUE7SUFDQSxpQkFBQTtFQW5ETjtFQXVETTtJQUNJLGVBQUE7SUFDQSxtQkFBQTtFQXJEVjtFQXdETTtJQUNJLFdBQUE7RUF0RFY7RUEyRE07SUFDSSwyQkFBQTtFQXpEVjtFQTZEVTtJQUNJLGVBQUE7RUEzRGQ7RUE2RGM7SUFDSSxlQUFBO0lBQ0EsZUFBQTtFQTNEbEI7RUFnRU07SUFDSSxTQUFBO0VBOURWO0VBZ0VVO0lBQ0ksWUFBQTtJQUNBLGVBQUE7RUE5RGQ7QUFDRjtBQW1FQTtFQUNJO0lBQ0ksMkJBQUE7RUFqRU47RUFxRU07SUFDSSwyQkFBQTtFQW5FVjtFQXNFTTtJQUNJLFNBQUE7SUFDQSwyQkFBQTtFQXBFVjtFQXNFVTtJQUNJLHlCQUFBO0lBQ0EsZ0JBQUE7RUFwRWQ7QUFDRjtBQTBFQTtFQUNJLGtCQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSxnQ0FBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtBQXhFSjtBQTBFSTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtBQXhFUjs7QUE2RUE7RUFDSSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUExRUoiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAaW1wb3J0ICdub2RlX21vZHVsZXMvbGVhZmxldC1nZW9zZWFyY2gvZGlzdC9nZW9zZWFyY2guY3NzJztcclxuLy8gQGltcG9ydCBcIn5sZWFmbGV0LWdlb3NlYXJjaC9kaXN0L2dlb3NlYXJjaC5jc3NcIjtcclxuXHJcbi5jdXN0b20tZ2Vvc2VhcmNoLWNvbnRyb2wgLmdlb3NlYXJjaC1iYXIge1xyXG4gICAgZGlzcGxheTpmbGV4O1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIHBhZGRpbmctcmlnaHQ6IDA7XHJcbiAgfVxyXG4gIFxyXG4gIC5jdXN0b20tZ2Vvc2VhcmNoLWNvbnRyb2wgLmdlb3NlYXJjaC1pbnB1dCB7XHJcbiAgICBmbGV4LWdyb3c6IDE7XHJcbiAgICBtYXJnaW4tcmlnaHQ6IDVweDtcclxuICB9XHJcbiAgXHJcbiAgLmN1c3RvbS1nZW9zZWFyY2gtY29udHJvbCAucmVzZXQge1xyXG4gICAgcG9zaXRpb246IHN0YXRpYztcclxuICAgIG1hcmdpbjogMDtcclxuICAgIHBhZGRpbmc6IDAgMTBweDtcclxuICAgIGhlaWdodDogMTAwJTtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gIH1cclxuICBcclxuICAuY3VzdG9tLWdlb3NlYXJjaC1jb250cm9sIC5yZXNldCBzdmcge1xyXG4gICAgd2lkdGg6IDEycHg7XHJcbiAgICBoZWlnaHQ6IDEycHg7XHJcbiAgfVxyXG4gIFxyXG4gIC5yb3cuZy0wIHtcclxuICAgIG1hcmdpbjogMDtcclxuICB9XHJcblxyXG4gIC5tYXAtY2FyZCB7XHJcbiAgICBoZWlnaHQ6IGNhbGMoMTAwdmggLSAxMThweCk7IC8qIEFkanVzdCA1NnB4IGJhc2VkIG9uIHlvdXIgaGVhZGVyIGhlaWdodCAqL1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgfVxyXG5cclxuICAuY2FyZC1ib2R5IHtcclxuICAgIGZsZXgtZ3JvdzogMTtcclxuICAgIHBhZGRpbmc6IDAgIWltcG9ydGFudDtcclxuICB9XHJcblxyXG4gIC5tYXAtY29udGFpbmVyIHtcclxuICAgIGhlaWdodDogMTAwJTtcclxuICB9XHJcblxyXG4gIEBtZWRpYSAobWF4LXdpZHRoOiA3NjdweCkge1xyXG4gICAgLm1hcC1jYXJkIHtcclxuICAgICAgbWFyZ2luOiAtMTVweDtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMztcclxuICAgIH1cclxuICAgIFxyXG4gICAgLmNhcmQtaGVhZGVyIHtcclxuICAgICAgcGFkZGluZzogMTBweCAxNXB4O1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbi5tYXAtY29udGFpbmVyIHtcclxuICBoZWlnaHQ6IDYwMHB4O1xyXG4gIHdpZHRoOiAxMDAlO1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICB6LWluZGV4OiAxO1xyXG4gIGJvcmRlci1yYWRpdXM6IDAgMCA4cHggOHB4O1xyXG4gIFxyXG4gICYubG9hZGluZyB7XHJcbiAgICBmaWx0ZXI6IGJsdXIoMnB4KTtcclxuICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xyXG4gIH1cclxufVxyXG5cclxuLm1hcC1jYXJkIHtcclxuICBib3JkZXItcmFkaXVzOiA4cHg7XHJcbiAgYm94LXNoYWRvdzogMCAycHggOHB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcclxuICBvdmVyZmxvdzogaGlkZGVuO1xyXG59XHJcblxyXG4vLyBDdXN0b20gUG9wdXAgU3R5bGVzXHJcbjo6bmctZGVlcCB7XHJcbiAgICAubGVhZmxldC1wb3B1cC1jb250ZW50LXdyYXBwZXIge1xyXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDhweDtcclxuICAgICAgICBwYWRkaW5nOiAwO1xyXG4gICAgICAgIGJveC1zaGFkb3c6IDAgNHB4IDEycHggcmdiYSgwLCAwLCAwLCAwLjE1KTtcclxuICAgIH1cclxuXHJcbiAgICAubGVhZmxldC1wb3B1cC1jb250ZW50IHtcclxuICAgICAgICBtYXJnaW46IDA7XHJcbiAgICAgICAgcGFkZGluZzogMTZweDtcclxuICAgICAgICBmb250LXNpemU6IDEzcHg7XHJcbiAgICAgICAgbGluZS1oZWlnaHQ6IDEuNTtcclxuICAgICAgICBtaW4td2lkdGg6IDI4MHB4ICFpbXBvcnRhbnQ7XHJcbiAgICB9XHJcblxyXG4gICAgLm1hcC1wb3B1cC1jb250ZW50IHtcclxuICAgICAgICAuaW5mby1yb3cge1xyXG4gICAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC5jYW1wb3Mtc2VjdGlvbiB7XHJcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmOGY5ZmE7XHJcbiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7XHJcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgICAgICAgICAgbWFyZ2luLXRvcDogMTBweDtcclxuXHJcbiAgICAgICAgICAgIC5zdXJmYWNlLWdyb3VwIHtcclxuICAgICAgICAgICAgICAgIHBhZGRpbmctbGVmdDogOHB4O1xyXG4gICAgICAgICAgICAgICAgYm9yZGVyLWxlZnQ6IDNweCBzb2xpZCAjMjk5Y2RiO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAucHJpY2UtcmFuZ2Uge1xyXG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmM2NkO1xyXG4gICAgICAgICAgICBwYWRkaW5nOiA4cHggMTBweDtcclxuICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNnB4O1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDEycHg7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAuZmFjaWxpdGllcyB7XHJcbiAgICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgICAgICAgIGZsZXgtd3JhcDogd3JhcDtcclxuICAgICAgICAgICAgZ2FwOiA0cHg7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAub2JzZXJ2YWNpb25lcyB7XHJcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlN2YzZmY7XHJcbiAgICAgICAgICAgIHBhZGRpbmc6IDZweCAxMHB4O1xyXG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7XHJcbiAgICAgICAgICAgIGJvcmRlci1sZWZ0OiAzcHggc29saWQgIzI5OWNkYjtcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgLnJlc2VydmF0aW9uLWluZm8ge1xyXG4gICAgICAgICAgICBwYWRkaW5nOiA2cHggMTBweDtcclxuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YwZjhmZjtcclxuICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gICAgICAgICAgICBib3JkZXItbGVmdDogM3B4IHNvbGlkICMyOTljZGI7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIC5hbGVydC1zbSB7XHJcbiAgICAgICAgICAgIHBhZGRpbmc6IDhweCAxMHB4O1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDEycHg7XHJcbiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XHJcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICYuYWxlcnQtaW5mbyB7XHJcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZDFlY2YxO1xyXG4gICAgICAgICAgICAgICAgYm9yZGVyLWNvbG9yOiAjYmVlNWViO1xyXG4gICAgICAgICAgICAgICAgY29sb3I6ICMwYzU0NjA7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICYuYWxlcnQtd2FybmluZyB7XHJcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmM2NkO1xyXG4gICAgICAgICAgICAgICAgYm9yZGVyLWNvbG9yOiAjZmZlYWE3O1xyXG4gICAgICAgICAgICAgICAgY29sb3I6ICM4NTY0MDQ7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLy8gR2Vvc2VhcmNoIENvbnRyb2wgU3R5bGVzXHJcbiAgICAuY3VzdG9tLWdlb3NlYXJjaC1jb250cm9sIHtcclxuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgICAgdG9wOiA4MHB4O1xyXG4gICAgICAgIGxlZnQ6IDEwcHg7XHJcbiAgICAgICAgei1pbmRleDogMTAwMDtcclxuICAgICAgICBib3gtc2hhZG93OiAwIDJweCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpO1xyXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDtcclxuXHJcbiAgICAgICAgaW5wdXQge1xyXG4gICAgICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcclxuICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcclxuICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDE0cHg7XHJcbiAgICAgICAgICAgIHdpZHRoOiAyNTBweDtcclxuXHJcbiAgICAgICAgICAgICY6Zm9jdXMge1xyXG4gICAgICAgICAgICAgICAgb3V0bGluZTogbm9uZTtcclxuICAgICAgICAgICAgICAgIGJvcmRlci1jb2xvcjogIzI5OWNkYjtcclxuICAgICAgICAgICAgICAgIGJveC1zaGFkb3c6IDAgMCAwIDAuMnJlbSByZ2JhKDQxLCAxNTYsIDIxOSwgMC4yNSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLy8gTGF5ZXIgQ29udHJvbFxyXG4gICAgLmxlYWZsZXQtY29udHJvbC1sYXllcnMge1xyXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDhweDtcclxuICAgICAgICBib3gtc2hhZG93OiAwIDJweCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpO1xyXG4gICAgfVxyXG5cclxuICAgIC8vIE1hcmtlciBjbHVzdGVyIHN0eWxlcyAoaWYgdXNpbmcgY2x1c3RlcmluZylcclxuICAgIC5tYXJrZXItY2x1c3RlciB7XHJcbiAgICAgICAgYmFja2dyb3VuZC1jbGlwOiBwYWRkaW5nLWJveDtcclxuICAgICAgICBib3JkZXItcmFkaXVzOiAyMHB4O1xyXG4gICAgICAgIFxyXG4gICAgICAgIGRpdiB7XHJcbiAgICAgICAgICAgIHdpZHRoOiAzMHB4O1xyXG4gICAgICAgICAgICBoZWlnaHQ6IDMwcHg7XHJcbiAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiA1cHg7XHJcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDVweDtcclxuICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiAxNXB4O1xyXG4gICAgICAgICAgICBmb250OiAxMnB4IFwiSGVsdmV0aWNhIE5ldWVcIiwgQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZjtcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgc3BhbiB7XHJcbiAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAzMHB4O1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG5cclxuLy8gRmlsdGVyIE9mZmNhbnZhcyBTdHlsZXNcclxuLm9mZmNhbnZhcyB7XHJcbiAgICAmLWhlYWRlciB7XHJcbiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4xKTtcclxuXHJcbiAgICAgICAgLm9mZmNhbnZhcy10aXRsZSB7XHJcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMThweDtcclxuICAgICAgICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgJi1ib2R5IHtcclxuICAgICAgICBwYWRkaW5nOiAyMHB4O1xyXG5cclxuICAgICAgICAuZm9ybS1sYWJlbCB7XHJcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgICAgICAgICAgbGV0dGVyLXNwYWNpbmc6IDAuNXB4O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgLmZvcm0tc2VsZWN0LFxyXG4gICAgICAgIC5mb3JtLWNvbnRyb2wge1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDE0cHg7XHJcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC5jYXRlZ29yeS1maWx0ZXItZ3JpZCB7XHJcbiAgICAgICAgICAgIG1heC1oZWlnaHQ6IDI1MHB4O1xyXG4gICAgICAgICAgICBvdmVyZmxvdy15OiBhdXRvO1xyXG4gICAgICAgICAgICBwYWRkaW5nLXJpZ2h0OiA4cHg7XHJcblxyXG4gICAgICAgICAgICAmOjotd2Via2l0LXNjcm9sbGJhciB7XHJcbiAgICAgICAgICAgICAgICB3aWR0aDogNnB4O1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAmOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7XHJcbiAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiAxMHB4O1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAmOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7XHJcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAjMjk5Y2RiO1xyXG4gICAgICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogMTBweDtcclxuXHJcbiAgICAgICAgICAgICAgICAmOmhvdmVyIHtcclxuICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAjMWY3ZWE3O1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAuZm9ybS1jaGVjayB7XHJcbiAgICAgICAgICAgICAgICBwYWRkaW5nLWxlZnQ6IDEuNXJlbTtcclxuXHJcbiAgICAgICAgICAgICAgICAuZm9ybS1jaGVjay1pbnB1dCB7XHJcbiAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAmOmNoZWNrZWQge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjk5Y2RiO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBib3JkZXItY29sb3I6ICMyOTljZGI7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIC5mb3JtLWNoZWNrLWxhYmVsIHtcclxuICAgICAgICAgICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAxM3B4O1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAuYWxlcnQtaW5mbyB7XHJcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlN2YzZmY7XHJcbiAgICAgICAgICAgIGJvcmRlci1jb2xvcjogI2IzZDlmZjtcclxuICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDEzcHg7XHJcblxyXG4gICAgICAgICAgICAuYWxlcnQtaGVhZGluZyB7XHJcbiAgICAgICAgICAgICAgICBmb250LXNpemU6IDE0cHg7XHJcbiAgICAgICAgICAgICAgICBjb2xvcjogIzAwNDA4NTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG5cclxuXHJcbi8vIFJlc3BvbnNpdmUgU3R5bGVzXHJcbkBtZWRpYSAobWF4LXdpZHRoOiA3NjhweCkge1xyXG4gICAgLm1hcC1jb250YWluZXIge1xyXG4gICAgICAgIGhlaWdodDogY2FsYygxMDB2aCAtIDIwMHB4KTtcclxuICAgICAgICBtaW4taGVpZ2h0OiA0MDBweDtcclxuICAgIH1cclxuXHJcbiAgICAuY2FyZC1oZWFkZXIge1xyXG4gICAgICAgIC5jYXJkLXRpdGxlIHtcclxuICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4O1xyXG4gICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAxMHB4O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgLmZsZXgtc2hyaW5rLTAge1xyXG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgOjpuZy1kZWVwIHtcclxuICAgICAgICAubGVhZmxldC1wb3B1cC1jb250ZW50IHtcclxuICAgICAgICAgICAgbWluLXdpZHRoOiAyNDBweCAhaW1wb3J0YW50O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgLm1hcC1wb3B1cC1jb250ZW50IHtcclxuICAgICAgICAgICAgLmluZm8tcm93IHtcclxuICAgICAgICAgICAgICAgIGZvbnQtc2l6ZTogMTFweDtcclxuXHJcbiAgICAgICAgICAgICAgICBpIHtcclxuICAgICAgICAgICAgICAgICAgICBmb250LXNpemU6IDE0cHg7XHJcbiAgICAgICAgICAgICAgICAgICAgbWluLXdpZHRoOiAxOHB4O1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAuY3VzdG9tLWdlb3NlYXJjaC1jb250cm9sIHtcclxuICAgICAgICAgICAgdG9wOiA3MHB4O1xyXG5cclxuICAgICAgICAgICAgaW5wdXQge1xyXG4gICAgICAgICAgICAgICAgd2lkdGg6IDIwMHB4O1xyXG4gICAgICAgICAgICAgICAgZm9udC1zaXplOiAxM3B4O1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcblxyXG5AbWVkaWEgKG1heC13aWR0aDogNTc2cHgpIHtcclxuICAgIC5tYXAtY29udGFpbmVyIHtcclxuICAgICAgICBoZWlnaHQ6IGNhbGMoMTAwdmggLSAyMjBweCk7XHJcbiAgICB9XHJcblxyXG4gICAgOjpuZy1kZWVwIHtcclxuICAgICAgICAubGVhZmxldC1wb3B1cC1jb250ZW50IHtcclxuICAgICAgICAgICAgbWluLXdpZHRoOiAyMDBweCAhaW1wb3J0YW50O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgLmN1c3RvbS1nZW9zZWFyY2gtY29udHJvbCB7XHJcbiAgICAgICAgICAgIGxlZnQ6IDUwJTtcclxuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC01MCUpO1xyXG5cclxuICAgICAgICAgICAgaW5wdXQge1xyXG4gICAgICAgICAgICAgICAgd2lkdGg6IGNhbGMoMTAwdncgLSA0MHB4KTtcclxuICAgICAgICAgICAgICAgIG1heC13aWR0aDogMzAwcHg7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuXHJcbi8vIExvYWRpbmcgU3RhdGVcclxuLm1hcC1sb2FkaW5nIHtcclxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgIHRvcDogNTAlO1xyXG4gICAgbGVmdDogNTAlO1xyXG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XHJcbiAgICB6LWluZGV4OiA5OTk5O1xyXG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG5cclxuICAgIC5zcGlubmVyLWJvcmRlciB7XHJcbiAgICAgICAgd2lkdGg6IDNyZW07XHJcbiAgICAgICAgaGVpZ2h0OiAzcmVtO1xyXG4gICAgICAgIGNvbG9yOiAjMjk5Y2RiO1xyXG4gICAgfVxyXG59XHJcblxyXG4vLyBFbXB0eSBTdGF0ZVxyXG4ubWFwLWVtcHR5LXN0YXRlIHtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgcGFkZGluZzogNDBweDtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxuICAgIGNvbG9yOiAjNmM3NTdkO1xyXG59Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 68857:
/*!*******************************************************************!*\
  !*** ./src/app/pages/modals/booking/booking-details.component.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingDetailsComponent: () => (/* binding */ BookingDetailsComponent),
/* harmony export */   BookingStep: () => (/* binding */ BookingStep)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs */ 10819);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! rxjs */ 33900);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_global_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/global-component */ 35461);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _schedule_state_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./schedule-state.service */ 11230);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ngx-slick-carousel */ 49953);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _complejo_selection_complejo_selection_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./complejo-selection/complejo-selection.component */ 81764);
/* harmony import */ var _campo_selection_campo_selection_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./campo-selection/campo-selection.component */ 47898);
/* harmony import */ var _schedule_recurrent_selection_schedule_recurrent_selection_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./schedule-recurrent-selection/schedule-recurrent-selection.component */ 72074);
/* harmony import */ var _schedule_selection_schedule_selection_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./schedule-selection/schedule-selection.component */ 68632);
/* harmony import */ var _reservation_form_reservation_form_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./reservation-form/reservation-form.component */ 21450);
/* harmony import */ var _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../modules/reports/ticket/ticket.component */ 89291);






















const _c0 = ["slickModal"];
function BookingDetailsComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 4)(1, "div", 5)(2, "div", 6)(3, "span", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "p", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6, "Procesando su solicitud...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
}
function BookingDetailsComponent_div_2_h5_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h5", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Seleccionar Complejo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_h5_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h5", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Seleccionar Campo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_h5_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h5", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingType === "puntual" ? "Fecha y Horario" : "Reserva Recurrente", " ");
  }
}
function BookingDetailsComponent_div_2_h5_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h5", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Formulario de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_h5_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h5", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Ticket de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Elija el complejo deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.nombre, " ");
  }
}
function BookingDetailsComponent_div_2_small_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](3, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](4, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](3, 2, ctx_r1.currentWeekStart, "dd/MM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](4, 5, ctx_r1.currentWeekEnd, "dd/MM"), " ");
  }
}
function BookingDetailsComponent_div_2_small_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Configure d\u00EDas y horarios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.nombre, " - ", ctx_r1.bookingState.campo == null ? null : ctx_r1.bookingState.campo.nombre, " ");
  }
}
function BookingDetailsComponent_div_2_span_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingType === "puntual" ? "Puntual" : "Recurrente", " ");
  }
}
function BookingDetailsComponent_div_2_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.complejosList.length, " disponibles ");
  }
}
function BookingDetailsComponent_div_2_span_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.camposDeportivosDtoList == null ? null : ctx_r1.bookingState.complejo.camposDeportivosDtoList.length, " disponibles ");
  }
}
function BookingDetailsComponent_div_2_span_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.getTariffDescription(ctx_r1.bookingState.tarifa), " ");
  }
}
function BookingDetailsComponent_div_2_h4_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h4", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Seleccionar Complejo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_h4_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h4", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Seleccionar Campo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_h4_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h4", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingType === "puntual" ? "Selecci\u00F3n de Fecha y Horario" : "Configurar Reserva Recurrente", " ");
  }
}
function BookingDetailsComponent_div_2_h4_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h4", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" Nueva Reserva ", ctx_r1.bookingType === "puntual" ? "Puntual" : "Recurrente", " ");
  }
}
function BookingDetailsComponent_div_2_h4_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "h4", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Ticket de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Elija el complejo deportivo donde desea realizar su reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.nombre, " \u2022 ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.ubicacion, " ");
  }
}
function BookingDetailsComponent_div_2_small_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](3, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](4, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" Semana del ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](3, 2, ctx_r1.currentWeekStart, "dd/MM/yyyy"), " al ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](4, 5, ctx_r1.currentWeekEnd, "dd/MM/yyyy"), " ");
  }
}
function BookingDetailsComponent_div_2_small_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Seleccione los d\u00EDas y horarios para entrenamientos programados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_small_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.nombre, " - ", ctx_r1.bookingState.campo == null ? null : ctx_r1.bookingState.campo.nombre, " ");
  }
}
function BookingDetailsComponent_div_2_small_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Reserva Completada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_span_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", ctx_r1.complejosList.length, " ", ctx_r1.complejosList.length === 1 ? "complejo" : "complejos", " ");
  }
}
function BookingDetailsComponent_div_2_span_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.complejo == null ? null : ctx_r1.bookingState.complejo.camposDeportivosDtoList == null ? null : ctx_r1.bookingState.complejo.camposDeportivosDtoList.length, " disponibles ");
  }
}
function BookingDetailsComponent_div_2_span_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.getTariffDescription(ctx_r1.bookingState.tarifa), " ");
  }
}
function BookingDetailsComponent_div_2_app_complejo_selection_49_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-complejo-selection", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("complejoSelected", function BookingDetailsComponent_div_2_app_complejo_selection_49_Template_app_complejo_selection_complejoSelected_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.onComplejoSelected($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("userRole", ctx_r1.userRole)("bookingType", ctx_r1.bookingType)("systemConfigs", ctx_r1.systemConfigList);
  }
}
function BookingDetailsComponent_div_2_app_campo_selection_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-campo-selection", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("campoSelected", function BookingDetailsComponent_div_2_app_campo_selection_50_Template_app_campo_selection_campoSelected_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r4);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.onCampoSelected($event));
    })("goBack", function BookingDetailsComponent_div_2_app_campo_selection_50_Template_app_campo_selection_goBack_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r4);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.back());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("dataComplejo", ctx_r1.bookingState.complejo)("bookingType", ctx_r1.bookingType)("userRole", ctx_r1.userRole)("systemConfigs", ctx_r1.systemConfigList);
  }
}
function BookingDetailsComponent_div_2_ng_container_51_app_schedule_selection_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-schedule-selection", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("horarioSelected", function BookingDetailsComponent_div_2_ng_container_51_app_schedule_selection_1_Template_app_schedule_selection_horarioSelected_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.onHorarioSelected($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("dataField", ctx_r1.bookingState.campo)("dataTariff", ctx_r1.bookingState.tarifa)("reservationsList", ctx_r1.reservationsList)("userRole", ctx_r1.userRole)("systemConfigs", ctx_r1.systemConfigList);
  }
}
function BookingDetailsComponent_div_2_ng_container_51_app_schedule_recurrent_selection_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-schedule-recurrent-selection", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("scheduleCompleted", function BookingDetailsComponent_div_2_ng_container_51_app_schedule_recurrent_selection_2_Template_app_schedule_recurrent_selection_scheduleCompleted_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.onRecurrentScheduleCompleted($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("dataField", ctx_r1.bookingState.campo)("dataTariff", ctx_r1.bookingState.tarifa)("reservationsList", ctx_r1.reservationsList)("userRole", ctx_r1.userRole)("systemConfigs", ctx_r1.systemConfigList);
  }
}
function BookingDetailsComponent_div_2_ng_container_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingDetailsComponent_div_2_ng_container_51_app_schedule_selection_1_Template, 1, 5, "app-schedule-selection", 98)(2, BookingDetailsComponent_div_2_ng_container_51_app_schedule_recurrent_selection_2_Template, 1, 5, "app-schedule-recurrent-selection", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingType === "puntual" && ctx_r1.bookingState.campo && ctx_r1.bookingState.tarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingType === "recurrente" && ctx_r1.bookingState.campo && ctx_r1.bookingState.tarifa);
  }
}
function BookingDetailsComponent_div_2_app_reservation_form_52_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-reservation-form", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("reservationCompleted", function BookingDetailsComponent_div_2_app_reservation_form_52_Template_app_reservation_form_reservationCompleted_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.onReservationCompleted($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("bookingType", ctx_r1.bookingType)("actionType", ctx_r1.bookingState.actionType)("contribuyente", ctx_r1.bookingState.contribuyente)("dataComplejo", ctx_r1.bookingState.complejo)("dataField", ctx_r1.bookingState.campo)("selectedTariff", ctx_r1.bookingState.tarifa)("selectedSchedule", ctx_r1.bookingState.puntualSchedule)("recurrentSchedule", ctx_r1.bookingState.recurrentSchedule)("reservationsList", ctx_r1.reservationsList)("userRole", ctx_r1.userRole)("systemConfigs", ctx_r1.systemConfigList);
  }
}
function BookingDetailsComponent_div_2_Conditional_53_app_ticket_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "app-ticket", 40);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("bookingType", ctx_r1.bookingType)("reservationData", ctx_r1.bookingState.reservaCreada)("autoLoad", true);
  }
}
function BookingDetailsComponent_div_2_Conditional_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](0, BookingDetailsComponent_div_2_Conditional_53_app_ticket_0_Template, 1, 3, "app-ticket", 103);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitchCase", ctx_r1.BookingStep.TICKET);
  }
}
function BookingDetailsComponent_div_2_div_65_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Recuerde:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " Debe realizar el pago dentro de las pr\u00F3ximas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, " hora(s) para confirmar su reserva. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"].valorNumerico);
  }
}
function BookingDetailsComponent_div_2_div_66_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Reserva sujeta a aprobaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " Su solicitud ser\u00E1 revisada por el administrador del complejo. Recibir\u00E1 una notificaci\u00F3n una vez sea aprobada o rechazada. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_div_67_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Aprobaci\u00F3n autom\u00E1tica:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " Su reserva ser\u00E1 confirmada inmediatamente despu\u00E9s del pago, sin necesidad de revisi\u00F3n manual. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_div_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Nota:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " La reserva ser\u00E1 v\u00E1lida para todos los d\u00EDas y horarios seleccionados durante el per\u00EDodo indicado. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_div_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Consejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " Los horarios en verde est\u00E1n disponibles para reservar. Seleccione el que m\u00E1s le convenga. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingDetailsComponent_div_2_p_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "p", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Reserva con ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " de anticipaci\u00F3n m\u00EDnima. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.anticipationTime);
  }
}
function BookingDetailsComponent_div_2_small_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Pago en ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, " para confirmar. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"].valorNumerico, "h");
  }
}
function BookingDetailsComponent_div_2_ng_container_87_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](1, "div", 114)(2, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](3, "i", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "div", 27)(5, "div", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "small", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "i", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r1.bookingState.complejo.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("(", ctx_r1.bookingState.complejo.tipoEstructura, ")");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.complejo.distrito || ctx_r1.bookingState.complejo.ubicacion, " ");
  }
}
function BookingDetailsComponent_div_2_ng_container_88_div_13_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", cat_r8, " ");
  }
}
function BookingDetailsComponent_div_2_ng_container_88_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingDetailsComponent_div_2_ng_container_88_div_13_span_1_Template, 2, 1, "span", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r1.getAvailableDisciplines(ctx_r1.bookingState.campo));
  }
}
function BookingDetailsComponent_div_2_ng_container_88_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "hr", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "div", 114)(3, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](4, "i", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "div", 27)(6, "div", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "div", 123)(9, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](11, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](13, BookingDetailsComponent_div_2_ng_container_88_div_13_Template, 2, 1, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.campo.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingState.campo.categoria, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.bookingState.campo.superficieDto.descripcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.getAvailableDisciplines(ctx_r1.bookingState.campo).length > 0);
  }
}
function BookingDetailsComponent_div_2_hr_89_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "hr");
  }
}
function BookingDetailsComponent_div_2_div_90_small_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 80)(1, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r1.bookingType, " ->");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" Validez: ", ctx_r1.bookingState.tarifa.desde.slice(0, 5), " - ", ctx_r1.bookingState.tarifa.hasta.slice(0, 5), " ");
  }
}
function BookingDetailsComponent_div_2_div_90_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 128)(1, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "i", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 130)(4, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "div", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](8, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](11, BookingDetailsComponent_div_2_div_90_small_11_Template, 4, 3, "small", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.bookingState.tarifa.descripcion || "Tarifa est\u00E1ndar");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind4"](8, 4, ctx_r1.bookingState.tarifa.precioBase, "BOB", "symbol-narrow", "1.2-2"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("/", ctx_r1.bookingState.tarifa.tipoCobro, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.tarifa.desde && ctx_r1.bookingState.tarifa.hasta);
  }
}
function BookingDetailsComponent_div_2_hr_91_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "hr");
  }
}
function BookingDetailsComponent_div_2_div_92_app_availability_overview_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "app-availability-overview", 137);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("fieldData", ctx_r1.bookingState.campo)("reservationsList", ctx_r1.reservationsList)("selectedTariff", ctx_r1.bookingState.tarifa);
  }
}
function BookingDetailsComponent_div_2_div_92_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 133)(1, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "i", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 130)(4, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](6, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "small", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](9, BookingDetailsComponent_div_2_div_92_app_availability_overview_9_Template, 1, 3, "app-availability-overview", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind4"](6, 4, ctx_r1.bookingState.puntualSchedule.date, "fullDate", "", "es"));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", ctx_r1.bookingState.puntualSchedule.start.slice(0, 5), " - ", ctx_r1.bookingState.puntualSchedule.end.slice(0, 5), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.campo);
  }
}
function BookingDetailsComponent_div_2_div_93_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 133)(1, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "i", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 130)(4, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](8, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](9, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r1.bookingState.recurrentSchedule.cantidadSesiones, " sesiones");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](8, 3, ctx_r1.bookingState.recurrentSchedule.fechaInicio, "dd/MM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](9, 6, ctx_r1.bookingState.recurrentSchedule.fechaFin, "dd/MM"), " ");
  }
}
function BookingDetailsComponent_div_2_div_101_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 139)(1, "div", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "img", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 130)(4, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "p", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "a", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](9, "i", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("src", "assets/icons/users/" + ctx_r1.globalAdmin.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.globalAdmin.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r1.globalAdmin.role);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("href", "tel:" + ctx_r1.globalAdmin.phone, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r1.globalAdmin.phone, " ");
  }
}
function BookingDetailsComponent_div_2_div_102_a_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "a", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const employee_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("href", "tel:" + employee_r9.telefono, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", employee_r9.telefono, " ");
  }
}
function BookingDetailsComponent_div_2_div_102_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 139)(1, "div", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "img", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 130)(4, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](6, BookingDetailsComponent_div_2_div_102_a_6_Template, 3, 2, "a", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "small", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const employee_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("src", "assets/icons/users/" + employee_r9.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](employee_r9.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", employee_r9.telefono);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", employee_r9.horaEntrada == null ? null : employee_r9.horaEntrada.slice(0, 5), " - ", employee_r9.horaSalida == null ? null : employee_r9.horaSalida.slice(0, 5), " ");
  }
}
function BookingDetailsComponent_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "div", 12)(4, "div", 13)(5, "div", 14)(6, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](7, BookingDetailsComponent_div_2_h5_7_Template, 3, 0, "h5", 16)(8, BookingDetailsComponent_div_2_h5_8_Template, 3, 0, "h5", 16)(9, BookingDetailsComponent_div_2_h5_9_Template, 3, 1, "h5", 16)(10, BookingDetailsComponent_div_2_h5_10_Template, 3, 0, "h5", 16)(11, BookingDetailsComponent_div_2_h5_11_Template, 3, 0, "h5", 16)(12, BookingDetailsComponent_div_2_small_12_Template, 2, 0, "small", 17)(13, BookingDetailsComponent_div_2_small_13_Template, 2, 1, "small", 18)(14, BookingDetailsComponent_div_2_small_14_Template, 5, 8, "small", 17)(15, BookingDetailsComponent_div_2_small_15_Template, 2, 0, "small", 17)(16, BookingDetailsComponent_div_2_small_16_Template, 2, 2, "small", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](17, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](18, BookingDetailsComponent_div_2_span_18_Template, 2, 1, "span", 20)(19, BookingDetailsComponent_div_2_span_19_Template, 2, 1, "span", 21)(20, BookingDetailsComponent_div_2_span_20_Template, 2, 1, "span", 21)(21, BookingDetailsComponent_div_2_span_21_Template, 2, 1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](22, "div", 23)(23, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingDetailsComponent_div_2_Template_button_click_23_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.back());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](24, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](25, " Volver ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](26, "div", 26)(27, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](28, BookingDetailsComponent_div_2_h4_28_Template, 3, 0, "h4", 28)(29, BookingDetailsComponent_div_2_h4_29_Template, 3, 0, "h4", 28)(30, BookingDetailsComponent_div_2_h4_30_Template, 3, 1, "h4", 28)(31, BookingDetailsComponent_div_2_h4_31_Template, 3, 1, "h4", 28)(32, BookingDetailsComponent_div_2_h4_32_Template, 3, 0, "h4", 28)(33, BookingDetailsComponent_div_2_small_33_Template, 2, 0, "small", 29)(34, BookingDetailsComponent_div_2_small_34_Template, 2, 2, "small", 29)(35, BookingDetailsComponent_div_2_small_35_Template, 5, 8, "small", 29)(36, BookingDetailsComponent_div_2_small_36_Template, 2, 0, "small", 29)(37, BookingDetailsComponent_div_2_small_37_Template, 3, 2, "small", 29)(38, BookingDetailsComponent_div_2_small_38_Template, 2, 0, "small", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](39, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](40, BookingDetailsComponent_div_2_span_40_Template, 2, 2, "span", 31)(41, BookingDetailsComponent_div_2_span_41_Template, 2, 1, "span", 31)(42, BookingDetailsComponent_div_2_span_42_Template, 3, 1, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](43, "span", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](45, "button", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingDetailsComponent_div_2_Template_button_click_45_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r1.back());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](46, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](47, " Volver ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](48, 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](49, BookingDetailsComponent_div_2_app_complejo_selection_49_Template, 1, 3, "app-complejo-selection", 36)(50, BookingDetailsComponent_div_2_app_campo_selection_50_Template, 1, 4, "app-campo-selection", 37)(51, BookingDetailsComponent_div_2_ng_container_51_Template, 3, 2, "ng-container", 38)(52, BookingDetailsComponent_div_2_app_reservation_form_52_Template, 1, 11, "app-reservation-form", 39)(53, BookingDetailsComponent_div_2_Conditional_53_Template, 1, 1, "app-ticket", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](54, "div", 41)(55, "div", 42)(56, "div", 43)(57, "div", 44)(58, "div", 23)(59, "h6", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](60, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](61, " Informaci\u00F3n Importante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](62, "div", 47)(63, "ngx-slick-carousel", 48, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](65, BookingDetailsComponent_div_2_div_65_Template, 8, 1, "div", 49)(66, BookingDetailsComponent_div_2_div_66_Template, 5, 0, "div", 50)(67, BookingDetailsComponent_div_2_div_67_Template, 5, 0, "div", 51)(68, BookingDetailsComponent_div_2_div_68_Template, 5, 0, "div", 50)(69, BookingDetailsComponent_div_2_div_69_Template, 5, 0, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](70, "div", 52)(71, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](72, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](73, "div", 55)(74, "h6", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](75, "Requisitos");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](76, BookingDetailsComponent_div_2_p_76_Template, 5, 1, "p", 57)(77, BookingDetailsComponent_div_2_small_77_Template, 5, 1, "small", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](78, "div", 59)(79, "div", 60)(80, "div", 23)(81, "h6", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](82, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](83, " Resumen de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](84, "small", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](85);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](86, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](87, BookingDetailsComponent_div_2_ng_container_87_Template, 12, 3, "ng-container", 64)(88, BookingDetailsComponent_div_2_ng_container_88_Template, 14, 4, "ng-container", 64)(89, BookingDetailsComponent_div_2_hr_89_Template, 1, 0, "hr", 64)(90, BookingDetailsComponent_div_2_div_90_Template, 12, 9, "div", 65)(91, BookingDetailsComponent_div_2_hr_91_Template, 1, 0, "hr", 64)(92, BookingDetailsComponent_div_2_div_92_Template, 10, 9, "div", 66)(93, BookingDetailsComponent_div_2_div_93_Template, 10, 9, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](94, "div", 59)(95, "div", 67)(96, "div", 23)(97, "h6", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](98, "i", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](99, " Contactos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](100, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](101, BookingDetailsComponent_div_2_div_101_Template, 11, 5, "div", 69)(102, BookingDetailsComponent_div_2_div_102_Template, 9, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](103, "div", 71)(104, "small", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](105, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](106, " \u00BFNecesita ayuda? Contacte al departamento de deportes. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.RESERVATION_FORM);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.TICKET);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION && ctx_r1.bookingType === "puntual");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION && ctx_r1.bookingType === "recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.RESERVATION_FORM);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingType);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION && !ctx_r1.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION && !ctx_r1.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.tarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.RESERVATION_FORM);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.TICKET);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION && ctx_r1.bookingType === "puntual");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.HORARIO_SELECTION && ctx_r1.bookingType === "recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.RESERVATION_FORM);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.TICKET);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.COMPLEJO_SELECTION && !ctx_r1.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.CAMPO_SELECTION && !ctx_r1.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.tarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingType === "puntual" ? "Reserva Puntual" : "Reserva Recurrente", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitch", ctx_r1.bookingStep);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitchCase", ctx_r1.BookingStep.COMPLEJO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitchCase", ctx_r1.BookingStep.CAMPO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitchCase", ctx_r1.BookingStep.HORARIO_SELECTION);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngSwitchCase", ctx_r1.BookingStep.RESERVATION_FORM);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](53, ctx_r1.bookingState.reservaCreada ? 53 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("config", ctx_r1.config);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep === ctx_r1.BookingStep.RESERVATION_FORM && (ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"] == null ? null : ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"].valorNumerico));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep >= ctx_r1.BookingStep.HORARIO_SELECTION && (ctx_r1.bookingState.campo == null ? null : ctx_r1.bookingState.campo.requiereAprobacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep >= ctx_r1.BookingStep.HORARIO_SELECTION && !(ctx_r1.bookingState.campo == null ? null : ctx_r1.bookingState.campo.requiereAprobacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep > ctx_r1.BookingStep.CAMPO_SELECTION && ctx_r1.bookingType === "recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingStep > ctx_r1.BookingStep.CAMPO_SELECTION && ctx_r1.bookingType === "puntual");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.anticipationTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"] == null ? null : ctx_r1.systemConfigList["HORAS_VALIDACION_PAGO"].valorNumerico);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Paso ", ctx_r1.bookingStep + 1, "/4");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.complejo);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.campo);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.campo && ctx_r1.bookingState.tarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.tarifa);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.puntualSchedule || ctx_r1.bookingState.recurrentSchedule);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.puntualSchedule && ctx_r1.bookingType === "puntual");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.bookingState.recurrentSchedule && ctx_r1.bookingType === "recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r1.globalAdmin);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r1.getEncargadosActivos());
  }
}
var BookingStep;
(function (BookingStep) {
  BookingStep[BookingStep["COMPLEJO_SELECTION"] = 0] = "COMPLEJO_SELECTION";
  BookingStep[BookingStep["CAMPO_SELECTION"] = 1] = "CAMPO_SELECTION";
  BookingStep[BookingStep["HORARIO_SELECTION"] = 2] = "HORARIO_SELECTION";
  BookingStep[BookingStep["RESERVATION_FORM"] = 3] = "RESERVATION_FORM";
  BookingStep[BookingStep["TICKET"] = 4] = "TICKET";
})(BookingStep || (BookingStep = {}));
class BookingDetailsComponent {
  get enableRecurrentBooking() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_RESERVAS_RECURRENTES]?.valorBoolean ?? true;
  }
  get enableOrganizationReservation() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_RESERVAS_ORGANIZACIONES]?.valorBoolean ?? true;
  }
  get HorasValidacionPago() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HORAS_VALIDACION_PAGO]?.valorNumerico;
  }
  get anticipationTime() {
    if (this.userRole !== 'Contribuyente') {
      return undefined;
    }
    if (!this.bookingState.tarifa) {
      return this.systemConfigList['HORAS_ANTICIPACION_RESERVAS_PUNTUALES']?.valorNumerico + ' horas';
    }
    switch (this.bookingState.tarifa.tipoCobro) {
      case 'por_evento':
        return this.systemConfigList['DIAS_ANTICIPACION_EVENTOS']?.valorNumerico ? this.systemConfigList['DIAS_ANTICIPACION_EVENTOS'].valorNumerico + ' horas' : undefined;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        return this.systemConfigList['HORAS_ANTICIPACION_RECURRENTES']?.valorNumerico ? this.systemConfigList['HORAS_ANTICIPACION_RECURRENTES'].valorNumerico + ' días' : undefined;
      default:
        return this.systemConfigList['HORAS_ANTICIPACION_RESERVAS_PUNTUALES']?.valorNumerico + ' horas';
    }
  }
  get maxActiveReservationsPerUser() {
    return this.systemConfigList['MAXIMO_RESERVAS_ACTIVAS_POR_USUARIO']?.valorNumerico;
  }
  get maxReservationsPerDayUser() {
    return this.systemConfigList['MAXIMO_RESERVAS_POR_DIA_USUARIO']?.valorNumerico;
  }
  constructor(authenticationService, modalService, complejoService, reservaService, router, cdRef, scheduleState) {
    this.authenticationService = authenticationService;
    this.modalService = modalService;
    this.complejoService = complejoService;
    this.reservaService = reservaService;
    this.router = router;
    this.cdRef = cdRef;
    this.scheduleState = scheduleState;
    this.currentWeekStart = new Date();
    this.currentWeekEnd = new Date();
    this.globalAdmin = src_app_global_component__WEBPACK_IMPORTED_MODULE_2__.GlobalComponent.admin_deportes;
    this.userRole = 'Contribuyente';
    this.isLoading = false;
    this.isRuatAuthenticated = false;
    this.reservationsList = [];
    this.complejosList = [];
    this.BookingStep = BookingStep;
    this.bookingStep = BookingStep.COMPLEJO_SELECTION;
    this.bookingState = {};
    this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_17__.Subject();
    this.defaultImages = ['assets/images/fields/img-1.png', 'assets/images/fields/img-2.png', 'assets/images/fields/img-3.png', 'assets/images/fields/img-4.png'];
    this.config = {
      infinite: true,
      slidesToShow: 1,
      slidesToScroll: 1,
      autoplay: true,
      arrows: false
    };
    this.slidesConfig = {
      infinite: true,
      slidesToShow: 4,
      slidesToScroll: 1,
      autoplay: true
    };
    this.systemConfigList = {};
    this.userRole = this.authenticationService.getUserRole();
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.breadCrumbItems = [{
        label: 'Complejo'
      }, {
        label: 'Reserva',
        active: true
      }];
      _this.currentTime = new Date().toLocaleTimeString();
      _this.systemConfigList = _this.authenticationService.getAllConfigs();
      const currentUser = _this.authenticationService.currentUser();
      if (_this.userRole === 'Contribuyente') {
        _this.bookingState.contribuyente = currentUser;
        if (_this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_RESERVAS_ORGANIZACIONES]?.valorBoolean ?? false) {
          _this.userRole = !!_this.bookingState.contribuyente?.organizacionesRepresentadas && _this.bookingState.contribuyente?.organizacionesRepresentadas?.length ? 'Representante' : 'Contribuyente';
        }
        if (!_this.bookingType) {
          _this.bookingType = 'puntual';
        }
      }
      _this.scheduleState.currentWeekStart$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_18__.takeUntil)(_this.destroy$)).subscribe(start => _this.currentWeekStart = start);
      _this.scheduleState.currentWeekEnd$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_18__.takeUntil)(_this.destroy$)).subscribe(end => _this.currentWeekEnd = end);
      _this.initializeFromNavigation();
    })();
  }
  ngOnDestroy() {
    this.destroy$.next();
    this.destroy$.complete();
    this.modalService.dismissAll();
  }
  initializeFromNavigation() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const navigationData = history.state;
      if (navigationData.data && navigationData.tipoReserva) {
        _this2.bookingState.complejo = navigationData.data;
        _this2.setBookingType(navigationData.tipoReserva);
        _this2.bookingStep = BookingStep.CAMPO_SELECTION;
      } else if (navigationData.data) {
        _this2.bookingState.complejo = navigationData.data;
        _this2.bookingType = navigationData.tipoReserva || 'puntual';
        _this2.bookingStep = BookingStep.CAMPO_SELECTION;
      } else if (navigationData.tipoReserva) {
        yield _this2.loadComplejos();
        _this2.setBookingType(navigationData.tipoReserva);
        _this2.bookingStep = BookingStep.COMPLEJO_SELECTION;
      } else {
        _this2.bookingStep = BookingStep.COMPLEJO_SELECTION;
      }
    })();
  }
  setBookingType(tipoReserva) {
    if (tipoReserva === 'recurrente' && !this.enableRecurrentBooking) {
      this.showNotification('Las reservas recurrentes no están habilitadas en este momento', 'warning');
      this.bookingType = 'puntual';
    } else {
      this.bookingType = tipoReserva;
    }
  }
  canProceedToNextStep() {
    const validations = {
      [BookingStep.COMPLEJO_SELECTION]: () => {
        if (!this.bookingState.complejo) {
          this.showNotification('Por favor seleccione un complejo deportivo', 'warning');
          return false;
        }
        return true;
      },
      [BookingStep.CAMPO_SELECTION]: () => {
        if (!this.bookingState.campo || !this.bookingState.tarifa) {
          this.showNotification('Por favor seleccione una cancha y tarifa', 'warning');
          return false;
        }
        return true;
      },
      [BookingStep.HORARIO_SELECTION]: () => {
        const hasValidSchedule = this.bookingType === 'puntual' ? !!this.bookingState.puntualSchedule : !!this.bookingState.recurrentSchedule;
        if (!hasValidSchedule) {
          this.showNotification('Por favor seleccione un horario', 'warning');
          return false;
        }
        return true;
      },
      [BookingStep.RESERVATION_FORM]: () => true,
      [BookingStep.TICKET]: () => true
    };
    return validations[this.bookingStep]?.() ?? false;
  }
  clearForwardStepData() {
    switch (this.bookingStep) {
      case BookingStep.COMPLEJO_SELECTION:
        this.bookingState.campo = undefined;
        this.bookingState.tarifa = undefined;
        this.bookingState.puntualSchedule = undefined;
        this.bookingState.recurrentSchedule = undefined;
        this.reservationsList = [];
        break;
      case BookingStep.CAMPO_SELECTION:
        this.bookingState.puntualSchedule = undefined;
        this.bookingState.recurrentSchedule = undefined;
        break;
      case BookingStep.HORARIO_SELECTION:
        break;
    }
  }
  onComplejoSelected(complejo) {
    if (!complejo) {
      this.showNotification('Datos de complejo inválidos', 'error');
      return;
    }
    this.bookingState.complejo = complejo;
    this.bookingStep = BookingStep.CAMPO_SELECTION;
    this.cdRef.detectChanges();
  }
  onCampoSelected(selection) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!selection?.field || !selection?.tariff) {
        _this3.showNotification('Datos de selección inválidos', 'error');
        return;
      }
      _this3.bookingState.campo = selection.field;
      _this3.bookingState.tarifa = selection.tariff;
      _this3.bookingState.actionType = selection.actionType;
      _this3.isLoading = true;
      try {
        yield _this3.loadReservationsByField(selection.field.uuid);
        _this3.bookingStep = BookingStep.HORARIO_SELECTION;
      } catch (error) {
        _this3.showNotification('Error al cargar las reservas existentes', 'error');
      } finally {
        _this3.isLoading = false;
        _this3.cdRef.detectChanges();
      }
    })();
  }
  onHorarioSelected(horario) {
    this.bookingState.puntualSchedule = horario;
    this.modalService.dismissAll();
    this.bookingStep = BookingStep.RESERVATION_FORM;
    this.cdRef.detectChanges();
  }
  onRecurrentScheduleCompleted(scheduleData) {
    this.bookingState.recurrentSchedule = scheduleData;
    this.bookingStep = BookingStep.RESERVATION_FORM;
    this.cdRef.detectChanges();
  }
  onReservationCompleted(reservaData) {
    this.isLoading = false;
    this.showConfirmationModal(reservaData);
  }
  getAvailableDisciplines(campo) {
    return Array.from(new Set(campo.tarifasDtoList?.flatMap(tarifa => tarifa.categoriasDtoList?.map(cat => cat.categoriaDto.nombre) || [])));
  }
  getEncargadosActivos() {
    if (!this.bookingState.complejo?.encargadosDtoList?.length) {
      return [];
    }
    const today = new Date();
    const todayNormalized = new Date(today.getFullYear(), today.getMonth(), today.getDate());
    return this.bookingState.complejo.encargadosDtoList.filter(encargado => {
      if (!encargado.activo) return false;
      if (!encargado.fechaAsignacion || !encargado.fechaFinAsignacion) {
        return true;
      }
      const fechaAsignacion = new Date(encargado.fechaAsignacion + 'T00:00:00');
      const fechaFinAsignacion = new Date(encargado.fechaFinAsignacion + 'T23:59:59');
      return fechaAsignacion <= todayNormalized && todayNormalized <= fechaFinAsignacion;
    });
  }
  /* API REQUESTS */
  loadReservationsByField(fieldUuid) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!fieldUuid) {
        throw new Error('UUID del campo es requerido');
      }
      return new Promise((resolve, reject) => {
        _this4.reservaService.getByCampoDeportivo(fieldUuid).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_18__.takeUntil)(_this4.destroy$)).subscribe({
          next: response => {
            if (response?.status === 'OK') {
              _this4.reservationsList = response.payload.filter(reserva => reserva.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE || reserva.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO || reserva.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA || reserva.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA);
              resolve();
            } else {
              if (response?.payload) {
                _this4.reservationsList = [];
                resolve();
              } else {
                reject(new Error(response?.payload || 'Error al cargar reservas'));
              }
            }
          },
          error: error => {
            console.error('Error loading reservations:', error);
            _this4.reservationsList = [];
            resolve();
          }
        });
      });
    })();
  }
  loadComplejos() {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise((resolve, reject) => {
        _this5.isLoading = true;
        _this5.complejoService.getAll().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_18__.takeUntil)(_this5.destroy$)).subscribe({
          next: response => {
            if (response.status === 'OK') {
              _this5.complejosList = response.payload.filter(c => c.estadoActual === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoActual.ACTIVO && _this5.getCamposCount(c) > 0);
              resolve();
            } else {
              reject(new Error(response?.payload || 'Error al cargar Complejos Deportivos'));
            }
            _this5.isLoading = false;
          },
          error: error => {
            reject(error);
            _this5.isLoading = false;
          }
        });
      });
    })();
  }
  getCamposCount(complejo) {
    return complejo.camposDeportivosDtoList?.filter(c => c.estadoActual === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoActual.ACTIVO).length || 0;
  }
  showNotification(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      text: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      showConfirmButton: false,
      toast: true,
      position: 'top-end'
    });
  }
  showConfirmationModal(reservaData) {
    const paymentHours = this.HorasValidacionPago ?? 1;
    const paymentDeadlineMessage = paymentHours > 1 ? `${paymentHours} horas` : `${paymentHours} hora`;
    const requiresApproval = this.bookingState.campo?.requiereAprobacion;
    const title = requiresApproval ? '¡Solicitud de Reserva Enviada!' : '¡Reserva Creada Exitosamente!';
    const html = requiresApproval ? `
      <div class="text-start">
        <p class="mb-2">Su solicitud de reserva ha sido enviada para aprobación.</p>
        <div class="alert alert-info mb-0">
          <strong>Proceso de aprobación:</strong> 
          <ul class="mb-0 mt-1 small">
            <li>Será revisada por el administrador del complejo</li>
            <li>Recibirá una notificación por correo electrónico</li>
            <li>Una vez aprobada, tendrá ${paymentDeadlineMessage} para realizar el pago</li>
          </ul>
        </div>
      </div>
    ` : `
      <div class="text-start">
        <p class="mb-2">Su reserva ha sido registrada correctamente.</p>
        <div class="alert alert-warning mb-0">
          <strong>Importante:</strong> Debe realizar el pago dentro de las próximas 
          <strong>${paymentDeadlineMessage}</strong>, de lo contrario la reserva será 
          cancelada automáticamente.
        </div>
      </div>
    `;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      text: title,
      html: html,
      icon: requiresApproval ? 'info' : 'success',
      confirmButtonText: 'Ver Comprobante',
      confirmButtonColor: '#3085d6',
      showCancelButton: true,
      cancelButtonText: 'Ver Mis Reservas',
      cancelButtonColor: '#6c757d'
    }).then(result => {
      if (result.isConfirmed) {
        this.bookingState.reservaCreada = reservaData;
        this.bookingStep = BookingStep.TICKET;
      } else if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().DismissReason).cancel) {
        this.navigateToReservations();
      }
    });
  }
  showTicket(reservaData) {
    this.bookingState.reservaCreada = reservaData;
    this.bookingStep = BookingStep.TICKET;
  }
  getTariffDescription(tarifa) {
    const descriptions = {
      'por_hora': 'por hora',
      'por_persona': 'por persona',
      'por_evento': 'por evento',
      'mensualidad': 'por mes',
      'por_sesion': 'por sesión',
      'por_club': 'por mes',
      'periodo': 'periodo de Escuela'
    };
    return descriptions[tarifa.tipoCobro] || 'Tarifa';
  }
  next() {
    if (!this.canProceedToNextStep()) {
      return;
    }
    this.bookingStep++;
    this.cdRef.detectChanges();
  }
  back() {
    if (this.bookingStep > BookingStep.COMPLEJO_SELECTION) {
      this.bookingStep--;
      this.clearForwardStepData();
      this.cdRef.detectChanges();
    } else {
      this.navigateToHome();
    }
  }
  navigateToHome() {
    this.router.navigate(['/inicio/taxpayer']);
  }
  navigateToReservations() {
    if (this.bookingType === 'recurrente') {
      this.router.navigate(['/reservations/recurrent']);
      return;
    } else {
      this.router.navigate(['/reservations/one-time']);
      return;
    }
  }
  slidePreview(id, event) {
    const slides = document.querySelectorAll('.swiperlist');
    slides.forEach(el => {
      el.classList.remove('swiper-slide-thumb-active');
    });
    event.target.closest('.swiperlist')?.classList.add('swiper-slide-thumb-active');
    this.slickModal?.slickGoTo(id);
  }
  slickChange(event) {
    const swiper = document.querySelectorAll('.swiperlist');
  }
  static {
    this.ɵfac = function BookingDetailsComponent_Factory(t) {
      return new (t || BookingDetailsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_6__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_7__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_20__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_16__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_schedule_state_service__WEBPACK_IMPORTED_MODULE_8__.ScheduleStateService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
      type: BookingDetailsComponent,
      selectors: [["app-booking-details"]],
      viewQuery: function BookingDetailsComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵloadQuery"]()) && (ctx.slickModal = _t.first);
        }
      },
      decls: 3,
      vars: 3,
      consts: [["slickModal", "slick-carousel"], ["title", "Reservas", 3, "breadcrumbItems"], ["class", "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center", "style", "background-color: rgba(0,0,0,0.5); z-index: 9999;", 4, "ngIf"], ["class", "row", 4, "ngIf"], [1, "position-fixed", "top-0", "start-0", "w-100", "h-100", "d-flex", "align-items-center", "justify-content-center", 2, "background-color", "rgba(0,0,0,0.5)", "z-index", "9999"], [1, "text-center", "text-white"], ["role", "status", 1, "spinner-border", "text-light", 2, "width", "3rem", "height", "3rem"], [1, "visually-hidden"], [1, "mt-3", "fw-medium"], [1, "row"], [1, "col-lg-9", "col-12"], [1, "wizard-container"], [1, "card", "border-0", "shadow-sm", "mb-3"], [1, "card-header"], [1, "d-lg-none"], [1, "mb-2"], ["class", "mb-1", 4, "ngIf"], ["class", "text-muted d-block", 4, "ngIf"], ["class", "text-muted d-block text-truncate", 4, "ngIf"], [1, "d-flex", "flex-wrap", "gap-2", "mb-2"], ["class", "badge bg-primary-subtle text-primary", 4, "ngIf"], ["class", "badge bg-success-subtle text-success", 4, "ngIf"], ["class", "badge bg-warning-subtle text-warning", 4, "ngIf"], [1, "d-flex", "justify-content-between", "align-items-center"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-secondary", 3, "click"], [1, "ri-arrow-left-line", "me-1"], [1, "d-none", "d-lg-flex", "align-items-start"], [1, "flex-grow-1"], ["class", "card-title mb-1 text-primary", 4, "ngIf"], ["class", "text-muted", 4, "ngIf"], [1, "flex-shrink-0", "d-flex", "align-items-center", "gap-2", "ms-3"], ["class", "badge bg-success-subtle text-success fs-6", 4, "ngIf"], ["class", "badge bg-warning-subtle text-warning px-3 py-2", 4, "ngIf"], [1, "badge", "bg-primary-subtle", "text-primary", "fs-6"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click"], [3, "ngSwitch"], [3, "userRole", "bookingType", "systemConfigs", "complejoSelected", 4, "ngSwitchCase"], [3, "dataComplejo", "bookingType", "userRole", "systemConfigs", "campoSelected", "goBack", 4, "ngSwitchCase"], [4, "ngSwitchCase"], [3, "bookingType", "actionType", "contribuyente", "dataComplejo", "dataField", "selectedTariff", "selectedSchedule", "recurrentSchedule", "reservationsList", "userRole", "systemConfigs", "reservationCompleted", 4, "ngSwitchCase"], [3, "bookingType", "reservationData", "autoLoad"], [1, "col-lg-3", "d-none", "d-lg-block"], [1, "sticky-side-div"], [1, "card", "mb-2", "sticky-top", 2, "top", "80px", "z-index", "1020"], [1, "card-header", "py-2", "bg-light"], [1, "mb-0"], [1, "ri-lightbulb-flash-line", "me-1"], [1, "card-body", "p-2"], [3, "config"], ["class", "alert alert-warning small py-2 mb-0", "ngxSlickItem", "", 4, "ngIf"], ["class", "alert alert-info small py-2 mb-0", "ngxSlickItem", "", 4, "ngIf"], ["class", "alert alert-success small py-2 mb-0", "ngxSlickItem", "", 4, "ngIf"], ["role", "alert", "ngxSlickItem", "", 1, "alert", "alert-primary", "small", "py-2", "mb-0"], [1, "d-flex"], [1, "ri-information-line", "fs-14", "mt-1"], [1, "ms-2"], [1, "alert-heading", "mb-1", "fs-14"], ["class", "mb-1 fs-13", 4, "ngIf"], ["class", "text-muted fs-12", 4, "ngIf"], [1, "card", "mb-2"], [1, "card-header", "bg-success", "bg-opacity-10", "py-2"], [1, "mb-0", "text-success"], [1, "ri-bookmark-line", "me-1"], [1, "badge", "bg-primary"], [4, "ngIf"], ["class", "summary-item mb-2", 4, "ngIf"], ["class", "summary-item", 4, "ngIf"], [1, "card-header", "py-2"], [1, "ri-contacts-line", "me-1"], ["class", "contact-item mb-2", 4, "ngIf"], ["class", "contact-item mb-2", 4, "ngFor", "ngForOf"], [1, "mt-2", "p-2", "bg-light", "rounded"], [1, "text-muted"], [1, "ri-customer-service-2-line", "text-primary", "me-1"], [1, "mb-1"], [1, "ri-building-line", "me-2", "text-primary"], [1, "ri-football-line", "me-2", "text-primary"], [1, "ri-calendar-check-line", "me-2", "text-primary"], [1, "ri-file-text-line", "me-2", "text-primary"], [1, "ri-ticket-line", "me-2", "text-primary"], [1, "text-muted", "d-block"], [1, "text-muted", "d-block", "text-truncate"], [1, "ri-calendar-2-line", "me-1"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "badge", "bg-success-subtle", "text-success"], [1, "badge", "bg-warning-subtle", "text-warning"], [1, "card-title", "mb-1", "text-primary"], [1, "ri-building-line", "me-2"], [1, "ri-football-line", "me-2"], [1, "ri-calendar-check-line", "me-2"], [1, "ri-file-text-line", "me-2"], [1, "ri-ticket-line", "me-2"], [1, "ri-building-line", "me-1"], [1, "badge", "bg-success-subtle", "text-success", "fs-6"], [1, "badge", "bg-warning-subtle", "text-warning", "px-3", "py-2"], [1, "ri-price-tag-3-line", "me-1"], [3, "complejoSelected", "userRole", "bookingType", "systemConfigs"], [3, "campoSelected", "goBack", "dataComplejo", "bookingType", "userRole", "systemConfigs"], [3, "dataField", "dataTariff", "reservationsList", "userRole", "systemConfigs", "horarioSelected", 4, "ngIf"], [3, "dataField", "dataTariff", "reservationsList", "userRole", "systemConfigs", "scheduleCompleted", 4, "ngIf"], [3, "horarioSelected", "dataField", "dataTariff", "reservationsList", "userRole", "systemConfigs"], [3, "scheduleCompleted", "dataField", "dataTariff", "reservationsList", "userRole", "systemConfigs"], [3, "reservationCompleted", "bookingType", "actionType", "contribuyente", "dataComplejo", "dataField", "selectedTariff", "selectedSchedule", "recurrentSchedule", "reservationsList", "userRole", "systemConfigs"], [3, "bookingType", "reservationData", "autoLoad", 4, "ngSwitchCase"], ["ngxSlickItem", "", 1, "alert", "alert-warning", "small", "py-2", "mb-0"], [1, "ri-alarm-warning-line", "me-1"], ["ngxSlickItem", "", 1, "alert", "alert-info", "small", "py-2", "mb-0"], [1, "ri-time-line", "me-1"], ["ngxSlickItem", "", 1, "alert", "alert-success", "small", "py-2", "mb-0"], [1, "ri-checkbox-circle-line", "me-1"], [1, "ri-information-line", "me-1"], [1, "ri-lightbulb-line", "me-1"], [1, "mb-1", "fs-13"], [1, "text-muted", "fs-12"], [1, "summary-item", "mb-3"], [1, "d-flex", "align-items-start"], [1, "ri-building-line", "text-primary", "fs-5", "me-2", "mt-1"], [1, "fw-medium", "mb-1"], [1, "text-muted", "ms-1"], [1, "text-muted", "d-flex", "align-items-center"], [1, "ri-map-pin-line", "me-1"], [1, "my-2"], [1, "ri-football-line", "text-primary", "fs-5", "me-2", "mt-1"], [1, "d-flex", "flex-wrap", "gap-1", "mb-1"], ["class", "d-flex flex-wrap gap-1", 4, "ngIf"], [1, "d-flex", "flex-wrap", "gap-1"], ["class", "badge bg-success-subtle text-success me-2", 4, "ngFor", "ngForOf"], [1, "badge", "bg-success-subtle", "text-success", "me-2"], [1, "summary-item", "mb-2"], [1, "ri-price-tag-3-line", "text-warning", "fs-6", "mt-1"], [1, "ms-2", "flex-grow-1"], [1, "fw-medium", "small"], [1, "h6", "text-success", "mb-0"], [1, "summary-item"], [1, "ri-calendar-event-line"], [1, "text-primary"], [3, "fieldData", "reservationsList", "selectedTariff", 4, "ngIf"], [3, "fieldData", "reservationsList", "selectedTariff"], [1, "ri-calendar-schedule-line", "text-primary", "fs-6", "mt-1"], [1, "contact-item", "mb-2"], [1, "d-flex", "align-items-center"], ["alt", "Admin", 1, "avatar-xs", "rounded-circle", 3, "src"], [1, "text-muted", "mb-0", "small"], [1, "text-primary", "small", 3, "href"], [1, "ri-phone-line", "me-1"], ["alt", "Encargado", 1, "avatar-xs", "rounded-circle", 3, "src"], ["class", "text-primary small", 3, "href", 4, "ngIf"], [1, "badge", "bg-info-subtle", "text-info", "small"]],
      template: function BookingDetailsComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "app-breadcrumbs", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingDetailsComponent_div_1_Template, 7, 0, "div", 2)(2, BookingDetailsComponent_div_2_Template, 107, 53, "div", 3);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.isLoading);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", !ctx.isLoading);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_21__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgSwitch, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgSwitchCase, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_22__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_22__.SlickItemDirective, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_9__.BreadcrumbsComponent, _complejo_selection_complejo_selection_component__WEBPACK_IMPORTED_MODULE_10__.ComplejoSelectionComponent, _campo_selection_campo_selection_component__WEBPACK_IMPORTED_MODULE_11__.CampoSelectionComponent, _schedule_recurrent_selection_schedule_recurrent_selection_component__WEBPACK_IMPORTED_MODULE_12__.ScheduleRecurrentSelectionComponent, _schedule_selection_schedule_selection_component__WEBPACK_IMPORTED_MODULE_13__.ScheduleSelectionComponent, _reservation_form_reservation_form_component__WEBPACK_IMPORTED_MODULE_14__.ReservationFormComponent, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_15__.TicketComponent, _angular_common__WEBPACK_IMPORTED_MODULE_21__.CurrencyPipe, _angular_common__WEBPACK_IMPORTED_MODULE_21__.DatePipe],
      styles: [".sticky-top[_ngcontent-%COMP%] {\n  position: sticky;\n  top: 0;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2Jvb2tpbmcvYm9va2luZy1kZXRhaWxzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsZ0JBQUE7RUFDQSxNQUFBO0FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIuc3RpY2t5LXRvcCB7XHJcbiAgcG9zaXRpb246IHN0aWNreTtcclxuICB0b3A6IDA7XHJcbn1cclxuIl0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 47898:
/*!***********************************************************************************!*\
  !*** ./src/app/pages/modals/booking/campo-selection/campo-selection.component.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CampoSelectionComponent: () => (/* binding */ CampoSelectionComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/animations */ 47172);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);








const _c0 = (a0, a1, a2) => ({
  "bg-success-subtle": a0,
  "bg-warning-subtle": a1,
  "bg-danger-subtle": a2
});
function CampoSelectionComponent_div_1_option_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const superficie_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", superficie_r3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", superficie_r3, " ");
  }
}
function CampoSelectionComponent_div_1_option_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const categoria_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", categoria_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", categoria_r4, " ");
  }
}
function CampoSelectionComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 6)(1, "div", 7)(2, "div", 8)(3, "div", 9)(4, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Buscar campo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngModelChange", function CampoSelectionComponent_div_1_Template_input_ngModelChange_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](ctx_r1.searchText, $event) || (ctx_r1.searchText = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 12)(8, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "select", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngModelChange", function CampoSelectionComponent_div_1_Template_select_ngModelChange_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](ctx_r1.filterByIluminacion, $event) || (ctx_r1.filterByIluminacion = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Todas");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Con iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Sin iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 12)(18, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Superficie");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "select", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngModelChange", function CampoSelectionComponent_div_1_Template_select_ngModelChange_20_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](ctx_r1.filterBySuperficie, $event) || (ctx_r1.filterBySuperficie = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "option", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Todas");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, CampoSelectionComponent_div_1_option_23_Template, 2, 2, "option", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 12)(25, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, "Categor\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "select", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayListener"]("ngModelChange", function CampoSelectionComponent_div_1_Template_select_ngModelChange_27_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayBindingSet"](ctx_r1.filterByCategoria, $event) || (ctx_r1.filterByCategoria = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "option", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Todas");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, CampoSelectionComponent_div_1_option_30_Template, 2, 2, "option", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 17)(32, "button", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_1_Template_button_click_32_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.clearFilters());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](33, "i", 19);
    _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"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngModel", ctx_r1.searchText);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngModel", ctx_r1.filterByIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngModel", ctx_r1.filterBySuperficie);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.superficiesDisponibles);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtwoWayProperty"]("ngModel", ctx_r1.filterByCategoria);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.categoriasDisponibles);
  }
}
function CampoSelectionComponent_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20)(1, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 22)(4, "button", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_2_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.viewMode = "grid");
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Grid ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_2_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.viewMode = "list");
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Lista ");
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.filteredCampos.length, " campo(s) encontrado(s) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("active", ctx_r1.viewMode === "grid");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("active", ctx_r1.viewMode === "list");
  }
}
function CampoSelectionComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h6", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "No hay campos disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " No se encontraron campos con los filtros seleccionados. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_3_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.back());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "i", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Cambiar complejo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
}
function CampoSelectionComponent_div_4_div_1_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div")(3, "small", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Dimensiones");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "strong", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.campo.dimensiones || "No especificadas");
  }
}
function CampoSelectionComponent_div_4_div_1_div_35_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cat_r9, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, CampoSelectionComponent_div_4_div_1_div_35_span_3_Template, 2, 1, "span", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getAvailableDisciplines(item_r8.campo));
  }
}
function CampoSelectionComponent_div_4_div_1_button_45_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_4_div_1_button_45_Template_button_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10);
      const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleHorarioExpansion(item_r8.campo.uuid, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("rotate-180", ctx_r1.isHorarioExpanded(item_r8.campo.uuid));
  }
}
function CampoSelectionComponent_div_4_div_1_div_46_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const horario_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", horario_r11, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_46_div_2_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const exc_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", exc_r12, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_46_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 76)(1, "small", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div")(4, "strong", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Excepciones pr\u00F3ximas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CampoSelectionComponent_div_4_div_1_div_46_div_2_div_6_Template, 2, 1, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getProximasExcepciones(item_r8.campo));
  }
}
function CampoSelectionComponent_div_4_div_1_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CampoSelectionComponent_div_4_div_1_div_46_div_1_Template, 2, 1, "div", 73)(2, CampoSelectionComponent_div_4_div_1_div_46_div_2_Template, 7, 1, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("@slideDown", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getHorarioCompleto(item_r8.campo));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.getProximasExcepciones(item_r8.campo).length > 0);
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_span_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r14.frecuencia, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_span_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r14.sesionesIncluidas, " Sesiones ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 98)(1, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Intervalo V\u00E1lido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 112)(5, "span", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", tarifa_r14.desde || "00:00", " - ", tarifa_r14.hasta || "23:59", " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_span_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r15 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cat_r15.categoriaDto.nombre, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_span_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Sin categor\u00EDas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_4_div_1_div_47_div_5_Template_div_click_0_listener() {
      const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13).$implicit;
      const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.selectTarifa(item_r8, tarifa_r14));
    })("keydown.enter", function CampoSelectionComponent_div_4_div_1_div_47_div_5_Template_div_keydown_enter_0_listener() {
      const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13).$implicit;
      const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.canSelectTarifa(item_r8.campo, tarifa_r14) && ctx_r1.selectTarifa(item_r8, tarifa_r14));
    })("keydown.space", function CampoSelectionComponent_div_4_div_1_div_47_div_5_Template_div_keydown_space_0_listener() {
      const tarifa_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13).$implicit;
      const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.canSelectTarifa(item_r8.campo, tarifa_r14) && ctx_r1.selectTarifa(item_r8, tarifa_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 87)(2, "div", 88)(3, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div")(6, "h6", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 91)(9, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 94)(13, "span", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](15, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "span", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 97)(19, "div", 98)(20, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, " Tipo de Cobro ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 101)(24, "span", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, CampoSelectionComponent_div_4_div_1_div_47_div_5_span_26_Template, 3, 1, "span", 103)(27, CampoSelectionComponent_div_4_div_1_div_47_div_5_span_27_Template, 2, 1, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, CampoSelectionComponent_div_4_div_1_div_47_div_5_div_28_Template, 7, 2, "div", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 98)(30, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Categor\u00EDas aplicadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, CampoSelectionComponent_div_4_div_1_div_47_div_5_span_33_Template, 2, 1, "span", 105)(34, CampoSelectionComponent_div_4_div_1_div_47_div_5_span_34_Template, 2, 0, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 107)(36, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](38, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const tarifa_r14 = ctx.$implicit;
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("disabled", !ctx_r1.canSelectTarifa(item_r8.campo, tarifa_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r1.getTarifaButtonClasses(item_r8.campo, tarifa_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-disabled", !ctx_r1.canSelectTarifa(item_r8.campo, tarifa_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r14.descripcion || "Tarifa est\u00E1ndar", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction3"](18, _c0, ctx_r1.getTarifaPermission(item_r8.campo, tarifa_r14).canBook, ctx_r1.getTarifaPermission(item_r8.campo, tarifa_r14).canRequest, !ctx_r1.getTarifaPermission(item_r8.campo, tarifa_r14).canBook && !ctx_r1.getTarifaPermission(item_r8.campo, tarifa_r14).canRequest));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getTarifaPermission(item_r8.campo, tarifa_r14).message, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](15, 15, tarifa_r14.precioBase, "1.2-2"), " Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getTipoCobro(tarifa_r14.tipoCobro), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r14.frecuencia);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r14.sesionesIncluidas);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r14.desde || tarifa_r14.hasta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", tarifa_r14.categoriasDtoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !(tarifa_r14.categoriasDtoList == null ? null : tarifa_r14.categoriasDtoList.length));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.getTarifaActionText(item_r8.campo, tarifa_r14));
  }
}
function CampoSelectionComponent_div_4_div_1_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "hr", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h6", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Seleccione una tarifa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CampoSelectionComponent_div_4_div_1_div_47_div_5_Template, 39, 22, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("@slideDown", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.tarifasActivas);
  }
}
function CampoSelectionComponent_div_4_div_1_div_48_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 115)(1, "small", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r8.campo.observaciones, " ");
  }
}
function CampoSelectionComponent_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 34)(1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_4_div_1_Template_div_click_1_listener() {
      const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleCampoExpansion(item_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 36)(3, "div", 37)(4, "div", 38)(5, "h5", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 40)(8, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 47)(19, "div", 48)(20, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "i", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div")(23, "small", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Superficie");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "strong", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div")(30, "small", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "strong", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, CampoSelectionComponent_div_4_div_1_div_34_Template, 7, 1, "div", 54)(35, CampoSelectionComponent_div_4_div_1_div_35_Template, 4, 1, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 56)(37, "div", 57)(38, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](39, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div")(41, "small", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "Horarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "strong", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](45, CampoSelectionComponent_div_4_div_1_button_45_Template, 2, 2, "button", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](46, CampoSelectionComponent_div_4_div_1_div_46_Template, 3, 3, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](47, CampoSelectionComponent_div_4_div_1_div_47_Template, 6, 2, "div", 62)(48, CampoSelectionComponent_div_4_div_1_div_48_Template, 4, 1, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r8 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.campo.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r8.campo.categoria, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.campo.requiereAprobacion ? "bg-warning-subtle text-warning" : "bg-success-subtle text-success");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r8.campo.requiereAprobacion ? "Requiere aprobaci\u00F3n" : "Aprobaci\u00F3n autom\u00E1tica", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.campo.accesoLibre ? "bg-success-subtle text-success" : "bg-danger-subtle text-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Acceso Gratuito: ", item_r8.campo.accesoLibre ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r8.isExpanded)("id", "campo-" + item_r8.campo.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.campo.superficieDto.descripcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("text-success", item_r8.campo.tieneIluminacion)("text-muted", !item_r8.campo.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("text-success", item_r8.campo.tieneIluminacion)("text-muted", !item_r8.campo.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r8.campo.tieneIluminacion ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.campo.dimensiones);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.getAvailableDisciplines(item_r8.campo).length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("text-danger", ctx_r1.getHorarioDisplay(item_r8.campo).includes("Cerrado"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getHorarioDisplay(item_r8.campo), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.campo.horariosFijosDtoList && item_r8.campo.horariosFijosDtoList.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isHorarioExpanded(item_r8.campo.uuid));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.isExpanded);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.campo.observaciones);
  }
}
function CampoSelectionComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CampoSelectionComponent_div_4_div_1_Template, 49, 27, "div", 33);
    _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"]("ngForOf", ctx_r1.filteredCampos);
  }
}
function CampoSelectionComponent_div_5_div_1_span_30_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cat_r18, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_span_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, CampoSelectionComponent_div_5_div_1_span_30_span_3_Template, 2, 1, "span", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getAvailableDisciplines(item_r17.campo));
  }
}
function CampoSelectionComponent_div_5_div_1_button_39_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_5_div_1_button_39_Template_button_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19);
      const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleHorarioExpansion(item_r17.campo.uuid, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("rotate-180", ctx_r1.isHorarioExpanded(item_r17.campo.uuid));
  }
}
function CampoSelectionComponent_div_5_div_1_div_40_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const horario_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", horario_r20, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_40_div_4_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const exc_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", exc_r21, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_40_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 142)(1, "small", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div")(4, "strong", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Excepciones pr\u00F3ximas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CampoSelectionComponent_div_5_div_1_div_40_div_4_div_6_Template, 2, 1, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getProximasExcepciones(item_r17.campo));
  }
}
function CampoSelectionComponent_div_5_div_1_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 140)(1, "div", 141)(2, "div", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, CampoSelectionComponent_div_5_div_1_div_40_div_3_Template, 2, 1, "div", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CampoSelectionComponent_div_5_div_1_div_40_div_4_Template, 7, 1, "div", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("@slideDown", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.getHorarioCompleto(item_r17.campo));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.getProximasExcepciones(item_r17.campo).length > 0);
  }
}
function CampoSelectionComponent_div_5_div_1_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 115)(1, "small", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.observaciones, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_span_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r23.frecuencia, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_span_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r23.sesionesIncluidas, " Sesiones ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 98)(1, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Intervalo V\u00E1lido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 112)(5, "span", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", tarifa_r23.desde || "00:00", " - ", tarifa_r23.hasta || "23:59", " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_span_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r24 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cat_r24.categoriaDto.nombre, " ");
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_span_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Sin categor\u00EDas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 34)(1, "div", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_5_div_1_div_46_div_6_Template_div_click_1_listener() {
      const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22).$implicit;
      const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.selectTarifa(item_r17, tarifa_r23));
    })("keydown.enter", function CampoSelectionComponent_div_5_div_1_div_46_div_6_Template_div_keydown_enter_1_listener() {
      const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22).$implicit;
      const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.canSelectTarifa(item_r17.campo, tarifa_r23) && ctx_r1.selectTarifa(item_r17, tarifa_r23));
    })("keydown.space", function CampoSelectionComponent_div_5_div_1_div_46_div_6_Template_div_keydown_space_1_listener() {
      const tarifa_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22).$implicit;
      const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.canSelectTarifa(item_r17.campo, tarifa_r23) && ctx_r1.selectTarifa(item_r17, tarifa_r23));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 87)(3, "div", 88)(4, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div")(7, "h6", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 91)(10, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 94)(14, "span", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](16, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "span", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 97)(20, "div", 98)(21, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, " Tipo de Cobro ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 101)(25, "span", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CampoSelectionComponent_div_5_div_1_div_46_div_6_span_27_Template, 3, 1, "span", 103)(28, CampoSelectionComponent_div_5_div_1_div_46_div_6_span_28_Template, 2, 1, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, CampoSelectionComponent_div_5_div_1_div_46_div_6_div_29_Template, 7, 2, "div", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 98)(31, "p", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Categor\u00EDas aplicadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, CampoSelectionComponent_div_5_div_1_div_46_div_6_span_34_Template, 2, 1, "span", 105)(35, CampoSelectionComponent_div_5_div_1_div_46_div_6_span_35_Template, 2, 0, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 107)(37, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](39, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const tarifa_r23 = ctx.$implicit;
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("disabled", !ctx_r1.canSelectTarifa(item_r17.campo, tarifa_r23));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-disabled", !ctx_r1.canSelectTarifa(item_r17.campo, tarifa_r23));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", tarifa_r23.descripcion || "Tarifa est\u00E1ndar", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction3"](17, _c0, ctx_r1.getTarifaPermission(item_r17.campo, tarifa_r23).canBook, ctx_r1.getTarifaPermission(item_r17.campo, tarifa_r23).canRequest, !ctx_r1.getTarifaPermission(item_r17.campo, tarifa_r23).canBook && !ctx_r1.getTarifaPermission(item_r17.campo, tarifa_r23).canRequest));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getTarifaPermission(item_r17.campo, tarifa_r23).message, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](16, 14, tarifa_r23.precioBase, "1.2-2"), " Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getTipoCobro(tarifa_r23.tipoCobro), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r23.frecuencia);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r23.sesionesIncluidas);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", tarifa_r23.desde || tarifa_r23.hasta);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", tarifa_r23.categoriasDtoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !(tarifa_r23.categoriasDtoList == null ? null : tarifa_r23.categoriasDtoList.length));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.getTarifaActionText(item_r17.campo, tarifa_r23));
  }
}
function CampoSelectionComponent_div_5_div_1_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "hr", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h6", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Seleccione una tarifa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CampoSelectionComponent_div_5_div_1_div_46_div_6_Template, 40, 21, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("@slideDown", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r17.tarifasActivas);
  }
}
function CampoSelectionComponent_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CampoSelectionComponent_div_5_div_1_Template_div_click_0_listener() {
      const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleCampoExpansion(item_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 7)(2, "div", 119)(3, "div", 120)(4, "h6", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "small", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 123)(19, "div", 124)(20, "div", 125)(21, "span", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "i", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "span", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "i", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "span", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "i", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, CampoSelectionComponent_div_5_div_1_span_30_Template, 4, 1, "span", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 133)(32, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](33, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div")(35, "small", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "Horarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "strong", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](39, CampoSelectionComponent_div_5_div_1_button_39_Template, 2, 2, "button", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](40, CampoSelectionComponent_div_5_div_1_div_40_Template, 5, 3, "div", 134)(41, CampoSelectionComponent_div_5_div_1_div_41_Template, 4, 1, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 135)(43, "span", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "i", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](46, CampoSelectionComponent_div_5_div_1_div_46_Template, 7, 2, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r17 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r17.campo.codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.categoria, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r17.campo.requiereAprobacion ? "bg-warning-subtle text-warning" : "bg-success-subtle text-success");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.requiereAprobacion ? "Requiere aprobaci\u00F3n" : "Aprobaci\u00F3n autom\u00E1tica", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r17.campo.accesoLibre ? "bg-success-subtle text-success" : "bg-danger-subtle text-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Acceso Libre: ", item_r17.campo.accesoLibre ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r17.isExpanded)("id", "campo-" + item_r17.campo.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.superficieDto.descripcion || "No especificada", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.dimensiones || "Sin dimensiones", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("text-success", item_r17.campo.tieneIluminacion)("text-muted", !item_r17.campo.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.campo.tieneIluminacion ? "Con iluminaci\u00F3n" : "Sin iluminaci\u00F3n", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.getAvailableDisciplines(item_r17.campo).length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("text-danger", ctx_r1.getHorarioDisplay(item_r17.campo).includes("Cerrado"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getHorarioDisplay(item_r17.campo), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.getHorarioCompleto(item_r17.campo).length > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isHorarioExpanded(item_r17.campo.uuid));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r17.campo.observaciones);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r17.isExpanded ? "Contraer" : "Ver tarifas", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("ri-arrow-down-line", item_r17.isExpanded);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r17.isExpanded);
  }
}
function CampoSelectionComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CampoSelectionComponent_div_5_div_1_Template, 47, 27, "div", 118);
    _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"]("ngForOf", ctx_r1.filteredCampos);
  }
}
class CampoSelectionComponent {
  constructor() {
    this.viewMode = 'grid';
    this.userRole = 'Contribuyente';
    this.systemConfigs = {};
    this.campoSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.goBack = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.camposConTarifas = [];
    this.expandedHorarios = new Set();
    this.searchText = '';
    this.filterBySuperficie = '';
    this.filterByCategoria = '';
    this.isLoading = false;
  }
  get enableSolicitudEventsBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_EVENTOS]?.valorBoolean ?? false;
  }
  get enableEventsBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HABILITAR_RESERVAS_EVENTOS]?.valorBoolean ?? false;
  }
  get enableSolicitudRecurrentBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get enableRecurrentBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HABILITAR_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  ngOnInit() {
    if (!this.dataComplejo) {
      return;
    }
    this.processCampos();
  }
  processCampos() {
    if (!this.dataComplejo?.camposDeportivosDtoList) {
      return;
    }
    this.camposConTarifas = this.dataComplejo.camposDeportivosDtoList.filter(campo => campo.estadoActual?.toLowerCase() === 'activo').map(campo => ({
      campo,
      tarifasActivas: this.getActiveTarifas(campo),
      isExpanded: false
    })).filter(item => item.tarifasActivas.length > 0);
  }
  getActiveTarifas(campo) {
    if (!campo.tarifasDtoList) return [];
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    return campo.tarifasDtoList.filter(tarifa => {
      if (!tarifa.activo) return false;
      const fechaInicio = new Date(tarifa.fechaInicio);
      fechaInicio.setHours(0, 0, 0, 0);
      if (fechaInicio > today) return false;
      if (tarifa.fechaFin) {
        const fechaFin = new Date(tarifa.fechaFin);
        fechaFin.setHours(23, 59, 59, 999);
        if (fechaFin < today) return false;
      }
      const tipoCobro = tarifa.tipoCobro.toLowerCase();
      const isPuntual = tipoCobro === 'por_hora' || tipoCobro === 'por_persona' || tipoCobro === 'por_evento';
      if (this.bookingType === 'puntual') {
        return isPuntual;
      } else if (this.bookingType === 'recurrente') {
        return !isPuntual;
      }
      return false;
    });
  }
  getTarifaPermission(campo, tarifa) {
    const tipoCobro = tarifa.tipoCobro.toLowerCase();
    const isRegularUser = this.userRole === 'Contribuyente' || this.userRole === 'Representante';
    const isAdminUser = this.userRole === 'Encargado' || this.userRole === 'Admin';
    if (isAdminUser) {
      return {
        canBook: true,
        canRequest: false,
        message: 'Reserva directa disponible',
        actionType: 'book'
      };
    }
    if (this.bookingType === 'puntual') {
      return this.getPuntualPermission(campo, tarifa, tipoCobro);
    } else if (this.bookingType === 'recurrente') {
      return this.getRecurrentePermission(campo, tarifa, tipoCobro);
    }
    return {
      canBook: false,
      canRequest: false,
      message: 'Tipo de reserva no disponible',
      actionType: 'none'
    };
  }
  getPuntualPermission(campo, tarifa, tipoCobro) {
    const campoRequiereAprobacion = campo.requiereAprobacion;
    if (tipoCobro === 'por_hora' || tipoCobro === 'por_persona') {
      if (campoRequiereAprobacion) {
        return {
          canBook: false,
          canRequest: true,
          message: 'Requiere aprobación administrativa',
          actionType: 'request'
        };
      } else {
        return {
          canBook: true,
          canRequest: false,
          message: 'Reserva directa disponible',
          actionType: 'book'
        };
      }
    }
    if (tipoCobro === 'por_evento') {
      if (this.enableEventsBooking) {
        if (campoRequiereAprobacion) {
          return {
            canBook: false,
            canRequest: true,
            message: 'Evento requiere aprobación administrativa',
            actionType: 'request'
          };
        } else {
          return {
            canBook: true,
            canRequest: false,
            message: 'Reserva de evento disponible',
            actionType: 'book'
          };
        }
      } else if (this.enableSolicitudEventsBooking) {
        return {
          canBook: false,
          canRequest: true,
          message: 'Solicitud de evento - será validada por administrador',
          actionType: 'request'
        };
      } else {
        return {
          canBook: false,
          canRequest: false,
          message: 'No puede realizar reservas de eventos sin autorización',
          actionType: 'none'
        };
      }
    }
    return {
      canBook: false,
      canRequest: false,
      message: 'Tipo de cobro no disponible',
      actionType: 'none'
    };
  }
  getRecurrentePermission(campo, tarifa, tipoCobro) {
    const campoRequiereAprobacion = campo.requiereAprobacion;
    if (campoRequiereAprobacion) {
      if (this.enableSolicitudRecurrentBooking) {
        return {
          canBook: false,
          canRequest: true,
          message: 'Reserva recurrente requiere aprobación',
          actionType: 'request'
        };
      } else {
        return {
          canBook: false,
          canRequest: false,
          message: 'No puede solicitar reservas recurrentes en este campo',
          actionType: 'none'
        };
      }
    }
    if (this.enableRecurrentBooking) {
      return {
        canBook: true,
        canRequest: false,
        message: 'Reserva recurrente disponible',
        actionType: 'book'
      };
    } else if (this.enableSolicitudRecurrentBooking) {
      return {
        canBook: false,
        canRequest: true,
        message: 'Solicitud de reserva recurrente - será validada',
        actionType: 'request'
      };
    } else {
      return {
        canBook: false,
        canRequest: false,
        message: 'No puede realizar reservas recurrentes sin autorización',
        actionType: 'none'
      };
    }
  }
  toggleCampoExpansion(item) {
    if (this.selectedCampoItem === item) {
      item.isExpanded = !item.isExpanded;
    } else {
      if (this.selectedCampoItem) {
        this.selectedCampoItem.isExpanded = false;
      }
      this.selectedCampoItem = item;
      item.isExpanded = true;
    }
  }
  canSelectTarifa(campo, tarifa) {
    const permission = this.getTarifaPermission(campo, tarifa);
    return permission.canBook || permission.canRequest;
  }
  getTarifaActionText(campo, tarifa) {
    const permission = this.getTarifaPermission(campo, tarifa);
    if (permission.canBook) return 'Reservar';
    if (permission.canRequest) return 'Solicitar';
    return 'No disponible';
  }
  getTarifaButtonClasses(campo, tarifa) {
    const permission = this.getTarifaPermission(campo, tarifa);
    if (permission.canBook) return 'can-book';
    if (permission.canRequest) return 'can-request';
    return 'cannot-select';
  }
  selectTarifa(item, tarifa) {
    if (!tarifa || !item) return;
    const permission = this.getTarifaPermission(item.campo, tarifa);
    if (!permission.canBook && !permission.canRequest) {
      return;
    }
    this.campoSelected.emit({
      field: item.campo,
      tariff: tarifa,
      actionType: permission.actionType // 'book' | 'request' | 'none'
    });
  }
  get filteredCampos() {
    let filtered = [...this.camposConTarifas];
    if (this.searchText?.trim()) {
      const searchLower = this.searchText.toLowerCase().trim();
      filtered = filtered.filter(item => item.campo.nombre?.toLowerCase().includes(searchLower) || item.campo.codigo?.toLowerCase().includes(searchLower) || item.campo.superficieDto?.descripcion?.toLowerCase().includes(searchLower) || item.campo.categoria?.toLowerCase().includes(searchLower));
    }
    if (this.filterByIluminacion !== undefined) {
      filtered = filtered.filter(item => item.campo.tieneIluminacion === this.filterByIluminacion);
    }
    if (this.filterBySuperficie) {
      filtered = filtered.filter(item => item.campo.superficieDto?.descripcion === this.filterBySuperficie);
    }
    if (this.filterByCategoria) {
      filtered = filtered.filter(item => item.campo.categoria === this.filterByCategoria);
    }
    return filtered;
  }
  clearFilters() {
    this.searchText = '';
    this.filterByIluminacion = undefined;
    this.filterBySuperficie = undefined;
    this.filterByCategoria = undefined;
  }
  get superficiesDisponibles() {
    const superficies = new Set();
    this.camposConTarifas.forEach(item => {
      if (item.campo.superficieDto?.descripcion) {
        superficies.add(item.campo.superficieDto.descripcion);
      }
    });
    return Array.from(superficies).sort();
  }
  get categoriasDisponibles() {
    const categorias = new Set();
    this.camposConTarifas.forEach(item => {
      if (item.campo.categoria) {
        categorias.add(item.campo.categoria);
      }
    });
    return Array.from(categorias).sort();
  }
  getTipoCobro(tipo) {
    const tipoMap = {
      'por_hora': 'Por hora',
      'por_persona': 'Por persona',
      'por_evento': 'Por evento',
      'mensualidad': 'Mensualidad',
      'por_club': 'Por club'
    };
    return tipo ? tipoMap[tipo] || tipo : 'No especificado';
  }
  getAvailableDisciplines(campo) {
    return Array.from(new Set(campo.tarifasDtoList?.flatMap(tarifa => tarifa.categoriasDtoList?.map(cat => cat.categoriaDto.nombre) || [])));
  }
  getCapacidadDisplay(campo) {
    return campo.capacidadPersonas ? `${campo.capacidadPersonas} personas` : 'No especificada';
  }
  getTarifaRangeDisplay(tarifa) {
    if (tarifa.desde && tarifa.hasta) {
      return `${tarifa.desde.slice(0, 5)} - ${tarifa.hasta.slice(0, 5)}`;
    }
    return 'Todo el día';
  }
  back() {
    this.goBack.emit();
  }
  getHorarioDisplay(campo) {
    if (!campo.horariosFijosDtoList || campo.horariosFijosDtoList.length === 0) {
      return 'Horario no definido';
    }
    const today = new Date().toLocaleDateString('es-BO', {
      weekday: 'long'
    }).toLowerCase();
    const dayMap = {
      'lunes': 'lunes',
      'martes': 'martes',
      'miércoles': 'miercoles',
      'jueves': 'jueves',
      'viernes': 'viernes',
      'sábado': 'sabado',
      'domingo': 'domingo'
    };
    const todayKey = dayMap[today];
    let todayHorarios = campo.horariosFijosDtoList.filter(h => h.dia === todayKey && h.abierto);
    if (todayHorarios.length === 0 && ['lunes', 'martes', 'miercoles', 'jueves', 'viernes'].includes(todayKey)) {
      todayHorarios = campo.horariosFijosDtoList.filter(h => h.dia === 'lunes_viernes' && h.abierto);
    }
    if (todayHorarios.length === 0) {
      return 'Hoy: Cerrado';
    }
    const times = todayHorarios.map(h => `${h.horaApertura.slice(0, 5)}-${h.horaCierre.slice(0, 5)}`).join(', ');
    return `Hoy: ${times}`;
  }
  toggleHorarioExpansion(campoUuid, event) {
    if (event) {
      event.stopPropagation();
    }
    if (this.expandedHorarios.has(campoUuid)) {
      this.expandedHorarios.delete(campoUuid);
    } else {
      this.expandedHorarios.add(campoUuid);
    }
  }
  isHorarioExpanded(campoUuid) {
    return this.expandedHorarios.has(campoUuid);
  }
  getHorarioCompleto(campo) {
    if (!campo.horariosFijosDtoList || campo.horariosFijosDtoList.length === 0) {
      return ['Horario no definido'];
    }
    const daysMap = {
      'lunes': 'Lunes',
      'martes': 'Martes',
      'miercoles': 'Miércoles',
      'jueves': 'Jueves',
      'viernes': 'Viernes',
      'sabado': 'Sábado',
      'domingo': 'Domingo',
      'lunes_viernes': 'Lunes a Viernes'
    };
    const horarios = [];
    const grouped = {};
    campo.horariosFijosDtoList.forEach(h => {
      if (!grouped[h.dia]) {
        grouped[h.dia] = [];
      }
      grouped[h.dia].push(h);
    });
    Object.keys(grouped).sort().forEach(dia => {
      const dayHorarios = grouped[dia];
      const dayLabel = daysMap[dia] || dia;
      if (dayHorarios.length === 0) return;
      const firstHorario = dayHorarios[0];
      if (!firstHorario.abierto) {
        horarios.push(`${dayLabel}: Cerrado`);
        return;
      }
      if (dayHorarios.length === 1) {
        horarios.push(`${dayLabel}: ${firstHorario.horaApertura.slice(0, 5)}-${firstHorario.horaCierre.slice(0, 5)}`);
      } else {
        const times = dayHorarios.filter(h => h.abierto).map(h => `${h.horaApertura.slice(0, 5)}-${h.horaCierre.slice(0, 5)}`).join(', ');
        horarios.push(`${dayLabel}: ${times}`);
      }
    });
    return horarios.length > 0 ? horarios : ['Consultar horarios'];
  }
  getProximasExcepciones(campo) {
    if (!campo.horariosExcepcionesDtoList || campo.horariosExcepcionesDtoList.length === 0) {
      return [];
    }
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    return campo.horariosExcepcionesDtoList.filter(exc => {
      const excDate = new Date(exc.fecha);
      excDate.setHours(0, 0, 0, 0);
      return excDate >= today;
    }).sort((a, b) => new Date(a.fecha).getTime() - new Date(b.fecha).getTime()).slice(0, 3).map(exc => {
      const date = new Date(exc.fecha);
      const dateStr = date.toLocaleDateString('es-BO', {
        day: '2-digit',
        month: 'short'
      });
      if (exc.tipoExcepcion === 'cerrado') {
        return `${dateStr}: CERRADO`;
      }
      if (exc.tipoExcepcion === 'mantenimiento') {
        return `${dateStr}: Mantenimiento`;
      }
      if (exc.tipoExcepcion === 'evento_municipal') {
        return `${dateStr}: ${exc.motivo || 'Evento'}`;
      }
      if (exc.tipoExcepcion === 'horario_especial' && exc.horaApertura && exc.horaCierre) {
        return `${dateStr}: ${exc.horaApertura.slice(0, 5)}-${exc.horaCierre.slice(0, 5)}`;
      }
      return `${dateStr}: Horario especial`;
    });
  }
  static {
    this.ɵfac = function CampoSelectionComponent_Factory(t) {
      return new (t || CampoSelectionComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: CampoSelectionComponent,
      selectors: [["app-campo-selection"]],
      inputs: {
        dataComplejo: "dataComplejo",
        bookingType: "bookingType",
        userRole: "userRole",
        systemConfigs: "systemConfigs"
      },
      outputs: {
        campoSelected: "campoSelected",
        goBack: "goBack"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵStandaloneFeature"]],
      decls: 6,
      vars: 5,
      consts: [[1, "campo-selection-container"], ["class", "card mb-2", 4, "ngIf"], ["class", "d-flex justify-content-between align-items-center mb-2", 4, "ngIf"], ["class", "text-center py-2", 4, "ngIf"], ["class", "row campos-grid", 4, "ngIf"], ["class", "list-view", 4, "ngIf"], [1, "card", "mb-2"], [1, "card-body"], [1, "row", "g-2"], [1, "col-6", "col-sm-3", "col-lg-5"], [1, "form-label", "small", "fw-medium", "mb-0"], ["type", "text", "placeholder", "Nombre, c\u00F3digo...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "col-6", "col-sm-3", "col-lg-2"], [1, "form-select", 3, "ngModelChange", "ngModel"], [3, "value"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-6", "col-sm-3", "col-lg-1", "d-flex", "align-items-end"], ["title", "Limpiar", 1, "btn", "btn-outline-secondary", "w-100", 3, "click"], [1, "ri-refresh-line", "align-bottom"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-2"], [1, "text-muted", "small"], ["role", "group", 1, "btn-group", "btn-group-sm"], ["type", "button", 1, "btn", "btn-outline-primary", 3, "click"], [1, "ri-grid-fill"], [1, "ri-list-check"], [1, "text-center", "py-2"], [1, "ri-football-line", "display-4", "text-muted", "opacity-25", "mb-3"], [1, "mb-2"], [1, "text-muted", "small", "mb-3"], [1, "btn", "btn-sm", "btn-primary", 3, "click"], [1, "ri-arrow-left-line", "me-1"], [1, "row", "campos-grid"], ["class", "col-lg-6", 4, "ngFor", "ngForOf"], [1, "col-lg-6"], [1, "card", "campo-card", "border-0", "shadow-sm", 3, "click"], [1, "card-header", "py-2"], [1, "d-flex", "justify-content-between", "align-items-start"], [1, "flex-grow-1", "me-2"], [1, "fw-bold", "mb-1", "text-break"], [1, "d-flex", "align-items-center", "gap-2", "flex-wrap"], [1, "badge", "bg-success-subtle", "text-success"], [1, "badge", 3, "ngClass"], [1, "ri-shield-check-line", "me-1"], [1, "ri-login-box-line", "me-1"], [1, "form-check", "flex-shrink-0"], ["type", "radio", 1, "form-check-input", 3, "checked", "id"], [1, "card-body", "py-1", "mt-1"], [1, "row", "mb-2"], [1, "col-lg-6", "d-flex", "gap-2", "pb-0"], [1, "ri-landscape-line", "text-primary", "info-icon"], [1, "text-muted", "d-block", "mb-0"], [1, "small"], [1, "ri-lightbulb-line", "info-icon"], ["class", "col-lg-6 d-flex gap-2 pb-0", 4, "ngIf"], ["class", "d-flex gap-2 pb-0", 4, "ngIf"], [1, "schedule-section", "bg-light-subtle", "py-1"], [1, "d-flex", "align-items-center", "justify-content-between"], [1, "d-flex"], [1, "ri-time-line", "text-primary", "me-2"], ["class", "btn btn-sm btn-link text-primary p-0", 3, "click", 4, "ngIf"], ["class", "schedule-list mt-2 pt-2 border-top", 4, "ngIf"], ["class", "tarifas-section", 4, "ngIf"], ["class", "mt-2", 4, "ngIf"], [1, "ri-ruler-line", "text-primary", "info-icon"], [1, "d-flex", "gap-2", "pb-0"], [1, "ri-basketball-line", "text-primary", "info-icon"], [1, "gap-2", "align-items-center", "small"], ["class", "badge bg-success-subtle text-success me-2", 4, "ngFor", "ngForOf"], [1, "badge", "bg-success-subtle", "text-success", "me-2"], [1, "btn", "btn-sm", "btn-link", "text-primary", "p-0", 3, "click"], [1, "ri-arrow-down-s-line"], [1, "schedule-list", "mt-2", "pt-2", "border-top"], ["class", "small mb-1", 4, "ngFor", "ngForOf"], ["class", "mt-2 pt-2 border-top", 4, "ngIf"], [1, "small", "mb-1"], [1, "mt-2", "pt-2", "border-top"], [1, "text-warning", "d-flex", "align-items-start", "gap-1"], [1, "ri-alert-line", "mt-1"], [1, "d-block", "mb-1"], ["class", "mb-1", 4, "ngFor", "ngForOf"], [1, "mb-1"], [1, "tarifas-section"], [1, "my-3"], [1, "ri-price-tag-3-line", "me-1"], ["class", "tarifa-option gap-2 mb-2", "role", "button", "tabindex", "0", 3, "ngClass", "disabled", "click", "keydown.enter", "keydown.space", 4, "ngFor", "ngForOf"], ["role", "button", "tabindex", "0", 1, "tarifa-option", "gap-2", "mb-2", 3, "click", "keydown.enter", "keydown.space", "ngClass"], [1, "card-header", "tarifa-header", "p-0"], [1, "d-flex", "gap-2", "mb-1"], [1, "ri-price-tag-3-line", "text-primary", "info-icon"], [1, "text-primary", "mb-0"], [1, "m-0", "rounded", 3, "ngClass"], [1, "d-block"], [1, "ri-information-line", "me-1"], [1, "tarifa-price"], [1, "amount"], [1, "currency"], [1, "tarifa-meta", "mb-1"], [1, "tarifa-item"], [1, "text-muted", "mb-0", "small"], ["aria-hidden", "true", 1, "ri-money-dollar-circle-line"], [1, "d-flex", "gap-1", "flex-wrap", "mt-1"], [1, "badge", "bg-primary-subtle", "text-primary"], ["class", "badge bg-light-subtle text-body", 4, "ngIf"], ["class", "tarifa-item", 4, "ngIf"], ["class", "badge bg-success-subtle text-success", 4, "ngFor", "ngForOf"], ["class", "badge bg-light-subtle text-muted", 4, "ngIf"], [1, "card-footer", "tarifa-action"], ["aria-hidden", "true", 1, "ri-arrow-right-line"], [1, "badge", "bg-light-subtle", "text-body"], ["aria-hidden", "true", 1, "ri-repeat-line"], ["aria-hidden", "true", 1, "ri-time-line", "me-1"], [1, "d-flex", "align-items-center", "mt-1"], [1, "badge", "bg-light", "text-dark"], [1, "badge", "bg-light-subtle", "text-muted"], [1, "mt-2"], [1, "text-muted"], [1, "list-view"], ["class", "card campo-card border-0 shadow-sm", 3, "click", 4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between", "align-items-start", "mb-2"], [1, "d-flex", "align-items-center", "flex-wrap", "gap-2"], [1, "mb-0", "fw-bold"], [1, "form-check"], [1, "row", "justify-content-between"], [1, "col-md-10"], [1, "d-flex", "flex-wrap", "gap-3", "align-items-center", "mb-2"], [1, "badge", "bg-primary-subtle", "text-primary", "px-2", "py-1"], [1, "ri-landscape-line", "me-1"], [1, "badge", "bg-info-subtle", "text-info", "px-2", "py-1"], [1, "ri-ruler-line", "me-1"], [1, "small", "text-muted"], [1, "ri-lightbulb-line", "me-1"], ["class", "text-muted d-flex gap-2 pb-0", 4, "ngIf"], [1, "d-flex", "align-items-center", "justify-content-between", "bg-light-subtle", "p-1", "rounded"], ["class", "schedule-section bg-light-subtle p-1 rounded", 4, "ngIf"], [1, "col-md-2", "text-md-end"], [1, "text-primary", "small", "fw-semibold"], [1, "ri-arrow-right-line", "ms-1"], [1, "text-muted", "d-flex", "gap-2", "pb-0"], [1, "align-items-center", "small"], [1, "schedule-section", "bg-light-subtle", "p-1", "rounded"], [1, "row", "g-3", "p-2"], [1, "col"], [4, "ngFor", "ngForOf"], ["class", "col", 4, "ngIf"], [1, "my-2"], [1, "row", "g-3"], ["role", "button", "tabindex", "0", 1, "tarifa-option", "mb-1", 3, "click", "keydown.enter", "keydown.space"]],
      template: function CampoSelectionComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CampoSelectionComponent_div_1_Template, 34, 9, "div", 1)(2, CampoSelectionComponent_div_2_Template, 10, 5, "div", 2)(3, CampoSelectionComponent_div_3_Template, 9, 0, "div", 3)(4, CampoSelectionComponent_div_4_Template, 2, 1, "div", 4)(5, CampoSelectionComponent_div_5_Template, 2, 1, "div", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.filteredCampos.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.filteredCampos.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading && ctx.filteredCampos.length === 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading && ctx.filteredCampos.length > 0 && ctx.viewMode === "grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isLoading && ctx.filteredCampos.length > 0 && ctx.viewMode === "list");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.DecimalPipe, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.ReactiveFormsModule],
      styles: [".tarifa-option[_ngcontent-%COMP%] {\n  border: solid #e9ecef;\n  border-radius: 8px;\n  padding: 1rem;\n  cursor: pointer;\n  transition: all 0.2s ease;\n}\n.tarifa-option[_ngcontent-%COMP%]:hover {\n  border-color: #0d6efd;\n  transform: translateY(-2px);\n  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);\n}\n.tarifa-option[_ngcontent-%COMP%]:hover   .tarifa-action[_ngcontent-%COMP%] {\n  background-color: #0d6efd;\n  color: white;\n}\n.tarifa-option[_ngcontent-%COMP%]:active {\n  transform: translateY(0);\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: baseline;\n  gap: 0.25rem;\n  flex-shrink: 0;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%] {\n  font-size: 1rem;\n  font-weight: 600;\n  color: #0d6efd;\n  line-height: 1;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%]   .currency[_ngcontent-%COMP%] {\n  font-size: 0.75rem;\n  font-weight: 300;\n  color: #6c757d;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-meta[_ngcontent-%COMP%] {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 0.5rem;\n  margin-bottom: 0.75rem;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-action[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 0.5rem 0.75rem;\n  margin: 0 -1rem -1rem;\n  font-size: 0.875rem;\n  font-weight: 600;\n  transition: all 0.2s ease;\n  border-radius: 0 0 6px 6px;\n}\n.tarifa-option.can-book[_ngcontent-%COMP%]   .tarifa-action[_ngcontent-%COMP%] {\n  border-top: 3px solid #198754;\n  background-color: #f8f9fa;\n  color: #198754;\n}\n.tarifa-option.can-request[_ngcontent-%COMP%]   .tarifa-action[_ngcontent-%COMP%] {\n  border-top: 3px solid #ffc107;\n  background-color: #f8f9fa;\n  color: #856404;\n}\n.tarifa-option.cannot-select[_ngcontent-%COMP%]   .tarifa-action[_ngcontent-%COMP%] {\n  border-top: 3px solid #6c757d;\n  background-color: #f8f9fa;\n  color: #6c757d;\n  opacity: 0.6;\n}\n.tarifa-option[_ngcontent-%COMP%]:hover   .tarifa-action[_ngcontent-%COMP%] {\n  background-color: #0d6efd; \n\n  color: white;\n  border-top-color: #0d6efd; \n\n}\n\n.info-icon[_ngcontent-%COMP%] {\n  font-size: 1.25rem;\n  flex-shrink: 0;\n  margin-top: 2px;\n}\n\n.schedule-section[_ngcontent-%COMP%] {\n  border-radius: 8px;\n  padding: 0.5rem;\n}\n.schedule-section[_ngcontent-%COMP%]   .schedule-list[_ngcontent-%COMP%] {\n  line-height: 1.6;\n}\n\n.list-view[_ngcontent-%COMP%]   .campo-card[_ngcontent-%COMP%] {\n  margin-bottom: 1rem;\n}\n.list-view[_ngcontent-%COMP%]   .campo-card[_ngcontent-%COMP%]:last-child {\n  margin-bottom: 0;\n}\n.list-view[_ngcontent-%COMP%]   .tarifa-option[_ngcontent-%COMP%] {\n  margin-bottom: 0;\n}\n\n@media (max-width: 768px) {\n  .info-grid[_ngcontent-%COMP%] {\n    grid-template-columns: 1fr;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2Jvb2tpbmcvY2FtcG8tc2VsZWN0aW9uL2NhbXBvLXNlbGVjdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBSTtFQUNFLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0VBQ0EsZUFBQTtFQUNBLHlCQUFBO0FBQ047QUFDTTtFQUNFLHFCQUFBO0VBQ0EsMkJBQUE7RUFDQSwrQ0FBQTtBQUNSO0FBQ1E7RUFDRSx5QkFBQTtFQUNBLFlBQUE7QUFDVjtBQUdNO0VBQ0Usd0JBQUE7QUFEUjtBQUlNO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsdUJBQUE7QUFGUjtBQUtRO0VBQ0UsYUFBQTtFQUNBLHFCQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7QUFIVjtBQUlVO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLGNBQUE7QUFGWjtBQUtVO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7QUFIWjtBQVFNO0VBQ0UsYUFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0VBQ0Esc0JBQUE7QUFOUjtBQVNNO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLHFCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsMEJBQUE7QUFQUjtBQWNNO0VBQ0UsNkJBQUE7RUFDQSx5QkFBQTtFQUNBLGNBQUE7QUFaUjtBQWVNO0VBQ0UsNkJBQUE7RUFDQSx5QkFBQTtFQUNBLGNBQUE7QUFiUjtBQWdCTTtFQUNFLDZCQUFBO0VBQ0EseUJBQUE7RUFDQSxjQUFBO0VBQ0EsWUFBQTtBQWRSO0FBa0JRO0VBQ0UseUJBQUEsRUFBQSx1Q0FBQTtFQUNBLFlBQUE7RUFDQSx5QkFBQSxFQUFBLHNDQUFBO0FBaEJWOztBQW1DRTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLGVBQUE7QUFoQ0o7O0FBMkNBO0VBQ0Usa0JBQUE7RUFDQSxlQUFBO0FBeENGO0FBMENFO0VBQ0UsZ0JBQUE7QUF4Q0o7O0FBOENFO0VBQ0UsbUJBQUE7QUEzQ0o7QUE2Q0k7RUFDRSxnQkFBQTtBQTNDTjtBQStDRTtFQUNFLGdCQUFBO0FBN0NKOztBQWtEQTtFQUNFO0lBQ0UsMEJBQUE7RUEvQ0Y7QUFDRiIsInNvdXJjZXNDb250ZW50IjpbIiAgICAudGFyaWZhLW9wdGlvbiB7XHJcbiAgICAgIGJvcmRlcjogc29saWQgI2U5ZWNlZjtcclxuICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xyXG4gICAgICBwYWRkaW5nOiAxcmVtO1xyXG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICAgIHRyYW5zaXRpb246IGFsbCAwLjJzIGVhc2U7XHJcbiAgICAgIFxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICBib3JkZXItY29sb3I6ICMwZDZlZmQ7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0ycHgpO1xyXG4gICAgICAgIGJveC1zaGFkb3c6IDAgNHB4IDEycHggcmdiYSgxMywgMTEwLCAyNTMsIDAuMTUpO1xyXG4gICAgICAgIFxyXG4gICAgICAgIC50YXJpZmEtYWN0aW9uIHtcclxuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZDZlZmQ7XHJcbiAgICAgICAgICBjb2xvcjogd2hpdGU7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmOmFjdGl2ZSB7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDApO1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAudGFyaWZhLWhlYWRlciB7XHJcbiAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbiAgICAgICAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XHJcbiAgICAgICAgLy8gZ2FwOiAxcmVtO1xyXG4gICAgICAgIFxyXG4gICAgICAgIC50YXJpZmEtcHJpY2Uge1xyXG4gICAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICAgIGFsaWduLWl0ZW1zOiBiYXNlbGluZTtcclxuICAgICAgICAgIGdhcDogMC4yNXJlbTtcclxuICAgICAgICAgIGZsZXgtc2hyaW5rOiAwOyAgICAgICAgICBcclxuICAgICAgICAgIC5hbW91bnQge1xyXG4gICAgICAgICAgICBmb250LXNpemU6IDFyZW07XHJcbiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgICAgICAgIGNvbG9yOiAjMGQ2ZWZkO1xyXG4gICAgICAgICAgICBsaW5lLWhlaWdodDogMTtcclxuICAgICAgICAgIH1cclxuICAgICAgICAgIFxyXG4gICAgICAgICAgLmN1cnJlbmN5IHtcclxuICAgICAgICAgICAgZm9udC1zaXplOiAwLjc1cmVtO1xyXG4gICAgICAgICAgICBmb250LXdlaWdodDogMzAwO1xyXG4gICAgICAgICAgICBjb2xvcjogIzZjNzU3ZDtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgICAgXHJcbiAgICAgIC50YXJpZmEtbWV0YSB7XHJcbiAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICBmbGV4LXdyYXA6IHdyYXA7XHJcbiAgICAgICAgZ2FwOiAwLjVyZW07XHJcbiAgICAgICAgbWFyZ2luLWJvdHRvbTogMC43NXJlbTtcclxuICAgICAgfVxyXG4gICAgICBcclxuICAgICAgLnRhcmlmYS1hY3Rpb24ge1xyXG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xyXG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICAgICAgcGFkZGluZzogMC41cmVtIDAuNzVyZW07XHJcbiAgICAgICAgbWFyZ2luOiAwIC0xcmVtIC0xcmVtO1xyXG4gICAgICAgIGZvbnQtc2l6ZTogMC44NzVyZW07XHJcbiAgICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgICAgICB0cmFuc2l0aW9uOiBhbGwgMC4ycyBlYXNlO1xyXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDAgMCA2cHggNnB4O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAvLyAmOmhvdmVyIC50YXJpZmEtYWN0aW9uIGkge1xyXG4gICAgICAvLyAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCg0cHgpO1xyXG4gICAgICAvLyB9XHJcblxyXG4gICAgICAmLmNhbi1ib29rIC50YXJpZmEtYWN0aW9uIHtcclxuICAgICAgICBib3JkZXItdG9wOiAzcHggc29saWQgIzE5ODc1NDtcclxuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOWZhO1xyXG4gICAgICAgIGNvbG9yOiAjMTk4NzU0O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmLmNhbi1yZXF1ZXN0IC50YXJpZmEtYWN0aW9uIHtcclxuICAgICAgICBib3JkZXItdG9wOiAzcHggc29saWQgI2ZmYzEwNztcclxuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOWZhO1xyXG4gICAgICAgIGNvbG9yOiAjODU2NDA0O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmLmNhbm5vdC1zZWxlY3QgLnRhcmlmYS1hY3Rpb24ge1xyXG4gICAgICAgIGJvcmRlci10b3A6IDNweCBzb2xpZCAjNmM3NTdkO1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmOGY5ZmE7XHJcbiAgICAgICAgY29sb3I6ICM2Yzc1N2Q7XHJcbiAgICAgICAgb3BhY2l0eTogMC42O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICAudGFyaWZhLWFjdGlvbiB7XHJcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMGQ2ZWZkOyAvKiBCbHVlIG9uIGhvdmVyIG92ZXJyaWRlcyBldmVyeXRoaW5nICovXHJcbiAgICAgICAgICBjb2xvcjogd2hpdGU7XHJcbiAgICAgICAgICBib3JkZXItdG9wLWNvbG9yOiAjMGQ2ZWZkOyAvKiBBbHNvIGNoYW5nZSBib3JkZXIgY29sb3Igb24gaG92ZXIgKi9cclxuICAgICAgICAgIFxyXG4gICAgICAgICAgLy8gaSB7XHJcbiAgICAgICAgICAvLyAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCg0cHgpO1xyXG4gICAgICAgICAgLy8gfVxyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuXHJcblxyXG4gICAgXHJcbi8vIC5pbmZvLWdyaWQge1xyXG4vLyAgIGRpc3BsYXk6IGdyaWQ7XHJcbi8vICAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoYXV0by1maXQsIG1pbm1heCgxNDBweCwgMWZyKSk7XHJcbi8vICAgZ2FwOiAwLjc1cmVtO1xyXG4vLyB9XHJcblxyXG5cclxuICAuaW5mby1pY29uIHtcclxuICAgIGZvbnQtc2l6ZTogMS4yNXJlbTtcclxuICAgIGZsZXgtc2hyaW5rOiAwO1xyXG4gICAgbWFyZ2luLXRvcDogMnB4O1xyXG4gIH1cclxuXHJcbiAgLy8gc21hbGwge1xyXG4gIC8vICAgZm9udC1zaXplOiAwLjc1cmVtO1xyXG4gIC8vICAgbGluZS1oZWlnaHQ6IDE7XHJcbiAgLy8gfVxyXG5cclxuXHJcblxyXG4vLyBTY2hlZHVsZSBzZWN0aW9uXHJcbi5zY2hlZHVsZS1zZWN0aW9uIHtcclxuICBib3JkZXItcmFkaXVzOiA4cHg7XHJcbiAgcGFkZGluZzogMC41cmVtO1xyXG5cclxuICAuc2NoZWR1bGUtbGlzdCB7XHJcbiAgICBsaW5lLWhlaWdodDogMS42O1xyXG4gIH1cclxufVxyXG5cclxuLy8gTGlzdCB2aWV3IHNwZWNpZmljXHJcbi5saXN0LXZpZXcge1xyXG4gIC5jYW1wby1jYXJkIHtcclxuICAgIG1hcmdpbi1ib3R0b206IDFyZW07XHJcblxyXG4gICAgJjpsYXN0LWNoaWxkIHtcclxuICAgICAgbWFyZ2luLWJvdHRvbTogMDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC50YXJpZmEtb3B0aW9uIHtcclxuICAgIG1hcmdpbi1ib3R0b206IDA7XHJcbiAgfVxyXG59XHJcblxyXG4vLyBSZXNwb25zaXZlIGFkanVzdG1lbnRzXHJcbkBtZWRpYSAobWF4LXdpZHRoOiA3NjhweCkge1xyXG4gIC5pbmZvLWdyaWQge1xyXG4gICAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiAxZnI7XHJcbiAgfVxyXG59XHJcbiJdLCJzb3VyY2VSb290IjoiIn0= */"],
      data: {
        animation: [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('slideDown', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)(':enter', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)('300ms ease-out')]), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)(':leave', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)('300ms ease-in')])])]
      }
    });
  }
}

/***/ }),

/***/ 81764:
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/modals/booking/complejo-selection/complejo-selection.component.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComplejoSelectionComponent: () => (/* binding */ ComplejoSelectionComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);







const _c0 = () => ["activo", "mantenimiento", "cerrado"];
const _c1 = (a0, a1, a2, a3) => ({
  "ribbon-success": a0,
  "ribbon-warning": a1,
  "ribbon-danger": a2,
  "ribbon-secondary": a3
});
function ComplejoSelectionComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 7)(1, "div", 8)(2, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "p", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Cargando complejos deportivos...");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ComplejoSelectionComponent_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 13)(3, "h6", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Error al cargar los complejos");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "No se pudieron cargar los complejos deportivos. Por favor, intente nuevamente.");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ComplejoSelectionComponent_div_2_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.retryLoad());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " Reintentar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ComplejoSelectionComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18)(1, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h5", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "No se encontraron complejos");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " No hay complejos deportivos que coincidan con los filtros seleccionados. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ComplejoSelectionComponent_div_3_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.clearFilters());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " Limpiar filtros ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ComplejoSelectionComponent_div_4_div_1_i_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 60);
  }
}
function ComplejoSelectionComponent_div_4_div_1_i_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 61);
  }
}
function ComplejoSelectionComponent_div_4_div_1_i_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 62);
  }
}
function ComplejoSelectionComponent_div_4_div_1_i_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 63);
  }
}
function ComplejoSelectionComponent_div_4_div_1_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const complejo_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r5.distrito, " ");
  }
}
function ComplejoSelectionComponent_div_4_div_1_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const complejo_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r5.telefonoPrincipal);
  }
}
function ComplejoSelectionComponent_div_4_div_1_span_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Sin tel\u00E9fono ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ComplejoSelectionComponent_div_4_div_1_span_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const employee_r6 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", "assets/icons/users/" + employee_r6.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", employee_r6.nombre, " ");
  }
}
function ComplejoSelectionComponent_div_4_div_1_ng_template_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Sin encargado ");
  }
}
function ComplejoSelectionComponent_div_4_div_1_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Grader\u00EDas");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ComplejoSelectionComponent_div_4_div_1_div_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Vestuarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ComplejoSelectionComponent_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 26)(1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ComplejoSelectionComponent_div_4_div_1_Template_div_click_1_listener() {
      const complejo_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r5));
    })("keydown.enter", function ComplejoSelectionComponent_div_4_div_1_Template_div_keydown_enter_1_listener() {
      const complejo_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r5));
    })("keydown.space", function ComplejoSelectionComponent_div_4_div_1_Template_div_keydown_space_1_listener() {
      const complejo_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 28)(3, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](4, 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ComplejoSelectionComponent_div_4_div_1_i_5_Template, 1, 0, "i", 31)(6, ComplejoSelectionComponent_div_4_div_1_i_6_Template, 1, 0, "i", 32)(7, ComplejoSelectionComponent_div_4_div_1_i_7_Template, 1, 0, "i", 33)(8, ComplejoSelectionComponent_div_4_div_1_i_8_Template, 1, 0, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 36)(12, "div", 37)(13, "h5", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, ComplejoSelectionComponent_div_4_div_1_span_19_Template, 3, 1, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 45)(24, "div", 46)(25, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](29, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](30, ComplejoSelectionComponent_div_4_div_1_div_30_Template, 4, 1, "div", 50)(31, ComplejoSelectionComponent_div_4_div_1_span_31_Template, 2, 0, "span", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "small", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](33, ComplejoSelectionComponent_div_4_div_1_span_33_Template, 3, 2, "span", 53)(34, ComplejoSelectionComponent_div_4_div_1_ng_template_34_Template, 2, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 46)(37, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](41, ComplejoSelectionComponent_div_4_div_1_div_41_Template, 4, 0, "div", 56)(42, ComplejoSelectionComponent_div_4_div_1_div_42_Template, 4, 0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 57)(44, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const complejo_r5 = ctx.$implicit;
    const sinEncargado_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](35);
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("disabled", !ctx_r1.hasActiveFields(complejo_r5));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction4"](28, _c1, complejo_r5.estadoActual.toLowerCase() === "activo", complejo_r5.estadoActual.toLowerCase() === "mantenimiento", complejo_r5.estadoActual.toLowerCase() === "cerrado", !_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](27, _c0).includes(complejo_r5.estadoActual)));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", complejo_r5.estadoActual.toLowerCase());
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "mantenimiento");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "cerrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r5.estadoActual);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r5.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r5.ubicacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r5.distrito);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", ctx_r1.getCamposCount(complejo_r5), " ", ctx_r1.getCamposCount(complejo_r5) === 1 ? "campo" : "campos", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](29, 25, complejo_r5.tipoEstructura));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r5.telefonoPrincipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !complejo_r5.telefonoPrincipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.hasEncargados(complejo_r5))("ngIfElse", sinEncargado_r7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("text-success", complejo_r5.tieneIluminacion)("text-muted", !complejo_r5.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r5.tieneIluminacion ? "Con luz" : "Sin luz");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r5.tieneGraderias);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r5.tieneVestuarios);
  }
}
function ComplejoSelectionComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ComplejoSelectionComponent_div_4_div_1_Template, 47, 33, "div", 25);
    _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__["ɵɵproperty"]("ngForOf", ctx_r1.filteredComplejos);
  }
}
function ComplejoSelectionComponent_div_5_div_1_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 60);
  }
}
function ComplejoSelectionComponent_div_5_div_1_i_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 61);
  }
}
function ComplejoSelectionComponent_div_5_div_1_i_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 62);
  }
}
function ComplejoSelectionComponent_div_5_div_1_i_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 63);
  }
}
function ComplejoSelectionComponent_div_5_div_1_p_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const employee_r10 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", "assets/icons/users/" + employee_r10.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", employee_r10.nombre, " ");
  }
}
function ComplejoSelectionComponent_div_5_div_1_ng_template_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Sin encargado ");
  }
}
function ComplejoSelectionComponent_div_5_div_1_span_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const complejo_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r9.distrito, " ");
  }
}
function ComplejoSelectionComponent_div_5_div_1_span_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Vestuarios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ComplejoSelectionComponent_div_5_div_1_span_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Grader\u00EDas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ComplejoSelectionComponent_div_5_div_1_span_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const complejo_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r9.telefonoPrincipal, " ");
  }
}
function ComplejoSelectionComponent_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ComplejoSelectionComponent_div_5_div_1_Template_div_click_0_listener() {
      const complejo_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r9));
    })("keydown.enter", function ComplejoSelectionComponent_div_5_div_1_Template_div_keydown_enter_0_listener() {
      const complejo_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r9));
    })("keydown.space", function ComplejoSelectionComponent_div_5_div_1_Template_div_keydown_space_0_listener() {
      const complejo_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.selectComplejo(complejo_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 76)(2, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](3, 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ComplejoSelectionComponent_div_5_div_1_i_4_Template, 1, 0, "i", 31)(5, ComplejoSelectionComponent_div_5_div_1_i_5_Template, 1, 0, "i", 32)(6, ComplejoSelectionComponent_div_5_div_1_i_6_Template, 1, 0, "i", 33)(7, ComplejoSelectionComponent_div_5_div_1_i_7_Template, 1, 0, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 77)(11, "div", 78)(12, "h6", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "p", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, ComplejoSelectionComponent_div_5_div_1_p_17_Template, 3, 2, "p", 80)(18, ComplejoSelectionComponent_div_5_div_1_ng_template_18_Template, 2, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 81)(21, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](23, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 82)(25, "div", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, ComplejoSelectionComponent_div_5_div_1_span_26_Template, 3, 1, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](33, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](37, ComplejoSelectionComponent_div_5_div_1_span_37_Template, 3, 0, "span", 86)(38, ComplejoSelectionComponent_div_5_div_1_span_38_Template, 3, 0, "span", 86)(39, ComplejoSelectionComponent_div_5_div_1_span_39_Template, 3, 1, "span", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const complejo_r9 = ctx.$implicit;
    const sinEncargado_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](19);
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("disabled", !ctx_r1.hasActiveFields(complejo_r9));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction4"](27, _c1, complejo_r9.estadoActual.toLowerCase() === "activo", complejo_r9.estadoActual.toLowerCase() === "mantenimiento", complejo_r9.estadoActual.toLowerCase() === "cerrado", !_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](26, _c0).includes(complejo_r9.estadoActual)));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", complejo_r9.estadoActual.toLowerCase());
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "mantenimiento");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "cerrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r9.estadoActual);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](complejo_r9.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r9.ubicacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.hasEncargados(complejo_r9))("ngIfElse", sinEncargado_r11);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r9.distrito);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", ctx_r1.getCamposCount(complejo_r9), " ", ctx_r1.getCamposCount(complejo_r9) === 1 ? "campo" : "campos", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](33, 24, complejo_r9.tipoEstructura), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("text-success", complejo_r9.tieneIluminacion)("text-muted", !complejo_r9.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", complejo_r9.tieneIluminacion ? "Con Iluminaci\u00F3n" : "Sin Iluminaci\u00F3n", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r9.tieneVestuarios);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r9.tieneGraderias);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", complejo_r9.telefonoPrincipal);
  }
}
function ComplejoSelectionComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ComplejoSelectionComponent_div_5_div_1_Template, 40, 32, "div", 75);
    _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__["ɵɵproperty"]("ngForOf", ctx_r1.filteredComplejos);
  }
}
class ComplejoSelectionComponent {
  constructor(complejoService) {
    this.complejoService = complejoService;
    this.complejoSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.goBack = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.complejosList = [];
    this.filteredComplejos = [];
    this.isLoading = false;
    this.loadError = false;
    this.searchText = '';
    this.viewMode = 'grid';
  }
  ngOnInit() {
    this.loadComplejos();
  }
  loadComplejos() {
    this.isLoading = true;
    this.loadError = false;
    this.complejoService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.complejosList = response.payload.filter(c => c.estadoActual === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoActual.ACTIVO && this.hasActiveFields(c));
          this.filteredComplejos = [...this.complejosList];
        } else {
          this.loadError = true;
        }
        this.isLoading = false;
      },
      error: error => {
        this.loadError = true;
        this.isLoading = false;
      }
    });
  }
  retryLoad() {
    this.loadComplejos();
  }
  applyFilters() {
    this.filteredComplejos = this.complejosList.filter(complejo => {
      let matches = true;
      if (this.searchText?.trim()) {
        const searchLower = this.searchText.toLowerCase().trim();
        matches = matches && (complejo.nombre?.toLowerCase().includes(searchLower) || complejo.ubicacion?.toLowerCase().includes(searchLower) || complejo.distrito?.toLowerCase().includes(searchLower));
      }
      if (this.filterByDistrito) {
        matches = matches && complejo.distrito === this.filterByDistrito;
      }
      if (this.filterByIluminacion !== undefined) {
        matches = matches && complejo.tieneIluminacion === this.filterByIluminacion;
      }
      if (this.filterByTipoEstructura) {
        matches = matches && complejo.tipoEstructura === this.filterByTipoEstructura;
      }
      return matches;
    });
  }
  clearFilters() {
    this.searchText = '';
    this.filterByDistrito = undefined;
    this.filterByIluminacion = undefined;
    this.filterByTipoEstructura = undefined;
    this.filteredComplejos = [...this.complejosList];
  }
  selectComplejo(complejo) {
    if (!complejo || !this.hasActiveFields(complejo)) return;
    this.complejoSelected.emit(complejo);
  }
  get distritos() {
    const distritos = new Set();
    this.complejosList.forEach(c => {
      if (c.distrito) distritos.add(c.distrito);
    });
    return Array.from(distritos).sort();
  }
  get tiposEstructura() {
    const tipos = new Set();
    this.complejosList.forEach(c => {
      if (c.tipoEstructura) tipos.add(c.tipoEstructura);
    });
    return Array.from(tipos).sort();
  }
  getCamposCount(complejo) {
    return complejo.camposDeportivosDtoList?.filter(c => c.estadoActual === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoActual.ACTIVO).length || 0;
  }
  hasActiveFields(complejo) {
    return this.getCamposCount(complejo) > 0;
  }
  hasEncargados(complejo) {
    const today = new Date();
    const todayNormalized = new Date(today.getFullYear(), today.getMonth(), today.getDate());
    if (!complejo.encargadosDtoList?.length) {
      return undefined;
    }
    return complejo.encargadosDtoList.find(encargado => {
      if (!encargado.activo) return false;
      if (!encargado.fechaAsignacion || !encargado.fechaFinAsignacion) {
        return true;
      }
      const fechaAsignacion = new Date(encargado.fechaAsignacion + 'T00:00:00');
      const fechaFinAsignacion = new Date(encargado.fechaFinAsignacion + 'T23:59:59');
      return fechaAsignacion <= todayNormalized && todayNormalized <= fechaFinAsignacion;
    });
  }
  getComplejoInfo(complejo) {
    const info = [];
    if (complejo.distrito) info.push(complejo.distrito);
    if (complejo.tipoEstructura) info.push(complejo.tipoEstructura);
    return info.join(' • ');
  }
  get showEmptyState() {
    return !this.isLoading && !this.loadError && this.filteredComplejos.length === 0;
  }
  back() {
    this.goBack.emit();
  }
  static {
    this.ɵfac = function ComplejoSelectionComponent_Factory(t) {
      return new (t || ComplejoSelectionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_1__.ComplejosService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
      type: ComplejoSelectionComponent,
      selectors: [["app-complejo-selection"]],
      outputs: {
        complejoSelected: "complejoSelected",
        goBack: "goBack"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵStandaloneFeature"]],
      decls: 6,
      vars: 5,
      consts: [["sinEncargado", ""], [1, "complejo-selection-container"], ["class", "text-center py-2", 4, "ngIf"], ["class", "alert alert-danger d-flex align-items-center", 4, "ngIf"], ["class", "empty-state text-center py-5", 4, "ngIf"], ["class", "row g-2", 4, "ngIf"], ["class", "list-view", 4, "ngIf"], [1, "text-center", "py-2"], ["role", "status", 1, "spinner-border", "text-primary", "mb-3", 2, "width", "3rem", "height", "3rem"], [1, "visually-hidden"], [1, "text-muted", "mb-0"], [1, "alert", "alert-danger", "d-flex", "align-items-center"], [1, "ri-error-warning-line", "fs-4", "me-3"], [1, "flex-grow-1"], [1, "alert-heading", "mb-1"], [1, "mb-0", "small"], [1, "btn", "btn-sm", "btn-outline-danger", "ms-3", 3, "click"], [1, "ri-refresh-line", "me-1"], [1, "empty-state", "text-center", "py-5"], [1, "empty-state-icon", "mb-3"], [1, "ri-search-line", "display-1", "text-muted", "opacity-50"], [1, "mb-2"], [1, "text-muted", "mb-3"], [1, "btn", "btn-primary", 3, "click"], [1, "row", "g-2"], ["class", "col-xl-4 col-lg-6 col-md-6", 4, "ngFor", "ngForOf"], [1, "col-xl-4", "col-lg-6", "col-md-6"], ["role", "button", "tabindex", "0", 1, "card", "ribbon-box", "right", "overflow-hidden", "h-100", "border-0", "shadow-sm", "hover-lift", 3, "click", "keydown.enter", "keydown.space"], [1, "card-body", "p-4", "pb-0"], [1, "ribbon", "ribbon-shape", "trending-ribbon", 3, "ngClass"], [3, "ngSwitch"], ["class", "ri-checkbox-circle-fill text-white align-bottom", 4, "ngSwitchCase"], ["class", "ri-tools-fill text-white align-bottom", 4, "ngSwitchCase"], ["class", "ri-close-circle-fill text-white align-bottom", 4, "ngSwitchCase"], ["class", "ri-question-line text-white align-bottom", 4, "ngSwitchDefault"], [1, "trending-ribbon-text"], [1, "card-header", "p-0", "mb-2", "border-0"], [1, "flex-grow-1", "pe-2"], [1, "card-title", "mb-1", "fw-bold"], [1, "text-muted", "small", "mb-0"], [1, "ri-map-pin-line", "me-1"], [1, "d-flex", "flex-wrap", "gap-2", "mb-3"], ["class", "badge bg-primary-subtle text-primary px-2 py-1", 4, "ngIf"], [1, "badge", "bg-success-subtle", "text-success", "px-2", "py-1"], [1, "ri-football-line", "me-1"], [1, "row", "border-top", "pt-2"], [1, "col-6"], [1, "border", "rounded", "text-start"], [1, "ri-building-3-line", "text-primary", "me-2"], [1, "small", "text-muted"], ["class", "detail-item", 4, "ngIf"], ["class", "text-muted small", 4, "ngIf"], [1, "mb-1"], [4, "ngIf", "ngIfElse"], [1, "border", "rounded", "text-start", "mb-2"], [1, "ri-lightbulb-line", "me-2"], ["class", "border rounded text-start mb-2", 4, "ngIf"], [1, "card-footer"], [1, "text-primary", "small", "fw-semibold"], [1, "ri-arrow-right-line", "ms-1"], [1, "ri-checkbox-circle-fill", "text-white", "align-bottom"], [1, "ri-tools-fill", "text-white", "align-bottom"], [1, "ri-close-circle-fill", "text-white", "align-bottom"], [1, "ri-question-line", "text-white", "align-bottom"], [1, "badge", "bg-primary-subtle", "text-primary", "px-2", "py-1"], [1, "ri-community-line", "me-1"], [1, "detail-item"], [1, "ri-phone-line", "me-2"], [1, "small"], [1, "text-muted", "small"], ["alt", "Encargado", 1, "avatar-xs", "rounded-circle", 3, "src"], [1, "ri-user-line"], [1, "ri-layout-row-line", "text-info", "me-2"], [1, "ri-door-line", "text-info", "me-2"], [1, "list-view"], ["class", "card ribbon-box right overflow-hidden h-100 border-0 shadow-sm hover-lift", "role", "button", "tabindex", "0", 3, "disabled", "click", "keydown.enter", "keydown.space", 4, "ngFor", "ngForOf"], [1, "card-body"], [1, "row", "align-items-center"], [1, "col-md-9"], [1, "mb-1", "fw-bold"], ["class", "text-muted mb-1", 4, "ngIf", "ngIfElse"], [1, "col-md-3", "text-md-end"], [1, "row"], [1, "d-flex", "flex-wrap", "gap-2", "mb-2"], [1, "ri-building-3-line", "me-1"], [1, "ri-lightbulb-line", "me-1"], [4, "ngIf"], [1, "text-muted", "mb-1"], ["alt", "Encargado", 1, "avatar-xs", "rounded-circle", "me-1", 3, "src"], [1, "ri-user-line", "me-1"], [1, "ri-door-line", "text-info", "me-1"], [1, "ri-layout-row-line", "text-info", "me-1"], [1, "ri-phone-line", "me-1"]],
      template: function ComplejoSelectionComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ComplejoSelectionComponent_div_1_Template, 6, 0, "div", 2)(2, ComplejoSelectionComponent_div_2_Template, 10, 0, "div", 3)(3, ComplejoSelectionComponent_div_3_Template, 10, 0, "div", 4)(4, ComplejoSelectionComponent_div_4_Template, 2, 1, "div", 5)(5, ComplejoSelectionComponent_div_5_Template, 2, 1, "div", 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"]("ngIf", ctx.isLoading);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loadError && !ctx.isLoading);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showEmptyState);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.isLoading && !ctx.loadError && ctx.viewMode === "grid" && ctx.filteredComplejos.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.isLoading && !ctx.loadError && ctx.viewMode === "list" && ctx.filteredComplejos.length > 0);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgSwitch, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgSwitchCase, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgSwitchDefault, _angular_common__WEBPACK_IMPORTED_MODULE_3__.TitleCasePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.ReactiveFormsModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 43575:
/*!**********************************************************************!*\
  !*** ./src/app/pages/modals/booking/reservation-conflict.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservationConflictService: () => (/* binding */ ReservationConflictService)
/* harmony export */ });
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);


class ReservationConflictService {
  constructor() {
    this.BLOCKING_STATES = [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.PENDIENTE, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.SOLICITADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.PAGADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.EN_CURSO];
  }
  checkConflict(campoDeportivoId, timeRange, existingReservations, excludeReservaId) {
    const conflicts = [];
    const campoReservations = existingReservations.filter(r => r.campoDeportivoDto?.uuid === campoDeportivoId && r.uuid !== excludeReservaId && this.BLOCKING_STATES.includes(r.estadoReserva));
    for (const reserva of campoReservations) {
      if (reserva.reservaPuntualDto) {
        if (this.checkPuntualConflict(timeRange, reserva.reservaPuntualDto)) {
          conflicts.push(reserva);
        }
      }
      if (reserva.reservaRecurrenteDto && reserva.reservaRecurrenteDto.activo) {
        if (this.checkRecurrentConflict(timeRange, reserva.reservaRecurrenteDto)) {
          conflicts.push(reserva);
        }
      }
    }
    if (conflicts.length > 0) {
      return {
        hasConflict: true,
        conflictingReservations: conflicts,
        reason: this.getConflictReason(conflicts[0]),
        severity: 'error'
      };
    }
    return {
      hasConflict: false,
      conflictingReservations: [],
      severity: 'info'
    };
  }
  /**
   * Check multiple time ranges for conflicts
   */
  checkMultipleConflicts(campoDeportivoId, timeRanges, existingReservations, excludeReservaId) {
    const results = new Map();
    for (const range of timeRanges) {
      const key = this.getTimeRangeKey(range);
      const result = this.checkConflict(campoDeportivoId, range, existingReservations, excludeReservaId);
      results.set(key, result);
    }
    return results;
  }
  /**
   * Check if a puntual reservation conflicts with the given time range
   */
  checkPuntualConflict(timeRange, puntual) {
    const targetDate = this.formatDate(timeRange.date);
    const reservaDate = this.formatDate(new Date(puntual.fechaUso));
    if (targetDate !== reservaDate) {
      return false;
    }
    return this.timesOverlap(timeRange.startTime, timeRange.endTime, puntual.horaInicio, puntual.horaFin);
  }
  /**
   * Check if a recurrent reservation conflicts with the given time range
   */
  checkRecurrentConflict(timeRange, recurrent) {
    const targetDate = timeRange.date;
    const startDate = new Date(recurrent.fechaInicio);
    const endDate = new Date(recurrent.fechaFin);
    if (targetDate < startDate || targetDate > endDate) {
      return false;
    }
    const dayName = this.getDayName(targetDate);
    if (!recurrent.diasSemana || !recurrent.diasSemana.includes(dayName)) {
      return false;
    }
    if (recurrent.tableroDto?.horario) {
      const dayIndex = targetDate.getDay();
      const daySchedule = recurrent.tableroDto.horario[dayIndex];
      if (daySchedule && Array.isArray(daySchedule)) {
        return daySchedule.some(timeSlot => {
          if (typeof timeSlot === 'string' && timeSlot.includes('-')) {
            const [start, end] = timeSlot.split('-').map(t => t.trim());
            return this.timesOverlap(timeRange.startTime, timeRange.endTime, start, end);
          }
          return false;
        });
      }
    }
    return false;
  }
  /**
   * Check if two time ranges overlap
   */
  timesOverlap(start1, end1, start2, end2) {
    const s1 = this.timeToMinutes(start1);
    const e1 = this.timeToMinutes(end1);
    const s2 = this.timeToMinutes(start2);
    const e2 = this.timeToMinutes(end2);
    return s1 < e2 && s2 < e1;
  }
  /**
   * Get available time slots for a specific date
   */
  getAvailableSlots(campoDeportivo, date, slotDuration, existingReservations, openTime = '08:00:00', closeTime = '22:00:00') {
    const availableSlots = [];
    const startMinutes = this.timeToMinutes(openTime);
    const endMinutes = this.timeToMinutes(closeTime);
    for (let minutes = startMinutes; minutes < endMinutes; minutes += slotDuration) {
      const slotStart = this.minutesToTime(minutes);
      const slotEnd = this.minutesToTime(Math.min(minutes + slotDuration, endMinutes));
      const timeRange = {
        date: date,
        startTime: slotStart,
        endTime: slotEnd
      };
      const conflict = this.checkConflict(campoDeportivo.uuid, timeRange, existingReservations);
      if (!conflict.hasConflict) {
        availableSlots.push(timeRange);
      }
    }
    return availableSlots;
  }
  /**
   * Find the next available slot after a specific time
   */
  findNextAvailableSlot(campoDeportivoId, startDate, duration, existingReservations, maxDaysToSearch = 30) {
    const currentDate = new Date(startDate);
    const endDate = new Date(startDate);
    endDate.setDate(endDate.getDate() + maxDaysToSearch);
    while (currentDate <= endDate) {
      const slots = this.getAvailableSlots({
        uuid: campoDeportivoId
      }, new Date(currentDate), duration, existingReservations);
      if (slots.length > 0) {
        return slots[0];
      }
      currentDate.setDate(currentDate.getDate() + 1);
    }
    return null;
  }
  /**
   * Get conflict statistics for a date range
   */
  getConflictStatistics(campoDeportivoId, startDate, endDate, existingReservations) {
    const stats = {
      totalDays: 0,
      daysWithConflicts: 0,
      totalConflicts: 0,
      averageConflictsPerDay: 0
    };
    const currentDate = new Date(startDate);
    while (currentDate <= endDate) {
      stats.totalDays++;
      const dayConflicts = existingReservations.filter(r => {
        if (r.campoDeportivoDto?.uuid !== campoDeportivoId) return false;
        if (!this.BLOCKING_STATES.includes(r.estadoReserva)) return false;
        if (r.reservaPuntualDto) {
          const reservaDate = this.formatDate(new Date(r.reservaPuntualDto.fechaUso));
          const currentDateStr = this.formatDate(currentDate);
          return reservaDate === currentDateStr;
        }
        return false;
      });
      if (dayConflicts.length > 0) {
        stats.daysWithConflicts++;
        stats.totalConflicts += dayConflicts.length;
      }
      currentDate.setDate(currentDate.getDate() + 1);
    }
    stats.averageConflictsPerDay = stats.totalDays > 0 ? stats.totalConflicts / stats.totalDays : 0;
    return stats;
  }
  /**
   * Validate if a reservation can be created
   */
  validateReservation(campoDeportivoId, timeRange, existingReservations, anticipationHours) {
    const errors = [];
    const now = new Date();
    const minReservationTime = anticipationHours ? new Date(now.getTime() + anticipationHours * 60 * 60 * 1000) : undefined;
    const reservationDateTime = this.combineDateAndTime(timeRange.date, timeRange.startTime);
    if (minReservationTime && reservationDateTime < minReservationTime) {
      errors.push(`La reserva debe realizarse con al menos ${anticipationHours} horas de anticipación`);
    }
    const conflict = this.checkConflict(campoDeportivoId, timeRange, existingReservations);
    if (conflict.hasConflict) {
      errors.push(conflict.reason || 'El horario seleccionado tiene conflictos con otras reservas');
    }
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    if (timeRange.date < today) {
      errors.push('No se pueden crear reservas para fechas pasadas');
    }
    return {
      isValid: errors.length === 0,
      errors: errors
    };
  }
  /**
   * Get a user-friendly conflict reason
   */
  getConflictReason(reserva) {
    switch (reserva.estadoReserva) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.SOLICITADA:
        return 'Reserva pendiente de aprobación';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.PENDIENTE:
        return 'Reserva confirmada, pendiente de pago';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.PAGADA:
        return 'Reserva pagada y confirmada';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_0__.EstadoReserva.EN_CURSO:
        return 'Reserva actualmente en uso';
      default:
        return 'Horario ocupado';
    }
  }
  /**
   * Utility: Convert time string to minutes
   */
  timeToMinutes(time) {
    const parts = time.split(':');
    const hours = parseInt(parts[0], 10);
    const minutes = parseInt(parts[1], 10);
    return hours * 60 + minutes;
  }
  /**
   * Utility: Convert minutes to time string
   */
  minutesToTime(minutes) {
    const hours = Math.floor(minutes / 60);
    const mins = minutes % 60;
    return `${hours.toString().padStart(2, '0')}:${mins.toString().padStart(2, '0')}:00`;
  }
  /**
   * Utility: Format date to YYYY-MM-DD
   */
  formatDate(date) {
    return date.toISOString().split('T')[0];
  }
  /**
   * Utility: Get day name in Spanish
   */
  getDayName(date) {
    const days = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    return days[date.getDay()];
  }
  /**
   * Utility: Combine date and time
   */
  combineDateAndTime(date, time) {
    const [hours, minutes] = time.split(':').map(Number);
    const result = new Date(date);
    result.setHours(hours, minutes, 0, 0);
    return result;
  }
  /**
   * Utility: Generate unique key for time range
   */
  getTimeRangeKey(range) {
    return `${this.formatDate(range.date)}_${range.startTime}_${range.endTime}`;
  }
  /**
   * Check if a reservation state is blocking
   */
  isBlockingState(estado) {
    return this.BLOCKING_STATES.includes(estado);
  }
  /**
   * Get all blocking states
   */
  getBlockingStates() {
    return [...this.BLOCKING_STATES];
  }
  static {
    this.ɵfac = function ReservationConflictService_Factory(t) {
      return new (t || ReservationConflictService)();
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: ReservationConflictService,
      factory: ReservationConflictService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

/***/ 21450:
/*!*************************************************************************************!*\
  !*** ./src/app/pages/modals/booking/reservation-form/reservation-form.component.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReservationFormComponent: () => (/* binding */ ReservationFormComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! date-fns */ 28797);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! date-fns */ 86211);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! date-fns */ 45726);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! date-fns */ 33240);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! date-fns */ 55882);
/* harmony import */ var date_fns_locale__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! date-fns/locale */ 9616);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 10819);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 33900);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 52575);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ 91817);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);


















const _c0 = ["searchInput"];
const _c1 = (a0, a1) => ({
  "alert-info": a0,
  "alert-warning": a1
});
function ReservationFormComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 4)(1, "div", 5)(2, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "p", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, "Preparando formulario de reserva...");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_1_small_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "small", 91)(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Error:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFormError(), " ");
  }
}
function ReservationFormComponent_form_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 85)(1, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 88)(4, "h6", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, "Formulario Incompleto");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "p", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "Por favor revise y complete todos los campos requeridos correctamente.");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](8, ReservationFormComponent_form_2_div_1_small_8_Template, 4, 1, "small", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFormError());
  }
}
function ReservationFormComponent_form_2_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" Cap. ", ctx_r1.dataField.capacidadPersonas, " personas ");
  }
}
function ReservationFormComponent_form_2_div_28_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_28_button_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.validateCustomReservationNumber());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.isSubmitting);
  }
}
function ReservationFormComponent_form_2_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_28_button_1_Template, 2, 1, "button", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_2_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ((tmp_2_0 = ctx_r1.reservationForm.get("numeroReserva")) == null ? null : tmp_2_0.value) !== ctx_r1.numeroReserva && ((tmp_2_0 = ctx_r1.reservationForm.get("numeroReserva")) == null ? null : tmp_2_0.valid));
  }
}
function ReservationFormComponent_form_2_span_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ReservationFormComponent_form_2_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 99)(1, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.canEditReservationNumber ? "Editable - Formato: 0010/25" : "Auto-generado por el sistema", " ");
  }
}
function ReservationFormComponent_form_2_div_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("numeroReserva"), " ");
  }
}
function ReservationFormComponent_form_2_div_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 102)(1, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Generando n\u00FAmero... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 104)(1, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, "Duraci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "span", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.formatDuration(ctx_r1.duration));
  }
}
function ReservationFormComponent_form_2_div_40_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("fechaUso"), " ");
  }
}
function ReservationFormComponent_form_2_div_40_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 99)(1, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Fecha previamente seleccionada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_40_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("horaInicio"), " ");
  }
}
function ReservationFormComponent_form_2_div_40_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 99)(1, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Hora previamente seleccionada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_40_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("horaFin"), " ");
  }
}
function ReservationFormComponent_form_2_div_40_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 99)(1, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Hora previamente seleccionada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_40_span_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ReservationFormComponent_form_2_div_40_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("cantidadPersonas"), " ");
  }
}
function ReservationFormComponent_form_2_div_40_div_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 99)(1, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Cantidad previamente definida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 108)(2, "div", 109)(3, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, " Fecha ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "input", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](9, ReservationFormComponent_form_2_div_40_div_9_Template, 2, 1, "div", 68)(10, ReservationFormComponent_form_2_div_40_div_10_Template, 4, 0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 109)(12, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](14, " Hora Inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](16, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](17, "input", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](18, ReservationFormComponent_form_2_div_40_div_18_Template, 2, 1, "div", 68)(19, ReservationFormComponent_form_2_div_40_div_19_Template, 4, 0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](20, "div", 109)(21, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](22, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](23, " Hora Fin ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](25, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](26, "input", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](27, ReservationFormComponent_form_2_div_40_div_27_Template, 2, 1, "div", 68)(28, ReservationFormComponent_form_2_div_40_div_28_Template, 4, 0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](29, "div", 109)(30, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](31, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](32, " Personas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](33, ReservationFormComponent_form_2_div_40_span_33_Template, 2, 0, "span", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](34, "input", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](35, ReservationFormComponent_form_2_div_40_div_35_Template, 2, 1, "div", 68)(36, ReservationFormComponent_form_2_div_40_div_36_Template, 4, 0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("fechaUso"))("bg-light", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("min", ctx_r1.minDate)("max", ctx_r1.maxDate)("disabled", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("fechaUso"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("horaInicio"))("bg-light", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("horaInicio"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("horaFin"))("bg-light", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("horaFin"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("cantidadPersonas"))("bg-light", ctx_r1.shouldDisableScheduleFields && ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("max", ctx_r1.dataField.capacidadPersonas || 100)("disabled", ctx_r1.shouldDisableScheduleFields && ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("cantidadPersonas"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.shouldDisableScheduleFields && ctx_r1.selectedTariff.tipoCobro === "por_persona");
  }
}
function ReservationFormComponent_form_2_div_41_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("fechaInicio"), " ");
  }
}
function ReservationFormComponent_form_2_div_41_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("fechaFin"), " ");
  }
}
function ReservationFormComponent_form_2_div_41_span_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ReservationFormComponent_form_2_div_41_div_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("cantidadPersonas"), " ");
  }
}
function ReservationFormComponent_form_2_div_41_div_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 123)(1, "div", 124)(2, "div", 104)(3, "div", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "div")(6, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "Resumen de Programaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 128)(11, "span", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getRecurrenceSummary(), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.calculateTotalSessions(), " sesiones ");
  }
}
function ReservationFormComponent_form_2_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 108)(2, "div", 109)(3, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, " Fecha Inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "input", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](9, ReservationFormComponent_form_2_div_41_div_9_Template, 2, 1, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 109)(11, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](12, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](13, " Fecha Fin ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](14, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](15, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](16, "input", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](17, ReservationFormComponent_form_2_div_41_div_17_Template, 2, 1, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](18, "div", 121)(19, "label", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](20, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](21, " Personas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](22, ReservationFormComponent_form_2_div_41_span_22_Template, 2, 0, "span", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](23, "input", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](24, ReservationFormComponent_form_2_div_41_div_24_Template, 2, 1, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](25, ReservationFormComponent_form_2_div_41_div_25_Template, 13, 2, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_16_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("fechaInicio"))("bg-light", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("fechaInicio"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("fechaFin"))("bg-light", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.shouldDisableScheduleFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("fechaFin"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("cantidadPersonas"))("bg-light", ctx_r1.shouldDisableScheduleFields && ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("max", ctx_r1.dataField.capacidadPersonas || 100)("disabled", ctx_r1.shouldDisableScheduleFields && ctx_r1.selectedTariff.tipoCobro === "por_persona");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("cantidadPersonas"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ((tmp_16_0 = ctx_r1.reservationForm.get("fechaInicio")) == null ? null : tmp_16_0.value) && ((tmp_16_0 = ctx_r1.reservationForm.get("fechaFin")) == null ? null : tmp_16_0.value) && ((tmp_16_0 = ctx_r1.reservationForm.get("tipoRecurrencia")) == null ? null : tmp_16_0.value));
  }
}
function ReservationFormComponent_form_2_tr_63_div_2_small_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "small", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const concepto_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", concepto_r4.timeRange, " ");
  }
}
function ReservationFormComponent_form_2_tr_63_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 37)(1, "div", 124)(2, "div", 132)(3, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](7, "small", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](9, ReservationFormComponent_form_2_tr_63_div_2_small_9_Template, 3, 1, "small", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 135)(11, "small", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](13, "div", 136)(14, "small", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](16, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const concepto_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](concepto_r4.concepto);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](concepto_r4.description);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", concepto_r4.timeRange);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](concepto_r4.quantity);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("+ ", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind4"](16, 5, concepto_r4.amount, "BOB", "symbol-narrow", "1.2-2"), "");
  }
}
function ReservationFormComponent_form_2_tr_63_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "tr", 46)(1, "td", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](2, ReservationFormComponent_form_2_tr_63_div_2_Template, 17, 10, "div", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r1.getConceptoDetails());
  }
}
function ReservationFormComponent_form_2_div_80_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "input", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "label", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, " Para Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_83_small_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "small", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", ctx_r1.contribuyente.telefono, " ");
  }
}
function ReservationFormComponent_form_2_div_83_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 143)(1, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 88)(4, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "small", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "i", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](9, ReservationFormComponent_form_2_div_83_small_9_Template, 3, 1, "small", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.contribuyente.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", ctx_r1.contribuyente.numeroDocumento, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.contribuyente.telefono);
  }
}
function ReservationFormComponent_form_2_div_84_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "button", 153);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_84_div_1_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.onContribuyenteSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, " Buscar Contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_84_div_2_div_8_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_84_div_2_div_8_button_1_Template_button_click_0_listener() {
      const contrib_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r7).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.onContribuyenteSelected(contrib_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "div", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 88)(4, "strong", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "i", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const contrib_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](contrib_r8.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](contrib_r8.numeroDocumento);
  }
}
function ReservationFormComponent_form_2_div_84_div_2_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_84_div_2_div_8_button_1_Template, 9, 2, "button", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r1.filteredContribuyentes);
  }
}
function ReservationFormComponent_form_2_div_84_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 155)(2, "span", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "input", 158, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("input", function ReservationFormComponent_form_2_div_84_div_2_Template_input_input_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.searchContribuyente($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "button", 159);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_84_div_2_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.clearContribuyenteSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "i", 160);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](8, ReservationFormComponent_form_2_div_84_div_2_div_8_Template, 2, 1, "div", 161);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.filteredContribuyentes.length > 0);
  }
}
function ReservationFormComponent_form_2_div_84_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 143)(2, "div", 167)(3, "div", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "div")(6, "span", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "Seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "small", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](11, "i", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](13, "button", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_84_div_3_Template_button_click_13_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r9);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      ctx_r1.selectedContribuyente = undefined;
      ctx_r1.reservationForm.patchValue({
        contribuyenteDto: null
      });
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.clearContribuyenteSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](14, "i", 160);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.selectedContribuyente.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", ctx_r1.selectedContribuyente.numeroDocumento, " ");
  }
}
function ReservationFormComponent_form_2_div_84_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 171);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("contribuyenteDto"), " ");
  }
}
function ReservationFormComponent_form_2_div_84_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_84_div_1_Template, 5, 0, "div", 149)(2, ReservationFormComponent_form_2_div_84_div_2_Template, 9, 1, "div", 41)(3, ReservationFormComponent_form_2_div_84_div_3_Template, 15, 2, "div", 41)(4, ReservationFormComponent_form_2_div_84_div_4_Template, 2, 1, "div", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.showContribuyenteSearch && !ctx_r1.selectedContribuyente);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.showContribuyenteSearch);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.selectedContribuyente && !ctx_r1.showContribuyenteSearch);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.isFieldInvalid("contribuyenteDto"));
  }
}
function ReservationFormComponent_form_2_div_85_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 173);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "button", 174);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_85_div_1_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r10);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.onOrganizationSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, " Buscar Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
}
function ReservationFormComponent_form_2_div_85_div_2_div_7_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_85_div_2_div_7_button_1_Template_button_click_0_listener() {
      const org_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r12).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.onOrganizationSelected(org_r13));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "div", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 176);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 88)(4, "strong", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "i", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const org_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](org_r13.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](org_r13.tipoOrganizacion);
  }
}
function ReservationFormComponent_form_2_div_85_div_2_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_85_div_2_div_7_button_1_Template, 9, 2, "button", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r1.organizationsList);
  }
}
function ReservationFormComponent_form_2_div_85_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 155)(2, "span", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "input", 175);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("input", function ReservationFormComponent_form_2_div_85_div_2_Template_input_input_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r11);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.searchOrganization($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "button", 159);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_85_div_2_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r11);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.clearOrganizationSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "i", 160);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](7, ReservationFormComponent_form_2_div_85_div_2_div_7_Template, 2, 1, "div", 161);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.organizationsList.length > 0);
  }
}
function ReservationFormComponent_form_2_div_85_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 177)(2, "div", 167)(3, "div", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 178);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "div")(6, "span", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](7, "Organizaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "button", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ReservationFormComponent_form_2_div_85_div_3_Template_button_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r14);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.clearOrganizationSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "i", 160);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.selectedOrganization.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.selectedOrganization.tipoOrganizacion);
  }
}
function ReservationFormComponent_form_2_div_85_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 172);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_85_div_1_Template, 5, 0, "div", 149)(2, ReservationFormComponent_form_2_div_85_div_2_Template, 8, 1, "div", 41)(3, ReservationFormComponent_form_2_div_85_div_3_Template, 14, 2, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.showOrganizationSearch && !ctx_r1.selectedOrganization);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.showOrganizationSearch);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.selectedOrganization && !ctx_r1.showOrganizationSearch);
  }
}
function ReservationFormComponent_form_2_div_86_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "small", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFreeReservationTitle(), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFreeReservationDescription(), " ");
  }
}
function ReservationFormComponent_form_2_div_86_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "strong", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "small", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getPaidReservationTitle(), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getPaidReservationDescription(), " ");
  }
}
function ReservationFormComponent_form_2_div_86_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 37)(1, "div", 185)(2, "input", 186);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("change", function ReservationFormComponent_form_2_div_86_div_7_Template_input_change_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r15);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.toggleFreeReservation());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "label", 187);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "i", 188);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, " Utilizar beneficio de deportista elite (reserva gratuita) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("checked", ctx_r1.isFreeReservation);
  }
}
function ReservationFormComponent_form_2_div_86_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 180)(1, "div", 181)(2, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 182);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](5, ReservationFormComponent_form_2_div_86_div_5_Template, 5, 2, "div", 41)(6, ReservationFormComponent_form_2_div_86_div_6_Template, 5, 2, "div", 41)(7, ReservationFormComponent_form_2_div_86_div_7_Template, 6, 1, "div", 183);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction2"](6, _c1, ctx_r1.isFreeReservation, !ctx_r1.isFreeReservation && (ctx_r1.selectedOrganization || (ctx_r1.selectedContribuyente == null ? null : ctx_r1.selectedContribuyente.esDeportistaElite))));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassMap"](ctx_r1.isFreeReservation ? "ri-gift-line" : "ri-information-line");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.isFreeReservation);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.isFreeReservation);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.showFreeReservationOption && (ctx_r1.selectedContribuyente == null ? null : ctx_r1.selectedContribuyente.esDeportistaElite) && !(ctx_r1.selectedOrganization == null ? null : ctx_r1.selectedOrganization.permiteReservasGratuitas));
  }
}
function ReservationFormComponent_form_2_div_95_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("observaciones"), " ");
  }
}
function ReservationFormComponent_form_2_div_112_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.getFieldError("aceptaTerminos"), " ");
  }
}
function ReservationFormComponent_form_2_li_127_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "Las reservas requieren ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, " de anticipaci\u00F3n m\u00EDnima");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.anticipationTimeDisplay);
  }
}
function ReservationFormComponent_form_2_span_131_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 189);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Confirmar Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ReservationFormComponent_form_2_span_132_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "span", 190);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Procesando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ReservationFormComponent_form_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "form", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngSubmit", function ReservationFormComponent_form_2_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r1.onSubmit());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_form_2_div_1_Template, 9, 1, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "div", 10)(3, "div", 11)(4, "div", 12)(5, "div", 13)(6, "h6", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](9, "p", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](10, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "div", 18)(13, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](14, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](16, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](17, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](19, ReservationFormComponent_form_2_span_19_Template, 3, 1, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](20, "div", 24)(21, "label", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](22, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](23, " N\u00FAmero de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "div", 27)(25, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](26, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](27, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](28, ReservationFormComponent_form_2_div_28_Template, 2, 1, "div", 31)(29, ReservationFormComponent_form_2_span_29_Template, 2, 0, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](30, ReservationFormComponent_form_2_div_30_Template, 4, 1, "div", 33)(31, ReservationFormComponent_form_2_div_31_Template, 2, 1, "div", 34)(32, ReservationFormComponent_form_2_div_32_Template, 4, 0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](33, "hr", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](34, "div", 37)(35, "div", 12)(36, "h6", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](37, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](39, ReservationFormComponent_form_2_div_39_Template, 7, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](40, ReservationFormComponent_form_2_div_40_Template, 37, 32, "div", 41)(41, ReservationFormComponent_form_2_div_41_Template, 26, 21, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](42, "hr", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](43, "div", 37)(44, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](45, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](46, " C\u00E1lculo de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](47, "div", 44)(48, "table", 45)(49, "tbody")(50, "tr", 46)(51, "td", 47)(52, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](53, "Tarifa Base");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](54, "small", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](56, "td", 49)(57, "span", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](58);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](59, "td", 51)(60, "span", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](61);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](62, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](63, ReservationFormComponent_form_2_tr_63_Template, 3, 1, "tr", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](64, "tr", 53)(65, "td", 54)(66, "h5", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](67, "TOTAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](68, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](69, "Incluye tasa municipal");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](70, "td", 56)(71, "h4", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](72);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](73, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](74, "hr", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](75, "div", 37)(76, "div", 58)(77, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](78, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](79, " Solicitante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](80, ReservationFormComponent_form_2_div_80_Template, 5, 0, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](81, "div", 12)(82, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](83, ReservationFormComponent_form_2_div_83_Template, 10, 3, "div", 61)(84, ReservationFormComponent_form_2_div_84_Template, 5, 4, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](85, ReservationFormComponent_form_2_div_85_Template, 4, 3, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](86, ReservationFormComponent_form_2_div_86_Template, 8, 9, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](87, "hr", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](88, "div", 37)(89, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](90, "i", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](91, " Observaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](92, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](93, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](94, "textarea", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](95, ReservationFormComponent_form_2_div_95_Template, 2, 1, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](96, "div", 69)(97, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](98, "M\u00EDnimo 10, m\u00E1ximo 500 caracteres");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](99, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](100);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](101, "div", 37)(102, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](103, "input", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](104, "label", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](105, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](106, " Acepto los ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](107, "a", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](108, "t\u00E9rminos y condiciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](109, " y autorizo al GAMQ a generar la tasa municipal correspondiente. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](110, "span", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](111, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](112, ReservationFormComponent_form_2_div_112_Template, 2, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](113, "div", 76)(114, "div", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](115, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](116, "div", 79)(117, "strong", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](118, "Informaci\u00F3n Importante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](119, "ul", 81)(120, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](121, "Al confirmar se generar\u00E1 la tasa municipal autom\u00E1ticamente");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](122, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](123, "Tendr\u00E1 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](124, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](125);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](126, " para realizar el pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](127, ReservationFormComponent_form_2_li_127_Template, 5, 1, "li", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](128, "div", 82)(129, "div", 83)(130, "button", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](131, ReservationFormComponent_form_2_span_131_Template, 3, 0, "span", 41)(132, ReservationFormComponent_form_2_span_132_Template, 3, 0, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    let tmp_26_0;
    let tmp_29_0;
    let tmp_33_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r1.reservationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.reservationForm.invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.dataComplejo.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.dataField.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.dataField.superficieDto.descripcion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" Categor\u00EDa ", ctx_r1.dataField.categoria, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.dataField.capacidadPersonas);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("numeroReserva"))("bg-light", !ctx_r1.canEditReservationNumber);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("readonly", !ctx_r1.canEditReservationNumber);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.canEditReservationNumber);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.canEditReservationNumber);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.isFieldInvalid("numeroReserva"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.isFieldInvalid("numeroReserva"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.isSubmitting);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ctx_r1.bookingType === "puntual" ? "Fecha y Horario" : "Programaci\u00F3n Recurrente", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.bookingType === "puntual" && ctx_r1.duration > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.bookingType === "puntual");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.bookingType === "recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate2"]("", ctx_r1.getTariffDescription(), " - ", ctx_r1.getTarifaCategories(), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx_r1.getBaseQuantity());
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind4"](62, 46, ctx_r1.getBasePrice(), "BOB", "symbol-narrow", "1.2-2"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.hasConceptos());
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind4"](73, 51, ctx_r1.calculatedPrice, "BOB", "symbol-narrow", "1.2-2"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.canSelectOrganization);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassMap"](((tmp_26_0 = ctx_r1.reservationForm.get("esParaOrganizacion")) == null ? null : tmp_26_0.value) ? "col-md-6" : "col-12");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.contribuyente);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.contribuyente);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", (tmp_29_0 = ctx_r1.reservationForm.get("esParaOrganizacion")) == null ? null : tmp_29_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.showFreeReservationOption || ctx_r1.selectedOrganization);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("observaciones"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("observaciones"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", ((tmp_33_0 = ctx_r1.reservationForm.get("observaciones")) == null ? null : tmp_33_0.value == null ? null : tmp_33_0.value.length) || 0, " / 500 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵclassProp"]("is-invalid", ctx_r1.isFieldInvalid("aceptaTerminos"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getFieldError("aceptaTerminos"));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"]("", ctx_r1.validHours, " horas");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.anticipationTimeDisplay);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r1.isSubmitting);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r1.isSubmitting);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.isSubmitting);
  }
}
class ReservationFormComponent {
  constructor(fb, reservaService, ruatService, contribuyenteService, organizationService) {
    this.fb = fb;
    this.reservaService = reservaService;
    this.ruatService = ruatService;
    this.contribuyenteService = contribuyenteService;
    this.organizationService = organizationService;
    this.reservationsList = [];
    this.systemConfigs = {};
    this.userRole = 'Contribuyente';
    this.reservationCompleted = new _angular_core__WEBPACK_IMPORTED_MODULE_8__.EventEmitter();
    this.goBack = new _angular_core__WEBPACK_IMPORTED_MODULE_8__.EventEmitter();
    this.submitted = false;
    this.isSubmitting = false;
    this.calculatedPrice = 0;
    this.priceDetails = [];
    this.numeroReserva = '';
    this.currentStep = 1;
    this.totalSteps = 3;
    this.showContribuyenteSearch = false;
    this.showOrganizationSearch = false;
    this.contribuyentesList = [];
    this.organizationsList = [];
    this.filteredContribuyentes = [];
    this.conceptos = [];
    this.businessHours = null;
    this.requiresValidation = this.actionType === 'book' ? false : true;
    this.isFreeReservation = false;
    this.freeReservationReason = '';
    this.showFreeReservationOption = false;
    this.showOrganizationToggle = false;
    this.minDate = this.safeFormatDate(new Date(), 'yyyy-MM-dd');
    this.maxDate = this.safeFormatDate((0,date_fns__WEBPACK_IMPORTED_MODULE_9__.addDays)(new Date(), 30), 'yyyy-MM-dd');
    this.totalSessions = 0;
    this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_10__.Subject();
    this.formInitialized = false;
  }
  get enableSolicitudOrganizationReservation() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_ORGANIZACIONES]?.valorBoolean ?? false;
  }
  get enableOrganizationReservation() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_RESERVAS_ORGANIZACIONES]?.valorBoolean ?? false;
  }
  get enableSolicitudEventsBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_EVENTOS]?.valorBoolean ?? false;
  }
  get enableEventsBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_RESERVAS_EVENTOS]?.valorBoolean ?? false;
  }
  get enableSolicitudRecurrentBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get enableRecurrentBooking() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HABILITAR_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get ruatIntentosReintento() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.MAXIMO_INTENTOS_REINTENTO_RESERVAS]?.valorNumerico;
  }
  get validHours() {
    return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_VALIDACION_PAGO]?.valorNumerico || 4;
  }
  get anticipationHours() {
    if (!this.selectedTariff) {
      return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
    switch (this.selectedTariff.tipoCobro) {
      case 'por_evento':
        const diasEventos = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.DIAS_ANTICIPACION_EVENTOS]?.valorNumerico;
        return diasEventos ? diasEventos * 24 : undefined;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RECURRENTES]?.valorNumerico;
      default:
        return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
  }
  get anticipationTimeDisplay() {
    if (!this.selectedTariff) {
      const horasPuntuales = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
      const hours = horasPuntuales ?? '';
      return `${hours} horas`;
    }
    switch (this.selectedTariff.tipoCobro) {
      case 'por_evento':
        const diasEventos = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.DIAS_ANTICIPACION_EVENTOS]?.valorNumerico;
        const eventDays = diasEventos ?? '';
        return `${eventDays} días`;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        const diasRecurrentes = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RECURRENTES]?.valorNumerico;
        const recurrentDays = diasRecurrentes ?? '';
        return `${recurrentDays} horas`;
      default:
        const horasPuntuales = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
        const hours = horasPuntuales ?? '';
        return `${hours} horas`;
    }
  }
  get shouldDisableScheduleFields() {
    if (!this.selectedTariff) return false;
    return this.selectedTariff.tipoCobro === 'por_hora' || this.selectedTariff.tipoCobro === 'por_persona';
  }
  ngOnInit() {
    // console.log("CONFIGURACIONES O REGLAS DEL SISTEMA SEGUN USURAIO: ",this.systemConfigs)
    // console.log(this.bookingType, this.actionType);
    // console.log("COMPLEJO ", this.dataComplejo);
    // console.log("CAMPO ", this.dataField);
    // console.log("TARIFA ", this.selectedTariff);
    // console.log("horario o horarios ", this.selectedSchedule, this.recurrentSchedule);
    // console.log("RESERVAS HECHAS EN CAMPO ", this.reservationsList);
    this.initializeUserContext();
    this.generateReservationNumber();
    this.initializeForm();
    this.checkFreeReservationEligibility();
    this.checkOrganizationToggleEligibility();
  }
  ngOnChanges(changes) {
    if (changes['contribuyente'] && this.contribuyente) {
      this.selectedContribuyente = this.contribuyente;
      if (this.formInitialized) {
        this.updateFormWithContribuyente();
        this.checkFreeReservationEligibility();
        this.checkOrganizationToggleEligibility();
      }
    }
    if ((changes['selectedTariff'] || changes['selectedSchedule'] || changes['recurrentSchedule'] || changes['dataField'] || changes['systemConfigs']) && this.formInitialized) {
      this.calculateValidationRequirement();
      this.calculatePrice();
      this.checkFreeReservationEligibility();
    }
  }
  ngOnDestroy() {
    this.destroy$.next();
    this.destroy$.complete();
  }
  initializeUserContext() {
    if (!this.contribuyente) {
      this.loadContribuyentes();
      this.loadOrganizations();
    } else {
      this.selectedContribuyente = this.contribuyente;
      if (this.userRole === 'Representante') {
        this.organizationsList = this.contribuyente.organizacionesRepresentadas?.length ? this.contribuyente.organizacionesRepresentadas : [];
      }
    }
  }
  checkOrganizationToggleEligibility() {
    if (this.userRole === 'Admin' || this.userRole === 'Encargado') {
      this.showOrganizationToggle = true;
      this.organizationsList = this.selectedContribuyente?.organizacionesRepresentadas || [];
    } else if (this.userRole === 'Representante') {
      this.showOrganizationToggle = true;
    } else if (this.selectedContribuyente?.organizacionesRepresentadas?.length) {
      this.organizationsList = this.selectedContribuyente.organizacionesRepresentadas;
      this.showOrganizationToggle = true;
    } else {
      this.showOrganizationToggle = false;
    }
  }
  checkFreeReservationEligibility() {
    if (!this.selectedContribuyente && !this.selectedOrganization) {
      this.showFreeReservationOption = false;
      this.isFreeReservation = false;
      return;
    }
    const formValue = this.reservationForm?.getRawValue();
    const selectedOrganization = formValue?.organizacionDto || this.selectedOrganization;
    const isOrganizationFreeEligible = selectedOrganization?.permiteReservasGratuitas || selectedOrganization?.tipoOrganizacion === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL && selectedOrganization?.permiteReservasGratuitas;
    const isEliteAthlete = this.selectedContribuyente?.esDeportistaElite;
    this.showFreeReservationOption = isOrganizationFreeEligible || isEliteAthlete;
    if (this.showFreeReservationOption) {
      if (isOrganizationFreeEligible) {
        this.isFreeReservation = true;
        this.setFreeReservationReason(selectedOrganization);
      } else if (isEliteAthlete && !selectedOrganization) {
        this.freeReservationReason = 'DEPORTISTA_ELITE';
      } else if (isEliteAthlete && selectedOrganization && !isOrganizationFreeEligible) {
        this.isFreeReservation = false;
        this.freeReservationReason = '';
        this.showFreeReservationOption = false;
      }
    } else {
      this.isFreeReservation = false;
      this.freeReservationReason = '';
    }
    this.calculatePrice();
  }
  setFreeReservationReason(organization) {
    if (organization) {
      if (organization.tipoOrganizacion === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL) {
        this.freeReservationReason = src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL;
      } else {
        this.freeReservationReason = 'ORGANIZACION';
      }
    } else if (this.selectedContribuyente?.esDeportistaElite) {
      this.freeReservationReason = 'DEPORTISTA_ELITE';
    }
  }
  initializeForm() {
    const initialDuracion = this.bookingType === 'puntual' && this.selectedSchedule ? this.calculateDurationFromTimes(this.selectedSchedule.start, this.selectedSchedule.end) : 1;
    const initialFechaUso = this.bookingType === 'puntual' && this.selectedSchedule?.date ? this.safeFormatDate(this.selectedSchedule.date, 'yyyy-MM-dd') : '';
    const initialHoraInicio = this.bookingType === 'puntual' && this.selectedSchedule?.start ? this.selectedSchedule.start.slice(0, 5) : '';
    const initialHoraFin = this.bookingType === 'puntual' && this.selectedSchedule?.end ? this.selectedSchedule.end.slice(0, 5) : '';
    const recurrentFechaInicio = this.recurrentSchedule?.fechaInicio ? this.safeFormatDate(this.recurrentSchedule.fechaInicio, 'yyyy-MM-dd') : '';
    const recurrentFechaFin = this.recurrentSchedule?.fechaFin ? this.safeFormatDate(this.recurrentSchedule.fechaFin, 'yyyy-MM-dd') : '';
    this.calculateValidationRequirement();
    const initialEstadoValidacion = this.requiresValidation ? src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.PENDIENTE : src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA;
    const initialEstadoReserva = this.requiresValidation ? src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA : src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE;
    this.reservationForm = this.fb.group({
      fechaReserva: [new Date()],
      tipoReserva: [this.bookingType],
      estadoValidacion: [{
        value: initialEstadoValidacion,
        disabled: true
      }],
      estadoReserva: [{
        value: initialEstadoReserva,
        disabled: true
      }],
      numeroReserva: [{
        value: this.numeroReserva,
        disabled: this.userRole === 'Contribuyente' || this.userRole === 'Representante'
      }, [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.required, this.reservationNumberFormatValidator()]],
      contribuyenteDto: [this.selectedContribuyente || null, [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.required]],
      esParaOrganizacion: [false],
      organizacionDto: [null],
      fechaUso: [{
        value: initialFechaUso,
        disabled: this.shouldDisableScheduleFields
      }, [this.futureDateValidator()]],
      horaInicio: [{
        value: initialHoraInicio,
        disabled: this.shouldDisableScheduleFields
      }],
      horaFin: [{
        value: initialHoraFin,
        disabled: this.shouldDisableScheduleFields
      }],
      duracionHoras: [{
        value: initialDuracion,
        disabled: true
      }],
      cantidadPersonas: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.min(1), _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.max(this.dataField?.capacidadPersonas || 100)]],
      tipoRecurrencia: [{
        value: this.recurrentSchedule?.tipoRecurrencia || '',
        disabled: true
      }],
      fechaInicio: [{
        value: recurrentFechaInicio,
        disabled: true
      }],
      fechaFin: [{
        value: recurrentFechaFin,
        disabled: true
      }],
      diasSemana: [{
        value: this.recurrentSchedule?.diasSemana || '',
        disabled: true
      }],
      cantidadSesiones: [{
        value: this.recurrentSchedule?.cantidadSesiones || 0,
        disabled: true
      }],
      duracionSesionHoras: [{
        value: this.recurrentSchedule?.duracionSesionHoras || 0,
        disabled: true
      }],
      montoTotal: [{
        value: 0,
        disabled: true
      }, [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.min(0.01)]],
      categoria: [{
        value: this.getTarifaCategories(),
        disabled: true
      }],
      superficie: [{
        value: this.dataField?.superficieDto?.descripcion || '',
        disabled: true
      }],
      observaciones: ['Reserva de Cancha Deportiva GAMQ', [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.minLength(10), _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.maxLength(500)]],
      aceptaTerminos: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.requiredTrue]],
      esReservaGratuita: [this.isFreeReservation],
      motivoGratuidad: [this.freeReservationReason]
    }, {
      validators: [this.reservationValidator.bind(this), this.entityValidator.bind(this), this.tariffSpecificValidator.bind(this), this.timeRangeValidator(), this.anticipationValidator()]
    });
    this.formInitialized = true;
    this.setupConditionalValidators();
    this.calculatePrice();
  }
  updateFormWithContribuyente() {
    if (this.reservationForm && this.selectedContribuyente) {
      this.reservationForm.patchValue({
        contribuyenteDto: this.selectedContribuyente
      });
      this.calculateValidationRequirement();
      this.checkFreeReservationEligibility();
      this.checkOrganizationToggleEligibility();
    }
  }
  generateReservationNumber() {
    this.reservaService.previewNumeroReserva(this.bookingType).subscribe({
      next: response => {
        this.numeroReserva = response.payload;
        if (this.reservationForm) {
          const numeroReservaDisabled = this.userRole === 'Contribuyente' || this.userRole === 'Representante';
          this.reservationForm.patchValue({
            numeroReserva: this.numeroReserva
          });
          const numeroReservaControl = this.reservationForm.get('numeroReserva');
          if (numeroReservaControl) {
            if (numeroReservaDisabled) {
              numeroReservaControl.disable();
            } else {
              numeroReservaControl.enable();
            }
          }
        }
      },
      error: error => {
        this.generateFallbackReservationNumber();
      }
    });
  }
  generateFallbackReservationNumber() {
    const timestamp = new Date().getTime().toString().slice(-6);
    const random = Math.floor(Math.random() * 1000).toString().padStart(3, '0');
    const prefix = this.bookingType === 'puntual' ? 'P' : 'R';
    this.numeroReserva = `${prefix}-${timestamp}-${random}`;
    if (this.reservationForm) {
      this.reservationForm.patchValue({
        numeroReserva: this.numeroReserva
      });
    }
  }
  reservationNumberFormatValidator() {
    return control => {
      const value = control.value;
      if (!value) {
        return null;
      }
      // Updated regex to match both formats
      // P-0010/25 or R-0010/25
      const formatRegex = /^[PR]-\d{4}\/\d{2}$/;
      if (!formatRegex.test(value)) {
        return {
          invalidFormat: 'El formato debe ser: P-0010/25 para puntuales o R-0010/25 para recurrentes'
        };
      }
      // Optional: Validate that prefix matches booking type
      const prefix = value.charAt(0);
      if (prefix !== 'P' && this.bookingType === 'puntual') {
        return {
          invalidPrefix: 'Las reservas puntuales deben comenzar con P-'
        };
      }
      if (prefix !== 'R' && this.bookingType === 'recurrente') {
        return {
          invalidPrefix: 'Las reservas recurrentes deben comenzar con R-'
        };
      }
      return null;
    };
  }
  validateCustomReservationNumber() {
    const customNumber = this.reservationForm?.get('numeroReserva')?.value;
    if (!customNumber) {
      return;
    }
    const formatRegex = /^[PR]-\d{4}\/\d{2}$/;
    if (!formatRegex.test(customNumber)) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
        title: 'Formato inválido',
        text: 'El número de reserva debe tener el formato: P-0010/25 para puntuales o R-0010/25 para recurrentes',
        icon: 'error',
        confirmButtonText: 'Entendido'
      });
      return;
    }
    this.reservaService.validateNumeroReserva(customNumber).subscribe({
      next: response => {
        if (response.valid) {
          this.numeroReserva = customNumber;
          sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
            title: 'Número válido',
            text: 'El número de reserva está disponible',
            icon: 'success',
            confirmButtonText: 'Aceptar'
          });
        } else {
          sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
            title: 'Número no disponible',
            text: response.message || 'Este número de reserva ya está en uso',
            icon: 'warning',
            confirmButtonText: 'Entendido'
          });
          this.reservationForm?.patchValue({
            numeroReserva: this.numeroReserva
          });
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          title: 'Error de validación',
          text: 'No se pudo validar el número de reserva. Intente con otro número.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  calculateValidationRequirement() {
    if (!this.dataField || !this.selectedContribuyente) {
      this.requiresValidation = true;
      return;
    }
    const formValue = this.reservationForm?.getRawValue();
    const selectedOrganization = formValue?.organizacionDto;
    if (this.isFreeReservation && this.showFreeReservationOption) {
      this.requiresValidation = false;
      return;
    }
    if (selectedOrganization?.permiteReservasGratuitas) {
      this.requiresValidation = false;
      return;
    }
    if (this.userRole === 'Admin' || this.userRole === 'Encargado') {
      this.requiresValidation = false;
      return;
    } else if (this.actionType === 'book') {
      this.requiresValidation = false;
    }
    if (this.selectedContribuyente.puedeReservarGratis && this.dataField.accesoLibre) {
      this.requiresValidation = false;
      return;
    }
    if (!this.dataField.requiereAprobacion) {
      this.requiresValidation = false;
      return;
    }
    if (this.bookingType === 'puntual') {
      let duration = 0;
      let personas = 1;
      if (this.selectedSchedule) {
        duration = this.calculateDurationFromTimes(this.selectedSchedule.start, this.selectedSchedule.end);
      } else if (this.reservationForm) {
        const horaInicio = this.reservationForm.get('horaInicio')?.value;
        const horaFin = this.reservationForm.get('horaFin')?.value;
        if (horaInicio && horaFin) {
          duration = this.calculateDurationFromTimes(horaInicio, horaFin);
        }
        personas = this.reservationForm.get('cantidadPersonas')?.value || 1;
      }
      if (this.dataField.maxDuracionAutoAprobacion && duration <= this.dataField.maxDuracionAutoAprobacion) {
        this.requiresValidation = false;
        return;
      }
      if (this.dataField.maxPersonasAutoAprobacion && personas <= this.dataField.maxPersonasAutoAprobacion) {
        this.requiresValidation = false;
        return;
      }
    }
    this.requiresValidation = true;
  }
  setupConditionalValidators() {
    if (!this.reservationForm) return;
    if (this.userRole === 'Contribuyente') {
      this.reservationForm.get('esParaOrganizacion')?.disable();
    }
    this.reservationForm.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(() => {
      this.calculatePrice();
      this.calculateValidationRequirement();
      this.checkFreeReservationEligibility();
    });
    this.reservationForm.get('esParaOrganizacion')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(esParaOrganizacion => {
      if (esParaOrganizacion && this.showOrganizationToggle) {
        this.showOrganizationSearch = true;
        this.loadOrganizations();
      } else {
        this.showOrganizationSearch = false;
        this.selectedOrganization = undefined;
        this.reservationForm.patchValue({
          organizacionDto: null
        });
      }
      this.checkFreeReservationEligibility();
    });
    this.reservationForm.get('esReservaGratuita')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(isFree => {
      this.isFreeReservation = isFree;
      this.calculatePrice();
    });
    this.reservationForm.get('organizacionDto')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(organization => {
      this.selectedOrganization = organization;
      this.checkFreeReservationEligibility();
    });
    this.reservationForm.get('horaInicio')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(() => {
      this.updateDuration();
    });
    this.reservationForm.get('horaFin')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(() => {
      this.updateDuration();
    });
    if (this.userRole !== 'Contribuyente') {
      this.reservationForm.get('numeroReserva')?.valueChanges.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.debounceTime)(500), (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this.destroy$)).subscribe(newValue => {
        if (newValue && newValue !== this.numeroReserva) {
          const formatRegex = /^\d{4}\/\d{2}$/;
          if (formatRegex.test(newValue)) {
            this.validateCustomReservationNumber();
          }
        }
      });
    }
  }
  updateDuration() {
    if (this.bookingType === 'puntual' && this.reservationForm) {
      const horaInicio = this.reservationForm.get('horaInicio')?.value;
      const horaFin = this.reservationForm.get('horaFin')?.value;
      if (horaInicio && horaFin) {
        const duration = this.calculateDurationFromTimes(horaInicio, horaFin);
        this.reservationForm.patchValue({
          duracionHoras: duration
        });
      }
    }
  }
  safeFormatDate(date, formatStr) {
    if (!date) return '';
    try {
      const parsedDate = typeof date === 'string' ? new Date(date) : date;
      return (0,date_fns__WEBPACK_IMPORTED_MODULE_15__.isValid)(parsedDate) ? (0,date_fns__WEBPACK_IMPORTED_MODULE_16__.format)(parsedDate, formatStr) : '';
    } catch (error) {
      console.error('Error formatting date:', error);
      return '';
    }
  }
  safeParseDate(dateString) {
    if (!dateString) return null;
    try {
      const date = new Date(dateString);
      return (0,date_fns__WEBPACK_IMPORTED_MODULE_15__.isValid)(date) ? date : null;
    } catch (error) {
      console.error('Error parsing date:', error);
      return null;
    }
  }
  safeCalculateMonthsDuration(startDate, endDate) {
    try {
      const start = this.safeParseDate(startDate);
      const end = this.safeParseDate(endDate);
      if (!start || !end) return 1;
      const months = (end.getFullYear() - start.getFullYear()) * 12 + (end.getMonth() - start.getMonth());
      return Math.max(1, months);
    } catch (error) {
      console.error('Error calculating months duration:', error);
      return 1;
    }
  }
  reservationValidator(control) {
    const errors = {};
    const form = control;
    const cantidadPersonas = form.get('cantidadPersonas')?.value;
    const campoCapacity = this.dataField?.capacidadPersonas;
    if (campoCapacity && cantidadPersonas > campoCapacity) {
      errors['capacityExceeded'] = {
        max: campoCapacity,
        actual: cantidadPersonas
      };
    }
    if (this.bookingType === 'recurrente' && this.userRole === 'Contribuyente') {
      errors['recurrentNotAllowed'] = 'Los contribuyentes no pueden hacer reservas recurrentes';
    }
    return Object.keys(errors).length ? errors : null;
  }
  entityValidator(control) {
    const errors = {};
    const form = control;
    const esParaOrganizacion = form.get('esParaOrganizacion')?.value;
    const organizacionDto = form.get('organizacionDto')?.value;
    const contribuyenteDto = form.get('contribuyenteDto')?.value;
    if (!contribuyenteDto) {
      errors['contribuyenteRequired'] = 'Debe seleccionar un contribuyente';
    }
    if (esParaOrganizacion && !organizacionDto) {
      errors['organizacionRequired'] = 'Debe seleccionar una organización';
    }
    return Object.keys(errors).length ? errors : null;
  }
  tariffSpecificValidator(control) {
    const errors = {};
    const form = control;
    if (!this.selectedTariff) return null;
    const cantidadPersonas = form.get('cantidadPersonas')?.value;
    switch (this.selectedTariff.tipoCobro) {
      case 'por_persona':
        if (!cantidadPersonas || cantidadPersonas < 1) {
          errors['cantidadPersonasRequired'] = 'La cantidad de personas es requerida para tarifas por persona';
        }
        break;
      case 'por_evento':
      case 'por_hora':
        if (cantidadPersonas && cantidadPersonas < 1) {
          errors['invalidPersonCount'] = 'La cantidad de personas debe ser mayor a 0';
        }
        break;
    }
    return Object.keys(errors).length ? errors : null;
  }
  timeRangeValidator() {
    return formGroup => {
      if (this.bookingType === 'recurrente') return null;
      const horaInicio = formGroup.get('horaInicio')?.value;
      const horaFin = formGroup.get('horaFin')?.value;
      if (!horaInicio || !horaFin) return null;
      const startTime = this.timeToMinutes(horaInicio);
      const endTime = this.timeToMinutes(horaFin);
      if (startTime >= endTime) {
        return {
          timeRange: 'La hora de fin debe ser posterior a la hora de inicio'
        };
      }
      if (endTime - startTime < 30) {
        return {
          minimumDuration: 'La duración mínima es de 30 minutos'
        };
      }
      return null;
    };
  }
  futureDateValidator() {
    return control => {
      if (!control.value) return null;
      const [year, month, day] = control.value.split('-').map(Number);
      const selectedDate = new Date(year, month - 1, day);
      if (!(0,date_fns__WEBPACK_IMPORTED_MODULE_15__.isValid)(selectedDate)) return {
        invalidDate: true
      };
      const today = (0,date_fns__WEBPACK_IMPORTED_MODULE_17__.startOfDay)(new Date());
      const selectedDay = (0,date_fns__WEBPACK_IMPORTED_MODULE_17__.startOfDay)(selectedDate);
      return (0,date_fns__WEBPACK_IMPORTED_MODULE_18__.isBefore)(selectedDay, today) ? {
        pastDate: 'La fecha no puede ser anterior a hoy'
      } : null;
    };
  }
  anticipationValidator() {
    return formGroup => {
      if (this.bookingType === 'recurrente') return null;
      const fechaUso = formGroup.get('fechaUso')?.value;
      const horaInicio = formGroup.get('horaInicio')?.value;
      if (!fechaUso || !horaInicio) return null;
      const [year, month, day] = fechaUso.split('-').map(Number);
      const [hours, minutes] = horaInicio.split(':').map(Number);
      const selectedDateTime = new Date(year, month - 1, day, hours, minutes, 0);
      if (!(0,date_fns__WEBPACK_IMPORTED_MODULE_15__.isValid)(selectedDateTime)) return null;
      const now = new Date();
      const minAllowedDateTime = this.anticipationHours ? new Date(now.getTime() + this.anticipationHours * 60 * 60 * 1000) : undefined;
      if (minAllowedDateTime && selectedDateTime < minAllowedDateTime) {
        return {
          anticipationRequired: `Las reservas requieren ${this.anticipationTimeDisplay} de anticipación mínima. La reserva más temprana posible es el ${this.formatMinAllowedDateTime(minAllowedDateTime)}`
        };
      }
      return null;
    };
  }
  formatMinAllowedDateTime(date) {
    return (0,date_fns__WEBPACK_IMPORTED_MODULE_16__.format)(date, "dd/MM/yyyy 'a las' HH:mm", {
      locale: date_fns_locale__WEBPACK_IMPORTED_MODULE_19__.es
    });
  }
  calculatePrice() {
    const formValue = this.reservationForm?.getRawValue();
    const selectedOrganization = formValue?.organizacionDto;
    const isFreeReservationActive = this.isFreeReservation && this.showFreeReservationOption;
    if (isFreeReservationActive) {
      this.calculatedPrice = 0;
      this.priceDetails = [this.getFreeReservationDescription()];
      if (this.reservationForm) {
        this.reservationForm.patchValue({
          montoTotal: 0,
          motivoGratuidad: this.freeReservationReason,
          esReservaGratuita: true
        }, {
          emitEvent: false
        });
      }
      return;
    }
    if (!this.selectedTariff || !this.reservationForm) {
      this.calculatedPrice = 0;
      this.priceDetails = [];
      if (this.reservationForm) {
        this.reservationForm.patchValue({
          montoTotal: 0
        }, {
          emitEvent: false
        });
      }
      return;
    }
    const montoBase = this.selectedTariff.precioBase || 0;
    let total = 0;
    let detalles = [];
    switch (this.selectedTariff.tipoCobro) {
      case 'por_hora':
        const horas = formValue.duracionHoras || 1;
        total = montoBase * horas;
        detalles.push(`${horas.toFixed(1)} hora(s) × Bs. ${montoBase.toFixed(2)}`);
        break;
      case 'por_persona':
        total = montoBase * (formValue.cantidadPersonas || 1);
        detalles.push(`${formValue.cantidadPersonas} persona(s) × Bs. ${montoBase.toFixed(2)}`);
        break;
      case 'por_evento':
        total = montoBase;
        detalles.push(`Tarifa por evento: Bs. ${montoBase.toFixed(2)}`);
        break;
      case 'mensualidad':
        const meses = this.safeCalculateMonthsDuration(this.recurrentSchedule?.fechaInicio, this.recurrentSchedule?.fechaFin);
        total = montoBase * meses;
        detalles.push(`Mensualidad × ${meses} mes(es): Bs. ${montoBase.toFixed(2)}`);
        break;
      case 'por_sesion':
        total = montoBase * (this.recurrentSchedule?.cantidadSesiones || 1);
        detalles.push(`${this.recurrentSchedule?.cantidadSesiones} sesión(es) × Bs. ${montoBase.toFixed(2)}`);
        break;
      case 'por_club':
        total = montoBase;
        detalles.push(`Tarifa club/organización: Bs. ${montoBase.toFixed(2)}`);
        break;
    }
    if (this.selectedTariff.conceptosDtos && this.selectedTariff.conceptosDtos.length > 0) {
      const conceptosActivos = this.selectedTariff.conceptosDtos.filter(concepto => concepto.activo);
      if (conceptosActivos.length > 0) {
        detalles.push('');
        detalles.push('Conceptos adicionales:');
        conceptosActivos.forEach(concepto => {
          const conceptoMonto = this.calculateConceptoAmount(concepto, total, formValue);
          total += conceptoMonto;
          let conceptoDetalle = '';
          switch (concepto.tipo) {
            case 'porcentaje':
              conceptoDetalle = `${concepto.concepto}: ${concepto.valor}% (Bs. ${conceptoMonto.toFixed(2)})`;
              break;
            case 'fijo':
              conceptoDetalle = `${concepto.concepto}: Bs. ${conceptoMonto.toFixed(2)}`;
              break;
            case 'por_hora':
              const horasConcepto = this.getDurationForConcepto(concepto, formValue);
              const horasCalculadas = horasConcepto.toFixed(1);
              if (concepto.desde && concepto.hasta) {
                conceptoDetalle = `${concepto.concepto}: ${horasCalculadas}h (${concepto.desde.slice(0, 5)}-${concepto.hasta.slice(0, 5)}) × Bs. ${concepto.valor} (Bs. ${conceptoMonto.toFixed(2)})`;
              } else {
                conceptoDetalle = `${concepto.concepto}: ${horasCalculadas}h × Bs. ${concepto.valor} (Bs. ${conceptoMonto.toFixed(2)})`;
              }
              break;
            default:
              conceptoDetalle = `${concepto.concepto}: Bs. ${conceptoMonto.toFixed(2)}`;
          }
          detalles.push(conceptoDetalle);
        });
      }
    }
    this.calculatedPrice = parseFloat(total.toFixed(2));
    this.priceDetails = detalles;
    if (this.reservationForm) {
      this.reservationForm.patchValue({
        montoTotal: this.calculatedPrice,
        esReservaGratuita: false,
        motivoGratuidad: ''
      }, {
        emitEvent: false
      });
    }
  }
  calculateConceptoAmount(concepto, baseAmount, formValue) {
    switch (concepto.tipo) {
      case 'porcentaje':
        return baseAmount * (concepto.valor / 100);
      case 'fijo':
        return concepto.valor || 0;
      case 'por_hora':
        const horas = this.getDurationForConcepto(concepto, formValue);
        return (concepto.valor || 0) * horas;
      default:
        return 0;
    }
  }
  calculateTotalHoursForRecurrentSessions() {
    if (this.bookingType !== 'recurrente' || !this.recurrentSchedule) {
      return 1;
    }
    let totalHours = 0;
    const start = new Date(this.recurrentSchedule.fechaInicio);
    const end = new Date(this.recurrentSchedule.fechaFin);
    const selectedDays = this.recurrentSchedule.diasSeleccionados || [];
    selectedDays.forEach(dia => {
      if (dia.selected) {
        const dayOccurrences = this.countDayOccurrencesInRange(dia.dia, start, end);
        dia.horarios.forEach(slot => {
          const duration = this.calculateDurationFromTimes(slot.horaInicio, slot.horaFin);
          totalHours += duration * dayOccurrences;
        });
      }
    });
    return totalHours;
  }
  countDayOccurrencesInRange(dayName, start, end) {
    const dayMap = {
      'domingo': 0,
      'lunes': 1,
      'martes': 2,
      'miercoles': 3,
      'jueves': 4,
      'viernes': 5,
      'sabado': 6
    };
    const targetDay = dayMap[dayName];
    let count = 0;
    const current = new Date(start);
    while (current <= end) {
      if (current.getDay() === targetDay) {
        count++;
      }
      current.setDate(current.getDate() + 1);
    }
    return count;
  }
  calculateTotalOverlappingHoursFromTablero(conceptoDesde, conceptoHasta) {
    if (!this.recurrentSchedule?.tablero || !this.recurrentSchedule.fechaInicio || !this.recurrentSchedule.fechaFin) {
      return 0;
    }
    let totalOverlappingHours = 0;
    const tablero = this.recurrentSchedule.tablero;
    const start = new Date(this.recurrentSchedule.fechaInicio);
    const end = new Date(this.recurrentSchedule.fechaFin);
    const dayMap = {
      0: 'lunes',
      1: 'martes',
      2: 'miercoles',
      3: 'jueves',
      4: 'viernes',
      5: 'sabado',
      6: 'domingo'
    };
    tablero.forEach((horariosDelDia, dayIndex) => {
      if (horariosDelDia && horariosDelDia.length > 0) {
        const dayName = dayMap[dayIndex];
        const dayOccurrences = this.countDayOccurrencesInRange(dayName, start, end);
        horariosDelDia.forEach(horarioStr => {
          const [sessionStart, sessionEnd] = horarioStr.split('-');
          if (sessionStart && sessionEnd) {
            const sessionOverlap = this.calculateOverlappingDuration(sessionStart, sessionEnd, conceptoDesde, conceptoHasta);
            totalOverlappingHours += sessionOverlap * dayOccurrences;
          }
        });
      }
    });
    return totalOverlappingHours;
  }
  getDurationForConcepto(concepto, formValue) {
    if (this.bookingType === 'puntual') {
      const horaInicio = formValue.horaInicio;
      const horaFin = formValue.horaFin;
      const duracionTotal = formValue.duracionHoras || 1;
      if (concepto.desde && concepto.hasta && horaInicio && horaFin) {
        return this.calculateOverlappingDuration(horaInicio, horaFin, concepto.desde, concepto.hasta);
      }
      return duracionTotal;
    } else if (this.bookingType === 'recurrente' && this.recurrentSchedule) {
      if (concepto.desde && concepto.hasta) {
        return this.calculateTotalOverlappingHoursFromTablero(concepto.desde, concepto.hasta);
      }
      return this.calculateTotalHoursForRecurrentSessions();
    }
    return 1;
  }
  calculateOverlappingDuration(startTime, endTime, conceptStart, conceptEnd) {
    try {
      const startMinutes = this.timeToMinutes(startTime);
      const endMinutes = this.timeToMinutes(endTime);
      const conceptStartMinutes = this.timeToMinutes(conceptStart);
      const conceptEndMinutes = this.timeToMinutes(conceptEnd);
      const overlapStart = Math.max(startMinutes, conceptStartMinutes);
      const overlapEnd = Math.min(endMinutes, conceptEndMinutes);
      const overlapMinutes = Math.max(0, overlapEnd - overlapStart);
      return Math.round(overlapMinutes / 60 * 2) / 2;
    } catch (error) {
      console.error('Error calculating overlapping duration:', error);
      return 0;
    }
  }
  timeToMinutes(time) {
    if (!time) return 0;
    const [hours, minutes] = time.split(':').map(Number);
    return hours * 60 + (minutes || 0);
  }
  getBasePrice() {
    if (!this.selectedTariff) return 0;
    const formValue = this.reservationForm?.getRawValue();
    const montoBase = this.selectedTariff.precioBase || 0;
    switch (this.selectedTariff.tipoCobro) {
      case 'por_hora':
        return montoBase * (formValue?.duracionHoras || 1);
      case 'por_persona':
        return montoBase * (formValue?.cantidadPersonas || 1);
      case 'mensualidad':
        const meses = this.safeCalculateMonthsDuration(this.recurrentSchedule?.fechaInicio, this.recurrentSchedule?.fechaFin);
        return montoBase * meses;
      case 'por_sesion':
        return montoBase * (this.recurrentSchedule?.cantidadSesiones || 1);
      default:
        return montoBase;
    }
  }
  hasConceptos() {
    return this.selectedTariff?.conceptosDtos?.some(concepto => concepto.activo) || false;
  }
  getBaseQuantity() {
    if (!this.selectedTariff) return '-';
    const formValue = this.reservationForm?.getRawValue();
    switch (this.selectedTariff.tipoCobro) {
      case 'por_hora':
        return `${formValue?.duracionHoras || 1} hora(s)`;
      case 'por_persona':
        return `${formValue?.cantidadPersonas || 1} persona(s)`;
      case 'mensualidad':
        const meses = this.safeCalculateMonthsDuration(this.recurrentSchedule?.fechaInicio, this.recurrentSchedule?.fechaFin);
        return `${meses} mes(es)`;
      case 'por_sesion':
        return `${this.recurrentSchedule?.cantidadSesiones || 1} sesión(es)`;
      case 'por_evento':
      case 'por_club':
        return '1 evento';
      default:
        return '1';
    }
  }
  getConceptoDetails() {
    if (!this.selectedTariff?.conceptosDtos) return [];
    const formValue = this.reservationForm?.getRawValue();
    const baseAmount = this.getBasePrice();
    const detalles = [];
    this.selectedTariff.conceptosDtos.filter(concepto => concepto.activo).forEach(concepto => {
      const amount = this.calculateConceptoAmount(concepto, baseAmount, formValue);
      let description = '';
      let quantity = '';
      let timeRange = '';
      switch (concepto.tipo) {
        case 'porcentaje':
          description = `Aplicado sobre tarifa base`;
          quantity = `${concepto.valor}%`;
          break;
        case 'fijo':
          description = 'Monto fijo adicional';
          quantity = 'Fijo';
          break;
        case 'por_hora':
          const horas = this.getDurationForConcepto(concepto, formValue);
          description = `Tarifa por hora aplicada`;
          quantity = `${horas.toFixed(1)}h × Bs. ${concepto.valor}`;
          if (concepto.desde && concepto.hasta) {
            timeRange = `${concepto.desde.slice(0, 5)}-${concepto.hasta.slice(0, 5)}`;
            description = `Tarifa por hora (${timeRange})`;
          }
          break;
        default:
          description = 'Concepto adicional';
          quantity = '1';
      }
      detalles.push({
        concepto: concepto.concepto,
        description: description,
        quantity: quantity,
        amount: amount,
        timeRange: timeRange
      });
    });
    return detalles;
  }
  calculateDurationFromTimes(startTime, endTime) {
    try {
      const [startHours, startMinutes] = startTime.split(':').map(Number);
      const [endHours, endMinutes] = endTime.split(':').map(Number);
      const startTotalMinutes = startHours * 60 + (startMinutes || 0);
      const endTotalMinutes = endHours * 60 + (endMinutes || 0);
      const durationMinutes = endTotalMinutes - startTotalMinutes;
      return Math.round(durationMinutes / 60 * 2) / 2;
    } catch (error) {
      console.error('Error calculating duration:', error);
      return 1;
    }
  }
  calculateMonthsDuration(startDate, endDate) {
    try {
      const start = new Date(startDate);
      const end = new Date(endDate);
      const months = (end.getFullYear() - start.getFullYear()) * 12 + (end.getMonth() - start.getMonth());
      return Math.max(1, months);
    } catch (error) {
      console.error('Error calculating months duration:', error);
      return 1;
    }
  }
  onSubmit() {
    this.submitted = true;
    if (!this.reservationForm || this.reservationForm.invalid) {
      if (this.reservationForm) {
        this.markFormGroupTouched(this.reservationForm);
      }
      this.showFormErrors();
      return;
    }
    this.confirmReservation();
  }
  confirmReservation() {
    const currencyPipe = new _angular_common__WEBPACK_IMPORTED_MODULE_20__.CurrencyPipe('en-US');
    const formattedTotal = currencyPipe.transform(this.calculatedPrice, 'BOB', 'symbol-narrow', '1.2-2');
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: `Confirmar ${this.actionType === 'book' ? 'Reserva' : 'Solicitud'}`,
      html: `
        <div class="text-start">
          <p>¿Está seguro de que desea confirmar esta reserva?</p>
          <div class="border rounded p-3 bg-light">
            <strong>Detalles:</strong><br>
            • ${this.dataComplejo?.nombre} - ${this.dataField?.nombre}<br>
            • ${this.bookingType === 'recurrente' ? 'Reserva Recurrente' : 'Reserva Puntual'}<br>
            • Total: ${formattedTotal}<br>
            • Contribuyente: ${this.selectedContribuyente?.nombreCompleto}<br>
            • Estado: ${this.requiresValidation ? 'Requiere Aprobación' : 'Aprobada Automáticamente'}
          </div>
        </div>
      `,
      icon: 'question',
      showCancelButton: true,
      confirmButtonText: 'Sí, ' + this.actionType === 'book' ? 'Reservar' : 'Solicitar',
      cancelButtonText: 'Revisar',
      confirmButtonColor: '#198754',
      cancelButtonColor: '#6c757d'
    }).then(result => {
      if (result.isConfirmed) {
        this.processReservation();
      }
    });
  }
  processReservation() {
    this.isSubmitting = true;
    const reservaData = this.prepareReservationData();
    const isFreeReservation = reservaData.esReservaGratuita;
    if (isFreeReservation) {
      this.saveReservation(reservaData);
    } else if (!this.requiresValidation) {
      this.registerReservationInRuat(reservaData);
    } else {
      this.saveReservation(reservaData);
    }
  }
  prepareReservationData() {
    const formValue = this.reservationForm.getRawValue();
    let estadoValidacion;
    let estadoReserva;
    const isFreeReservation = this.isFreeReservation && this.showFreeReservationOption;
    if (isFreeReservation || !this.requiresValidation || this.userRole === 'Admin' || this.userRole === 'Encargado') {
      estadoValidacion = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA;
      estadoReserva = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE;
    } else {
      estadoValidacion = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.PENDIENTE;
      estadoReserva = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA;
    }
    const reserva = {
      esReservaGratuita: isFreeReservation,
      motivoGratuidad: isFreeReservation ? this.freeReservationReason : undefined,
      fechaCreacion: new Date(),
      fechaActualizacion: new Date(),
      tipoReserva: this.bookingType,
      fechaReserva: new Date(),
      numeroReserva: formValue.numeroReserva,
      estadoValidacion: estadoValidacion,
      estadoReserva: estadoReserva,
      montoTotal: isFreeReservation ? 0 : this.calculatedPrice,
      clasificadorRuatId: this.selectedTariff.clasificadorRuatDto?.uuid || '',
      contribuyenteDto: formValue.contribuyenteDto,
      campoDeportivoDto: this.dataField,
      tarifaDto: this.selectedTariff
    };
    if (formValue.esParaOrganizacion && formValue.organizacionDto) {
      reserva.organizacionDto = formValue.organizacionDto;
    }
    if (this.bookingType === 'puntual') {
      const fechaUso = this.safeParseDate(formValue.fechaUso);
      reserva.reservaPuntualDto = {
        fechaUso: fechaUso || new Date(),
        horaInicio: formValue.horaInicio + ':00',
        horaFin: formValue.horaFin + ':00',
        duracionHoras: formValue.duracionHoras,
        cantidadPersonas: formValue.cantidadPersonas,
        categoria: this.getTarifaCategories(),
        superficie: this.dataField?.superficieDto?.descripcion || '',
        observaciones: formValue.observaciones
      };
    } else if (this.bookingType === 'recurrente' && this.recurrentSchedule) {
      reserva.reservaRecurrenteDto = {
        tipoRecurrencia: this.recurrentSchedule.tipoRecurrencia,
        fechaInicio: this.recurrentSchedule.fechaInicio,
        fechaFin: this.recurrentSchedule.fechaFin,
        diasSemana: this.recurrentSchedule.diasSemana,
        cantidadSesiones: this.recurrentSchedule.cantidadSesiones,
        duracionSesionHoras: this.recurrentSchedule.duracionSesionHoras,
        cantidadPersonas: formValue.cantidadPersonas,
        tarifaMensual: isFreeReservation ? 0 : this.calculatedPrice / this.safeCalculateMonthsDuration(this.recurrentSchedule.fechaInicio, this.recurrentSchedule.fechaFin),
        activo: true,
        categoria: this.getTarifaCategories(),
        superficie: this.dataField?.superficieDto?.descripcion || '',
        observaciones: formValue.observaciones,
        tableroDto: {
          horario: this.recurrentSchedule.tablero
        }
      };
    }
    return reserva;
  }
  registerReservationInRuat(reservaData) {
    if (!reservaData.contribuyenteDto?.codigoContribuyente) {
      this.handleError('Datos incompletos', 'Falta el código de contribuyente para registrar en RUAT');
      return;
    }
    if (!this.selectedTariff?.clasificadorRuatDto?.codigo) {
      this.handleError('Configuración incompleta', 'Falta el clasificador RUAT para la tarifa seleccionada');
      return;
    }
    const ruatData = {
      codigoAlcaldia: this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI',
      codigoUsuario: this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '2174',
      codigoContribuyente: reservaData.contribuyenteDto.codigoContribuyente,
      servicioMunicipal: this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.SERVICIO_MUNICIPAL_RUAT]?.valorTexto || '2174',
      datosConcepto: [{
        numero: '1',
        codigoClasificador: this.selectedTariff.clasificadorRuatDto.codigo,
        tipoArancel: this.selectedTariff.clasificadorRuatDto.tipoArancel || "DI",
        monto: this.calculatedPrice.toFixed(2)
      }],
      observacion: reservaData.reservaPuntualDto?.observaciones || reservaData.reservaRecurrenteDto?.observaciones || 'Reserva de Cancha Deportiva GAMQ'
    };
    const codigoAlcaldia = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || '';
    const codigoUsuario = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
    const servicioMunicipal = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_3__.ClaveConfiguracion.SERVICIO_MUNICIPAL_RUAT]?.valorTexto || '';
    this.ruatService.createTasa(codigoAlcaldia, codigoUsuario, servicioMunicipal, ruatData, reservaData.contribuyenteDto.codigoContribuyente).subscribe({
      next: response => {
        if (response.status === 'OK') {
          if (response.payload.continuarFlujo) {
            reservaData.numeroTasa = response.payload.numeroTasa;
            this.saveReservation(reservaData);
          } else {
            this.handleError('Error en RUAT', response.payload.mensaje || 'No se pudo registrar la tasa');
          }
        } else {
          this.handleError('Error en RUAT', response.mensaje || 'No se pudo registrar la tasa');
        }
      },
      error: error => {
        this.isSubmitting = false;
        this.handleError('Error de conexión con RUAT', error.error?.mensaje || error.message);
      }
    });
  }
  saveReservation(reservaData) {
    this.reservaService.create(reservaData).subscribe({
      next: response => {
        this.isSubmitting = false;
        this.submitted = false;
        if (response.status === 'OK') {
          const savedReserva = response.payload || response;
          this.showSuccessMessage(savedReserva);
          this.reservationCompleted.emit(savedReserva);
        } else {
          this.handleError('Error al guardar la reserva', response.message);
        }
      },
      error: error => {
        this.isSubmitting = false;
        this.handleError('Error al guardar la reserva', error);
      }
    });
  }
  showSuccessMessage(reserva) {
    let title = '¡Reserva Confirmada!';
    let message = '';
    if (reserva.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.PENDIENTE) {
      title = '¡Solicitud Enviada!';
      message = 'Su solicitud de reserva ha sido enviada exitosamente. ' + 'Estará pendiente de aprobación por parte del administrador. ' + 'Recibirá una notificación una vez que sea revisada.';
    } else if (reserva.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE && reserva.numeroTasa) {
      message = this.bookingType === 'recurrente' ? '¡Reserva recurrente creada exitosamente! Se ha generado la tasa municipal correspondiente.' : '¡Reserva creada exitosamente! Se ha generado la tasa municipal correspondiente.';
      message += `\n\nNúmero de Tasa: ${reserva.numeroTasa}`;
    } else {
      message = '¡Reserva procesada exitosamente!';
    }
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: title,
      text: message,
      icon: 'success',
      confirmButtonText: 'Aceptar',
      confirmButtonColor: '#198754'
    });
  }
  handleError(title, error) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: title,
      text: error.message || 'Por favor, intente nuevamente.',
      icon: 'error',
      confirmButtonText: 'Entendido'
    });
  }
  getStatusDescription() {
    if (this.isFreeReservation && this.showFreeReservationOption) {
      return this.getFreeReservationDescription() + ' - No requiere pago';
    } else if (this.requiresValidation) {
      return 'Revisión administrativa requerida antes del pago';
    } else {
      return 'Confirmación inmediata - se generará tasa municipal';
    }
  }
  getStatusClass() {
    if (this.isFreeReservation && this.showFreeReservationOption) {
      return 'bg-info bg-opacity-10 border border-info';
    } else if (this.requiresValidation) {
      return 'bg-warning bg-opacity-10 border border-warning';
    } else {
      return 'bg-success bg-opacity-10 border border-success';
    }
  }
  getStatusIcon() {
    if (this.isFreeReservation && this.showFreeReservationOption) {
      return 'ri-gift-line text-info';
    } else if (this.requiresValidation) {
      return 'ri-time-line text-warning';
    } else {
      return 'ri-checkbox-circle-line text-success';
    }
  }
  getStatusText() {
    if (this.isFreeReservation && this.showFreeReservationOption) {
      return 'Reserva Gratuita';
    } else if (this.requiresValidation) {
      return 'Requiere Aprobación';
    } else {
      return 'Aprobación Automática';
    }
  }
  getFreeReservationTitle() {
    if (this.selectedOrganization?.permiteReservasGratuitas) {
      if (this.selectedOrganization.tipoOrganizacion === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL) {
        return 'Reserva Gratuita - Escuela Municipal';
      }
      return 'Reserva Gratuita - Organización Autorizada';
    } else if (this.selectedContribuyente?.esDeportistaElite) {
      return 'Reserva Gratuita - Deportista de Elite';
    }
    return 'Reserva Gratuita';
  }
  getFreeReservationDescription() {
    if (this.selectedOrganization?.permiteReservasGratuitas) {
      return `La organización "${this.selectedOrganization.nombre}" tiene permisos para reservas gratuitas. Esta reserva no generará costo alguno.`;
    } else if (this.selectedContribuyente?.esDeportistaElite) {
      return 'Como deportista de elite registrado, esta reserva se realiza sin costo.';
    }
    return 'Reserva autorizada sin costo.';
  }
  getPaidReservationTitle() {
    if (this.selectedOrganization && !this.selectedOrganization.permiteReservasGratuitas && this.selectedContribuyente?.esDeportistaElite) {
      return 'Reserva con Costo Aplicado';
    } else if (this.selectedOrganization && !this.selectedOrganization.permiteReservasGratuitas) {
      return 'Reserva con Costo';
    } else if (this.selectedContribuyente?.esDeportistaElite && !this.isFreeReservation) {
      return 'Reserva con Costo (Beneficio No Aplicado)';
    }
    return 'Reserva con Costo';
  }
  getPaidReservationDescription() {
    if (this.selectedOrganization && !this.selectedOrganization.permiteReservasGratuitas && this.selectedContribuyente?.esDeportistaElite) {
      return `Aunque es deportista de elite, la organización "${this.selectedOrganization.nombre}" no tiene permisos para reservas gratuitas. Esta reserva generará el costo correspondiente.`;
    } else if (this.selectedOrganization && !this.selectedOrganization.permiteReservasGratuitas) {
      return `La organización "${this.selectedOrganization.nombre}" no tiene permisos para reservas gratuitas. Esta reserva generará el costo correspondiente.`;
    } else if (this.selectedContribuyente?.esDeportistaElite && !this.isFreeReservation) {
      return 'Ha optado por no utilizar su beneficio de deportista elite. Esta reserva generará el costo correspondiente.';
    }
    return 'Esta reserva generará el costo correspondiente.';
  }
  onContribuyenteSearch() {
    this.showContribuyenteSearch = true;
    if (this.contribuyentesList.length === 0) {
      this.loadContribuyentes();
    }
  }
  onContribuyenteSelected(contribuyente) {
    this.selectedContribuyente = contribuyente;
    this.reservationForm.patchValue({
      contribuyenteDto: contribuyente
    });
    this.showContribuyenteSearch = false;
    this.filteredContribuyentes = [];
    this.checkFreeReservationEligibility();
    this.checkOrganizationToggleEligibility();
    this.calculateValidationRequirement();
  }
  searchContribuyente(event) {
    const searchTerm = event.target.value;
    this.performContribuyenteSearch(searchTerm);
  }
  performContribuyenteSearch(searchTerm) {
    if (!searchTerm || searchTerm.trim().length < 2) {
      this.filteredContribuyentes = [...this.contribuyentesList];
      return;
    }
    const term = searchTerm.toLowerCase().trim();
    this.filteredContribuyentes = this.contribuyentesList.filter(contrib => {
      if (contrib.nombreCompleto?.toLowerCase().includes(term)) {
        return true;
      }
      if (contrib.nombre?.toLowerCase().includes(term) || contrib.primerApellido?.toLowerCase().includes(term) || contrib.segundoApellido?.toLowerCase().includes(term)) {
        return true;
      }
      if (contrib.numeroDocumento?.includes(term)) {
        return true;
      }
      if (contrib.email?.toLowerCase().includes(term)) {
        return true;
      }
      return false;
    });
  }
  clearContribuyenteSearch() {
    this.showContribuyenteSearch = false;
    this.filteredContribuyentes = [...this.contribuyentesList];
    if (this.searchInput && this.searchInput.nativeElement) {
      this.searchInput.nativeElement.value = '';
    }
  }
  onOrganizationSearch() {
    this.showOrganizationSearch = true;
  }
  onOrganizationSelected(organizacion) {
    this.selectedOrganization = organizacion;
    this.reservationForm.patchValue({
      organizacionDto: organizacion,
      esParaOrganizacion: true
    });
    this.showOrganizationSearch = false;
    if (organizacion.representanteDto) {
      this.selectedContribuyente = organizacion.representanteDto;
      this.reservationForm.patchValue({
        contribuyenteDto: organizacion.representanteDto
      });
    }
    this.checkFreeReservationEligibility();
    this.calculatePrice();
  }
  searchOrganization(event) {
    const searchTerm = event.target.value;
    this.performOrganizationSearch(searchTerm);
  }
  performOrganizationSearch(searchTerm) {
    if (!searchTerm || searchTerm.trim().length < 2) {
      return;
    }
  }
  clearOrganizationSearch() {
    this.showOrganizationSearch = false;
    this.selectedOrganization = undefined;
    this.reservationForm.patchValue({
      organizacionDto: null,
      esParaOrganizacion: false
    });
    this.checkFreeReservationEligibility();
    this.calculatePrice();
  }
  toggleFreeReservation() {
    const formValue = this.reservationForm?.getRawValue();
    const selectedOrganization = formValue?.organizacionDto;
    const canToggle = this.selectedContribuyente?.esDeportistaElite && (!selectedOrganization || selectedOrganization?.permiteReservasGratuitas);
    if (canToggle) {
      this.isFreeReservation = !this.isFreeReservation;
      this.reservationForm.patchValue({
        esReservaGratuita: this.isFreeReservation,
        motivoGratuidad: this.isFreeReservation ? 'DEPORTISTA_ELITE' : ''
      });
      this.calculatePrice();
    }
  }
  loadContribuyentes() {
    this.contribuyenteService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.contribuyentesList = response.payload || [];
          this.filteredContribuyentes = [...this.contribuyentesList];
        } else {
          this.contribuyentesList = [];
          this.filteredContribuyentes = [];
        }
      },
      error: error => {
        console.error('Error loading taxpayers:', error);
        this.contribuyentesList = [];
        this.filteredContribuyentes = [];
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          title: 'Error',
          text: 'No se pudieron cargar los contribuyentes. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  loadAllOrganizations() {
    this.organizationService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.organizationsList = response.payload.content || [];
        } else {
          this.organizationsList = [];
        }
      },
      error: error => {
        console.error('Error loading organizations:', error);
        this.organizationsList = [];
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          title: 'Error',
          text: 'No se pudieron cargar las organizaciones. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  loadOrganizations() {
    if (this.userRole === 'Admin' || this.userRole === 'Encargado') {
      if (this.selectedContribuyente) {
        this.organizationsList = this.selectedContribuyente.organizacionesRepresentadas || [];
      } else {
        this.loadAllOrganizations();
      }
    }
  }
  markFormGroupTouched(formGroup) {
    Object.keys(formGroup.controls).forEach(key => {
      const control = formGroup.get(key);
      if (control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroup) {
        this.markFormGroupTouched(control);
      } else {
        control?.markAsTouched();
      }
    });
  }
  showFormErrors() {
    const firstInvalidField = this.findFirstInvalidField();
    if (firstInvalidField) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
        title: 'Error en el formulario',
        text: firstInvalidField,
        icon: 'error',
        confirmButtonText: 'Entendido'
      });
    }
  }
  findFirstInvalidField() {
    const fields = [{
      name: 'contribuyenteDto',
      message: this.getFieldError('contribuyenteDto')
    }, {
      name: 'fechaUso',
      message: this.getFieldError('fechaUso')
    }, {
      name: 'horaInicio',
      message: this.getFieldError('horaInicio')
    }, {
      name: 'horaFin',
      message: this.getFieldError('horaFin')
    }, {
      name: 'observaciones',
      message: this.getFieldError('observaciones')
    }, {
      name: 'aceptaTerminos',
      message: this.getFieldError('aceptaTerminos')
    }];
    const invalidField = fields.find(field => field.message);
    return invalidField?.message || 'Por favor, complete todos los campos requeridos correctamente.';
  }
  getFieldError(fieldName) {
    if (!this.reservationForm) return null;
    const field = this.reservationForm.get(fieldName);
    if (!field || !field.errors || !field.touched && !this.submitted) {
      return null;
    }
    const errors = field.errors;
    if (errors['required']) return 'Este campo es obligatorio';
    if (errors['min']) return `Valor mínimo: ${errors['min'].min}`;
    if (errors['max']) return `Valor máximo: ${errors['max'].max}`;
    if (errors['minlength']) return `Mínimo ${errors['minlength'].requiredLength} caracteres`;
    if (errors['maxlength']) return `Máximo ${errors['maxlength'].requiredLength} caracteres`;
    if (errors['email']) return 'Formato de email inválido';
    if (errors['pastDate']) return 'La fecha no puede ser anterior a hoy';
    if (errors['pattern']) return 'Formato inválido';
    if (errors['timeRange']) return errors['timeRange'];
    if (errors['minimumDuration']) return errors['minimumDuration'];
    if (errors['anticipationRequired']) return errors['anticipationRequired'];
    if (errors['capacityExceeded']) return `Capacidad máxima excedida: ${errors['capacityExceeded'].max} personas`;
    if (errors['contribuyenteRequired']) return errors['contribuyenteRequired'];
    if (errors['organizacionRequired']) return errors['organizacionRequired'];
    if (errors['cantidadPersonasRequired']) return errors['cantidadPersonasRequired'];
    if (errors['recurrentNotAllowed']) return errors['recurrentNotAllowed'];
    return 'Campo inválido';
  }
  isFieldInvalid(fieldName) {
    if (!this.reservationForm) return false;
    const field = this.reservationForm.get(fieldName);
    return !!(field && field.invalid && (field.touched || this.submitted));
  }
  getFormError() {
    if (!this.reservationForm) return null;
    const errors = this.reservationForm.errors;
    if (!errors || !this.reservationForm.touched && !this.submitted) {
      return null;
    }
    if (errors['timeRange']) return errors['timeRange'];
    if (errors['minimumDuration']) return errors['minimumDuration'];
    if (errors['anticipationRequired']) return errors['anticipationRequired'];
    if (errors['capacityExceeded']) return `Capacidad máxima: ${errors['capacityExceeded'].max} personas`;
    if (errors['recurrentNotAllowed']) return errors['recurrentNotAllowed'];
    return 'Existen errores en el formulario';
  }
  get canSelectOrganization() {
    return this.showOrganizationToggle;
  }
  get userDisplayName() {
    if (this.selectedContribuyente) {
      return `${this.selectedContribuyente.nombre} ${this.selectedContribuyente.primerApellido}`;
    }
    return 'Usuario no identificado';
  }
  get canEditReservationNumber() {
    return this.userRole !== 'Contribuyente';
  }
  getTarifaCategories() {
    if (!this.selectedTariff?.categoriasDtoList) return 'Sin categoría';
    return this.selectedTariff.categoriasDtoList.map(tc => tc.categoriaDto?.nombre).filter(Boolean).join(', ');
  }
  getTariffDescription() {
    const units = {
      'por_hora': 'por hora',
      'por_persona': 'por persona',
      'por_evento': 'por evento',
      'mensualidad': 'por mes',
      'por_sesion': 'por sesión',
      'por_club': 'por mes',
      'periodo': 'periodo de Escuela'
    };
    return units[this.selectedTariff.tipoCobro] || '';
  }
  getRecurrenceSummary() {
    const tipoRecurrencia = this.reservationForm.get('tipoRecurrencia')?.value;
    const fechaInicio = this.reservationForm.get('fechaInicio')?.value;
    const fechaFin = this.reservationForm.get('fechaFin')?.value;
    const diasSemana = this.reservationForm.get('diasSemana')?.value;
    const horaInicio = this.reservationForm.get('horaInicio')?.value;
    const duracion = this.reservationForm.get('duracionSesionHoras')?.value;
    if (!tipoRecurrencia || !fechaInicio || !fechaFin) return '';
    let summary = '';
    const startDate = new Date(fechaInicio);
    const endDate = new Date(fechaFin);
    switch (tipoRecurrencia) {
      case 'diaria':
        summary = `Diariamente del ${this.formatDate(startDate)} al ${this.formatDate(endDate)}`;
        break;
      case 'semanal':
        const dias = this.getDiasSemanaNames(diasSemana);
        summary = `Semanalmente los ${dias} del ${this.formatDate(startDate)} al ${this.formatDate(endDate)}`;
        break;
      case 'mensual':
        summary = `Mensualmente del ${this.formatDate(startDate)} al ${this.formatDate(endDate)}`;
        break;
    }
    if (horaInicio && duracion) {
      summary += ` a las ${horaInicio} por ${duracion} horas`;
    }
    return summary;
  }
  calculateTotalSessions() {
    const tipoRecurrencia = this.reservationForm.get('tipoRecurrencia')?.value;
    const fechaInicio = this.reservationForm.get('fechaInicio')?.value;
    const fechaFin = this.reservationForm.get('fechaFin')?.value;
    const diasSemana = this.reservationForm.get('diasSemana')?.value;
    if (!tipoRecurrencia || !fechaInicio || !fechaFin) return 0;
    const start = new Date(fechaInicio);
    const end = new Date(fechaFin);
    let sessions = 0;
    switch (tipoRecurrencia) {
      case 'diaria':
        const timeDiff = end.getTime() - start.getTime();
        sessions = Math.floor(timeDiff / (1000 * 3600 * 24)) + 1;
        break;
      case 'semanal':
        if (!diasSemana || diasSemana.length === 0) return 0;
        const diasArray = Array.isArray(diasSemana) ? diasSemana : [diasSemana];
        const dayMap = {
          'LUN': 1,
          'MAR': 2,
          'MIE': 3,
          'JUE': 4,
          'VIE': 5,
          'SAB': 6,
          'DOM': 0
        };
        let current = new Date(start);
        while (current <= end) {
          const dayOfWeek = current.getDay();
          const dayName = this.getDayName(dayOfWeek);
          if (diasArray.includes(dayName)) {
            sessions++;
          }
          current.setDate(current.getDate() + 1);
        }
        break;
      case 'mensual':
        let monthlyDate = new Date(start);
        while (monthlyDate <= end) {
          sessions++;
          monthlyDate.setMonth(monthlyDate.getMonth() + 1);
        }
        break;
    }
    return sessions;
  }
  getDiasSemanaNames(diasSemana) {
    if (!diasSemana || diasSemana.length === 0) return '';
    const dayNames = {
      'LUN': 'Lunes',
      'MAR': 'Martes',
      'MIE': 'Miércoles',
      'JUE': 'Jueves',
      'VIE': 'Viernes',
      'SAB': 'Sábado',
      'DOM': 'Domingo'
    };
    return diasSemana.map(dia => dayNames[dia]).join(', ');
  }
  getDayName(dayNumber) {
    const days = ['DOM', 'LUN', 'MAR', 'MIE', 'JUE', 'VIE', 'SAB'];
    return days[dayNumber];
  }
  formatDate(date) {
    return date.toLocaleDateString('es-ES');
  }
  formatDuration(hours) {
    const totalMinutes = hours * 60;
    const hrs = Math.floor(totalMinutes / 60);
    const mins = totalMinutes % 60;
    if (hrs === 0) return `${mins} min`;
    if (mins === 0) return `${hrs} ${hrs === 1 ? 'hora' : 'horas'}`;
    return `${hrs}h ${mins}m`;
  }
  get f() {
    return this.reservationForm ? this.reservationForm.controls : {};
  }
  get duration() {
    return this.reservationForm ? this.reservationForm.get('duracionHoras')?.value || 0 : 0;
  }
  get scheduleConflictError() {
    return this.reservationForm ? this.reservationForm.hasError('timeConflict') : false;
  }
  get invalidRangeError() {
    return this.reservationForm ? this.reservationForm.hasError('timeRange') : false;
  }
  get anticipationError() {
    return this.reservationForm ? this.reservationForm.hasError('anticipationRequired') : false;
  }
  static {
    this.ɵfac = function ReservationFormComponent_Factory(t) {
      return new (t || ReservationFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_4__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_5__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_6__.ContribuyentesService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_7__.OrganizacionService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
      type: ReservationFormComponent,
      selectors: [["app-reservation-form"]],
      viewQuery: function ReservationFormComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵloadQuery"]()) && (ctx.searchInput = _t.first);
        }
      },
      inputs: {
        bookingType: "bookingType",
        actionType: "actionType",
        dataComplejo: "dataComplejo",
        dataField: "dataField",
        selectedTariff: "selectedTariff",
        selectedSchedule: "selectedSchedule",
        recurrentSchedule: "recurrentSchedule",
        contribuyente: "contribuyente",
        reservationsList: "reservationsList",
        systemConfigs: "systemConfigs",
        userRole: "userRole"
      },
      outputs: {
        reservationCompleted: "reservationCompleted",
        goBack: "goBack"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵNgOnChangesFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵStandaloneFeature"]],
      decls: 3,
      vars: 2,
      consts: [["searchInput", ""], [1, "reservation-form-wrapper"], ["class", "text-center", 4, "ngIf"], ["novalidate", "", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "text-center"], ["role", "status", 1, "spinner-border", "text-primary", "mb-2"], [1, "visually-hidden"], [1, "text-muted"], ["novalidate", "", 3, "ngSubmit", "formGroup"], ["class", "alert alert-danger alert-dismissible fade show mb-2", "role", "alert", 4, "ngIf"], [1, "card", "shadow-sm"], [1, "card-body"], [1, "row", "g-3", "mb-2"], [1, "col-md-8"], [1, "fw-bold", "text-dark", "mb-1"], [1, "ri-building-line", "text-primary", "me-1"], [1, "mb-2", "text-muted"], [1, "ri-football-line", "me-1"], [1, "d-flex", "flex-wrap", "gap-2"], [1, "badge", "bg-primary", "bg-opacity-10", "text-primary"], [1, "ri-layout-line", "me-1"], [1, "badge", "bg-info", "bg-opacity-10", "text-info"], [1, "ri-star-line", "me-1"], ["class", "badge bg-success bg-opacity-10 text-success", 4, "ngIf"], [1, "col-md-4"], [1, "form-label", "fw-semibold", "mb-2"], [1, "ri-hashtag", "text-primary", "me-1"], [1, "input-group", "input-group-sm"], [1, "input-group-text", "bg-light"], [1, "ri-barcode-line"], ["type", "text", "formControlName", "numeroReserva", "placeholder", "0010/25", 1, "form-control", "fw-bold", 3, "readonly"], ["class", "btn-group", 4, "ngIf"], ["class", "input-group-text bg-light", 4, "ngIf"], ["class", "form-text", 4, "ngIf"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["class", "mt-1", 4, "ngIf"], [1, "my-2"], [1, "mb-2"], [1, "col", "fw-bold"], [1, "ri-calendar-2-line", "text-primary", "me-2"], ["class", "col", 4, "ngIf"], [4, "ngIf"], [1, "fw-bold"], [1, "ri-calculator-line", "text-primary", "me-2"], [1, "table-responsive"], [1, "table", "table-sm", "table-borderless", "mb-2"], [1, "border-bottom"], ["width", "50%"], [1, "d-block", "text-muted"], ["width", "25%", 1, "text-center"], [1, "fw-semibold"], ["width", "25%", 1, "text-end"], ["class", "border-bottom", 4, "ngIf"], [1, "border-top"], ["colspan", "2", 1, "pt-3"], [1, "mb-0"], [1, "text-end", "pt-3"], [1, "mb-0", "text-success", "fw-bold"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-2"], [1, "ri-user-line", "text-primary", "me-2"], ["class", "form-check form-switch", 4, "ngIf"], ["class", "p-2 bg-success bg-opacity-10 rounded border border-success", 4, "ngIf"], ["class", "col-md-6", 4, "ngIf"], ["class", "mb-3", 4, "ngIf"], [1, "form-label", "fw-semibold"], [1, "ri-message-3-line", "me-1"], [1, "text-danger"], ["rows", "3", "formControlName", "observaciones", "placeholder", "Describa el prop\u00F3sito de la reserva, eventos especiales o requerimientos espec\u00EDficos...", 1, "form-control", "form-control-sm"], ["class", "invalid-feedback", 4, "ngIf"], [1, "d-flex", "justify-content-between", "mt-1"], [1, "form-check"], ["type", "checkbox", "formControlName", "aceptaTerminos", "id", "terminos", 1, "form-check-input", 2, "cursor", "pointer"], ["for", "terminos", 1, "form-check-label", "small", 2, "cursor", "pointer"], [1, "ri-shield-check-line", "text-primary", "me-1"], ["href", "#", 1, "text-primary", "fw-semibold"], [1, "text-danger", "fw-bold"], [1, "alert", "alert-info", "alert-sm", "mb-0"], [1, "d-flex"], [1, "ri-information-line", "fs-5", "me-2"], [1, "small"], [1, "d-block", "mb-1"], [1, "mb-0", "ps-3"], [1, "card-footer", "bg-light"], [1, "d-flex", "justify-content-between", "align-items-center"], ["type", "submit", 1, "btn", "btn-success", "px-4", 3, "disabled"], ["role", "alert", 1, "alert", "alert-danger", "alert-dismissible", "fade", "show", "mb-2"], [1, "d-flex", "align-items-start"], [1, "ri-error-warning-fill", "me-3", "mt-1"], [1, "flex-grow-1"], [1, "alert-heading", "mb-2"], ["class", "d-block mt-2 text-danger", 4, "ngIf"], [1, "d-block", "mt-2", "text-danger"], [1, "badge", "bg-success", "bg-opacity-10", "text-success"], [1, "ri-group-line", "me-1"], [1, "btn-group"], ["class", "btn btn-outline-primary", "type", "button", "title", "Validar n\u00FAmero personalizado", 3, "disabled", "click", 4, "ngIf"], ["type", "button", "title", "Validar n\u00FAmero personalizado", 1, "btn", "btn-outline-primary", 3, "click", "disabled"], [1, "ri-check-line"], [1, "ri-lock-line", "text-muted"], [1, "form-text"], [1, "ri-information-line", "me-1"], [1, "invalid-feedback", "d-block"], [1, "mt-1"], [1, "spinner-border", "spinner-border-sm", "me-1"], [1, "col"], [1, "alert", "alert-info", "alert-sm", "py-2", "mb-0"], [1, "ri-timer-line", "me-2"], [1, "fw-bold", "ms-1"], [1, "row", "g-2"], [1, "col-6", "col-md-3"], [1, "form-label", "mb-0", "fw-semibold"], [1, "ri-calendar-event-line", "me-1"], ["type", "date", "formControlName", "fechaUso", 1, "form-control", "form-control-sm", 3, "min", "max", "disabled"], [1, "ri-time-line", "me-1"], ["type", "time", "formControlName", "horaInicio", 1, "form-control", "form-control-sm", 3, "disabled"], ["type", "time", "formControlName", "horaFin", 1, "form-control", "form-control-sm", 3, "disabled"], ["class", "text-danger", 4, "ngIf"], ["type", "number", "formControlName", "cantidadPersonas", "min", "1", "placeholder", "Ej: 10", 1, "form-control", "form-control-sm", 3, "max", "disabled"], [1, "invalid-feedback"], ["type", "date", "formControlName", "fechaInicio", 1, "form-control", "form-control-sm", 3, "disabled"], ["type", "date", "formControlName", "fechaFin", 1, "form-control", "form-control-sm", 3, "disabled"], [1, "col-md-3"], ["class", "alert alert-info mt-3 py-2", 4, "ngIf"], [1, "alert", "alert-info", "mt-3", "py-2"], [1, "row", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "ri-calendar-check-line", "me-2"], [1, "d-block"], [1, "col-auto"], [1, "badge", "bg-primary", "fs-6"], ["colspan", "3", 1, "py-2"], ["class", "mb-2", 4, "ngFor", "ngForOf"], [1, "col-6"], [1, "ri-add-circle-line", "text-success", "me-1"], ["class", "d-block text-info", 4, "ngIf"], [1, "col-3", "text-center"], [1, "col-3", "text-end"], [1, "fw-semibold", "text-success"], [1, "d-block", "text-info"], [1, "form-check", "form-switch"], ["type", "checkbox", "formControlName", "esParaOrganizacion", "id", "esParaOrganizacion", 1, "form-check-input", 2, "cursor", "pointer"], ["for", "esParaOrganizacion", 1, "form-check-label", "small", "fw-semibold", 2, "cursor", "pointer"], [1, "ri-team-line", "me-1"], [1, "p-2", "bg-success", "bg-opacity-10", "rounded", "border", "border-success"], [1, "ri-user-fill", "text-success", "fs-4", "me-2"], [1, "text-muted", "d-block"], [1, "ri-id-card-line", "me-1"], ["class", "text-muted d-block", 4, "ngIf"], [1, "ri-phone-line", "me-1"], ["class", "text-center p-3 bg-light rounded border", 4, "ngIf"], ["class", "invalid-feedback d-block mt-1", 4, "ngIf"], [1, "text-center", "p-3", "bg-light", "rounded", "border"], [1, "ri-user-search-line", "fs-2", "text-muted", "mb-2", "d-block"], ["type", "button", 1, "btn", "btn-sm", "btn-primary", 3, "click"], [1, "ri-search-line", "me-1"], [1, "input-group", "input-group-sm", "mb-2"], [1, "input-group-text"], [1, "ri-search-line"], ["type", "text", "placeholder", "Buscar...", "autocomplete", "off", 1, "form-control", 3, "input"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click"], [1, "ri-close-line"], ["class", "list-group", "style", "max-height: 250px; overflow-y: auto;", 4, "ngIf"], [1, "list-group", 2, "max-height", "250px", "overflow-y", "auto"], ["type", "button", "class", "list-group-item list-group-item-action p-2", 3, "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "list-group-item", "list-group-item-action", "p-2", 3, "click"], [1, "d-block", "small"], [1, "ri-arrow-right-s-line", "text-muted"], [1, "d-flex", "align-items-start", "justify-content-between"], [1, "d-flex", "align-items-start", "flex-grow-1"], [1, "badge", "bg-success", "mb-1"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-danger", 3, "click"], [1, "invalid-feedback", "d-block", "mt-1"], [1, "col-md-6"], [1, "ri-building-line", "fs-2", "text-muted", "mb-2", "d-block"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-primary", 3, "click"], ["type", "text", "placeholder", "Buscar organizaci\u00F3n...", 1, "form-control", 3, "input"], [1, "ri-building-line", "text-info", "me-2"], [1, "p-2", "bg-info", "bg-opacity-10", "rounded", "border", "border-info"], [1, "ri-building-fill", "text-info", "fs-4", "me-2"], [1, "badge", "bg-info", "mb-1"], [1, "mb-3"], [1, "alert", 3, "ngClass"], [1, "fs-5", "me-2", "mt-1"], ["class", "mb-2", 4, "ngIf"], [1, "d-block", "mt-1"], [1, "form-check", "form-switch", "mb-0"], ["type", "checkbox", "id", "freeReservationToggle", 1, "form-check-input", 3, "change", "checked"], ["for", "freeReservationToggle", 1, "form-check-label", "small", "fw-semibold"], [1, "ri-gift-line", "me-1"], [1, "ri-check-double-line", "me-2"], [1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function ReservationFormComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ReservationFormComponent_div_1_Template, 6, 0, "div", 2)(2, ReservationFormComponent_form_2_Template, 133, 56, "form", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.reservationForm);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.reservationForm);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.CurrencyPipe, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbTypeaheadModule, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.MaxValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 72074:
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/modals/booking/schedule-recurrent-selection/schedule-recurrent-selection.component.ts ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ScheduleRecurrentSelectionComponent: () => (/* binding */ ScheduleRecurrentSelectionComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);









function ScheduleRecurrentSelectionComponent_div_5_div_10_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slotConflict_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate3"](" \u2022 ", slotConflict_r3.slot.horaInicio, "-", slotConflict_r3.slot.horaFin, ": ", slotConflict_r3.conflictWith, " ");
  }
}
function ScheduleRecurrentSelectionComponent_div_5_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "div")(3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Ocupado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, ScheduleRecurrentSelectionComponent_div_5_div_10_div_10_Template, 2, 3, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const conflict_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](5, 3, conflict_r4.date, "fullDate"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" - ", conflict_r4.dayName, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", conflict_r4.conflictingSlots);
  }
}
function ScheduleRecurrentSelectionComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 48)(1, "div", 33)(2, "h6", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Conflictos de Reserva Encontrados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "button", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_div_5_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.hideConflicts());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 52)(7, "p", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Las siguientes fechas tienen conflictos con reservas existentes:");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, ScheduleRecurrentSelectionComponent_div_5_div_10_Template, 11, 6, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 52)(12, "small", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Por favor, ajuste sus horarios o fechas para evitar estos conflictos. ");
    _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"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r1.reservationConflicts);
  }
}
function ScheduleRecurrentSelectionComponent_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.errorMessage, " ");
  }
}
function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 74)(1, "div", 28)(2, "div", 75)(3, "div", 76)(4, "div", 77)(5, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "input", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngModelChange", function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template_input_ngModelChange_7_listener($event) {
      const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](slot_r9.horaInicio, $event) || (slot_r9.horaInicio = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template_input_change_7_listener() {
      const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.updateTimeSlot(dia_r6, slot_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 77)(9, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Fin");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "input", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngModelChange", function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template_input_ngModelChange_11_listener($event) {
      const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](slot_r9.horaFin, $event) || (slot_r9.horaFin = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template_input_change_11_listener() {
      const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).$implicit;
      const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.updateTimeSlot(dia_r6, slot_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 80)(13, "button", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template_button_click_13_listener() {
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8).index;
      const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.removeTimeSlot(dia_r6, i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "small", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](18, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const slot_r9 = ctx.$implicit;
    const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngModel", slot_r9.horaInicio);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("min", ctx_r1.minTime)("max", ctx_r1.maxTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngModel", slot_r9.horaFin);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("min", ctx_r1.minTime)("max", ctx_r1.maxTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", dia_r6.horarios.length === 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" Duraci\u00F3n: ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](18, 8, ctx_r1.calculateDuration(slot_r9.horaInicio, slot_r9.horaFin), "1.1-1"), "h ");
  }
}
function ScheduleRecurrentSelectionComponent_div_26_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ScheduleRecurrentSelectionComponent_div_26_div_6_div_1_Template, 19, 11, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "button", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_div_26_div_6_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r7);
      const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.addTimeSlot(dia_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Agregar otro horario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", dia_r6.horarios);
  }
}
function ScheduleRecurrentSelectionComponent_div_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 64)(1, "div", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_div_26_Template_div_click_1_listener() {
      const dia_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.toggleDay(dia_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, ScheduleRecurrentSelectionComponent_div_26_div_6_Template, 5, 1, "div", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dia_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("selected", dia_r6.selected);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", dia_r6.selected)("id", "dia-" + dia_r6.dia);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("for", "dia-" + dia_r6.dia);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", dia_r6.diaDisplay, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", dia_r6.selected);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dayCell_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](dayCell_r12.day);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_i_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 107);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 108);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_i_1_Template, 1, 0, "i", 105)(2, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_i_2_Template, 1, 0, "i", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dayCell_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", dayCell_r12.hasSchedule);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", dayCell_r12.isReserved);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 109)(1, "small", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dayCell_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r1.getDayTimes(dayCell_r12.dayName));
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_Template_div_click_0_listener() {
      const dayCell_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.toggleDateInCalendar(dayCell_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_span_2_Template, 2, 1, "span", 100)(3, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_3_Template, 3, 2, "div", 101)(4, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_div_4_Template, 3, 1, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dayCell_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("empty", dayCell_r12.empty)("out-of-range", dayCell_r12.isInRange === false)("selectable", dayCell_r12.isSelectable)("has-schedule", dayCell_r12.hasSchedule)("reserved", dayCell_r12.isReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !dayCell_r12.empty);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !dayCell_r12.empty);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", dayCell_r12.hasSchedule && !dayCell_r12.empty);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_ng_container_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_div_1_Template, 5, 13, "div", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const week_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", week_r13);
  }
}
function ScheduleRecurrentSelectionComponent_div_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85)(1, "div", 86)(2, "h5", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 87)(5, "div", 88)(6, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Dom");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Lun");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Mar");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Mi\u00E9");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Jue");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Vie");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "S\u00E1b");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, ScheduleRecurrentSelectionComponent_div_33_ng_container_20_Template, 2, 1, "ng-container", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 91)(22, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](23, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "D\u00EDa reservado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](27, "div", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Conflicto de reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "div", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "Fuera del rango");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const monthData_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", monthData_r14.monthName, " ", monthData_r14.year, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", monthData_r14.weeks);
  }
}
function ScheduleRecurrentSelectionComponent_div_75_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const detail_r15 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", detail_r15, " ");
  }
}
function ScheduleRecurrentSelectionComponent_div_75_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 52)(1, "div", 111)(2, "small", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Desglose:");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ScheduleRecurrentSelectionComponent_div_75_div_4_Template, 2, 1, "div", 113);
    _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"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r1.tariffDetails);
  }
}
function ScheduleRecurrentSelectionComponent_div_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 115)(1, "em");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Complete los horarios para calcular la tarifa");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function ScheduleRecurrentSelectionComponent_div_78_div_5_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Sin horarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ScheduleRecurrentSelectionComponent_div_78_div_5_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const day_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", day_r16.length, " horario(s) ");
  }
}
function ScheduleRecurrentSelectionComponent_div_78_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 121)(1, "span", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ScheduleRecurrentSelectionComponent_div_78_div_5_span_3_Template, 2, 0, "span", 123)(4, ScheduleRecurrentSelectionComponent_div_78_div_5_span_4_Template, 2, 1, "span", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const day_r16 = ctx.$implicit;
    const i_r17 = ctx.index;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", i_r17 === 0 ? "Lun" : i_r17 === 1 ? "Mar" : i_r17 === 2 ? "Mi\u00E9" : i_r17 === 3 ? "Jue" : i_r17 === 4 ? "Vie" : i_r17 === 5 ? "S\u00E1b" : "Dom", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", day_r16.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", day_r16.length > 0);
  }
}
function ScheduleRecurrentSelectionComponent_div_78_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 116)(1, "label", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Resumen de Horarios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ScheduleRecurrentSelectionComponent_div_78_div_5_Template, 5, 3, "div", 120);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r1.tablero);
  }
}
class ScheduleRecurrentSelectionComponent {
  get anticipationHours() {
    if (!this.dataTariff) {
      return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
    switch (this.dataTariff.tipoCobro) {
      case 'por_evento':
        const diasEventos = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.DIAS_ANTICIPACION_EVENTOS]?.valorNumerico;
        return diasEventos ? diasEventos * 24 : undefined;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HORAS_ANTICIPACION_RECURRENTES]?.valorNumerico;
      default:
        return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_0__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
  }
  constructor(authenticationService) {
    this.authenticationService = authenticationService;
    this.reservationsList = [];
    this.userRole = 'Contribuyente';
    this.scheduleCompleted = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.tipoRecurrencia = '';
    this.fechaInicio = '';
    this.fechaFin = '';
    this.diasSemana = [{
      dia: 'lunes',
      diaDisplay: 'Lunes',
      selected: false,
      horarios: []
    }, {
      dia: 'martes',
      diaDisplay: 'Martes',
      selected: false,
      horarios: []
    }, {
      dia: 'miercoles',
      diaDisplay: 'Miércoles',
      selected: false,
      horarios: []
    }, {
      dia: 'jueves',
      diaDisplay: 'Jueves',
      selected: false,
      horarios: []
    }, {
      dia: 'viernes',
      diaDisplay: 'Viernes',
      selected: false,
      horarios: []
    }, {
      dia: 'sabado',
      diaDisplay: 'Sábado',
      selected: false,
      horarios: []
    }, {
      dia: 'domingo',
      diaDisplay: 'Domingo',
      selected: false,
      horarios: []
    }];
    this.tablero = [];
    this.calendarMonths = [];
    this.minTime = '06:00';
    this.maxTime = '23:00';
    this.errorMessage = '';
    this.reservationConflicts = [];
    this.showConflicts = false;
    this.systemConfigList = {};
    this.calculatedTariff = 0;
    this.tariffDetails = [];
    this.showTariffBreakdown = false;
  }
  ngOnInit() {
    this.systemConfigList = this.authenticationService.getAllConfigs();
    this.initializeDates();
    this.loadFieldConstraints();
    this.generateCalendar();
  }
  initializeDates() {
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    const startDate = new Date(today);
    startDate.setDate(today.getDate() + 7);
    this.fechaInicio = this.formatDateForInput(startDate);
    const endDate = new Date(startDate);
    endDate.setMonth(startDate.getMonth() + 1);
    this.fechaFin = this.formatDateForInput(endDate);
  }
  formatDateForInput(date) {
    return date.toISOString().split('T')[0];
  }
  parseDateFromInput(dateString) {
    return new Date(dateString + 'T00:00:00');
  }
  loadFieldConstraints() {
    const horarioLV = this.dataField?.horariosFijosDtoList?.find(h => h.dia === 'lunes_viernes' && h.abierto);
    if (horarioLV) {
      this.minTime = horarioLV.horaApertura?.slice(0, 5) || '06:00';
      this.maxTime = horarioLV.horaCierre?.slice(0, 5) || '23:00';
    }
    if (this.dataTariff?.desde) {
      const tarifaMin = this.dataTariff.desde.slice(0, 5);
      if (tarifaMin > this.minTime) this.minTime = tarifaMin;
    }
    if (this.dataTariff?.hasta) {
      const tarifaMax = this.dataTariff.hasta.slice(0, 5);
      if (tarifaMax < this.maxTime) this.maxTime = tarifaMax;
    }
  }
  generateCalendar() {
    if (!this.fechaInicio || !this.fechaFin) return;
    this.calendarMonths = [];
    this.tablero = [];
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    const current = new Date(start.getFullYear(), start.getMonth(), 1);
    const lastMonth = new Date(end.getFullYear(), end.getMonth(), 1);
    while (current <= lastMonth) {
      this.calendarMonths.push(this.generateMonth(new Date(current)));
      current.setMonth(current.getMonth() + 1);
    }
    this.initializeTablero();
  }
  generateMonth(date) {
    const year = date.getFullYear();
    const month = date.getMonth();
    const firstDay = new Date(year, month, 1);
    const lastDay = new Date(year, month + 1, 0);
    const weeks = [];
    let week = [];
    const startDay = firstDay.getDay();
    for (let i = 0; i < startDay; i++) {
      week.push({
        empty: true
      });
    }
    for (let day = 1; day <= lastDay.getDate(); day++) {
      const currentDate = new Date(year, month, day);
      const isInRange = currentDate >= this.parseDateFromInput(this.fechaInicio) && currentDate <= this.parseDateFromInput(this.fechaFin);
      const dayOfWeek = currentDate.getDay();
      const dayName = this.getDayName(dayOfWeek);
      const dayConfig = this.diasSemana.find(d => d.dia === dayName);
      const isSelectable = isInRange && dayConfig?.selected;
      const hasSchedule = isSelectable;
      const isReserved = hasSchedule && this.checkReservationConflicts(currentDate);
      week.push({
        date: currentDate,
        day: day,
        isInRange: isInRange,
        isSelectable: isSelectable,
        dayOfWeek: dayOfWeek,
        dayName: dayName,
        hasSchedule: hasSchedule,
        isReserved: isReserved,
        conflictDetails: isReserved ? this.getDayConflicts(currentDate) : null
      });
      if (week.length === 7) {
        weeks.push(week);
        week = [];
      }
    }
    while (week.length > 0 && week.length < 7) {
      week.push({
        empty: true
      });
    }
    if (week.length > 0) {
      weeks.push(week);
    }
    return {
      year: year,
      month: month,
      monthName: this.getMonthName(month),
      weeks: weeks
    };
  }
  initializeTablero() {
    this.tablero = Array(7).fill(null).map(() => Array(3).fill(''));
    this.diasSemana.forEach(dia => {
      if (dia.selected && dia.horarios.length > 0) {
        const tableroIndex = this.getTableroIndex(dia.dia);
        if (tableroIndex !== -1) {
          this.tablero[tableroIndex] = ['', '', ''];
          dia.horarios.forEach(horario => {
            const periodIndex = this.getPeriodIndex(horario);
            if (periodIndex !== -1) {
              this.tablero[tableroIndex][periodIndex] = `${horario.horaInicio}-${horario.horaFin}`;
            }
          });
        }
      }
    });
  }
  getPeriodIndex(horario) {
    const startTime = this.timeToMinutes(horario.horaInicio);
    if (startTime <= 720) {
      return 0;
    } else if (startTime <= 1080) {
      return 1;
    } else {
      return 2;
    }
  }
  getPeriodForSlot(slot) {
    const periodIndex = this.getPeriodIndex(slot);
    switch (periodIndex) {
      case 0:
        return 'morning';
      case 1:
        return 'afternoon';
      case 2:
        return 'night';
      default:
        return 'unknown';
    }
  }
  timeToMinutes(time) {
    const [hours, minutes] = time.split(':').map(Number);
    return hours * 60 + minutes;
  }
  assignTimeSlotToPeriod(horario) {
    const startTime = this.timeToMinutes(horario.horaInicio);
    const endTime = this.timeToMinutes(horario.horaFin);
    const morningEnd = 720; // 12:00
    const afternoonEnd = 1080; // 18:00
    let morningTime = 0;
    let afternoonTime = 0;
    let nightTime = 0;
    if (startTime < morningEnd) {
      morningTime = Math.min(endTime, morningEnd) - startTime;
    }
    if (endTime > morningEnd && startTime < afternoonEnd) {
      const afternoonStart = Math.max(startTime, morningEnd + 1);
      afternoonTime = Math.min(endTime, afternoonEnd) - afternoonStart;
    }
    if (endTime > afternoonEnd) {
      const nightStart = Math.max(startTime, afternoonEnd + 1);
      nightTime = endTime - nightStart;
    }
    if (morningTime >= afternoonTime && morningTime >= nightTime) {
      return 0;
    } else if (afternoonTime >= morningTime && afternoonTime >= nightTime) {
      return 1;
    } else {
      return 2;
    }
  }
  initializeTableroWithSmartAssignment() {
    this.tablero = Array(7).fill(null).map(() => Array(3).fill(''));
    this.diasSemana.forEach(dia => {
      if (dia.selected && dia.horarios.length > 0) {
        const tableroIndex = this.getTableroIndex(dia.dia);
        if (tableroIndex !== -1) {
          this.tablero[tableroIndex] = ['', '', ''];
          dia.horarios.forEach(horario => {
            const periodIndex = this.assignTimeSlotToPeriod(horario);
            this.tablero[tableroIndex][periodIndex] = `${horario.horaInicio}-${horario.horaFin}`;
          });
        }
      }
    });
  }
  checkReservationConflicts(date) {
    if (!this.reservationsList || this.reservationsList.length === 0) {
      return false;
    }
    const dayOfWeek = date.getDay();
    const dayName = this.getDayName(dayOfWeek);
    const dayConfig = this.diasSemana.find(d => d.dia === dayName);
    if (!dayConfig?.selected) {
      return false;
    }
    return dayConfig.horarios.some(slot => this.hasTimeConflictWithExistingReservations(date, dayName, slot));
  }
  hasTimeConflictWithExistingReservations(date, dayName, slot) {
    for (const reserva of this.reservationsList) {
      if (reserva.campoDeportivoDto?.uuid !== this.dataField.uuid) continue;
      if (reserva.tipoReserva === 'recurrente' && reserva.reservaRecurrenteDto) {
        const recurrente = reserva.reservaRecurrenteDto;
        const reservaStart = new Date(recurrente.fechaInicio);
        const reservaEnd = new Date(recurrente.fechaFin);
        if (date >= reservaStart && date <= reservaEnd) {
          const reservaDays = recurrente.diasSemana?.toLowerCase().split(',') || [];
          if (reservaDays.includes(dayName.toLowerCase())) {
            if (this.hasTimeConflictWithRecurrenteTablero(slot, recurrente, dayName)) {
              return true;
            }
          }
        }
      }
      if (reserva.tipoReserva === 'periodo' && reserva.reservaPeriodoDto) {
        const periodo = reserva.reservaPeriodoDto;
        if (date.getFullYear() === periodo.año && date.getMonth() + 1 === periodo.mes) {
          if (this.hasTimeConflictWithPeriodo(slot, reserva)) {
            return true;
          }
        }
      }
    }
    return false;
  }
  hasTimeConflictWithRecurrenteTablero(slot, recurrente, dayName) {
    if (!recurrente.tableroDto?.horario) {
      return false;
    }
    const dayIndex = this.getTableroIndex(dayName);
    if (dayIndex === -1) return false;
    const existingTimeSlots = recurrente.tableroDto.horario[dayIndex] || [];
    return existingTimeSlots.some(existingSlot => {
      if (!existingSlot) return false;
      const [existingStart, existingEnd] = existingSlot.split('-');
      return this.hasTimeConflict(slot.horaInicio, slot.horaFin, existingStart, existingEnd);
    });
  }
  hasTimeConflictWithRecurrente(slot, recurrente) {
    if (recurrente.tableroDto?.horario) {
      return this.hasTimeConflictWithRecurrenteTablero(slot, recurrente, this.getDayName(new Date().getDay()));
    }
    const defaultStart = '08:00';
    const defaultEnd = this.addHour(defaultStart, recurrente.duracionSesionHoras || 1);
    return this.hasTimeConflict(slot.horaInicio, slot.horaFin, defaultStart, defaultEnd);
  }
  hasTimeConflictWithPeriodo(slot, periodoReserva) {
    if (periodoReserva.reservaRecurrenteDto) {
      return this.hasTimeConflictWithRecurrente(slot, periodoReserva.reservaRecurrenteDto);
    }
    return this.hasTimeConflict(slot.horaInicio, slot.horaFin, '08:00', '10:00');
  }
  hasTimeConflict(start1, end1, start2, end2) {
    const timeToMinutes = time => {
      const [hours, minutes] = time.split(':').map(Number);
      return hours * 60 + minutes;
    };
    const start1Min = timeToMinutes(start1);
    const end1Min = timeToMinutes(end1);
    const start2Min = timeToMinutes(start2);
    const end2Min = timeToMinutes(end2);
    return start1Min < end2Min && start2Min < end1Min;
  }
  getDayConflicts(date) {
    const dayOfWeek = date.getDay();
    const dayName = this.getDayName(dayOfWeek);
    const dayConfig = this.diasSemana.find(d => d.dia === dayName);
    const conflictingSlots = [];
    if (dayConfig?.selected && this.reservationsList) {
      dayConfig.horarios.forEach(slot => {
        const conflictReason = this.getConflictReason(date, dayName, slot);
        if (conflictReason) {
          conflictingSlots.push({
            slot,
            conflictWith: conflictReason
          });
        }
      });
    }
    return {
      date: new Date(date),
      dayName: dayName,
      conflictingSlots: conflictingSlots
    };
  }
  getConflictReason(date, dayName, slot) {
    for (const reserva of this.reservationsList) {
      if (reserva.campoDeportivoDto?.uuid !== this.dataField.uuid) continue;
      if (reserva.tipoReserva === 'recurrente' && reserva.reservaRecurrenteDto) {
        const recurrente = reserva.reservaRecurrenteDto;
        const reservaStart = new Date(recurrente.fechaInicio);
        const reservaEnd = new Date(recurrente.fechaFin);
        if (date >= reservaStart && date <= reservaEnd) {
          const reservaDays = recurrente.diasSemana?.toLowerCase().split(',') || [];
          if (reservaDays.includes(dayName.toLowerCase())) {
            if (this.hasTimeConflictWithRecurrenteTablero(slot, recurrente, dayName)) {
              const reservaInfo = `Reserva recurrente #${reserva.numeroReserva} (${recurrente.fechaInicio} a ${recurrente.fechaFin})`;
              return reservaInfo;
            }
          }
        }
      }
      if (reserva.tipoReserva === 'periodo' && reserva.reservaPeriodoDto) {
        const periodo = reserva.reservaPeriodoDto;
        if (date.getFullYear() === periodo.año && date.getMonth() + 1 === periodo.mes) {
          if (this.hasTimeConflictWithPeriodo(slot, reserva)) {
            return `Mensualidad: ${reserva.estudianteEscuelaDto?.nombreCompleto || 'Estudiante'} - ${periodo.mes}/${periodo.año}`;
          }
        }
      }
    }
    return null;
  }
  checkAllConflicts() {
    const conflicts = [];
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    const current = new Date(start);
    while (current <= end) {
      const dayConflicts = this.getDayConflicts(new Date(current));
      if (dayConflicts.conflictingSlots.length > 0) {
        conflicts.push(dayConflicts);
      }
      current.setDate(current.getDate() + 1);
    }
    return conflicts;
  }
  getConflictSummary() {
    if (this.reservationConflicts.length === 0) return '';
    const conflictDates = this.reservationConflicts.map(conflict => conflict.date.toLocaleDateString());
    return `Conflicto(s) en: ${conflictDates.join(', ')}`;
  }
  hideConflicts() {
    this.showConflicts = false;
  }
  getTableroIndex(diaName) {
    const dayMap = {
      'lunes': 0,
      'martes': 1,
      'miercoles': 2,
      'jueves': 3,
      'viernes': 4,
      'sabado': 5,
      'domingo': 6
    };
    return dayMap[diaName] !== undefined ? dayMap[diaName] : -1;
  }
  toggleDateInCalendar(dayCell) {
    if (!dayCell.isInRange || dayCell.empty) return;
    const dayConfig = this.diasSemana.find(d => d.dia === dayCell.dayName);
    if (!dayConfig) return;
    dayConfig.selected = !dayConfig.selected;
    if (dayConfig.selected && dayConfig.horarios.length === 0) {
      dayConfig.horarios.push({
        horaInicio: '08:00',
        horaFin: '09:00'
      });
    }
    this.generateCalendar();
    this.validateSchedule();
  }
  hasTimeSlotOverlap(dia) {
    for (let i = 0; i < dia.horarios.length; i++) {
      for (let j = i + 1; j < dia.horarios.length; j++) {
        const slot1 = dia.horarios[i];
        const slot2 = dia.horarios[j];
        if (this.hasTimeConflict(slot1.horaInicio, slot1.horaFin, slot2.horaInicio, slot2.horaFin)) {
          return true;
        }
      }
    }
    return false;
  }
  onFechaInicioChange() {
    if (this.fechaInicio >= this.fechaFin) {
      const newEnd = new Date(this.fechaInicio + 'T00:00:00');
      newEnd.setMonth(newEnd.getMonth() + 1);
      this.fechaFin = this.formatDateForInput(newEnd);
    }
    this.generateCalendar();
    this.calculateTotalHours();
    this.calculateTariff();
  }
  onFechaFinChange() {
    const startDate = this.parseDateFromInput(this.fechaInicio);
    const endDate = this.parseDateFromInput(this.fechaFin);
    if (endDate <= startDate) {
      this.errorMessage = 'La fecha de fin debe ser posterior a la fecha de inicio';
      return;
    }
    const maxMonths = 6;
    const maxDate = new Date(startDate);
    maxDate.setMonth(maxDate.getMonth() + maxMonths);
    if (endDate > maxDate) {
      this.errorMessage = `La reserva no puede exceder ${maxMonths} meses`;
      this.fechaFin = this.formatDateForInput(maxDate);
    } else {
      this.errorMessage = '';
    }
    this.generateCalendar();
    this.calculateTotalHours();
    this.calculateTariff();
  }
  addTimeSlot(dia) {
    const lastSlot = dia.horarios[dia.horarios.length - 1];
    const newStart = lastSlot ? this.addHour(lastSlot.horaFin) : '08:00';
    const newEnd = this.addHour(newStart);
    dia.horarios.push({
      horaInicio: newStart,
      horaFin: newEnd
    });
    this.initializeTableroWithSmartAssignment();
    this.calculateTotalHours();
    this.calculateTariff();
  }
  removeTimeSlot(dia, index) {
    if (dia.horarios.length > 1) {
      dia.horarios.splice(index, 1);
      this.initializeTableroWithSmartAssignment();
      this.calculateTotalHours();
      this.calculateTariff();
    }
  }
  updateTimeSlot(dia, slot) {
    if (!this.validateTimeRange(slot.horaInicio, slot.horaFin)) {
      this.errorMessage = 'La hora de fin debe ser mayor que la hora de inicio';
      return;
    }
    if (this.hasTimeSlotOverlap(dia)) {
      this.errorMessage = `Horarios superpuestos en ${dia.diaDisplay}`;
      return;
    }
    const operatingPeriods = this.getOperatingPeriodsForDay(dia.dia);
    if (operatingPeriods.length > 0 && !this.isTimeWithinFieldHours(dia.dia, slot.horaInicio, slot.horaFin)) {
      const operatingHours = operatingPeriods.map(p => `${p.start.slice(0, 5)}-${p.end.slice(0, 5)}`).join(', ');
      this.errorMessage = `El horario debe estar dentro del horario de atención: ${operatingHours}`;
      return;
    }
    this.errorMessage = '';
    this.initializeTableroWithSmartAssignment();
    this.calculateTariff();
  }
  toggleDay(dia) {
    dia.selected = !dia.selected;
    if (dia.selected && dia.horarios.length === 0) {
      dia.horarios.push({
        horaInicio: '08:00',
        horaFin: '09:00'
      });
    }
    this.generateCalendar();
    this.validateSchedule();
    this.calculateTariff();
  }
  calculateTotalHours() {
    let totalHours = 0;
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    totalHours = 0;
    this.diasSemana.forEach(dia => {
      if (dia.selected) {
        const dayOccurrences = this.countDayOccurrencesInRange(dia.dia, start, end);
        dia.horarios.forEach(slot => {
          const duration = this.calculateDuration(slot.horaInicio, slot.horaFin);
          totalHours += duration * dayOccurrences;
        });
      }
    });
    return totalHours;
  }
  countDayOccurrencesInRange(dayName, start, end) {
    const dayMap = {
      'domingo': 0,
      'lunes': 1,
      'martes': 2,
      'miercoles': 3,
      'jueves': 4,
      'viernes': 5,
      'sabado': 6
    };
    const targetDay = dayMap[dayName];
    let count = 0;
    const current = new Date(start);
    while (current <= end) {
      if (current.getDay() === targetDay) {
        count++;
      }
      current.setDate(current.getDate() + 1);
    }
    return count;
  }
  calculateDuration(start, end) {
    const [startH, startM] = start.split(':').map(Number);
    const [endH, endM] = end.split(':').map(Number);
    const startMinutes = startH * 60 + startM;
    const endMinutes = endH * 60 + endM;
    return (endMinutes - startMinutes) / 60;
  }
  calculateAverageDuration() {
    const selectedDays = this.diasSemana.filter(d => d.selected);
    if (selectedDays.length === 0) return 0;
    let totalDuration = 0;
    let totalSlots = 0;
    selectedDays.forEach(dia => {
      dia.horarios.forEach(slot => {
        totalDuration += this.calculateDuration(slot.horaInicio, slot.horaFin);
        totalSlots++;
      });
    });
    return totalSlots > 0 ? totalDuration / totalSlots : 0;
  }
  calculateTariff() {
    this.calculatedTariff = 0;
    this.tariffDetails = [];
    if (!this.dataTariff) return;
    const totalHours = this.calculateTotalHours();
    const totalMonths = this.calculateTotalMonths();
    switch (this.dataTariff.tipoCobro) {
      case 'mensualidad':
        this.calculatedTariff = this.dataTariff.precioBase * totalMonths;
        this.tariffDetails.push(`Tarifa mensual: Bs. ${this.dataTariff.precioBase} × ${totalMonths} meses = Bs. ${this.calculatedTariff.toFixed(2)}`);
        break;
      case 'por_sesion':
        const applicableBaseHours = this.calculateHoursWithinTariffRange();
        this.calculatedTariff = this.dataTariff.precioBase * applicableBaseHours;
        this.tariffDetails.push(`Tarifa por sesión: Bs. ${this.dataTariff.precioBase} × ${applicableBaseHours.toFixed(1)} horas = Bs. ${this.calculatedTariff.toFixed(2)}`);
        break;
      case 'por_hora':
        const applicableHours = this.calculateHoursWithinTariffRange();
        this.calculatedTariff = this.dataTariff.precioBase * applicableHours;
        this.tariffDetails.push(`Tarifa por hora: Bs. ${this.dataTariff.precioBase} × ${applicableHours.toFixed(1)} horas = Bs. ${this.calculatedTariff.toFixed(2)}`);
        break;
      case 'por_club':
        this.calculatedTariff = this.dataTariff.precioBase * totalMonths;
        this.tariffDetails.push(`Tarifa club: Bs. ${this.dataTariff.precioBase} × ${totalMonths} meses = Bs. ${this.calculatedTariff.toFixed(2)}`);
        break;
      default:
        console.warn('Tipo de cobro no reconocido:', this.dataTariff.tipoCobro);
    }
    this.calculateAdditionalConcepts(totalHours, totalMonths);
  }
  calculateHoursWithinTariffRange() {
    if (!this.dataTariff.desde || !this.dataTariff.hasta) {
      return this.calculateTotalHours();
    }
    let applicableHours = 0;
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    const tariffStart = this.timeToMinutes(this.dataTariff.desde);
    const tariffEnd = this.timeToMinutes(this.dataTariff.hasta);
    this.diasSemana.forEach(dia => {
      if (dia.selected) {
        const dayOccurrences = this.countDayOccurrencesInRange(dia.dia, start, end);
        dia.horarios.forEach(slot => {
          const slotStart = this.timeToMinutes(slot.horaInicio);
          const slotEnd = this.timeToMinutes(slot.horaFin);
          const overlapStart = Math.max(slotStart, tariffStart);
          const overlapEnd = Math.min(slotEnd, tariffEnd);
          const overlapHours = Math.max(0, overlapEnd - overlapStart) / 60;
          if (overlapHours > 0) {
            applicableHours += overlapHours * dayOccurrences;
          }
        });
      }
    });
    return applicableHours;
  }
  calculateTotalMonths() {
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    const months = (end.getFullYear() - start.getFullYear()) * 12 + (end.getMonth() - start.getMonth());
    const endOfMonth = new Date(end.getFullYear(), end.getMonth() + 1, 0);
    if (end.getDate() < endOfMonth.getDate()) {
      return months + 1;
    }
    return Math.max(1, months);
  }
  calculateAdditionalConcepts(totalHours, totalMonths) {
    if (!this.dataTariff.conceptosDtos || this.dataTariff.conceptosDtos.length === 0) {
      return;
    }
    let conceptTotal = 0;
    this.dataTariff.conceptosDtos.forEach(concepto => {
      if (!concepto.activo) return;
      let conceptAmount = 0;
      let conceptDetail = '';
      let applicableHours = 0;
      switch (concepto.tipo) {
        case 'por_hora':
        case 'por_sesion':
          applicableHours = this.calculateApplicableHoursForConcepto(concepto);
          if (applicableHours > 0) {
            conceptAmount = (concepto.valor || 0) * applicableHours;
            conceptDetail = `${concepto.concepto}: Bs. ${concepto.valor} × ${applicableHours.toFixed(1)}h = Bs. ${conceptAmount.toFixed(2)}`;
          }
          break;
        case 'mensualidad':
          conceptAmount = (concepto.valor || 0) * totalMonths;
          conceptDetail = `${concepto.concepto}: Bs. ${concepto.valor} × ${totalMonths} meses = Bs. ${conceptAmount.toFixed(2)}`;
          break;
        case 'porcentaje':
          conceptAmount = this.calculatedTariff * (concepto.valor || 0) / 100;
          conceptDetail = `${concepto.concepto}: ${concepto.valor}% = Bs. ${conceptAmount.toFixed(2)}`;
          break;
        case 'monto_fijo':
        case 'fijo':
          conceptAmount = concepto.valor || 0;
          conceptDetail = `${concepto.concepto}: Bs. ${conceptAmount.toFixed(2)}`;
          break;
      }
      if (conceptAmount > 0) {
        this.calculatedTariff += conceptAmount;
        conceptTotal += conceptAmount;
        this.tariffDetails.push(conceptDetail);
      }
    });
    if (conceptTotal > 0) {
      this.tariffDetails.push(`Total conceptos adicionales: Bs. ${conceptTotal.toFixed(2)}`);
    }
  }
  calculateApplicableHoursForConcepto(concepto) {
    if (!concepto.desde || !concepto.hasta) {
      return this.calculateTotalHours();
    }
    let applicableHours = 0;
    const start = this.parseDateFromInput(this.fechaInicio);
    const end = this.parseDateFromInput(this.fechaFin);
    const conceptoStart = this.timeToMinutes(concepto.desde);
    const conceptoEnd = this.timeToMinutes(concepto.hasta);
    this.diasSemana.forEach(dia => {
      if (dia.selected) {
        const dayOccurrences = this.countDayOccurrencesInRange(dia.dia, start, end);
        dia.horarios.forEach(slot => {
          const slotStart = this.timeToMinutes(slot.horaInicio);
          const slotEnd = this.timeToMinutes(slot.horaFin);
          const overlapStart = Math.max(slotStart, conceptoStart);
          const overlapEnd = Math.min(slotEnd, conceptoEnd);
          const overlapHours = Math.max(0, overlapEnd - overlapStart) / 60;
          if (overlapHours > 0) {
            applicableHours += overlapHours * dayOccurrences;
          }
        });
      }
    });
    return applicableHours;
  }
  getOperatingPeriodsForDay(dayName) {
    if (!this.dataField?.horariosFijosDtoList) return [];
    const operatingPeriods = [];
    const allSchedules = this.dataField.horariosFijosDtoList;
    const exactDaySchedules = allSchedules.filter(schedule => schedule.dia === dayName && schedule.abierto && schedule.horaApertura && schedule.horaCierre);
    const weekdays = ['lunes', 'martes', 'miercoles', 'jueves', 'viernes'];
    if (weekdays.includes(dayName)) {
      const weekdaySchedules = allSchedules.filter(schedule => schedule.dia === 'lunes_viernes' && schedule.abierto && schedule.horaApertura && schedule.horaCierre);
      exactDaySchedules.push(...weekdaySchedules);
    }
    exactDaySchedules.forEach(schedule => {
      operatingPeriods.push({
        start: schedule.horaApertura,
        end: schedule.horaCierre
      });
    });
    return operatingPeriods;
  }
  isTimeWithinFieldHours(dayName, startTime, endTime) {
    const operatingPeriods = this.getOperatingPeriodsForDay(dayName);
    if (operatingPeriods.length === 0) {
      return false;
    }
    const slotStart = this.timeToMinutes(startTime);
    const slotEnd = this.timeToMinutes(endTime);
    return operatingPeriods.some(period => {
      const periodStart = this.timeToMinutes(period.start);
      const periodEnd = this.timeToMinutes(period.end);
      return slotStart >= periodStart && slotEnd <= periodEnd;
    });
  }
  validateSchedule() {
    this.errorMessage = '';
    this.reservationConflicts = [];
    const selectedDays = this.diasSemana.filter(d => d.selected);
    if (selectedDays.length === 0) {
      this.errorMessage = 'Debe seleccionar al menos un día de la semana';
      return false;
    }
    if (!this.fechaInicio || !this.fechaFin) {
      this.errorMessage = 'Debe seleccionar un rango de fechas válido';
      return false;
    }
    const startDate = this.parseDateFromInput(this.fechaInicio);
    const endDate = this.parseDateFromInput(this.fechaFin);
    if (endDate <= startDate) {
      this.errorMessage = 'La fecha de fin debe ser posterior a la fecha de inicio';
      return false;
    }
    for (const dia of selectedDays) {
      if (dia.horarios.length === 0) {
        this.errorMessage = `${dia.diaDisplay} no tiene horarios configurados`;
        return false;
      }
      const operatingPeriods = this.getOperatingPeriodsForDay(dia.dia);
      if (operatingPeriods.length === 0) {
        this.errorMessage = `El campo está cerrado los ${dia.diaDisplay}`;
        return false;
      }
      for (const slot of dia.horarios) {
        if (!this.validateTimeRange(slot.horaInicio, slot.horaFin)) {
          this.errorMessage = `Horario inválido para ${dia.diaDisplay}: la hora de fin debe ser mayor que la hora de inicio`;
          return false;
        }
        if (!this.isTimeWithinFieldHours(dia.dia, slot.horaInicio, slot.horaFin)) {
          const operatingHours = operatingPeriods.map(p => `${p.start.slice(0, 5)}-${p.end.slice(0, 5)}`).join(', ');
          this.errorMessage = `El horario para ${dia.diaDisplay} (${slot.horaInicio}-${slot.horaFin}) debe estar dentro del horario de atención: ${operatingHours}`;
          return false;
        }
        if (!this.isTimeInRange(slot.horaInicio) || !this.isTimeInRange(slot.horaFin)) {
          this.errorMessage = `El horario para ${dia.diaDisplay} debe estar entre ${this.minTime} y ${this.maxTime}`;
          return false;
        }
      }
      if (this.hasTimeSlotOverlap(dia)) {
        this.errorMessage = `Horarios superpuestos en ${dia.diaDisplay}`;
        return false;
      }
    }
    const conflicts = this.checkAllConflicts();
    if (conflicts.length > 0) {
      this.reservationConflicts = conflicts;
      this.showConflicts = true;
      this.errorMessage = `Se encontraron ${conflicts.length} conflicto(s) con reservas existentes. Revise los detalles antes de continuar.`;
      return false;
    }
    return true;
  }
  validateTimeRange(start, end) {
    return start < end;
  }
  isTimeInRange(time) {
    return time >= this.minTime && time <= this.maxTime;
  }
  getDayTimes(dayName) {
    const dayConfig = this.diasSemana.find(d => d.dia === dayName);
    if (dayConfig && dayConfig.selected) {
      return dayConfig.horarios.map(slot => `${slot.horaInicio}-${slot.horaFin}`).join(', ');
    }
    return '';
  }
  getDayName(dayOfWeek) {
    const days = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    return days[dayOfWeek];
  }
  getMonthName(month) {
    const months = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];
    return months[month];
  }
  addHour(time, hoursToAdd = 1) {
    const [hours, minutes] = time.split(':').map(Number);
    const newHours = (hours + hoursToAdd) % 24;
    return `${newHours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`;
  }
  confirmar() {
    if (!this.validateSchedule()) {
      return;
    }
    const selectedDays = this.diasSemana.filter(d => d.selected);
    const totalSessions = this.calculateTotalHours() || 0;
    const diasSemanaString = selectedDays.map(d => d.dia).join(',');
    const scheduleData = {
      tipoRecurrencia: this.tipoRecurrencia,
      fechaInicio: this.parseDateFromInput(this.fechaInicio),
      fechaFin: this.parseDateFromInput(this.fechaFin),
      diasSeleccionados: selectedDays,
      tablero: this.tablero,
      cantidadSesiones: totalSessions,
      duracionSesionHoras: this.calculateAverageDuration(),
      diasSemana: diasSemanaString
    };
    this.scheduleCompleted.emit(scheduleData);
  }
  get selectedDaysCount() {
    return this.diasSemana.filter(d => d.selected).length;
  }
  get totalHours() {
    return this.calculateTotalHours();
  }
  get diasSeleccionadosString() {
    return this.diasSemana.filter(d => d.selected).map(d => d.diaDisplay).join(', ');
  }
  get canConfirm() {
    return this.selectedDaysCount > 0 && !this.errorMessage && this.reservationConflicts.length === 0;
  }
  static {
    this.ɵfac = function ScheduleRecurrentSelectionComponent_Factory(t) {
      return new (t || ScheduleRecurrentSelectionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
      type: ScheduleRecurrentSelectionComponent,
      selectors: [["app-schedule-recurrent-selection"]],
      inputs: {
        dataField: "dataField",
        dataTariff: "dataTariff",
        reservationsList: "reservationsList",
        userRole: "userRole"
      },
      outputs: {
        scheduleCompleted: "scheduleCompleted"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵStandaloneFeature"]],
      decls: 101,
      vars: 36,
      consts: [[1, "recurrent-schedule-container"], [1, "row"], [1, "col-lg-8"], [1, "card"], [1, "card-body"], ["class", "alert alert-warning mt-3", 4, "ngIf"], ["class", "alert alert-danger", 4, "ngIf"], [1, "row", "mb-2", "g-1", "g-md-2"], [1, "col-6"], [1, "form-label", "fw-medium", "mb-0"], [1, "bx", "bx-calendar-check", "me-1"], ["type", "date", 1, "form-control", 3, "ngModelChange", "change", "ngModel"], [1, "bx", "bx-calendar-x", "me-1"], ["type", "date", 1, "form-control", 3, "ngModelChange", "change", "ngModel", "min"], [1, "card", "bg-light", "mb-2"], [1, "mb-2"], [1, "ri-calendar-event-line", "me-1"], [1, "text-muted"], [1, "days-grid"], ["class", "day-selector-card mb-3", 4, "ngFor", "ngForOf"], [1, "calendar-section"], [1, "ri-calendar-2-line", "me-1"], ["class", "calendar-month mb-2", 4, "ngFor", "ngForOf"], [1, "col-lg-4"], [1, "card-header", "bg-success-subtle"], [1, "mb-0", "text-success"], [1, "ri-calendar-check-line", "me-1"], [1, "d-block", "mb-1"], [1, "d-flex", "align-items-center", "gap-2"], [1, "ri-calendar-line", "text-primary"], [1, "text-muted", "me-2", "ms-2"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-2"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-secondary", 3, "click", "disabled"], [1, "d-flex", "justify-content-between", "align-items-center"], [1, "d-block", "text-muted"], [1, "text-success", "mb-0"], ["class", "mt-2", 4, "ngIf"], ["class", "text-muted small", 4, "ngIf"], ["class", "summary-item mb-3", 4, "ngIf"], [1, "col-4", "text-center", "p-3", "bg-light", "rounded"], [1, "stat-value", "text-primary", "h4", "mb-1"], [1, "stat-label", "small", "text-muted"], [1, "stat-value", "text-success", "h4", "mb-1"], [1, "stat-value", "text-info", "h4", "mb-1"], [1, "card-footer"], [1, "d-flex", "justify-content-end"], ["type", "button", 1, "btn", "btn-primary", 3, "click", "disabled"], [1, "ri-check-line", "me-1"], [1, "alert", "alert-warning", "mt-3"], [1, "mb-0"], [1, "ri-alert-line", "me-2"], ["type", "button", 1, "btn-close", 3, "click"], [1, "mt-2"], [1, "conflicts-list"], ["class", "conflict-item border rounded p-2 mb-2", 4, "ngFor", "ngForOf"], [1, "ri-information-line", "me-1"], [1, "conflict-item", "border", "rounded", "p-2", "mb-2"], [1, "d-flex", "justify-content-between", "align-items-start"], [1, "badge", "bg-danger"], [1, "conflict-slots", "mt-1"], ["class", "slot-conflict small text-muted", 4, "ngFor", "ngForOf"], [1, "slot-conflict", "small", "text-muted"], [1, "alert", "alert-danger"], [1, "ri-error-warning-line", "me-2"], [1, "day-selector-card", "mb-3"], [1, "day-card", 3, "click"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "checked", "id"], [1, "form-check-label", "fw-medium", 3, "for"], ["class", "time-slots-container", 4, "ngIf"], [1, "time-slots-container"], ["class", "time-slot-item mb-1 p-2 rounded border", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-primary", "w-100", 3, "click"], [1, "ri-add-line", "me-1"], [1, "time-slot-item", "mb-1", "p-2", "rounded", "border"], [1, "flex-grow-1"], [1, "row", "g-2"], [1, "col-5"], [1, "form-label", "small", "text-muted", "mb-1"], ["type", "time", 1, "form-control", "form-control-sm", 3, "ngModelChange", "change", "ngModel", "min", "max"], [1, "col-2", "d-flex", "align-items-end"], ["type", "button", "title", "Eliminar horario", 1, "btn", "btn-sm", "btn-outline-danger", "w-100", 3, "click", "disabled"], [1, "ri-delete-bin-line"], [1, "text-muted", "d-block", "mt-1"], [1, "ri-time-line", "me-1"], [1, "calendar-month", "mb-2"], [1, "month-header", "text-center", "mb-2"], [1, "calendar-grid-container"], [1, "calendar-grid"], [1, "calendar-header"], [4, "ngFor", "ngForOf"], [1, "calendar-legend", "mt-2"], [1, "legend-item"], [1, "legend-color", "has-schedule"], [1, "legend-text"], [1, "legend-color", "reserved"], [1, "legend-color", "out-of-range"], ["class", "calendar-day bg-light", 3, "empty", "out-of-range", "selectable", "has-schedule", "reserved", "click", 4, "ngFor", "ngForOf"], [1, "calendar-day", "bg-light", 3, "click"], [1, "day-content"], ["class", "day-number", 4, "ngIf"], ["class", "reservation-indicators", 4, "ngIf"], ["class", "time-info", 4, "ngIf"], [1, "day-number"], [1, "reservation-indicators"], ["class", "ri-checkbox-circle-fill schedule-icon", "title", "D\u00EDa programado", 4, "ngIf"], ["class", "ri-alert-fill conflict-icon", "title", "Conflicto con reserva existente", 4, "ngIf"], ["title", "D\u00EDa programado", 1, "ri-checkbox-circle-fill", "schedule-icon"], ["title", "Conflicto con reserva existente", 1, "ri-alert-fill", "conflict-icon"], [1, "time-info"], [1, "time-text"], [1, "border-top", "pt-2"], [1, "fw-medium", "d-block", "mb-1"], ["class", "small text-muted mb-1", 4, "ngFor", "ngForOf"], [1, "small", "text-muted", "mb-1"], [1, "text-muted", "small"], [1, "summary-item", "mb-3"], [1, "small", "text-muted", "d-block", "mb-2"], [1, "ri-list-check", "me-1"], [1, "small"], ["class", "mb-1", 4, "ngFor", "ngForOf"], [1, "mb-1"], [1, "badge", "bg-primary-subtle", "text-primary", "me-1"], ["class", "text-muted", 4, "ngIf"]],
      template: function ScheduleRecurrentSelectionComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ScheduleRecurrentSelectionComponent_div_5_Template, 15, 1, "div", 5)(6, ScheduleRecurrentSelectionComponent_div_6_Template, 3, 1, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "label", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "i", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Fecha de Inicio ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngModelChange", function ScheduleRecurrentSelectionComponent_Template_input_ngModelChange_12_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](ctx.fechaInicio, $event) || (ctx.fechaInicio = $event);
            return $event;
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ScheduleRecurrentSelectionComponent_Template_input_change_12_listener() {
            return ctx.onFechaInicioChange();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 8)(14, "label", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, " Fecha de Fin ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "input", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayListener"]("ngModelChange", function ScheduleRecurrentSelectionComponent_Template_input_ngModelChange_17_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayBindingSet"](ctx.fechaFin, $event) || (ctx.fechaFin = $event);
            return $event;
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ScheduleRecurrentSelectionComponent_Template_input_change_17_listener() {
            return ctx.onFechaFinChange();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 14)(19, "div", 4)(20, "h6", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "i", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, " Seleccione D\u00EDas y Horarios ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "small", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "(Puede agregar m\u00FAltiples horarios por d\u00EDa)");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, ScheduleRecurrentSelectionComponent_div_26_Template, 7, 7, "div", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 20)(28, "h6", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](29, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " Vista de Calendario ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "small", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "(Los d\u00EDas resaltados ser\u00E1n reservados)");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](33, ScheduleRecurrentSelectionComponent_div_33_Template, 34, 3, "div", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 23)(35, "div", 3)(36, "div", 24)(37, "h6", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "i", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, " Resumen de Reserva ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 4)(41, "div", 15)(42, "h6", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Per\u00EDodo de Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "i", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div")(47, "small");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](49, "date");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "small", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "hasta");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "small");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](54, "date");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](55, "hr");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 15)(57, "div", 31)(58, "h6", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "button", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_Template_button_click_60_listener() {
            return ctx.showTariffBreakdown = !ctx.showTariffBreakdown;
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 33)(63, "label", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Tarifa Base");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "span", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](67, "currency");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "small");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "div", 33)(71, "label", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "Total Parcial ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "h4", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](74);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](75, ScheduleRecurrentSelectionComponent_div_75_Template, 5, 1, "div", 36)(76, ScheduleRecurrentSelectionComponent_div_76_Template, 3, 0, "div", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "hr");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](78, ScheduleRecurrentSelectionComponent_div_78_Template, 6, 1, "div", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "div", 1)(80, "div", 39)(81, "div", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](82);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](84, "D\u00EDas/Semana");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "div", 39)(86, "div", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](87);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](88, "number");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "div", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "Horas");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "div", 39)(92, "div", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](93);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "div", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](95, "Meses");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 44)(97, "div", 45)(98, "button", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ScheduleRecurrentSelectionComponent_Template_button_click_98_listener() {
            return ctx.confirmar();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](99, "i", 47);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](100, " Confirmar Horarios ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showConflicts && ctx.reservationConflicts.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.errorMessage && ctx.reservationConflicts.length === 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngModel", ctx.fechaInicio);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtwoWayProperty"]("ngModel", ctx.fechaFin);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("min", ctx.fechaInicio);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.diasSemana);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.calendarMonths);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](49, 22, ctx.fechaInicio, "dd/MM/yyyy"));
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](54, 25, ctx.fechaFin, "dd/MM/yyyy"));
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.dataTariff.descripcion);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.calculatedTariff === 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.showTariffBreakdown ? "Ocultar" : "Ver", " detalles ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind4"](67, 28, ctx.dataTariff.precioBase, "BOB", "symbol-narrow", "1.2-2"), " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("/", ctx.dataTariff.tipoCobro, "");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" Bs. ", ctx.calculatedTariff.toFixed(2), " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showTariffBreakdown && ctx.tariffDetails.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.calculatedTariff === 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.tablero.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.selectedDaysCount);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](88, 33, ctx.totalHours, "1.0-0"));
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.calculateTotalMonths());
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx.canConfirm);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_3__.CurrencyPipe, _angular_common__WEBPACK_IMPORTED_MODULE_3__.DatePipe, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel],
      styles: [".card-body[_ngcontent-%COMP%] {\n  padding: 0.5;\n}\n\n.calendar-section[_ngcontent-%COMP%]   .calendar-month[_ngcontent-%COMP%] {\n  border: 1px solid #e9ecef;\n  border-radius: 8px;\n  padding: 0rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .month-header[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n  color: white;\n  padding: 0.2rem;\n  border-radius: 4px;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid-container[_ngcontent-%COMP%] {\n  overflow-x: auto;\n  -webkit-overflow-scrolling: touch;\n  margin: 0;\n  padding: 0 0.5rem;\n  scrollbar-width: thin;\n  scrollbar-color: #c1c1c1 #f5f5f5;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid-container[_ngcontent-%COMP%]::-webkit-scrollbar {\n  height: 6px;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid-container[_ngcontent-%COMP%]::-webkit-scrollbar-track {\n  background: #f5f5f5;\n  border-radius: 3px;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb {\n  background: #c1c1c1;\n  border-radius: 3px;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover {\n  background: #a8a8a8;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-grid[_ngcontent-%COMP%] {\n  min-width: 400px;\n  display: grid;\n  grid-template-columns: repeat(7, 1fr);\n  gap: 2px;\n  padding: 0.5rem;\n  margin-bottom: 0.5rem;\n}\n@media (min-width: 768px) {\n  .calendar-section[_ngcontent-%COMP%]   .calendar-grid[_ngcontent-%COMP%] {\n    min-width: 700px;\n  }\n}\n@media (min-width: 992px) {\n  .calendar-section[_ngcontent-%COMP%]   .calendar-grid[_ngcontent-%COMP%] {\n    min-width: 400px;\n  }\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-header[_ngcontent-%COMP%] {\n  padding: 0.7rem;\n  text-align: center;\n  font-weight: 600;\n  font-size: 0.85rem;\n  color: #495057;\n  border-radius: 4px;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%] {\n  position: relative;\n  min-height: 40px;\n  border: 2px solid transparent;\n  border-radius: 6px;\n  padding: 0.25rem;\n  cursor: pointer;\n  transition: all 0.2s ease;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]:hover:not(.empty):not(.out-of-range) {\n  border-color: #007bff;\n  transform: translateY(-1px);\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.empty[_ngcontent-%COMP%] {\n  background: transparent;\n  border: none;\n  cursor: default;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.out-of-range[_ngcontent-%COMP%] {\n  background: #f1f3f4;\n  color: #adb5bd;\n  cursor: not-allowed;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.out-of-range[_ngcontent-%COMP%]   .day-content[_ngcontent-%COMP%] {\n  opacity: 0.5;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.selectable[_ngcontent-%COMP%] {\n  background: #e7f3ff;\n  border-color: #b3d9ff;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.has-schedule[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #d4edda, #c3e6cb);\n  border-color: #28a745;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.has-schedule[_ngcontent-%COMP%]   .day-number[_ngcontent-%COMP%] {\n  font-weight: 700;\n  color: #155724;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.reserved[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #f8d7da, #f5c6cb);\n  border-color: #dc3545;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day.reserved[_ngcontent-%COMP%]   .day-number[_ngcontent-%COMP%] {\n  font-weight: 700;\n  color: #721c24;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .day-content[_ngcontent-%COMP%] {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .day-number[_ngcontent-%COMP%] {\n  font-size: 0.9rem;\n  font-weight: 600;\n  margin-bottom: 0.25rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .reservation-indicators[_ngcontent-%COMP%] {\n  display: flex;\n  gap: 2px;\n  margin-bottom: 0.25rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .reservation-indicators[_ngcontent-%COMP%]   .schedule-icon[_ngcontent-%COMP%] {\n  color: #28a745;\n  font-size: 0.8rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .reservation-indicators[_ngcontent-%COMP%]   .conflict-icon[_ngcontent-%COMP%] {\n  color: #dc3545;\n  font-size: 0.8rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .time-info[_ngcontent-%COMP%] {\n  margin-top: auto;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-day[_ngcontent-%COMP%]   .time-info[_ngcontent-%COMP%]   .time-text[_ngcontent-%COMP%] {\n  font-size: 0.7rem;\n  color: #495057;\n  background: rgba(255, 255, 255, 0.8);\n  padding: 1px 3px;\n  border-radius: 3px;\n  display: block;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%] {\n  display: flex;\n  gap: 1rem;\n  justify-content: center;\n  flex-wrap: wrap;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-color[_ngcontent-%COMP%] {\n  width: 16px;\n  height: 16px;\n  border-radius: 3px;\n  border: 2px solid transparent;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-color.has-schedule[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #d4edda, #c3e6cb);\n  border-color: #28a745;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-color.reserved[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #f8d7da, #f5c6cb);\n  border-color: #dc3545;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-color.out-of-range[_ngcontent-%COMP%] {\n  background: #f1f3f4;\n  border-color: #adb5bd;\n}\n.calendar-section[_ngcontent-%COMP%]   .calendar-legend[_ngcontent-%COMP%]   .legend-text[_ngcontent-%COMP%] {\n  font-size: 0.8rem;\n  color: #6c757d;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2Jvb2tpbmcvc2NoZWR1bGUtcmVjdXJyZW50LXNlbGVjdGlvbi9zY2hlZHVsZS1yZWN1cnJlbnQtc2VsZWN0aW9uLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0EsWUFBQTtBQUNBOztBQUVFO0VBQ0UseUJBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFDSjtBQUVFO0VBQ0UsNkRBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0FBQUo7QUFFQTtFQUNFLGdCQUFBO0VBQ0EsaUNBQUE7RUFDQSxTQUFBO0VBQ0EsaUJBQUE7RUFDQSxxQkFBQTtFQUNBLGdDQUFBO0FBQUY7QUFFRTtFQUNFLFdBQUE7QUFBSjtBQUdFO0VBQ0UsbUJBQUE7RUFDQSxrQkFBQTtBQURKO0FBSUU7RUFDRSxtQkFBQTtFQUNBLGtCQUFBO0FBRko7QUFLRTtFQUNFLG1CQUFBO0FBSEo7QUFPQTtFQUNFLGdCQUFBO0VBQ0EsYUFBQTtFQUNBLHFDQUFBO0VBQ0EsUUFBQTtFQUNBLGVBQUE7RUFDQSxxQkFBQTtBQUxGO0FBUUE7RUFDRTtJQUNFLGdCQUFBO0VBTkY7QUFDRjtBQVNBO0VBQ0U7SUFDRSxnQkFBQTtFQVBGO0FBQ0Y7QUFTRTtFQUNFLGVBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxjQUFBO0VBQ0Esa0JBQUE7QUFQSjtBQVVFO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtFQUNBLDZCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSx5QkFBQTtBQVJKO0FBVUk7RUFDRSxxQkFBQTtFQUNBLDJCQUFBO0VBQ0Esd0NBQUE7QUFSTjtBQVdJO0VBQ0UsdUJBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQVROO0FBWUk7RUFDRSxtQkFBQTtFQUNBLGNBQUE7RUFDQSxtQkFBQTtBQVZOO0FBWU07RUFDRSxZQUFBO0FBVlI7QUFjSTtFQUNFLG1CQUFBO0VBQ0EscUJBQUE7QUFaTjtBQWVJO0VBQ0UscURBQUE7RUFDQSxxQkFBQTtBQWJOO0FBZU07RUFDRSxnQkFBQTtFQUNBLGNBQUE7QUFiUjtBQWlCSTtFQUNFLHFEQUFBO0VBQ0EscUJBQUE7QUFmTjtBQWlCTTtFQUNFLGdCQUFBO0VBQ0EsY0FBQTtBQWZSO0FBbUJJO0VBQ0UsWUFBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtBQWpCTjtBQW9CSTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtBQWxCTjtBQXFCSTtFQUNFLGFBQUE7RUFDQSxRQUFBO0VBQ0Esc0JBQUE7QUFuQk47QUFxQk07RUFDRSxjQUFBO0VBQ0EsaUJBQUE7QUFuQlI7QUFzQk07RUFDRSxjQUFBO0VBQ0EsaUJBQUE7QUFwQlI7QUF3Qkk7RUFDRSxnQkFBQTtBQXRCTjtBQXdCTTtFQUNFLGlCQUFBO0VBQ0EsY0FBQTtFQUNBLG9DQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTtFQUNBLGNBQUE7QUF0QlI7QUEyQkU7RUFDRSxhQUFBO0VBQ0EsU0FBQTtFQUNBLHVCQUFBO0VBQ0EsZUFBQTtBQXpCSjtBQTJCSTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7QUF6Qk47QUE0Qkk7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsNkJBQUE7QUExQk47QUE0Qk07RUFDRSxxREFBQTtFQUNBLHFCQUFBO0FBMUJSO0FBNkJNO0VBQ0UscURBQUE7RUFDQSxxQkFBQTtBQTNCUjtBQThCTTtFQUNFLG1CQUFBO0VBQ0EscUJBQUE7QUE1QlI7QUFnQ0k7RUFDRSxpQkFBQTtFQUNBLGNBQUE7QUE5Qk4iLCJzb3VyY2VzQ29udGVudCI6WyIuY2FyZC1ib2R5IHtcclxucGFkZGluZzogMC41O1xyXG59XHJcbi5jYWxlbmRhci1zZWN0aW9uIHtcclxuICAuY2FsZW5kYXItbW9udGgge1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI2U5ZWNlZjtcclxuICAgIGJvcmRlci1yYWRpdXM6IDhweDtcclxuICAgIHBhZGRpbmc6IDByZW07XHJcbiAgfVxyXG5cclxuICAubW9udGgtaGVhZGVyIHtcclxuICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgxMzVkZWcsICM2NjdlZWEgMCUsICM3NjRiYTIgMTAwJSk7XHJcbiAgICBjb2xvcjogd2hpdGU7XHJcbiAgICBwYWRkaW5nOiAwLjJyZW07XHJcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XHJcbiAgfVxyXG4uY2FsZW5kYXItZ3JpZC1jb250YWluZXIge1xyXG4gIG92ZXJmbG93LXg6IGF1dG87XHJcbiAgLXdlYmtpdC1vdmVyZmxvdy1zY3JvbGxpbmc6IHRvdWNoO1xyXG4gIG1hcmdpbjogMDtcclxuICBwYWRkaW5nOiAwIDAuNXJlbTtcclxuICBzY3JvbGxiYXItd2lkdGg6IHRoaW47XHJcbiAgc2Nyb2xsYmFyLWNvbG9yOiAjYzFjMWMxICNmNWY1ZjU7XHJcbiAgXHJcbiAgJjo6LXdlYmtpdC1zY3JvbGxiYXIge1xyXG4gICAgaGVpZ2h0OiA2cHg7XHJcbiAgfVxyXG4gIFxyXG4gICY6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHtcclxuICAgIGJhY2tncm91bmQ6ICNmNWY1ZjU7XHJcbiAgICBib3JkZXItcmFkaXVzOiAzcHg7XHJcbiAgfVxyXG4gIFxyXG4gICY6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHtcclxuICAgIGJhY2tncm91bmQ6ICNjMWMxYzE7XHJcbiAgICBib3JkZXItcmFkaXVzOiAzcHg7XHJcbiAgfVxyXG4gIFxyXG4gICY6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQ6ICNhOGE4YTg7XHJcbiAgfVxyXG59XHJcblxyXG4uY2FsZW5kYXItZ3JpZCB7XHJcbiAgbWluLXdpZHRoOiA0MDBweDtcclxuICBkaXNwbGF5OiBncmlkO1xyXG4gIGdyaWQtdGVtcGxhdGUtY29sdW1uczogcmVwZWF0KDcsIDFmcik7XHJcbiAgZ2FwOiAycHg7XHJcbiAgcGFkZGluZzogMC41cmVtO1xyXG4gIG1hcmdpbi1ib3R0b206IDAuNXJlbTtcclxufVxyXG5cclxuQG1lZGlhIChtaW4td2lkdGg6IDc2OHB4KSB7XHJcbiAgLmNhbGVuZGFyLWdyaWQge1xyXG4gICAgbWluLXdpZHRoOiA3MDBweDtcclxuICB9XHJcbn1cclxuXHJcbkBtZWRpYSAobWluLXdpZHRoOiA5OTJweCkge1xyXG4gIC5jYWxlbmRhci1ncmlkIHtcclxuICAgIG1pbi13aWR0aDogNDAwcHg7XHJcbiAgfVxyXG59XHJcbiAgLmNhbGVuZGFyLWhlYWRlciB7XHJcbiAgICBwYWRkaW5nOiAwLjdyZW07XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBmb250LXdlaWdodDogNjAwO1xyXG4gICAgZm9udC1zaXplOiAwLjg1cmVtO1xyXG4gICAgY29sb3I6ICM0OTUwNTc7XHJcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XHJcbiAgfVxyXG5cclxuICAuY2FsZW5kYXItZGF5IHtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIG1pbi1oZWlnaHQ6IDQwcHg7XHJcbiAgICBib3JkZXI6IDJweCBzb2xpZCB0cmFuc3BhcmVudDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDZweDtcclxuICAgIHBhZGRpbmc6IDAuMjVyZW07XHJcbiAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICB0cmFuc2l0aW9uOiBhbGwgMC4ycyBlYXNlO1xyXG4gICAgXHJcbiAgICAmOmhvdmVyOm5vdCguZW1wdHkpOm5vdCgub3V0LW9mLXJhbmdlKSB7XHJcbiAgICAgIGJvcmRlci1jb2xvcjogIzAwN2JmZjtcclxuICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0xcHgpO1xyXG4gICAgICBib3gtc2hhZG93OiAwIDJweCA0cHggcmdiYSgwLDAsMCwwLjEpO1xyXG4gICAgfVxyXG5cclxuICAgICYuZW1wdHkge1xyXG4gICAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcclxuICAgICAgYm9yZGVyOiBub25lO1xyXG4gICAgICBjdXJzb3I6IGRlZmF1bHQ7XHJcbiAgICB9XHJcblxyXG4gICAgJi5vdXQtb2YtcmFuZ2Uge1xyXG4gICAgICBiYWNrZ3JvdW5kOiAjZjFmM2Y0O1xyXG4gICAgICBjb2xvcjogI2FkYjViZDtcclxuICAgICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcclxuICAgICAgXHJcbiAgICAgIC5kYXktY29udGVudCB7XHJcbiAgICAgICAgb3BhY2l0eTogMC41O1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgJi5zZWxlY3RhYmxlIHtcclxuICAgICAgYmFja2dyb3VuZDogI2U3ZjNmZjtcclxuICAgICAgYm9yZGVyLWNvbG9yOiAjYjNkOWZmO1xyXG4gICAgfVxyXG5cclxuICAgICYuaGFzLXNjaGVkdWxlIHtcclxuICAgICAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KDEzNWRlZywgI2Q0ZWRkYSwgI2MzZTZjYik7XHJcbiAgICAgIGJvcmRlci1jb2xvcjogIzI4YTc0NTtcclxuICAgICAgXHJcbiAgICAgIC5kYXktbnVtYmVyIHtcclxuICAgICAgICBmb250LXdlaWdodDogNzAwO1xyXG4gICAgICAgIGNvbG9yOiAjMTU1NzI0O1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgJi5yZXNlcnZlZCB7XHJcbiAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgxMzVkZWcsICNmOGQ3ZGEsICNmNWM2Y2IpO1xyXG4gICAgICBib3JkZXItY29sb3I6ICNkYzM1NDU7XHJcbiAgICAgIFxyXG4gICAgICAuZGF5LW51bWJlciB7XHJcbiAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDtcclxuICAgICAgICBjb2xvcjogIzcyMWMyNDtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kYXktY29udGVudCB7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgIH1cclxuXHJcbiAgICAuZGF5LW51bWJlciB7XHJcbiAgICAgIGZvbnQtc2l6ZTogMC45cmVtO1xyXG4gICAgICBmb250LXdlaWdodDogNjAwO1xyXG4gICAgICBtYXJnaW4tYm90dG9tOiAwLjI1cmVtO1xyXG4gICAgfVxyXG5cclxuICAgIC5yZXNlcnZhdGlvbi1pbmRpY2F0b3JzIHtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgZ2FwOiAycHg7XHJcbiAgICAgIG1hcmdpbi1ib3R0b206IDAuMjVyZW07XHJcbiAgICAgIFxyXG4gICAgICAuc2NoZWR1bGUtaWNvbiB7XHJcbiAgICAgICAgY29sb3I6ICMyOGE3NDU7XHJcbiAgICAgICAgZm9udC1zaXplOiAwLjhyZW07XHJcbiAgICAgIH1cclxuICAgICAgXHJcbiAgICAgIC5jb25mbGljdC1pY29uIHtcclxuICAgICAgICBjb2xvcjogI2RjMzU0NTtcclxuICAgICAgICBmb250LXNpemU6IDAuOHJlbTtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC50aW1lLWluZm8ge1xyXG4gICAgICBtYXJnaW4tdG9wOiBhdXRvO1xyXG4gICAgICBcclxuICAgICAgLnRpbWUtdGV4dCB7XHJcbiAgICAgICAgZm9udC1zaXplOiAwLjdyZW07XHJcbiAgICAgICAgY29sb3I6ICM0OTUwNTc7XHJcbiAgICAgICAgYmFja2dyb3VuZDogcmdiYSgyNTUsMjU1LDI1NSwwLjgpO1xyXG4gICAgICAgIHBhZGRpbmc6IDFweCAzcHg7XHJcbiAgICAgICAgYm9yZGVyLXJhZGl1czogM3B4O1xyXG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAuY2FsZW5kYXItbGVnZW5kIHtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBnYXA6IDFyZW07XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgIGZsZXgtd3JhcDogd3JhcDtcclxuICAgIFxyXG4gICAgLmxlZ2VuZC1pdGVtIHtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgICAgZ2FwOiAwLjVyZW07XHJcbiAgICB9XHJcbiAgICBcclxuICAgIC5sZWdlbmQtY29sb3Ige1xyXG4gICAgICB3aWR0aDogMTZweDtcclxuICAgICAgaGVpZ2h0OiAxNnB4O1xyXG4gICAgICBib3JkZXItcmFkaXVzOiAzcHg7XHJcbiAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHRyYW5zcGFyZW50O1xyXG4gICAgICBcclxuICAgICAgJi5oYXMtc2NoZWR1bGUge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCgxMzVkZWcsICNkNGVkZGEsICNjM2U2Y2IpO1xyXG4gICAgICAgIGJvcmRlci1jb2xvcjogIzI4YTc0NTtcclxuICAgICAgfVxyXG4gICAgICBcclxuICAgICAgJi5yZXNlcnZlZCB7XHJcbiAgICAgICAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KDEzNWRlZywgI2Y4ZDdkYSwgI2Y1YzZjYik7XHJcbiAgICAgICAgYm9yZGVyLWNvbG9yOiAjZGMzNTQ1O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmLm91dC1vZi1yYW5nZSB7XHJcbiAgICAgICAgYmFja2dyb3VuZDogI2YxZjNmNDtcclxuICAgICAgICBib3JkZXItY29sb3I6ICNhZGI1YmQ7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICAgIFxyXG4gICAgLmxlZ2VuZC10ZXh0IHtcclxuICAgICAgZm9udC1zaXplOiAwLjhyZW07XHJcbiAgICAgIGNvbG9yOiAjNmM3NTdkO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 68632:
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/modals/booking/schedule-selection/schedule-selection.component.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ScheduleSelectionComponent: () => (/* binding */ ScheduleSelectionComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 10819);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 33900);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _reservation_conflict_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../reservation-conflict.service */ 43575);
/* harmony import */ var _schedule_state_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../schedule-state.service */ 11230);













const _c0 = (a0, a1) => ({
  "ri-checkbox-circle-fill text-success": a0,
  "ri-close-circle-fill text-danger": a1
});
function ScheduleSelectionComponent_ng_container_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "span", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const currentSlots_r2 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", (currentSlots_r2.daySchedule == null ? null : currentSlots_r2.daySchedule.abierto) ? "bg-success" : "bg-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", (currentSlots_r2.daySchedule == null ? null : currentSlots_r2.daySchedule.abierto) ? "ri-door-open-line" : "ri-door-closed-line");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", (currentSlots_r2.daySchedule == null ? null : currentSlots_r2.daySchedule.abierto) ? "Abierto" : "Cerrado", " ");
  }
}
function ScheduleSelectionComponent_ng_container_25_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" (", ctx_r2.getOperatingHoursDisplay(), ") ");
  }
}
function ScheduleSelectionComponent_ng_container_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "span", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ScheduleSelectionComponent_ng_container_25_span_4_Template, 2, 1, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const currentSlots_r4 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", (currentSlots_r4.daySchedule == null ? null : currentSlots_r4.daySchedule.abierto) ? "bg-success" : "bg-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", (currentSlots_r4.daySchedule == null ? null : currentSlots_r4.daySchedule.abierto) ? "ri-door-open-line" : "ri-door-closed-line");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", (currentSlots_r4.daySchedule == null ? null : currentSlots_r4.daySchedule.abierto) ? "Abierto" : "Cerrado", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", currentSlots_r4.daySchedule == null ? null : currentSlots_r4.daySchedule.abierto);
  }
}
function ScheduleSelectionComponent_li_37_span_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Hoy ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Pasado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_i_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i", 55);
  }
  if (rf & 2) {
    let tmp_4_0;
    const day_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction2"](1, _c0, (tmp_4_0 = ctx_r2.getTimeSlotsForDay(day_r6.date).daySchedule) == null ? null : tmp_4_0.abierto, !((tmp_4_0 = ctx_r2.getTimeSlotsForDay(day_r6.date).daySchedule) == null ? null : tmp_4_0.abierto)));
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", slot_r9.partialStartTime, " - ", slot_r9.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Reservado ", slot_r9.reservedStartTime, " - ", slot_r9.reservedEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r9.partialStartTime, " - ", slot_r9.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Por reservar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r9.availableStartTime, " - ", slot_r9.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_3_Template, 2, 0, "span", 10)(4, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_span_4_Template, 2, 2, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPartialSelection);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r9.isPartialSelection && !slot_r9.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r9.isPartialSelection && slot_r9.isPartiallyReserved && slot_r9.availableStartTime && slot_r9.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r9.availableStartTime, " - ", slot_r9.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Parcialmente reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_span_3_Template, 2, 0, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.availableStartTime && slot_r9.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r9.availableStartTime || !slot_r9.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r9.partialStartTime, " - ", slot_r9.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " No disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Otra tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 85)(1, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_Template_div_click_1_listener() {
      const slot_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.toggleSlotSelection(slot_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 87)(3, "div", 88)(4, "div", 89)(5, "span", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_7_Template, 3, 2, "span", 91)(8, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_8_Template, 3, 2, "span", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](10, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_10_Template, 5, 3, "span", 93)(11, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_11_Template, 4, 2, "span", 94)(12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_12_Template, 3, 2, "span", 95)(13, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_13_Template, 3, 0, "span", 36)(14, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_14_Template, 3, 0, "span", 96)(15, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_15_Template, 3, 0, "span", 94)(16, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_span_16_Template, 3, 0, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const slot_r9 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", slot_r9.isSelected)("partial-selection", slot_r9.isPartialSelection)("unavailable", !slot_r9.isAvailable || slot_r9.isReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵattribute"]("title", ctx_r2.getSlotTooltip(slot_r9));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotClasses(slot_r9));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("cursor", slot_r9.isAvailable && !slot_r9.isReserved && slot_r9.isWithinTariffTime && !slot_r9.tariffConflict || slot_r9.isPartiallyReserved ? "pointer" : "not-allowed");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotTextClasses(slot_r9));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", slot_r9.time, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPartialSelection && slot_r9.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPartiallyReserved && !slot_r9.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPartiallyReserved && !slot_r9.isSelected && slot_r9.availableStartTime && slot_r9.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPartialSelection && !slot_r9.isReserved && slot_r9.isAvailable && !slot_r9.isSelected && !slot_r9.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isPast && !slot_r9.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isReserved && !slot_r9.isSelected && !slot_r9.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (!slot_r9.isWithinTariffTime || slot_r9.tariffConflict) && !slot_r9.isSelected && !slot_r9.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r9.isAvailable && !slot_r9.isReserved && !slot_r9.isPartialSelection && !slot_r9.isPartiallyReserved && slot_r9.isWithinTariffTime && !slot_r9.tariffConflict && !slot_r9.isSelected);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 76)(1, "div", 77)(2, "div", 78)(3, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 33)(6, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Ma\u00F1ana");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Hasta 12:00");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_div_12_Template, 17, 23, "div", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const slots_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](slots_r10.morningSlots.length);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", slots_r10.morningSlots)("ngForTrackBy", ctx_r2.trackBySlot);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", slot_r12.partialStartTime, " - ", slot_r12.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Reservado ", slot_r12.reservedStartTime, " - ", slot_r12.reservedEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r12.partialStartTime, " - ", slot_r12.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Por reservar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r12.availableStartTime, " - ", slot_r12.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_3_Template, 2, 0, "span", 10)(4, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_span_4_Template, 2, 2, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPartialSelection);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r12.isPartialSelection && !slot_r12.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r12.isPartialSelection && slot_r12.isPartiallyReserved && slot_r12.availableStartTime && slot_r12.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r12.availableStartTime, " - ", slot_r12.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Parcialmente reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_span_3_Template, 2, 0, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.availableStartTime && slot_r12.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r12.availableStartTime || !slot_r12.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r12.partialStartTime, " - ", slot_r12.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " No disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Otra tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 85)(1, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_Template_div_click_1_listener() {
      const slot_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r11).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.toggleSlotSelection(slot_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 87)(3, "div", 88)(4, "div", 89)(5, "span", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_7_Template, 3, 2, "span", 91)(8, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_8_Template, 3, 2, "span", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](10, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_10_Template, 5, 3, "span", 93)(11, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_11_Template, 4, 2, "span", 94)(12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_12_Template, 3, 2, "span", 95)(13, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_13_Template, 3, 0, "span", 36)(14, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_14_Template, 3, 0, "span", 96)(15, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_15_Template, 3, 0, "span", 94)(16, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_span_16_Template, 3, 0, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const slot_r12 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", slot_r12.isSelected)("partial-selection", slot_r12.isPartialSelection)("unavailable", !slot_r12.isAvailable || slot_r12.isReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵattribute"]("title", ctx_r2.getSlotTooltip(slot_r12));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotClasses(slot_r12));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("cursor", slot_r12.isAvailable && !slot_r12.isReserved && slot_r12.isWithinTariffTime && !slot_r12.tariffConflict || slot_r12.isPartiallyReserved ? "pointer" : "not-allowed");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotTextClasses(slot_r12));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", slot_r12.time, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPartialSelection && slot_r12.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPartiallyReserved && !slot_r12.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPartiallyReserved && !slot_r12.isSelected && slot_r12.availableStartTime && slot_r12.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPartialSelection && !slot_r12.isReserved && slot_r12.isAvailable && !slot_r12.isSelected && !slot_r12.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isPast && !slot_r12.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isReserved && !slot_r12.isSelected && !slot_r12.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (!slot_r12.isWithinTariffTime || slot_r12.tariffConflict) && !slot_r12.isSelected && !slot_r12.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r12.isAvailable && !slot_r12.isReserved && !slot_r12.isPartialSelection && !slot_r12.isPartiallyReserved && slot_r12.isWithinTariffTime && !slot_r12.tariffConflict && !slot_r12.isSelected);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 76)(1, "div", 77)(2, "div", 110)(3, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 33)(6, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Tarde");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "12:00 - 18:00");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "span", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_div_12_Template, 17, 23, "div", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const slots_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](slots_r10.afternoonSlots.length);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", slots_r10.afternoonSlots)("ngForTrackBy", ctx_r2.trackBySlot);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", slot_r14.partialStartTime, " - ", slot_r14.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Reservado ", slot_r14.reservedStartTime, " - ", slot_r14.reservedEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r14.partialStartTime, " - ", slot_r14.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Por reservar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Por reservar ", slot_r14.availableStartTime, " - ", slot_r14.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_3_Template, 2, 0, "span", 10)(4, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_span_4_Template, 2, 2, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPartialSelection);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r14.isPartialSelection && !slot_r14.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r14.isPartialSelection && slot_r14.isPartiallyReserved && slot_r14.availableStartTime && slot_r14.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r14.availableStartTime, " - ", slot_r14.availableEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Parcialmente reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_span_2_Template, 2, 2, "span", 10)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_span_3_Template, 2, 0, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.availableStartTime && slot_r14.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !slot_r14.availableStartTime || !slot_r14.availableEndTime);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Disponible ", slot_r14.partialStartTime, " - ", slot_r14.partialEndTime, " ");
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " No disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Reservado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Otra tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Disponible ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 85)(1, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_Template_div_click_1_listener() {
      const slot_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r13).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.toggleSlotSelection(slot_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 87)(3, "div", 88)(4, "div", 89)(5, "span", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_7_Template, 3, 2, "span", 91)(8, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_8_Template, 3, 2, "span", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](10, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_10_Template, 5, 3, "span", 93)(11, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_11_Template, 4, 2, "span", 94)(12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_12_Template, 3, 2, "span", 95)(13, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_13_Template, 3, 0, "span", 36)(14, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_14_Template, 3, 0, "span", 96)(15, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_15_Template, 3, 0, "span", 94)(16, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_span_16_Template, 3, 0, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const slot_r14 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", slot_r14.isSelected)("partial-selection", slot_r14.isPartialSelection)("unavailable", !slot_r14.isAvailable || slot_r14.isReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵattribute"]("title", ctx_r2.getSlotTooltip(slot_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotClasses(slot_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("cursor", slot_r14.isAvailable && !slot_r14.isReserved && slot_r14.isWithinTariffTime && !slot_r14.tariffConflict || slot_r14.isPartiallyReserved ? "pointer" : "not-allowed");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getSlotTextClasses(slot_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", slot_r14.time, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPartialSelection && slot_r14.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPartiallyReserved && !slot_r14.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPartiallyReserved && !slot_r14.isSelected && slot_r14.availableStartTime && slot_r14.availableEndTime);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPartialSelection && !slot_r14.isReserved && slot_r14.isAvailable && !slot_r14.isSelected && !slot_r14.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isPast && !slot_r14.isSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isReserved && !slot_r14.isSelected && !slot_r14.isPartiallyReserved);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (!slot_r14.isWithinTariffTime || slot_r14.tariffConflict) && !slot_r14.isSelected && !slot_r14.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slot_r14.isAvailable && !slot_r14.isReserved && !slot_r14.isPartialSelection && !slot_r14.isPartiallyReserved && slot_r14.isWithinTariffTime && !slot_r14.tariffConflict && !slot_r14.isSelected);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 76)(1, "div", 77)(2, "div", 113)(3, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 33)(6, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Noche");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Desde 18:00");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "span", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](12, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_div_12_Template, 17, 23, "div", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const slots_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](slots_r10.nightSlots.length);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", slots_r10.nightSlots)("ngForTrackBy", ctx_r2.trackBySlot);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "h6", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "No hay horarios disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "p", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "El campo est\u00E1 cerrado o no hay horarios para este d\u00EDa.");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_2_Template, 13, 3, "div", 74)(3, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_3_Template, 13, 3, "div", 74)(4, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_4_Template, 13, 3, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_div_5_Template, 6, 0, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const slots_r10 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slots_r10.morningSlots.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slots_r10.afternoonSlots.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slots_r10.nightSlots.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", slots_r10.morningSlots.length === 0 && slots_r10.afternoonSlots.length === 0 && slots_r10.nightSlots.length === 0);
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 119)(1, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div")(4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Campo cerrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "p", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "No se pueden seleccionar horarios personalizados para este d\u00EDa.");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
}
function ScheduleSelectionComponent_li_37_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ScheduleSelectionComponent_li_37_ng_template_12_ng_container_1_Template, 6, 4, "ng-container", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, ScheduleSelectionComponent_li_37_ng_template_12_div_3_Template, 8, 0, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 59)(5, "div", 60)(6, "label", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, "Hora Inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ScheduleSelectionComponent_li_37_ng_template_12_Template_input_change_9_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onStartTimeChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 60)(11, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "i", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Hora Fin ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ScheduleSelectionComponent_li_37_ng_template_12_Template_input_change_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onEndTimeChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "div", 66)(16, "div", 67)(17, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, "Duraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "strong", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](21, "div", 69)(22, "div", 70)(23, "div", 71)(24, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](25, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](28, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.getTimeSlotsForDay(ctx_r2.fechaReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r2.isDayOpen());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("opacity-50", !ctx_r2.isDayOpen());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", ctx_r2.getTimeInputValue(ctx_r2.startTimeInput))("disabled", !ctx_r2.isDayOpen());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", ctx_r2.getTimeInputValue(ctx_r2.endTimeInput))("disabled", !ctx_r2.isDayOpen());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r2.getDurationDisplay());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("opacity-50", !ctx_r2.isDayOpen());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("M\u00EDnimo: ", ctx_r2.minDurationDisplay, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("M\u00E1ximo: ", ctx_r2.maxDurationDisplay, "");
  }
}
function ScheduleSelectionComponent_li_37_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "li", 43)(1, "div")(2, "a", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_li_37_Template_a_click_2_listener() {
      const day_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r5).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.setSelectedDay(day_r6.date));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](7, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, ScheduleSelectionComponent_li_37_span_9_Template, 3, 0, "span", 47)(10, ScheduleSelectionComponent_li_37_span_10_Template, 3, 0, "span", 48)(11, ScheduleSelectionComponent_li_37_i_11_Template, 1, 4, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](12, ScheduleSelectionComponent_li_37_ng_template_12_Template, 30, 13, "ng-template", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const day_r6 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbNavItem", day_r6.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r2.getDayCardClasses(day_r6));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("opacity-50", day_r6.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("active", ctx_r2.activeDayName === day_r6.name)("disabled", day_r6.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](day_r6.dayName);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](7, 14, day_r6.date, "d"));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", day_r6.isToday);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", day_r6.isPast);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !day_r6.isPast);
  }
}
function ScheduleSelectionComponent_div_40_li_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const error_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](error_r16);
  }
}
function ScheduleSelectionComponent_div_40_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 123)(1, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 33)(4, "h6", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Atenci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "ul", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, ScheduleSelectionComponent_div_40_li_7_Template, 2, 1, "li", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "button", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_div_40_Template_button_click_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r15);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.showValidationAlert = false);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.validationErrors);
  }
}
function ScheduleSelectionComponent_div_41_small_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "small", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Existen otras tarifas en horarios adyacentes. Seleccione horarios dentro del rango indicado. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "small", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Rango horario Aplicable: ", ctx_r2.dataTariff.desde.slice(0, 5), " - ", ctx_r2.dataTariff.hasta.slice(0, 5), " ");
  }
}
function ScheduleSelectionComponent_div_41_div_18_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const detail_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", detail_r18, " ");
  }
}
function ScheduleSelectionComponent_div_41_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 134)(1, "div", 142)(2, "small", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Desglose:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ScheduleSelectionComponent_div_41_div_18_div_4_Template, 2, 1, "div", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.tariffDetails);
  }
}
function ScheduleSelectionComponent_div_41_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 145)(1, "em");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Seleccione un horario para calcular la tarifa");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
}
function ScheduleSelectionComponent_div_41_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 129)(1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 33)(4, "div", 32)(5, "strong", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "button", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_div_41_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.showTariffBreakdown = !ctx_r2.showTariffBreakdown);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, ScheduleSelectionComponent_div_41_small_9_Template, 5, 2, "small", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 134)(11, "div", 32)(12, "span", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, " Total Pacial: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "small", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "span", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](18, ScheduleSelectionComponent_div_41_div_18_Template, 5, 1, "div", 138)(19, ScheduleSelectionComponent_div_41_div_19_Template, 3, 0, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("Tarifa: ", ctx_r2.dataTariff.descripcion, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.calculatedTariff === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.showTariffBreakdown ? "Ocultar" : "Mostrar", " detalles ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.hasMultipleApplicableTariffs);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r2.getTipoCobroDisplay());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Bs. ", ctx_r2.calculatedTariff.toFixed(2), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.showTariffBreakdown && ctx_r2.tariffDetails.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.calculatedTariff === 0);
  }
}
function ScheduleSelectionComponent_span_48_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "span", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r2.getTimeInputValue(ctx_r2.startTimeInput), " - ", ctx_r2.getTimeInputValue(ctx_r2.endTimeInput), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("(", ctx_r2.getDurationDisplay(), ")");
  }
}
function ScheduleSelectionComponent_span_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " No se ha seleccionado ning\u00FAn horario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_span_51_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Reservar Evento");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_span_51_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Confirmar y Continuar");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ScheduleSelectionComponent_span_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ScheduleSelectionComponent_span_51_span_2_Template, 2, 0, "span", 10)(3, ScheduleSelectionComponent_span_51_span_3_Template, 2, 0, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.dataTariff.tipoCobro === "por_evento");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.dataTariff.tipoCobro !== "por_evento");
  }
}
function ScheduleSelectionComponent_span_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "span", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Verificando disponibilidad... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
class ScheduleSelectionComponent {
  get anticipationHours() {
    if (!this.dataTariff) {
      return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
    switch (this.dataTariff.tipoCobro) {
      case 'por_evento':
        const diasEventos = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.DIAS_ANTICIPACION_EVENTOS]?.valorNumerico;
        return diasEventos ? diasEventos * 24 : undefined;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.HORAS_ANTICIPACION_RECURRENTES]?.valorNumerico;
      default:
        return this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico;
    }
  }
  get anticipationTimeDisplay() {
    switch (this.dataTariff.tipoCobro) {
      case 'por_evento':
        return (this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.DIAS_ANTICIPACION_EVENTOS]?.valorNumerico ?? 0) + `días`;
      case 'mensualidad':
      case 'por_sesion':
      case 'por_club':
        return (this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.HORAS_ANTICIPACION_RECURRENTES]?.valorNumerico ?? 0) + `días`;
      default:
        return (this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.HORAS_ANTICIPACION_RESERVAS_PUNTUALES]?.valorNumerico ?? 0) + `horas`;
    }
  }
  get maxDuration() {
    const maxHours = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.DURACION_MAXIMA_EVENTOS]?.valorNumerico;
    return maxHours !== undefined && maxHours !== null ? maxHours : 24;
  }
  get minDuration() {
    const minDuration = this.systemConfigs[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion.DURACION_MINIMA_RESERVA]?.valorNumerico;
    return minDuration ? minDuration : 1;
  }
  get maxDurationDisplay() {
    const hours = this.maxDuration;
    if (hours === 1) {
      return '1 hora';
    } else {
      return `${hours} horas`;
    }
  }
  get minDurationDisplay() {
    const hours = this.minDuration;
    if (hours === 1) {
      return '1 hora';
    } else {
      return `${hours} horas`;
    }
  }
  constructor(authenticationService, cdr, conflictService, scheduleState) {
    this.authenticationService = authenticationService;
    this.cdr = cdr;
    this.conflictService = conflictService;
    this.scheduleState = scheduleState;
    this.reservationsList = [];
    this.systemConfigs = {};
    this.userRole = 'Contribuyente';
    this.horarioSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.currentWeekStart = new Date();
    this.currentWeekEnd = new Date();
    this.blocks = {};
    this.startTimeInput = {
      hours: 0,
      minutes: 0
    };
    this.endTimeInput = {
      hours: 0,
      minutes: 0
    };
    this.applicableTariffs = [];
    this.hasMultipleApplicableTariffs = false;
    this.tariffBoundaryTime = null;
    this.weekDays = [];
    this.activeDayName = '';
    this.fechaReserva = new Date();
    this.selectedSlots = [];
    this.timeSlotsCache = new Map();
    this.validationErrors = [];
    this.showValidationAlert = false;
    this.isCheckingAvailability = false;
    this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
    this.calculatedTariff = 0;
    this.tariffDetails = [];
    this.showTariffBreakdown = false;
  }
  ngOnInit() {
    this.scheduleState.currentWeekStart$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.takeUntil)(this.destroy$)).subscribe(start => {
      this.currentWeekStart = start;
      this.cdr.detectChanges();
    });
    this.scheduleState.currentWeekEnd$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.takeUntil)(this.destroy$)).subscribe(end => {
      this.currentWeekEnd = end;
      this.cdr.detectChanges();
    });
    this.initializeBlocks();
    this.initializeWeek();
    this.generateWeekDays();
    this.calculateTariff();
  }
  ngOnDestroy() {
    this.destroy$.next();
    this.destroy$.complete();
  }
  ngOnChanges(changes) {
    if (changes['dataField'] && this.dataField) {
      this.initializeBlocks();
    }
    if (changes['dataField'] && !changes['dataField'].firstChange) {
      this.timeSlotsCache.clear();
      this.clearSelectedSlots();
      this.generateWeekDays();
      this.checkMultipleTariffs();
    }
    if (changes['dataTariff'] && !changes['dataTariff'].firstChange) {
      this.timeSlotsCache.clear();
      this.clearSelectedSlots();
      this.generateWeekDays();
      this.checkMultipleTariffs();
    }
    if (changes['reservationsList'] && !changes['reservationsList'].firstChange) {
      this.timeSlotsCache.clear();
      this.generateWeekDays();
      this.revalidateSelection();
    }
    if (changes['systemConfigs'] && !changes['systemConfigs'].firstChange) {
      this.timeSlotsCache.clear();
      this.generateWeekDays();
    }
  }
  initializeBlocks() {
    if (!this.dataField) return;
    const allSchedules = this.dataField.horariosFijosDtoList || [];
    let earliestStart = '23:59:59';
    let latestEnd = '00:00:00';
    allSchedules.forEach(schedule => {
      if (schedule.abierto && schedule.horaApertura && schedule.horaCierre) {
        const scheduleStart = schedule.horaApertura;
        const scheduleEnd = schedule.horaCierre;
        if (this.timeToMinutes(scheduleStart) < this.timeToMinutes(earliestStart)) {
          earliestStart = scheduleStart;
        }
        if (this.timeToMinutes(scheduleEnd) > this.timeToMinutes(latestEnd)) {
          latestEnd = scheduleEnd;
        }
      }
    });
    let fieldStart = earliestStart;
    let fieldEnd = latestEnd;
    if (this.dataTariff?.desde) {
      const tariffStart = this.timeToMinutes(this.dataTariff.desde);
      const fieldStartMinutes = this.timeToMinutes(fieldStart);
      if (tariffStart > fieldStartMinutes) {
        fieldStart = this.dataTariff.desde;
      }
    }
    if (this.dataTariff?.hasta) {
      const tariffEnd = this.timeToMinutes(this.dataTariff.hasta);
      const fieldEndMinutes = this.timeToMinutes(fieldEnd);
      if (tariffEnd < fieldEndMinutes) {
        fieldEnd = this.dataTariff.hasta;
      }
    }
    const operatingPeriods = this.getOperatingPeriodsForDay(new Date());
    if (operatingPeriods.length === 1) {
      this.createDynamicBlocks(fieldStart, fieldEnd);
    } else {
      this.createDiscontinuousBlocks(operatingPeriods);
    }
  }
  createDynamicBlocks(startTime, endTime) {
    const startMinutes = this.timeToMinutes(startTime);
    const endMinutes = this.timeToMinutes(endTime);
    const morningEnd = this.timeToMinutes('12:00:00');
    const afternoonEnd = this.timeToMinutes('18:00:00');
    this.blocks = {};
    if (startMinutes < morningEnd) {
      const morningEndTime = Math.min(morningEnd, endMinutes);
      if (morningEndTime > startMinutes) {
        this.blocks['morning'] = {
          start: startTime,
          end: this.minutesToTime(morningEndTime),
          label: 'Mañana',
          icon: 'ri-sun-line',
          color: 'text-warning'
        };
      }
    }
    if (endMinutes > morningEnd && startMinutes < afternoonEnd) {
      const afternoonStart = Math.max(startMinutes, morningEnd);
      const afternoonEndTime = Math.min(afternoonEnd, endMinutes);
      if (afternoonEndTime > afternoonStart) {
        this.blocks['afternoon'] = {
          start: this.minutesToTime(afternoonStart),
          end: this.minutesToTime(afternoonEndTime),
          label: 'Tarde',
          icon: 'ri-sun-cloudy-line',
          color: 'text-orange'
        };
      }
    }
    if (endMinutes > afternoonEnd && startMinutes < endMinutes) {
      const nightStart = Math.max(startMinutes, afternoonEnd);
      if (endMinutes > nightStart) {
        this.blocks['night'] = {
          start: this.minutesToTime(nightStart),
          end: endTime,
          label: 'Noche',
          icon: 'ri-moon-line',
          color: 'text-info'
        };
      }
    }
    if (Object.keys(this.blocks).length === 0) {
      this.blocks['operating'] = {
        start: startTime,
        end: endTime,
        label: 'Horario Completo',
        icon: 'ri-time-line',
        color: 'text-primary'
      };
    }
  }
  createDiscontinuousBlocks(periods) {
    this.blocks = {};
    periods.forEach((period, index) => {
      const startHour = parseInt(period.start.split(':')[0]);
      const endHour = parseInt(period.end.split(':')[0]);
      let blockKey;
      let label;
      let icon;
      let color;
      if (periods.length === 1) {
        blockKey = 'operating';
        label = 'Horario';
        icon = 'ri-time-line';
        color = 'text-primary';
      } else {
        if (startHour < 12) {
          blockKey = 'morning';
          label = 'Mañana';
          icon = 'ri-sun-line';
          color = 'text-warning';
        } else if (startHour < 18) {
          blockKey = 'afternoon';
          label = 'Tarde';
          icon = 'ri-sun-cloudy-line';
          color = 'text-orange';
        } else {
          blockKey = 'night';
          label = 'Noche';
          icon = 'ri-moon-line';
          color = 'text-info';
        }
        if (this.blocks[blockKey]) {
          blockKey = `${blockKey}_${index + 1}`;
          label = `${label} ${index + 1}`;
        }
      }
      this.blocks[blockKey] = {
        start: period.start,
        end: period.end,
        label: label,
        icon: icon,
        color: color
      };
    });
  }
  autoAdjustEndTime() {
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    const minDurationMinutes = this.minDuration * 60;
    if (endMinutes <= startMinutes) {
      const newEndMinutes = startMinutes + minDurationMinutes;
      this.endTimeInput = {
        hours: Math.floor(newEndMinutes / 60) % 24,
        minutes: newEndMinutes % 60
      };
      this.updateSlotsFromTimeInputs();
    }
  }
  confirmTimeSelection() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!_this.validateTimeSelection()) {
        _this.showValidationAlert = true;
        return;
      }
      const startTime = _this.timeInputToString(_this.startTimeInput);
      const endTime = _this.timeInputToString(_this.endTimeInput);
      const timeRange = {
        date: _this.fechaReserva,
        startTime: startTime,
        endTime: endTime
      };
      const validation = _this.conflictService.validateReservation(_this.dataField.uuid, timeRange, _this.reservationsList, _this.anticipationHours);
      if (!validation.isValid) {
        _this.validationErrors = validation.errors;
        _this.showValidationAlert = true;
        return;
      }
      _this.horarioSelected.emit({
        date: _this.fechaReserva,
        start: startTime,
        end: endTime
      });
    })();
  }
  isFormValid() {
    if (this.startTimeInput.hours === 0 && this.startTimeInput.minutes === 0 && this.endTimeInput.hours === 0 && this.endTimeInput.minutes === 0) {
      return false;
    }
    if (this.startTimeInput.hours === this.endTimeInput.hours && this.startTimeInput.minutes === this.endTimeInput.minutes) {
      return false;
    }
    const originalErrors = [...this.validationErrors];
    const originalShowAlert = this.showValidationAlert;
    const isValid = this.validateTimeSelection();
    this.validationErrors = originalErrors;
    this.showValidationAlert = originalShowAlert;
    return isValid;
  }
  validateTimeSelection() {
    this.validationErrors = [];
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    if (!this.isDayOpen()) {
      this.validationErrors.push('El campo está cerrado para este día. No se pueden seleccionar horarios.');
      return false;
    }
    if (startMinutes >= endMinutes) {
      this.validationErrors.push('La hora de inicio debe ser anterior a la hora de fin');
      return false;
    }
    const duration = endMinutes - startMinutes;
    if (duration < this.minDuration * 60) {
      this.validationErrors.push(`La duración mínima es de ${this.minDurationDisplay}`);
      return false;
    }
    if (duration > this.maxDuration * 60) {
      this.validationErrors.push(`La duración máxima es de ${this.maxDurationDisplay}`);
      return false;
    }
    const startTime = this.timeInputToString(this.startTimeInput);
    const endTime = this.timeInputToString(this.endTimeInput);
    if (!this.isTimeWithinAnyOperatingPeriod(startTime, endTime)) {
      const operatingHours = this.getOperatingHoursDisplay();
      this.validationErrors.push(`El horario seleccionado debe estar dentro del horario de atención: ${operatingHours}`);
      return false;
    }
    if (!this.isTimeWithinTariff(startTime, endTime)) {
      this.validationErrors.push(`El horario seleccionado está fuera del rango de la tarifa "${this.dataTariff.descripcion}". ` + `Rango permitido: ${this.dataTariff.desde?.slice(0, 5)} - ${this.dataTariff.hasta?.slice(0, 5)}`);
      return false;
    }
    if (this.tariffBoundaryTime) {
      const boundaryMinutes = this.timeToMinutes(this.tariffBoundaryTime);
      if (startMinutes < boundaryMinutes && endMinutes > boundaryMinutes) {
        this.validationErrors.push(`El horario seleccionado cruza el límite entre tarifas (${this.tariffBoundaryTime.slice(0, 5)}). ` + `Seleccione un horario que esté completamente dentro del rango de una sola tarifa.`);
        return false;
      }
    }
    const now = new Date();
    const selectedDateTime = this.combineDateAndTime(this.fechaReserva, startTime);
    let minReservationTime = new Date(now.getTime());
    if (this.anticipationHours) {
      minReservationTime = new Date(now.getTime() + this.anticipationHours * 60 * 60 * 1000);
    }
    if (selectedDateTime < minReservationTime) {
      const timeDiff = minReservationTime.getTime() - now.getTime();
      const hoursDiff = Math.ceil(timeDiff / (1000 * 60 * 60));
      if (this.dataTariff.tipoCobro === 'por_evento') {
        this.validationErrors.push(`Las reservas de eventos deben realizarse con al menos ${this.anticipationTimeDisplay} de anticipación`);
      } else {
        this.validationErrors.push(`Las reservas deben realizarse con al menos ${this.anticipationTimeDisplay} de anticipación`);
      }
      return false;
    }
    const timeRange = {
      date: this.fechaReserva,
      startTime: startTime,
      endTime: endTime
    };
    const conflictResult = this.conflictService.checkConflict(this.dataField.uuid, timeRange, this.reservationsList);
    if (conflictResult.hasConflict) {
      this.validationErrors.push(conflictResult.reason || 'El horario seleccionado tiene conflictos con reservas existentes');
      return false;
    }
    return true;
  }
  isTimeWithinAnyOperatingPeriod(startTime, endTime) {
    const operatingPeriods = this.getOperatingPeriodsForDay(this.fechaReserva);
    if (operatingPeriods.length === 0) return false;
    const startMinutes = this.timeToMinutes(startTime);
    const endMinutes = this.timeToMinutes(endTime);
    return operatingPeriods.some(period => {
      const periodStart = this.timeToMinutes(period.start);
      const periodEnd = this.timeToMinutes(period.end);
      return startMinutes >= periodStart && endMinutes <= periodEnd;
    });
  }
  revalidateSelection() {
    if (this.selectedSlots.length === 0) return;
    const currentDaySlots = this.getTimeSlotsForDay(this.fechaReserva);
    const allSlots = [...currentDaySlots.morningSlots, ...currentDaySlots.afternoonSlots, ...currentDaySlots.nightSlots];
    const invalidSlots = [];
    this.selectedSlots.forEach(selectedSlot => {
      const currentSlot = allSlots.find(s => s.startTime === selectedSlot.startTime && s.endTime === selectedSlot.endTime);
      if (!currentSlot || !currentSlot.isAvailable || currentSlot.isReserved) {
        invalidSlots.push(selectedSlot);
      }
    });
    if (invalidSlots.length > 0) {
      this.clearSelectedSlots();
      this.validationErrors.push('Algunos horarios seleccionados ya no están disponibles');
      this.showValidationAlert = true;
    }
  }
  getDurationTime() {
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    return endMinutes - startMinutes;
  }
  getDurationDisplay() {
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    const durationMinutes = endMinutes - startMinutes;
    if (durationMinutes <= 0) return '0 min';
    const hours = Math.floor(durationMinutes / 60);
    const minutes = durationMinutes % 60;
    if (hours === 0) {
      return `${minutes} min`;
    } else if (minutes === 0) {
      return `${hours} h`;
    } else {
      return `${hours} h ${minutes} min`;
    }
  }
  toggleSlotSelection(slot) {
    if (slot.isPartiallyReserved && !slot.isSelected) {
      this.validationErrors = [];
      this.showValidationAlert = false;
      if (slot.availableStartTime && slot.availableEndTime) {
        const [startHours, startMinutes] = slot.availableStartTime.split(':').map(Number);
        const [endHours, endMinutes] = slot.availableEndTime.split(':').map(Number);
        this.startTimeInput = {
          hours: startHours,
          minutes: startMinutes
        };
        this.endTimeInput = {
          hours: endHours,
          minutes: endMinutes
        };
        this.updateSlotsFromTimeInputs();
        this.calculateTariff();
      }
      return;
    }
    if (!slot.isAvailable || slot.isReserved || !slot.isWithinTariffTime || slot.tariffConflict) {
      if (slot.conflictReason) {
        this.validationErrors = [slot.conflictReason];
        this.showValidationAlert = true;
      } else if (slot.tariffConflict && slot.applicableTariff) {
        this.validationErrors = [`Este horario corresponde a la tarifa "${slot.applicableTariff.descripcion}". ` + `Seleccione solo horarios dentro del rango de la tarifa "${this.dataTariff.descripcion}" ` + `(${this.dataTariff.desde?.slice(0, 5)} - ${this.dataTariff.hasta?.slice(0, 5)})`];
        this.showValidationAlert = true;
      } else if (!slot.isWithinTariffTime) {
        this.validationErrors = [`Este horario está fuera del rango de la tarifa seleccionada. ` + `Tarifa "${this.dataTariff.descripcion}": ${this.dataTariff.desde?.slice(0, 5)} - ${this.dataTariff.hasta?.slice(0, 5)}`];
        this.showValidationAlert = true;
      } else if (slot.isPast) {
        this.validationErrors = ['No se pueden seleccionar horarios en el pasado'];
        this.showValidationAlert = true;
      }
      this.updateTimeInputsFromSlots();
      this.calculateTariff();
      return;
    }
    this.validationErrors = [];
    this.showValidationAlert = false;
    const index = this.selectedSlots.findIndex(s => s.startTime === slot.startTime && s.endTime === slot.endTime);
    if (index > -1) {
      this.deselectSlotAndDependents(slot);
    } else {
      const tempSelected = [...this.selectedSlots, slot];
      const daySlots = this.getTimeSlotsForDay(this.fechaReserva);
      const allSlots = [...daySlots.morningSlots, ...daySlots.afternoonSlots, ...daySlots.nightSlots].sort((a, b) => this.timeToMinutes(a.startTime) - this.timeToMinutes(b.startTime));
      let minTime = Math.min(...tempSelected.map(s => this.timeToMinutes(s.startTime)), ...(slot.isPartiallyReserved && slot.availableStartTime ? [this.timeToMinutes(slot.availableStartTime + ':00')] : []));
      let maxTime = Math.max(...tempSelected.map(s => this.timeToMinutes(s.endTime)), ...(slot.isPartiallyReserved && slot.availableEndTime ? [this.timeToMinutes(slot.availableEndTime + ':00')] : []));
      let hasGap = false;
      for (const s of allSlots) {
        const slotStart = this.timeToMinutes(s.startTime);
        const slotEnd = this.timeToMinutes(s.endTime);
        if (slotStart >= minTime && slotEnd <= maxTime) {
          let isSlotAvailable = false;
          if (s.isPartiallyReserved && s.availableStartTime && s.availableEndTime) {
            const availStart = this.timeToMinutes(s.availableStartTime + ':00');
            const availEnd = this.timeToMinutes(s.availableEndTime + ':00');
            if (availStart < maxTime && availEnd > minTime) {
              isSlotAvailable = true;
            }
          } else {
            isSlotAvailable = s.isAvailable && !s.isReserved;
          }
          if (!isSlotAvailable) {
            hasGap = true;
            break;
          }
        }
      }
      if (hasGap) {
        this.validationErrors = ['Solo se pueden seleccionar horarios consecutivos. Hay reservas en medio del rango seleccionado.'];
        this.showValidationAlert = true;
        return;
      }
      this.selectSlotWithConsecutive(slot);
    }
    this.selectedSlots.sort((a, b) => this.timeToMinutes(a.startTime) - this.timeToMinutes(b.startTime));
    if (!this.areSlotsConsecutive(this.selectedSlots)) {
      this.validationErrors = ['Los horarios seleccionados no son consecutivos'];
      this.showValidationAlert = true;
      this.clearSelectedSlots();
      return;
    }
    this.updateTimeInputsFromSlots();
  }
  areSlotsConsecutive(slots) {
    if (slots.length <= 1) return true;
    const sortedSlots = [...slots].sort((a, b) => this.timeToMinutes(a.startTime) - this.timeToMinutes(b.startTime));
    for (let i = 0; i < sortedSlots.length - 1; i++) {
      const currentSlot = sortedSlots[i];
      const nextSlot = sortedSlots[i + 1];
      let currentEnd;
      if (currentSlot.isPartialSelection && currentSlot.partialEndTime) {
        currentEnd = this.timeToMinutes(currentSlot.partialEndTime + ':00');
      } else if (currentSlot.isPartiallyReserved && currentSlot.availableEndTime) {
        currentEnd = this.timeToMinutes(currentSlot.availableEndTime + ':00');
      } else {
        currentEnd = this.timeToMinutes(currentSlot.endTime);
      }
      let nextStart;
      if (nextSlot.isPartialSelection && nextSlot.partialStartTime) {
        nextStart = this.timeToMinutes(nextSlot.partialStartTime + ':00');
      } else if (nextSlot.isPartiallyReserved && nextSlot.availableStartTime) {
        nextStart = this.timeToMinutes(nextSlot.availableStartTime + ':00');
      } else {
        nextStart = this.timeToMinutes(nextSlot.startTime);
      }
      if (currentEnd !== nextStart) {
        return false;
      }
    }
    return true;
  }
  updateTimeInputsFromSlots() {
    if (this.selectedSlots.length === 0) {
      return;
    }
    let earliestStartMinutes = Infinity;
    let latestEndMinutes = 0;
    this.selectedSlots.forEach(slot => {
      if (slot.isPartialSelection && slot.partialStartTime && slot.partialEndTime) {
        const startMinutes = this.timeToMinutes(slot.partialStartTime + ':00');
        const endMinutes = this.timeToMinutes(slot.partialEndTime + ':00');
        earliestStartMinutes = Math.min(earliestStartMinutes, startMinutes);
        latestEndMinutes = Math.max(latestEndMinutes, endMinutes);
      } else if (slot.isPartiallyReserved && slot.availableStartTime && slot.availableEndTime) {
        const startMinutes = this.timeToMinutes(slot.availableStartTime + ':00');
        const endMinutes = this.timeToMinutes(slot.availableEndTime + ':00');
        earliestStartMinutes = Math.min(earliestStartMinutes, startMinutes);
        latestEndMinutes = Math.max(latestEndMinutes, endMinutes);
      } else {
        const startMinutes = this.timeToMinutes(slot.startTime);
        const endMinutes = this.timeToMinutes(slot.endTime);
        earliestStartMinutes = Math.min(earliestStartMinutes, startMinutes);
        latestEndMinutes = Math.max(latestEndMinutes, endMinutes);
      }
    });
    if (earliestStartMinutes !== Infinity && latestEndMinutes > 0) {
      const startHours = Math.floor(earliestStartMinutes / 60);
      const startMins = earliestStartMinutes % 60;
      const endHours = Math.floor(latestEndMinutes / 60);
      const endMins = latestEndMinutes % 60;
      this.startTimeInput = {
        hours: startHours,
        minutes: startMins
      };
      this.endTimeInput = {
        hours: endHours,
        minutes: endMins
      };
      this.cdr.detectChanges();
    }
  }
  deselectSlotAndDependents(deselectedSlot) {
    if (this.selectedSlots.length === 1) {
      this.clearSelectedSlots();
      this.startTimeInput = {
        hours: 0,
        minutes: 0
      };
      this.endTimeInput = {
        hours: 0,
        minutes: 0
      };
      return;
    }
    let newMinTime = Infinity;
    let newMaxTime = 0;
    let foundOthers = false;
    this.selectedSlots.forEach(slot => {
      if (slot.startTime === deselectedSlot.startTime && slot.endTime === deselectedSlot.endTime) {
        return;
      }
      foundOthers = true;
      if (slot.isPartialSelection && slot.partialStartTime && slot.partialEndTime) {
        const start = this.timeToMinutes(slot.partialStartTime + ':00');
        const end = this.timeToMinutes(slot.partialEndTime + ':00');
        newMinTime = Math.min(newMinTime, start);
        newMaxTime = Math.max(newMaxTime, end);
      } else {
        const start = this.timeToMinutes(slot.startTime);
        const end = this.timeToMinutes(slot.endTime);
        newMinTime = Math.min(newMinTime, start);
        newMaxTime = Math.max(newMaxTime, end);
      }
    });
    if (!foundOthers) {
      this.clearSelectedSlots();
      this.startTimeInput = {
        hours: 0,
        minutes: 0
      };
      this.endTimeInput = {
        hours: 0,
        minutes: 0
      };
      return;
    }
    this.startTimeInput = {
      hours: Math.floor(newMinTime / 60),
      minutes: newMinTime % 60
    };
    this.endTimeInput = {
      hours: Math.floor(newMaxTime / 60),
      minutes: newMaxTime % 60
    };
    this.updateSlotsFromTimeInputs();
  }
  selectSlotWithConsecutive(newSlot) {
    const daySlots = this.getTimeSlotsForDay(this.fechaReserva);
    const allSlots = [...daySlots.morningSlots, ...daySlots.afternoonSlots, ...daySlots.nightSlots].sort((a, b) => this.timeToMinutes(a.startTime) - this.timeToMinutes(b.startTime));
    if (this.selectedSlots.length === 0) {
      if (newSlot.isPartiallyReserved && newSlot.availableStartTime && newSlot.availableEndTime) {
        const [startHours, startMinutes] = newSlot.availableStartTime.split(':').map(Number);
        const [endHours, endMinutes] = newSlot.availableEndTime.split(':').map(Number);
        this.startTimeInput = {
          hours: startHours,
          minutes: startMinutes
        };
        this.endTimeInput = {
          hours: endHours,
          minutes: endMinutes
        };
        this.updateSlotsFromTimeInputs();
      } else {
        newSlot.isSelected = true;
        this.selectedSlots.push(newSlot);
        this.updateTimeInputsFromSlots();
      }
      return;
    }
    let minTime = Math.min(...this.selectedSlots.map(s => this.timeToMinutes(s.startTime)), this.timeToMinutes(newSlot.startTime));
    let maxTime = Math.max(...this.selectedSlots.map(s => this.timeToMinutes(s.endTime)), this.timeToMinutes(newSlot.endTime));
    let startFound = false;
    let validStart = minTime;
    let validEnd = maxTime;
    for (const slot of allSlots) {
      const slotStart = this.timeToMinutes(slot.startTime);
      const slotEnd = this.timeToMinutes(slot.endTime);
      if (slotStart >= minTime && slotStart < maxTime) {
        let isSlotAvailable = false;
        if (slot.isPartiallyReserved && slot.availableStartTime && slot.availableEndTime) {
          const availStart = this.timeToMinutes(slot.availableStartTime + ':00');
          const availEnd = this.timeToMinutes(slot.availableEndTime + ':00');
          if (availStart < maxTime && availEnd > minTime) {
            isSlotAvailable = true;
            validStart = Math.min(validStart, availStart);
            validEnd = Math.max(validEnd, availEnd);
          }
        } else {
          isSlotAvailable = slot.isAvailable && !slot.isReserved;
        }
        if (!isSlotAvailable && !startFound) {
          this.validationErrors = ['No se pueden seleccionar horarios no consecutivos'];
          this.showValidationAlert = true;
          return;
        }
      }
    }
    this.startTimeInput = {
      hours: Math.floor(validStart / 60),
      minutes: validStart % 60
    };
    this.endTimeInput = {
      hours: Math.floor(validEnd / 60),
      minutes: validEnd % 60
    };
    this.updateSlotsFromTimeInputs();
  }
  updateSlotsFromTimeInputs() {
    this.clearSelectedSlots();
    const startTime = this.timeInputToString(this.startTimeInput);
    const endTime = this.timeInputToString(this.endTimeInput);
    if (!this.isTimeWithinAnyOperatingPeriod(startTime, endTime)) {
      return;
    }
    const daySlots = this.getTimeSlotsForDay(this.fechaReserva);
    const allSlots = [...daySlots.morningSlots, ...daySlots.afternoonSlots, ...daySlots.nightSlots];
    const startMinutes = this.timeToMinutes(startTime);
    const endMinutes = this.timeToMinutes(endTime);
    allSlots.forEach(slot => {
      const slotStart = this.timeToMinutes(slot.startTime);
      const slotEnd = this.timeToMinutes(slot.endTime);
      const overlaps = slotStart < endMinutes && slotEnd > startMinutes;
      let isAvailableForSelection = false;
      let effectiveSlotStart = slotStart;
      let effectiveSlotEnd = slotEnd;
      if (slot.isPartiallyReserved && slot.availableStartTime && slot.availableEndTime) {
        const availableStart = this.timeToMinutes(slot.availableStartTime + ':00');
        const availableEnd = this.timeToMinutes(slot.availableEndTime + ':00');
        const overlapsAvailable = availableStart < endMinutes && availableEnd > startMinutes;
        if (overlapsAvailable && slot.isWithinTariffTime && !slot.tariffConflict) {
          isAvailableForSelection = true;
          effectiveSlotStart = availableStart;
          effectiveSlotEnd = availableEnd;
        }
      } else {
        isAvailableForSelection = slot.isAvailable && !slot.isReserved;
      }
      if (overlaps && isAvailableForSelection && slot.isWithinTariffTime && !slot.tariffConflict) {
        slot.isSelected = true;
        this.selectedSlots.push(slot);
        if (startMinutes > effectiveSlotStart || endMinutes < effectiveSlotEnd) {
          slot.isPartialSelection = true;
          slot.partialStart = Math.max(effectiveSlotStart, startMinutes);
          slot.partialEnd = Math.min(effectiveSlotEnd, endMinutes);
          slot.partialStartTime = this.minutesToTime(slot.partialStart).slice(0, 5);
          slot.partialEndTime = this.minutesToTime(slot.partialEnd).slice(0, 5);
        } else {
          slot.isPartialSelection = false;
          slot.partialStart = undefined;
          slot.partialEnd = undefined;
          slot.partialStartTime = undefined;
          slot.partialEndTime = undefined;
        }
      }
    });
    this.selectedSlots.sort((a, b) => this.timeToMinutes(a.startTime) - this.timeToMinutes(b.startTime));
  }
  confirmSelection() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this2.isCheckingAvailability = true;
      _this2.validationErrors = [];
      _this2.showValidationAlert = false;
      try {
        yield _this2.confirmTimeSelection();
      } catch (error) {
        console.error('Error confirming selection:', error);
        _this2.validationErrors.push('Error al verificar disponibilidad. Por favor, intente nuevamente.');
        _this2.showValidationAlert = true;
      } finally {
        _this2.isCheckingAvailability = false;
      }
    })();
  }
  clearSelectedSlots() {
    if (this.fechaReserva) {
      try {
        const currentDaySlots = this.getTimeSlotsForDay(this.fechaReserva);
        const allSlots = [...currentDaySlots.morningSlots, ...currentDaySlots.afternoonSlots, ...currentDaySlots.nightSlots];
        allSlots.forEach(slot => {
          slot.isSelected = false;
          slot.isPartialSelection = false;
        });
      } catch (error) {
        console.warn('Error clearing slot selection:', error);
      }
    }
    this.selectedSlots = [];
    this.validationErrors = [];
    this.showValidationAlert = false;
  }
  initializeWeek() {
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    const dayOfWeek = today.getDay();
    const diff = dayOfWeek === 0 ? -6 : 1 - dayOfWeek;
    this.currentWeekStart = new Date(today);
    this.currentWeekStart.setDate(today.getDate() + diff);
    this.currentWeekEnd = new Date(this.currentWeekStart);
    this.currentWeekEnd.setDate(this.currentWeekStart.getDate() + 6);
    this.fechaReserva = new Date(today);
    this.activeDayName = this.getDayName(today);
  }
  generateWeekDays() {
    this.weekDays = [];
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    for (let i = 0; i < 7; i++) {
      const date = new Date(this.currentWeekStart);
      date.setDate(this.currentWeekStart.getDate() + i);
      const dayName = this.getDayName(date);
      const isPast = date < today;
      this.weekDays.push({
        name: dayName,
        dayName: this.getFullDayName(date),
        date: date,
        isToday: date.toDateString() === today.toDateString(),
        isPast: isPast
      });
    }
  }
  getTimeSlotsForDay(date) {
    const dateKey = `${date.toISOString().split('T')[0]}-${this.minDuration * 60}-${this.dataTariff?.uuid || 'no-tariff'}`;
    if (this.timeSlotsCache.has(dateKey)) {
      return this.timeSlotsCache.get(dateKey);
    }
    const slots = this.generateDaySlots(date);
    this.timeSlotsCache.set(dateKey, slots);
    return slots;
  }
  generateDaySlots(date) {
    const daySchedule = this.getHorarioForDate(date);
    const exceptions = this.getExceptionsForDate(date);
    const result = {
      morningSlots: [],
      afternoonSlots: [],
      nightSlots: [],
      operatingSlots: [],
      daySchedule: daySchedule,
      exceptions: exceptions
    };
    if (!daySchedule?.abierto && (!exceptions || exceptions.length === 0)) {
      return result;
    }
    const operatingPeriods = this.getOperatingPeriodsForDay(date);
    if (operatingPeriods.length === 0) {
      return result;
    }
    operatingPeriods.forEach(period => {
      let horaApertura = period.start;
      let horaCierre = period.end;
      if (this.dataTariff?.desde) {
        const tarifaStart = this.timeToMinutes(this.dataTariff.desde);
        const scheduleStart = this.timeToMinutes(horaApertura);
        if (tarifaStart > scheduleStart) horaApertura = this.dataTariff.desde;
      }
      if (this.dataTariff?.hasta) {
        const tarifaEnd = this.timeToMinutes(this.dataTariff.hasta);
        const scheduleEnd = this.timeToMinutes(horaCierre);
        if (tarifaEnd < scheduleEnd) horaCierre = this.dataTariff.hasta;
      }
      if (this.timeToMinutes(horaApertura) < this.timeToMinutes(horaCierre)) {
        const slots = this.generateTimeSlots(date, horaApertura, horaCierre);
        slots.forEach(slot => {
          const startHour = parseInt(slot.startTime.split(':')[0]);
          const startMinutes = this.timeToMinutes(slot.startTime);
          if (startMinutes < this.timeToMinutes('12:00:00')) {
            slot.blockType = 'morning';
            result.morningSlots.push(slot);
          } else if (startMinutes < this.timeToMinutes('18:00:00')) {
            slot.blockType = 'afternoon';
            result.afternoonSlots.push(slot);
          } else {
            slot.blockType = 'night';
            result.nightSlots.push(slot);
          }
        });
      }
    });
    return result;
  }
  generateTimeSlots(date, startTime, endTime) {
    const slots = [];
    const now = new Date();
    let minReservationTime = new Date(now.getTime());
    if (this.anticipationHours) {
      minReservationTime = new Date(now.getTime() + this.anticipationHours * 60 * 60 * 1000);
    }
    const startMinutes = this.timeToMinutes(startTime);
    const endMinutes = this.timeToMinutes(endTime);
    const dayReservations = this.reservationsList.filter(r => {
      if (r.campoDeportivoDto?.uuid !== this.dataField.uuid) return false;
      if (!this.conflictService.isBlockingState(r.estadoReserva)) return false;
      if (r.reservaPuntualDto) {
        const reservaDate = new Date(r.reservaPuntualDto.fechaUso);
        const reservaDateStr = reservaDate.toISOString().split('T')[0];
        const targetDateStr = date.toISOString().split('T')[0];
        return reservaDateStr === targetDateStr;
      }
      return false;
    });
    const occupiedRanges = [];
    dayReservations.forEach(reserva => {
      if (reserva.reservaPuntualDto) {
        const reservaStart = this.timeToMinutes(reserva.reservaPuntualDto.horaInicio);
        const reservaEnd = this.timeToMinutes(reserva.reservaPuntualDto.horaFin);
        occupiedRanges.push({
          start: reservaStart,
          end: reservaEnd,
          reservation: reserva
        });
      }
    });
    occupiedRanges.sort((a, b) => a.start - b.start);
    for (let minutes = startMinutes; minutes < endMinutes; minutes += this.minDuration * 60) {
      const slotStart = this.minutesToTime(minutes);
      const slotEnd = this.minutesToTime(Math.min(minutes + this.minDuration * 60, endMinutes));
      const slotStartMinutes = minutes;
      const slotEndMinutes = Math.min(minutes + this.minDuration * 60, endMinutes);
      const slotDateTime = this.combineDateAndTime(date, slotStart);
      const isPast = slotDateTime < minReservationTime;
      let isReserved = false;
      let isPartiallyReserved = false;
      let reservedStart;
      let reservedEnd;
      let availableStart = slotStartMinutes;
      let availableEnd = slotEndMinutes;
      let conflictingReservation;
      for (const range of occupiedRanges) {
        const overlapStart = Math.max(slotStartMinutes, range.start);
        const overlapEnd = Math.min(slotEndMinutes, range.end);
        if (overlapStart < overlapEnd) {
          isReserved = true;
          conflictingReservation = range.reservation;
          if (overlapStart === slotStartMinutes && overlapEnd === slotEndMinutes) {
            isPartiallyReserved = false;
          } else {
            isPartiallyReserved = true;
            reservedStart = overlapStart;
            reservedEnd = overlapEnd;
            if (overlapStart > slotStartMinutes) {
              availableEnd = overlapStart;
            } else if (overlapEnd < slotEndMinutes) {
              availableStart = overlapEnd;
            }
          }
          break;
        }
      }
      const timeRange = {
        date: date,
        startTime: slotStart,
        endTime: slotEnd
      };
      let conflictResult;
      if (!conflictingReservation) {
        conflictResult = this.conflictService.checkConflict(this.dataField.uuid, timeRange, this.reservationsList);
      }
      const isWithinTariffTime = this.isTimeWithinTariff(slotStart, slotEnd);
      const applicableTariff = this.findApplicableTariffForTime(slotStart);
      const tariffConflict = applicableTariff && applicableTariff.uuid !== this.dataTariff.uuid;
      let isAvailable = !isPast && !isReserved && isWithinTariffTime && !tariffConflict;
      if (isPartiallyReserved && !isPast && isWithinTariffTime && !tariffConflict) {
        isAvailable = true;
      }
      const slot = {
        time: `${slotStart.slice(0, 5)} - ${slotEnd.slice(0, 5)}`,
        startTime: slotStart,
        endTime: slotEnd,
        isAvailable: isAvailable,
        isReserved: isReserved && !isPartiallyReserved,
        isPartiallyReserved: isPartiallyReserved,
        isPast: isPast,
        isSelected: false,
        reservation: conflictingReservation || conflictResult?.conflictingReservations[0],
        conflictReason: conflictResult?.reason,
        blockType: 'operating',
        isWithinTariffTime: isWithinTariffTime,
        applicableTariff: applicableTariff,
        tariffConflict: tariffConflict
      };
      if (isPartiallyReserved && reservedStart !== undefined && reservedEnd !== undefined) {
        slot.reservedStart = reservedStart;
        slot.reservedEnd = reservedEnd;
        slot.reservedStartTime = this.minutesToTime(reservedStart).slice(0, 5);
        slot.reservedEndTime = this.minutesToTime(reservedEnd).slice(0, 5);
        slot.availableStart = availableStart;
        slot.availableEnd = availableEnd;
        slot.availableStartTime = this.minutesToTime(availableStart).slice(0, 5);
        slot.availableEndTime = this.minutesToTime(availableEnd).slice(0, 5);
      }
      slots.push(slot);
    }
    return slots;
  }
  combineDateAndTime(date, time) {
    const [hours, minutes] = time.split(':').map(Number);
    const result = new Date(date);
    result.setHours(hours, minutes, 0, 0);
    return result;
  }
  isTimeWithinTariff(startTime, endTime) {
    if (!this.dataTariff.desde || !this.dataTariff.hasta) {
      return true;
    }
    const slotStart = this.timeToMinutes(startTime);
    const slotEnd = this.timeToMinutes(endTime);
    const tariffStart = this.timeToMinutes(this.dataTariff.desde);
    const tariffEnd = this.timeToMinutes(this.dataTariff.hasta);
    return slotStart >= tariffStart && slotEnd <= tariffEnd;
  }
  findApplicableTariffForTime(time) {
    if (!this.dataField?.tarifasDtoList) return undefined;
    const timeMinutes = this.timeToMinutes(time);
    const applicable = this.dataField.tarifasDtoList.filter(tarifa => tarifa.activo && tarifa.desde && tarifa.hasta && timeMinutes >= this.timeToMinutes(tarifa.desde) && timeMinutes < this.timeToMinutes(tarifa.hasta));
    const selectedTariffApplicable = applicable.find(t => t.uuid === this.dataTariff.uuid);
    return selectedTariffApplicable || applicable[0];
  }
  checkMultipleTariffs() {
    if (!this.dataField?.tarifasDtoList || !this.dataTariff) {
      this.hasMultipleApplicableTariffs = false;
      this.applicableTariffs = [];
      this.tariffBoundaryTime = null;
      return;
    }
    const activeTariffs = this.dataField.tarifasDtoList.filter(tarifa => tarifa.activo && tarifa.tipoCobro !== 'por_evento');
    this.applicableTariffs = activeTariffs.filter(tarifa => tarifa.uuid !== this.dataTariff.uuid && this.tariffsOverlap(this.dataTariff, tarifa));
    this.hasMultipleApplicableTariffs = this.applicableTariffs.length > 0;
    if (this.hasMultipleApplicableTariffs) {
      this.tariffBoundaryTime = this.findTariffBoundaryTime();
    } else {
      this.tariffBoundaryTime = null;
    }
  }
  tariffsOverlap(tariff1, tariff2) {
    if (!tariff1.desde || !tariff1.hasta || !tariff2.desde || !tariff2.hasta) {
      return false;
    }
    const t1Start = this.timeToMinutes(tariff1.desde);
    const t1End = this.timeToMinutes(tariff1.hasta);
    const t2Start = this.timeToMinutes(tariff2.desde);
    const t2End = this.timeToMinutes(tariff2.hasta);
    return t1Start < t2End && t1End > t2Start;
  }
  findTariffBoundaryTime() {
    if (!this.dataTariff.hasta) return null;
    const overlappingStarts = this.applicableTariffs.map(tarifa => this.timeToMinutes(tarifa.desde || '00:00:00')).filter(startTime => startTime > this.timeToMinutes(this.dataTariff.desde || '00:00:00'));
    if (overlappingStarts.length === 0) return null;
    const earliestOverlap = Math.min(...overlappingStarts);
    return this.minutesToTime(earliestOverlap);
  }
  getOperatingPeriodsForDay(date) {
    const allSchedules = this.dataField.horariosFijosDtoList || [];
    const dayOfWeek = date.getDay();
    const dayNames = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    const currentDayName = dayNames[dayOfWeek];
    const applicableSchedules = allSchedules.filter(schedule => {
      if (!schedule.abierto || !schedule.horaApertura || !schedule.horaCierre) return false;
      if (schedule.dia === currentDayName) return true;
      if (schedule.dia === 'lunes_viernes' && dayOfWeek >= 1 && dayOfWeek <= 5) return true;
      if (schedule.dia === 'sabado' && dayOfWeek === 6) return true;
      if (schedule.dia === 'domingo' && dayOfWeek === 0) return true;
      return false;
    });
    const periods = applicableSchedules.map(schedule => ({
      start: schedule.horaApertura,
      end: schedule.horaCierre
    })).sort((a, b) => this.timeToMinutes(a.start) - this.timeToMinutes(b.start));
    const mergedPeriods = [];
    let currentPeriod = null;
    for (const period of periods) {
      if (!currentPeriod) {
        currentPeriod = {
          ...period
        };
      } else {
        const currentEnd = this.timeToMinutes(currentPeriod.end);
        const nextStart = this.timeToMinutes(period.start);
        if (nextStart <= currentEnd) {
          const nextEnd = this.timeToMinutes(period.end);
          if (nextEnd > currentEnd) {
            currentPeriod.end = period.end;
          }
        } else {
          mergedPeriods.push(currentPeriod);
          currentPeriod = {
            ...period
          };
        }
      }
    }
    if (currentPeriod) {
      mergedPeriods.push(currentPeriod);
    }
    return mergedPeriods;
  }
  getHorarioForDate(date) {
    if (!this.dataField?.horariosFijosDtoList) return undefined;
    const dayOfWeek = date.getDay();
    const dayNames = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    const currentDayName = dayNames[dayOfWeek];
    const exactDayMatch = this.dataField.horariosFijosDtoList.find(h => h.dia === currentDayName);
    if (exactDayMatch) {
      return exactDayMatch;
    }
    if (dayOfWeek >= 1 && dayOfWeek <= 5) {
      return this.dataField.horariosFijosDtoList.find(h => h.dia === 'lunes_viernes');
    }
    if (dayOfWeek === 6) {
      // sábado
      return this.dataField.horariosFijosDtoList.find(h => h.dia === 'sabado');
    }
    if (dayOfWeek === 0) {
      // domingo
      return this.dataField.horariosFijosDtoList.find(h => h.dia === 'domingo');
    }
    return undefined;
  }
  getExceptionsForDate(date) {
    if (!this.dataField?.horariosExcepcionesDtoList) return undefined;
    const dateStr = date.toISOString().split('T')[0];
    return this.dataField.horariosExcepcionesDtoList.filter(exc => exc.fecha === dateStr);
  }
  calculateTariff() {
    this.calculatedTariff = 0;
    this.tariffDetails = [];
    if (!this.dataTariff) return;
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    const durationInHours = (endMinutes - startMinutes) / 60;
    switch (this.dataTariff.tipoCobro) {
      case 'por_hora':
        const baseAmount = this.dataTariff.precioBase * durationInHours;
        this.calculatedTariff = baseAmount;
        this.tariffDetails.push(`Tarifa base: Bs. ${this.dataTariff.precioBase} × ${durationInHours.toFixed(1)}h = Bs. ${baseAmount.toFixed(2)}`);
        this.calculateAdditionalConcepts(durationInHours);
        break;
      case 'por_persona':
        this.calculatedTariff = this.dataTariff.precioBase;
        this.tariffDetails.push(`Tarifa base por persona: Bs. ${this.dataTariff.precioBase}`);
        this.tariffDetails.push('* Número de personas se definirá en el siguiente formulario');
        this.calculateAdditionalConcepts(1);
        break;
      case 'por_evento':
        this.calculatedTariff = this.dataTariff.precioBase;
        this.tariffDetails.push(`Tarifa por evento: Bs. ${this.dataTariff.precioBase}`);
        this.calculateAdditionalConcepts(1);
        break;
      case 'mensualidad':
        break;
      case 'por_sesion':
        break;
      case 'por_club':
        break;
      default:
        console.warn('Tipo de cobro no reconocido:', this.dataTariff.tipoCobro);
    }
  }
  calculateAdditionalConcepts(baseHours) {
    if (!this.dataTariff.conceptosDtos || this.dataTariff.conceptosDtos.length === 0) {
      return;
    }
    let conceptTotal = 0;
    this.dataTariff.conceptosDtos.forEach(concepto => {
      if (!concepto.activo) return;
      let conceptAmount = 0;
      let conceptDetail = '';
      if (concepto.tipo === 'por_hora') {
        const applicableHours = this.getApplicableHoursForConcept(concepto);
        conceptAmount = (concepto.valor || 0) * applicableHours;
        conceptDetail = `${concepto.concepto}: $${concepto.valor} × ${applicableHours.toFixed(1)}h = $${conceptAmount.toFixed(2)}`;
      } else if (concepto.tipo === 'porcentaje') {
        conceptAmount = this.calculatedTariff * (concepto.valor || 0) / 100;
        conceptDetail = `${concepto.concepto}: ${concepto.valor}% = $${conceptAmount.toFixed(2)}`;
      } else if (concepto.tipo === 'monto_fijo') {
        conceptAmount = concepto.valor || 0;
        conceptDetail = `${concepto.concepto}: $${conceptAmount.toFixed(2)}`;
      }
      if (conceptAmount > 0) {
        this.calculatedTariff += conceptAmount;
        conceptTotal += conceptAmount;
        this.tariffDetails.push(conceptDetail);
      }
    });
    if (conceptTotal > 0) {
      this.tariffDetails.push(`Total conceptos adicionales: $${conceptTotal.toFixed(2)}`);
    }
  }
  getApplicableHoursForConcept(concepto) {
    if (!concepto.desde || !concepto.hasta) return 0;
    const startMinutes = this.startTimeInput.hours * 60 + this.startTimeInput.minutes;
    const endMinutes = this.endTimeInput.hours * 60 + this.endTimeInput.minutes;
    const conceptStart = this.timeToMinutes(concepto.desde);
    const conceptEnd = this.timeToMinutes(concepto.hasta);
    const overlapStart = Math.max(startMinutes, conceptStart);
    const overlapEnd = Math.min(endMinutes, conceptEnd);
    const overlapHours = Math.max(0, overlapEnd - overlapStart) / 60;
    return overlapHours;
  }
  setSelectedDay(date) {
    this.clearSelectedSlots();
    this.fechaReserva = date;
    this.activeDayName = this.getDayName(date);
  }
  onStartTimeChange(event) {
    const timeString = event.target.value;
    if (timeString) {
      const [hours, minutes] = timeString.split(':').map(Number);
      this.startTimeInput = {
        hours,
        minutes
      };
      const startTime = this.timeInputToString(this.startTimeInput);
      const endTime = this.timeInputToString(this.endTimeInput);
      if (this.timeToMinutes(startTime) >= this.timeToMinutes(endTime)) {
        this.autoAdjustEndTime();
      }
      this.updateSlotsFromTimeInputs();
      this.calculateTariff();
      if (!this.validateTimeSelection()) {
        this.showValidationAlert = true;
      }
    }
  }
  onEndTimeChange(event) {
    const timeString = event.target.value;
    if (timeString) {
      const [hours, minutes] = timeString.split(':').map(Number);
      this.endTimeInput = {
        hours,
        minutes
      };
      this.updateSlotsFromTimeInputs();
      this.calculateTariff();
      if (!this.validateTimeSelection()) {
        this.showValidationAlert = true;
      }
    }
  }
  getDayName(date) {
    const days = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    return days[date.getDay()];
  }
  getFullDayName(date) {
    const days = ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'];
    return days[date.getDay()];
  }
  timeToMinutes(time) {
    const parts = time.split(':');
    const hours = parseInt(parts[0], 10);
    const minutes = parseInt(parts[1], 10);
    const result = hours * 60 + minutes;
    return result;
  }
  minutesToTime(minutes) {
    const hours = Math.floor(minutes / 60);
    const mins = minutes % 60;
    const result = `${hours.toString().padStart(2, '0')}:${mins.toString().padStart(2, '0')}:00`;
    return result;
  }
  getTimeInputValue(timeInput) {
    if (timeInput.hours === 0 && timeInput.minutes === 0) {
      return '';
    }
    return `${timeInput.hours.toString().padStart(2, '0')}:${timeInput.minutes.toString().padStart(2, '0')}`;
  }
  timeInputToString(timeInput) {
    return `${timeInput.hours.toString().padStart(2, '0')}:${timeInput.minutes.toString().padStart(2, '0')}:00`;
  }
  /* public : redirection,displays, class getter*/
  trackBySlot(index, slot) {
    return `${slot.startTime}-${slot.endTime}`;
  }
  moveWeek(direction) {
    this.scheduleState.moveWeek(direction);
    this.timeSlotsCache.clear();
    this.clearSelectedSlots();
    this.generateWeekDays();
    if (this.weekDays.length > 0) {
      this.setSelectedDay(this.weekDays[0].date);
    }
  }
  goToToday() {
    this.scheduleState.goToToday();
    this.timeSlotsCache.clear();
    this.clearSelectedSlots();
    this.generateWeekDays();
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    const todayInWeek = this.weekDays.find(day => day.date.toDateString() === today.toDateString());
    if (todayInWeek) {
      this.setSelectedDay(todayInWeek.date);
    } else if (this.weekDays.length > 0) {
      this.setSelectedDay(this.weekDays[0].date);
    }
  }
  isDayOpen() {
    const daySlots = this.getTimeSlotsForDay(this.fechaReserva);
    return daySlots.daySchedule?.abierto === true;
  }
  getSlotClasses(slot) {
    if (slot.isSelected) return 'border-primary bg-primary text-white';
    if (!slot.isAvailable) return 'border-secondary bg-light text-muted';
    if (slot.isReserved) return 'border-danger bg-danger-subtle text-danger';
    if (!slot.isWithinTariffTime || slot.tariffConflict) return 'border-warning bg-warning-subtle text-warning';
    return 'border-success bg-success-subtle text-success cursor-pointer hover-effect';
  }
  getSlotTextClasses(slot) {
    if (slot.isSelected) return 'text-white fw-medium';
    if (!slot.isAvailable) return 'text-muted';
    if (slot.isReserved) return 'text-danger';
    if (!slot.isWithinTariffTime || slot.tariffConflict) return 'text-warning';
    return 'text-success';
  }
  getSlotTooltip(slot) {
    if (slot.conflictReason) return slot.conflictReason;
    if (slot.tariffConflict && slot.applicableTariff) {
      return `Corresponde a: ${slot.applicableTariff.descripcion} (${slot.applicableTariff.desde?.slice(0, 5)} - ${slot.applicableTariff.hasta?.slice(0, 5)})`;
    }
    if (!slot.isWithinTariffTime) {
      return `Fuera del rango de la tarifa seleccionada: ${this.dataTariff.desde?.slice(0, 5)} - ${this.dataTariff.hasta?.slice(0, 5)}`;
    }
    if (slot.isPast) return 'Hora pasada';
    if (slot.isAvailable) return 'Disponible';
    return '';
  }
  getDayCardClasses(day) {
    const classes = ['rounded-3', 'me-1', 'mb-2'];
    const daySlots = this.getTimeSlotsForDay(day.date);
    if (day.isPast) {
      classes.push('bg-secondary-subtle');
    } else if (daySlots.daySchedule?.abierto) {
      classes.push('bg-success-subtle');
    } else {
      classes.push('bg-danger-subtle');
    }
    if (day.isToday) {
      classes.push('border', 'border-primary', 'border-2');
    }
    return classes.join(' ');
  }
  getOperatingHoursDisplay() {
    const daySlots = this.getTimeSlotsForDay(this.fechaReserva);
    if (!daySlots.daySchedule?.abierto) return 'Cerrado';
    const operatingPeriods = this.getOperatingPeriodsForDay(this.fechaReserva);
    if (operatingPeriods.length === 0) return 'Cerrado';
    const periodDisplays = operatingPeriods.map(period => `${period.start.slice(0, 5)} - ${period.end.slice(0, 5)}`);
    return periodDisplays.join(', ');
  }
  getTipoCobroDisplay() {
    if (!this.dataTariff?.tipoCobro) return '';
    const tipoCobroMap = {
      'por_hora': 'Por Hora',
      'por_persona': 'Por Persona',
      'por_evento': 'Por Evento',
      'mensualidad': 'Mensualidad',
      'por_sesion': 'Por Sesión',
      'por_club': 'Por Club'
    };
    return tipoCobroMap[this.dataTariff.tipoCobro] || this.dataTariff.tipoCobro;
  }
  static {
    this.ɵfac = function ScheduleSelectionComponent_Factory(t) {
      return new (t || ScheduleSelectionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_reservation_conflict_service__WEBPACK_IMPORTED_MODULE_3__.ReservationConflictService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_schedule_state_service__WEBPACK_IMPORTED_MODULE_4__.ScheduleStateService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
      type: ScheduleSelectionComponent,
      selectors: [["app-schedule-selection"]],
      inputs: {
        dataField: "dataField",
        dataTariff: "dataTariff",
        reservationsList: "reservationsList",
        systemConfigs: "systemConfigs",
        userRole: "userRole"
      },
      outputs: {
        horarioSelected: "horarioSelected"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵNgOnChangesFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵStandaloneFeature"]],
      decls: 53,
      vars: 25,
      consts: [["Header", "ngbNav"], [1, "schedule-selection-container"], [1, "card", "shadow-sm"], [1, "card-body", "p-2"], [1, "mb-2"], [1, "d-md-none"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-2"], [1, "d-flex", "align-items-center", "flex-grow-1", "me-2"], [1, "mb-0", "text-primary", "fw-bold"], [1, "ri-calendar-event-line", "me-1"], [4, "ngIf"], [1, "d-flex", "gap-2", "mb-2"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-secondary", 2, "flex", "0 0 auto", 3, "click"], [1, "ri-arrow-left-s-line"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-primary", "flex-grow-1", 3, "click"], [1, "ri-home-line", "me-1"], [1, "ri-arrow-right-s-line"], [1, "d-none", "d-md-flex", "justify-content-between", "align-items-center"], [1, "mb-0", "text-primary"], [1, "ri-calendar-event-line", "me-2"], ["role", "group", 1, "btn-group", "btn-group-sm"], ["type", "button", "title", "Semana anterior", 1, "btn", "btn-outline-secondary", 3, "click"], ["type", "button", 1, "btn", "btn-outline-primary", 3, "click"], ["type", "button", "title", "Semana siguiente", 1, "btn", "btn-outline-secondary", 3, "click"], [1, "position-relative", "mb-2"], ["ngbNav", "", 1, "nav", "nav-pills", "nav-fill", "mb-3", "week-nav-custom", 3, "activeId", "destroyOnHide"], ["class", "nav-item", 3, "ngbNavItem", 4, "ngFor", "ngForOf"], [1, "tab-content", "rounded-3", "border", "p-2"], [3, "ngbNavOutlet"], ["class", "alert alert-warning alert-dismissible fade show mb-2", "role", "alert", 4, "ngIf"], ["class", "border rounded bg-light my-2 p-2", 4, "ngIf"], [1, "card-footer", "bg-light"], [1, "d-flex", "justify-content-between", "align-items-center"], [1, "flex-grow-1"], [1, "small"], [1, "text-primary"], ["class", "text-muted", 4, "ngIf"], ["type", "button", 1, "btn", "btn-primary", 3, "click", "disabled"], [1, "badge", "badge-sm", 3, "ngClass"], [1, "me-1", 3, "ngClass"], [1, "badge", 3, "ngClass"], ["class", "ms-1", 4, "ngIf"], [1, "ms-1"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", 1, "nav-link", "text-center", "p-1", 3, "click"], [1, "fw-semibold", "mb-0"], [1, "fs-6", "fw-bold", "mb-0"], ["class", "badge bg-primary small", 4, "ngIf"], ["class", "badge bg-secondary small", 4, "ngIf"], ["class", "fs-16", 3, "ngClass", 4, "ngIf"], ["ngbNavContent", ""], [1, "badge", "bg-primary", "small"], [1, "ri-calendar-check-line", "me-1"], [1, "badge", "bg-secondary", "small"], [1, "ri-time-line", "me-1"], [1, "fs-16", 3, "ngClass"], [1, "time-slots-grid"], [1, "bg-light", "rounded", "mt-2", "p-2"], ["class", "alert alert-warning mb-2", 4, "ngIf"], [1, "row", "g-2", "align-items-end"], [1, "col-6", "col-md-4"], [1, "form-label", "fw-semibold", "small", "mb-0"], [1, "ri-time-line", "me-1", "text-primary"], ["type", "time", "step", "300", 1, "form-control", 3, "change", "value", "disabled"], [1, "form-label", "fw-semibold", "mb-0"], [1, "ri-time-line", "me-2", "text-primary"], [1, "col-12", "col-md-4"], [1, "bg-white", "rounded-2", "p-2", "border", "text-center"], [1, "text-muted", "d-block"], [1, "row"], [1, "col-12"], [1, "d-flex", "justify-content-between", "small", "text-muted"], [1, "ri-timer-line", "me-1"], [1, "row", "g-1", "g-md-2"], ["class", "col-4", 4, "ngIf"], ["class", "text-center py-3", 4, "ngIf"], [1, "col-4"], [1, "period-section"], [1, "period-header", "bg-warning", "bg-opacity-10", "rounded", "p-1", "p-md-2", "mb-2"], [1, "d-flex", "align-items-center"], [1, "ri-sun-line", "text-warning", "me-2", "fs-4"], [1, "fw-semibold"], [1, "text-muted", "small"], [1, "badge", "bg-warning", "bg-opacity-25", "text-warning"], ["class", "slot-card mb-1", 3, "selected", "partial-selection", "unavailable", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "slot-card", "mb-1"], [1, "slot-inner", "p-1", "p-md-2", "rounded", "border", 3, "click"], [1, "d-flex", "align-items-center", "justify-content-between", "gap-2"], [1, "flex-grow-1", "min-w-0"], [1, "d-flex", "align-items-center", "gap-2", "mb-1", "flex-wrap"], [1, "fw-bold", "fs-8"], ["class", "badge bg-primary text-white small", 4, "ngIf"], ["class", "badge bg-danger bg-opacity-25 text-danger small", 4, "ngIf"], ["class", "text-white", 4, "ngIf"], ["class", "text-warning", 4, "ngIf"], ["class", "text-info", 4, "ngIf"], ["class", "text-danger", 4, "ngIf"], ["class", "text-success", 4, "ngIf"], [1, "badge", "bg-primary", "text-white", "small"], [1, "badge", "bg-danger", "bg-opacity-25", "text-danger", "small"], [1, "ri-lock-line", "me-1"], [1, "text-white"], [1, "ri-check-double-line", "me-1"], [1, "text-warning"], [1, "text-info"], [1, "text-muted"], [1, "text-danger"], [1, "ri-price-tag-line", "me-1"], [1, "text-success"], [1, "ri-checkbox-circle-line", "me-1"], [1, "period-header", "bg-orange", "bg-opacity-10", "rounded", "p-1", "p-md-2", "mb-2"], [1, "ri-sun-cloudy-line", "text-orange", "me-2", "fs-4"], [1, "badge", "bg-orange", "bg-opacity-25", "text-orange"], [1, "period-header", "bg-info", "bg-opacity-10", "rounded", "p-1", "p-md-2", "mb-2"], [1, "ri-moon-line", "text-info", "me-2", "fs-4"], [1, "badge", "bg-info", "bg-opacity-25", "text-info"], [1, "text-center", "py-3"], [1, "las", "la-calendar-times", "display-4", "text-muted", "mb-3"], [1, "text-muted", "small", "mb-0"], [1, "alert", "alert-warning", "mb-2"], [1, "d-flex", "align-items-start"], [1, "ri-error-warning-line", "fs-5", "me-2", "mt-1"], [1, "mb-0", "small"], ["role", "alert", 1, "alert", "alert-warning", "alert-dismissible", "fade", "show", "mb-2"], [1, "ri-error-warning-line", "fs-18", "me-2"], [1, "alert-heading", "mb-1"], [1, "mb-0", "ps-3", "small"], [4, "ngFor", "ngForOf"], ["type", "button", 1, "btn-close", 3, "click"], [1, "border", "rounded", "bg-light", "my-2", "p-2"], [1, "ri-price-tag-3-line", "me-2"], [1, "d-block"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-secondary", 3, "click", "disabled"], ["class", "d-block text-warning mt-1", 4, "ngIf"], [1, "mt-2"], [1, "fw-medium"], [1, "text-mutted"], [1, "h5", "mb-0", "text-primary", "fw-bold"], ["class", "mt-2", 4, "ngIf"], ["class", "text-muted small mt-1", 4, "ngIf"], [1, "d-block", "text-warning", "mt-1"], [1, "ri-alert-line", "me-1"], [1, "border-top", "pt-2"], ["class", "small text-muted", 4, "ngFor", "ngForOf"], [1, "small", "text-muted"], [1, "text-muted", "small", "mt-1"], [1, "ri-check-line", "me-1"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function ScheduleSelectionComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4)(4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "h6", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](8, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](10, "date");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](11, ScheduleSelectionComponent_ng_container_11_Template, 4, 3, "ng-container", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 11)(13, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_13_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.moveWeek(-1));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](14, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "button", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_15_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.goToToday());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](16, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17, "Hoy ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_18_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.moveWeek(1));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](19, "i", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 17)(21, "h5", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](22, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](24, "date");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](25, ScheduleSelectionComponent_ng_container_25_Template, 5, 4, "ng-container", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](26, "div", 20)(27, "button", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_27_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.moveWeek(-1));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](28, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](29, "button", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_29_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.goToToday());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](30, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](31, "Hoy ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](32, "button", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_32_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.moveWeek(1));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](33, "i", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](34, "div", 24)(35, "ul", 25, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](37, ScheduleSelectionComponent_li_37_Template, 13, 17, "li", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](38, "div", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](39, "div", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](40, ScheduleSelectionComponent_div_40_Template, 9, 1, "div", 29)(41, ScheduleSelectionComponent_div_41_Template, 20, 8, "div", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](42, "div", 31)(43, "div", 32)(44, "div", 33)(45, "div", 34)(46, "strong", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](47, "Seleccionado:");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](48, ScheduleSelectionComponent_span_48_Template, 4, 3, "span", 10)(49, ScheduleSelectionComponent_span_49_Template, 2, 0, "span", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](50, "button", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ScheduleSelectionComponent_Template_button_click_50_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.confirmSelection());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](51, ScheduleSelectionComponent_span_51_Template, 4, 2, "span", 10)(52, ScheduleSelectionComponent_span_52_Template, 3, 0, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          const Header_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](36);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind4"](10, 15, ctx.fechaReserva, "EEE, d MMM", "", "es"), " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getTimeSlotsForDay(ctx.fechaReserva));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](12);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind4"](24, 20, ctx.fechaReserva, "fullDate", "", "es"), " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getTimeSlotsForDay(ctx.fechaReserva));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("activeId", ctx.activeDayName)("destroyOnHide", false);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.weekDays);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbNavOutlet", Header_r19);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.showValidationAlert && ctx.validationErrors.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.dataTariff.desde && ctx.dataTariff.hasta);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getTimeInputValue(ctx.startTimeInput) && ctx.getTimeInputValue(ctx.endTimeInput));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.getTimeInputValue(ctx.startTimeInput) || !ctx.getTimeInputValue(ctx.endTimeInput));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", !ctx.isFormValid() || ctx.isCheckingAvailability);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.isCheckingAvailability);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.isCheckingAvailability);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _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__.DatePipe, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule],
      styles: [".bg-info.bg-opacity-10[_ngcontent-%COMP%] {\n  background-color: rgba(13, 202, 240, 0.1) !important;\n}\n.bg-info.bg-opacity-10[_ngcontent-%COMP%]:hover {\n  background-color: rgba(13, 202, 240, 0.15) !important;\n}\n\n.bg-danger.bg-opacity-10[_ngcontent-%COMP%] {\n  background-color: rgba(220, 53, 69, 0.1) !important;\n}\n.bg-danger.bg-opacity-10[_ngcontent-%COMP%]:hover {\n  background-color: rgba(220, 53, 69, 0.15) !important;\n}\n\n.bg-danger.bg-opacity-25[_ngcontent-%COMP%] {\n  background-color: rgba(220, 53, 69, 0.25) !important;\n}\n\n.hover-effect[_ngcontent-%COMP%] {\n  transition: all 0.2s ease-in-out;\n}\n.hover-effect[_ngcontent-%COMP%]:hover {\n  transform: translateY(-2px);\n  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.slot-card[_ngcontent-%COMP%] {\n  position: relative;\n}\n.slot-card[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%] {\n  position: relative;\n  z-index: 1;\n}\n\n.partial-selection[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%] {\n  background: linear-gradient(90deg, rgba(13, 110, 253, 0.3) 0%, rgba(13, 110, 253, 0.7) 50%, rgba(13, 110, 253, 0.3) 100%) !important;\n  border: 2px dashed #0d6efd !important;\n}\n\n.partial-selection[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]:hover {\n  background: linear-gradient(90deg, rgba(13, 110, 253, 0.5) 0%, rgba(13, 110, 253, 0.9) 50%, rgba(13, 110, 253, 0.5) 100%) !important;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2Jvb2tpbmcvc2NoZWR1bGUtc2VsZWN0aW9uL3NjaGVkdWxlLXNlbGVjdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQTtFQUNFLG9EQUFBO0FBQUY7QUFFRTtFQUNFLHFEQUFBO0FBQUo7O0FBS0E7RUFDRSxtREFBQTtBQUZGO0FBSUU7RUFDRSxvREFBQTtBQUZKOztBQU9BO0VBQ0Usb0RBQUE7QUFKRjs7QUFRQTtFQUNFLGdDQUFBO0FBTEY7QUFPRTtFQUNFLDJCQUFBO0VBQ0Esd0NBQUE7QUFMSjs7QUFVQTtFQUNFLGtCQUFBO0FBUEY7QUFTRTtFQUNFLGtCQUFBO0VBQ0EsVUFBQTtBQVBKOztBQVlBO0VBQ0Usb0lBQUE7RUFJQSxxQ0FBQTtBQVpGOztBQWVBO0VBQ0Usb0lBQUE7QUFaRiIsInNvdXJjZXNDb250ZW50IjpbIi8vIFZlcnkgc29mdCBibHVlIGZvciBwYXJ0aWFsbHkgcmVzZXJ2ZWQvc2VsZWN0ZWQgc2xvdHNcclxuLmJnLWluZm8uYmctb3BhY2l0eS0xMCB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgxMywgMjAyLCAyNDAsIDAuMSkgIWltcG9ydGFudDtcclxuICBcclxuICAmOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMTMsIDIwMiwgMjQwLCAwLjE1KSAhaW1wb3J0YW50O1xyXG4gIH1cclxufVxyXG5cclxuLy8gU29mdCByZWQgZm9yIHBhcnRpYWxseSByZXNlcnZlZCBzbG90cyAoY2FuIHN0aWxsIGNsaWNrKVxyXG4uYmctZGFuZ2VyLmJnLW9wYWNpdHktMTAge1xyXG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjIwLCA1MywgNjksIDAuMSkgIWltcG9ydGFudDtcclxuICBcclxuICAmOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjIwLCA1MywgNjksIDAuMTUpICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG59XHJcblxyXG4vLyBTdHJvbmdlciByZWQgZm9yIGZ1bGx5IHJlc2VydmVkIChibG9ja2VkKVxyXG4uYmctZGFuZ2VyLmJnLW9wYWNpdHktMjUge1xyXG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjIwLCA1MywgNjksIDAuMjUpICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbi8vIEhvdmVyIGVmZmVjdCBmb3IgYXZhaWxhYmxlIHNsb3RzXHJcbi5ob3Zlci1lZmZlY3Qge1xyXG4gIHRyYW5zaXRpb246IGFsbCAwLjJzIGVhc2UtaW4tb3V0O1xyXG4gIFxyXG4gICY6aG92ZXIge1xyXG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0ycHgpO1xyXG4gICAgYm94LXNoYWRvdzogMCA0cHggOHB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcclxuICB9XHJcbn1cclxuXHJcbi8vIE1ha2Ugc3VyZSBzbG90IGNhcmRzIGhhdmUgcHJvcGVyIHBvc2l0aW9uaW5nXHJcbi5zbG90LWNhcmQge1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICBcclxuICAuc2xvdC1pbm5lciB7XHJcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbiAgICB6LWluZGV4OiAxO1xyXG4gIH1cclxufVxyXG5cclxuXHJcbi5wYXJ0aWFsLXNlbGVjdGlvbiAuc2xvdC1pbm5lciB7XHJcbiAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KDkwZGVnLCBcclxuICAgIHJnYmEoMTMsIDExMCwgMjUzLCAwLjMpIDAlLCBcclxuICAgIHJnYmEoMTMsIDExMCwgMjUzLCAwLjcpIDUwJSwgXHJcbiAgICByZ2JhKDEzLCAxMTAsIDI1MywgMC4zKSAxMDAlKSAhaW1wb3J0YW50O1xyXG4gIGJvcmRlcjogMnB4IGRhc2hlZCAjMGQ2ZWZkICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbi5wYXJ0aWFsLXNlbGVjdGlvbiAuc2xvdC1pbm5lcjpob3ZlciB7XHJcbiAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KDkwZGVnLCBcclxuICAgIHJnYmEoMTMsIDExMCwgMjUzLCAwLjUpIDAlLCBcclxuICAgIHJnYmEoMTMsIDExMCwgMjUzLCAwLjkpIDUwJSwgXHJcbiAgICByZ2JhKDEzLCAxMTAsIDI1MywgMC41KSAxMDAlKSAhaW1wb3J0YW50O1xyXG59XHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 11230:
/*!****************************************************************!*\
  !*** ./src/app/pages/modals/booking/schedule-state.service.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ScheduleStateService: () => (/* binding */ ScheduleStateService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 75797);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);


class ScheduleStateService {
  constructor() {
    this.currentWeekStartSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(this.getCurrentWeekStart());
    this.currentWeekEndSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(this.getCurrentWeekEnd());
    this.currentWeekStart$ = this.currentWeekStartSubject.asObservable();
    this.currentWeekEnd$ = this.currentWeekEndSubject.asObservable();
  }
  getCurrentWeekStart() {
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    const dayOfWeek = today.getDay();
    const diff = dayOfWeek === 0 ? -6 : 1 - dayOfWeek;
    const weekStart = new Date(today);
    weekStart.setDate(today.getDate() + diff);
    return weekStart;
  }
  getCurrentWeekEnd() {
    const weekStart = this.getCurrentWeekStart();
    const weekEnd = new Date(weekStart);
    weekEnd.setDate(weekStart.getDate() + 6);
    return weekEnd;
  }
  moveWeek(direction) {
    const currentStart = this.currentWeekStartSubject.value;
    const newStart = new Date(currentStart);
    newStart.setDate(currentStart.getDate() + direction * 7);
    const newEnd = new Date(newStart);
    newEnd.setDate(newStart.getDate() + 6);
    this.currentWeekStartSubject.next(newStart);
    this.currentWeekEndSubject.next(newEnd);
  }
  goToToday() {
    this.currentWeekStartSubject.next(this.getCurrentWeekStart());
    this.currentWeekEndSubject.next(this.getCurrentWeekEnd());
  }
  static {
    this.ɵfac = function ScheduleStateService_Factory(t) {
      return new (t || ScheduleStateService)();
    };
  }
  static {
    this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
      token: ScheduleStateService,
      factory: ScheduleStateService.ɵfac,
      providedIn: 'root'
    });
  }
}

/***/ }),

/***/ 7805:
/*!**********************************************************************************!*\
  !*** ./src/app/pages/modals/employee/modal-employee/modal-employee.component.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalEmployeeComponent: () => (/* binding */ ModalEmployeeComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/UserData */ 55007);
/* harmony import */ var src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/api-users/users.service */ 81394);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_encargado_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/encargado.service */ 93653);














const _c0 = a0 => ({
  "is-invalid": a0
});
function ModalEmployeeComponent_h5_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "h5", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Agregar Encargado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "h5", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Editar Datos de Encargado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_19_div_6_div_5_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_19_div_6_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 88)(1, "div", 9)(2, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_div_19_div_6_div_5_Template_div_click_2_listener() {
      const avatar_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r3).$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.selectAvatar(avatar_r4.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "img", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ModalEmployeeComponent_div_19_div_6_div_5_div_4_Template, 2, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const avatar_r4 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", ctx_r4.selectedAvatar === avatar_r4.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + avatar_r4.value, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", avatar_r4.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.selectedAvatar === avatar_r4.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](avatar_r4.gender === "M" ? "Masc." : "Fem.");
  }
}
function ModalEmployeeComponent_div_19_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 83)(1, "h6", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Administradores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ModalEmployeeComponent_div_19_div_6_div_5_Template, 7, 6, "div", 87);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r4.getAvatarsByCategory("admin"));
  }
}
function ModalEmployeeComponent_div_19_div_7_div_5_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_19_div_7_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 88)(1, "div", 9)(2, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_div_19_div_7_div_5_Template_div_click_2_listener() {
      const avatar_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r6).$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.selectAvatar(avatar_r7.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "img", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ModalEmployeeComponent_div_19_div_7_div_5_div_4_Template, 2, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const avatar_r7 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", ctx_r4.selectedAvatar === avatar_r7.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + avatar_r7.value, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", avatar_r7.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.selectedAvatar === avatar_r7.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](avatar_r7.gender === "M" ? "Masc." : "Fem.");
  }
}
function ModalEmployeeComponent_div_19_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 83)(1, "h6", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Operadores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ModalEmployeeComponent_div_19_div_7_div_5_Template, 7, 6, "div", 87);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r4.getAvatarsByCategory("operator"));
  }
}
function ModalEmployeeComponent_div_19_div_8_div_5_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_19_div_8_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 88)(1, "div", 9)(2, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_div_19_div_8_div_5_Template_div_click_2_listener() {
      const avatar_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8).$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.selectAvatar(avatar_r9.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "img", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ModalEmployeeComponent_div_19_div_8_div_5_div_4_Template, 2, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const avatar_r9 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", ctx_r4.selectedAvatar === avatar_r9.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + avatar_r9.value, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", avatar_r9.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.selectedAvatar === avatar_r9.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](avatar_r9.gender === "M" ? "Masc." : "Fem.");
  }
}
function ModalEmployeeComponent_div_19_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 83)(1, "h6", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Supervisores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ModalEmployeeComponent_div_19_div_8_div_5_Template, 7, 6, "div", 87);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r4.getAvatarsByCategory("supervisor"));
  }
}
function ModalEmployeeComponent_div_19_div_9_div_5_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_19_div_9_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 88)(1, "div", 9)(2, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_div_19_div_9_div_5_Template_div_click_2_listener() {
      const avatar_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r10).$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.selectAvatar(avatar_r11.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "img", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, ModalEmployeeComponent_div_19_div_9_div_5_div_4_Template, 2, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "General");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const avatar_r11 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("selected", ctx_r4.selectedAvatar === avatar_r11.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + avatar_r11.value, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", avatar_r11.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.selectedAvatar === avatar_r11.value);
  }
}
function ModalEmployeeComponent_div_19_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 98)(1, "h6", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Perfiles Predeterminados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ModalEmployeeComponent_div_19_div_9_div_5_Template, 7, 5, "div", 87);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r4.getAvatarsByCategory("default"));
  }
}
function ModalEmployeeComponent_div_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 75)(1, "div", 76)(2, "h6", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Seleccionar Avatar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, ModalEmployeeComponent_div_19_div_6_Template, 6, 1, "div", 79)(7, ModalEmployeeComponent_div_19_div_7_Template, 6, 1, "div", 79)(8, ModalEmployeeComponent_div_19_div_8_Template, 6, 1, "div", 79)(9, ModalEmployeeComponent_div_19_div_9_Template, 6, 1, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 81)(11, "button", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_div_19_Template_button_click_11_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r2);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.toggleAvatarSelection());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "i", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.getAvatarsByCategory("admin").length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.getAvatarsByCategory("operator").length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.getAvatarsByCategory("supervisor").length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.getAvatarsByCategory("default").length > 0);
  }
}
function ModalEmployeeComponent_option_29_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const user_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" (", user_r12.username, ") ");
  }
}
function ModalEmployeeComponent_option_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ModalEmployeeComponent_option_29_span_2_Template, 2, 1, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const user_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", user_r12.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", (user_r12.designacionFuncionarioDto == null ? null : user_r12.designacionFuncionarioDto.personaDto == null ? null : user_r12.designacionFuncionarioDto.personaDto.fullName) || user_r12.username || "Sin nombre", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (user_r12.designacionFuncionarioDto == null ? null : user_r12.designacionFuncionarioDto.personaDto == null ? null : user_r12.designacionFuncionarioDto.personaDto.fullName) && user_r12.username);
  }
}
function ModalEmployeeComponent_div_30_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Debe seleccionar un Usuario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_30_div_1_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["userUuid"].errors["required"]);
  }
}
function ModalEmployeeComponent_div_38_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "El nombre es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_38_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "El nombre debe tener al menos 2 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_38_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "El nombre no puede exceder los 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_38_div_1_Template, 3, 0, "div", 36)(2, ModalEmployeeComponent_div_38_div_2_Template, 3, 0, "div", 36)(3, ModalEmployeeComponent_div_38_div_3_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["nombre"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["nombre"].errors["minlength"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["nombre"].errors["maxlength"]);
  }
}
function ModalEmployeeComponent_div_47_small_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "small", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Ingrese un n\u00FAmero v\u00E1lido (7-15 d\u00EDgitos, opcional +) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_47_small_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "small", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "M\u00EDnimo 7 d\u00EDgitos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_47_small_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "small", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "M\u00E1ximo 15 d\u00EDgitos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_47_small_1_Template, 3, 0, "small", 103)(2, ModalEmployeeComponent_div_47_small_2_Template, 3, 0, "small", 103)(3, ModalEmployeeComponent_div_47_small_3_Template, 3, 0, "small", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["telefono"].errors["pattern"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["telefono"].errors["minlength"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["telefono"].errors["maxlength"]);
  }
}
function ModalEmployeeComponent_option_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngValue", item_r13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", item_r13.nombre, " ");
  }
}
function ModalEmployeeComponent_div_61_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Debe seleccionar un complejo deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_61_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_61_div_1_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["complejoDto"].errors["required"]);
  }
}
function ModalEmployeeComponent_div_69_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "La fecha de asignaci\u00F3n es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_69_div_1_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["fechaAsignacion"].errors["required"]);
  }
}
function ModalEmployeeComponent_div_85_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "La hora de entrada es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_85_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_85_div_1_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["horaEntrada"].errors["required"]);
  }
}
function ModalEmployeeComponent_div_93_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "La hora de salida es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_93_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_div_93_div_1_Template, 3, 0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.form["horaSalida"].errors["required"]);
  }
}
function ModalEmployeeComponent_div_94_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "La hora de entrada debe ser menor que la hora de salida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalEmployeeComponent_div_105_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 107)(1, "div", 108)(2, "h6", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Informaci\u00F3n Actual ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 110)(6, "div", 111)(7, "div", 112)(8, "small", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Creado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](12, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](12, 1, ctx_r4.row.fechaCreacion, "dd/MM/yyyy HH:mm"));
  }
}
function ModalEmployeeComponent_span_119_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "span", 114);
  }
}
function ModalEmployeeComponent_i_120_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](ctx_r4.accion === "edit" ? "ri-save-line me-1" : "ri-add-line me-1");
  }
}
function ModalEmployeeComponent_ng_template_122_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 116)(1, "div", 117)(2, "button", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_ng_template_122_div_0_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r14);
      const modal_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](modal_r15.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 5)(4, "div", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "lord-icon", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 121)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, "\u00BFEst\u00E1 seguro de eliminar el registro?");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "p", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10, " Al confirmar la eliminaci\u00F3n se quitar\u00E1 toda informaci\u00F3n de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](11, "div", 123)(12, "button", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_ng_template_122_div_0_Template_button_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r14);
      const modal_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](modal_r15.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](13, "i", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "button", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_ng_template_122_div_0_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r14);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r4.deleteData(ctx_r4.row.uuid));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16, " S\u00ED, Eliminar! ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
}
function ModalEmployeeComponent_ng_template_122_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, ModalEmployeeComponent_ng_template_122_div_0_Template, 17, 0, "div", 115);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.row.uuid);
  }
}
class ModalEmployeeComponent {
  constructor(modalService, usuariosService, complejosService, encargadoCanchaService, formBuilder) {
    this.modalService = modalService;
    this.usuariosService = usuariosService;
    this.complejosService = complejosService;
    this.encargadoCanchaService = encargadoCanchaService;
    this.formBuilder = formBuilder;
    this.itemsList = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.submitted = false;
    this.avatarOptions = [{
      value: 'avatar-admin-m.png',
      label: 'Administrador Masculino',
      category: 'admin',
      gender: 'M'
    }, {
      value: 'avatar-admin-w.png',
      label: 'Administradora Femenino',
      category: 'admin',
      gender: 'F'
    }, {
      value: 'avatar-op-m.png',
      label: 'Operador Masculino',
      category: 'operator',
      gender: 'M'
    }, {
      value: 'avatar-op-w.png',
      label: 'Operadora Femenino',
      category: 'operator',
      gender: 'F'
    }, {
      value: 'avatar-super-m.png',
      label: 'Supervisor Masculino',
      category: 'supervisor',
      gender: 'M'
    }, {
      value: 'avatar-super-w.png',
      label: 'Supervisora Femenino',
      category: 'supervisor',
      gender: 'F'
    }, {
      value: 'default-profile1.png',
      label: 'Perfil Predeterminado 1',
      category: 'default',
      gender: 'U'
    }, {
      value: 'multi-user.jpg',
      label: 'Usuario Múltiple',
      category: 'default',
      gender: 'U'
    }, {
      value: 'user-dummy-img.jpg',
      label: 'Usuario Genérico',
      category: 'default',
      gender: 'U'
    }];
    this.showAvatarSelection = false;
    this.selectedAvatar = 'multi-user.jpg';
    this.timeRangeValidator = control => {
      if (!(control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormGroup)) {
        return null;
      }
      const horaEntrada = control.get('horaEntrada')?.value;
      const horaSalida = control.get('horaSalida')?.value;
      if (horaEntrada && horaSalida && horaEntrada >= horaSalida) {
        return {
          invalidTimeRange: true
        };
      }
      return null;
    };
  }
  ngOnInit() {
    this.getUsers();
    this.getFields();
    this.initializeForm();
  }
  initializeForm() {
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      avatar: ['multi-user.jpg', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required]],
      userUuid: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(2), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(100)]],
      telefono: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.pattern('^\\+?[0-9]{7,15}$'), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(7), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(15)]],
      activo: [true],
      fechaAsignacion: [new Date(), [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required]],
      fechaFinAsignacion: [''],
      horaEntrada: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required]],
      horaSalida: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required]],
      complejoDto: new _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControl(null, [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required])
    });
    this.contentForm.setValidators(this.timeRangeValidator);
    this.formDataSet();
  }
  /**
   * Form data get
   */
  get form() {
    return this.contentForm.controls;
  }
  formDataSet() {
    if (this.accion !== '' && this.row) {
      const fechaAsignacion = this.row.fechaAsignacion ? this.formatDateForInput(this.row.fechaAsignacion) : '';
      const fechaFinAsignacion = this.row.fechaFinAsignacion ? this.formatDateForInput(this.row.fechaFinAsignacion) : '';
      this.selectedAvatar = this.row.avatar || 'multi-user.jpg';
      this.contentForm.patchValue({
        uuid: this.row.uuid,
        avatar: this.selectedAvatar,
        userUuid: this.row.userUuid,
        nombre: this.row.nombre,
        telefono: this.row.telefono || '',
        activo: this.row.activo !== undefined ? this.row.activo : true,
        fechaAsignacion: fechaAsignacion,
        fechaFinAsignacion: fechaFinAsignacion,
        horaEntrada: this.row.horaEntrada || '',
        horaSalida: this.row.horaSalida || '',
        complejoDto: this.row.complejoDto
      });
    }
  }
  formatDateForInput(date) {
    if (!date) return '';
    const dateObj = typeof date === 'string' ? new Date(date) : date;
    return dateObj.toISOString().split('T')[0];
  }
  onUserSelectHandler(event) {
    const selectedUuid = event.target.value;
    const selectedUser = this.usersList.find(user => user.uuid === selectedUuid);
    if (selectedUser) {
      this.user = selectedUser;
      const suggestedAvatar = this.getSuggestedAvatar(selectedUser);
      const fullName = selectedUser.designacionFuncionarioDto?.personaDto?.fullName || selectedUser.username || '';
      this.selectedAvatar = suggestedAvatar;
      this.contentForm.patchValue({
        nombre: fullName,
        avatar: suggestedAvatar
      });
    }
  }
  getSuggestedAvatar(user) {
    const type = user.permisoDtos?.find(menu => menu.modulo === 'DEPORTESAPP' && menu.nombreMenu === 'Administracion') ? 0 : 1;
    const foundItem = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserRol.find(item => item.tipo === type);
    if (foundItem) {
      const gender = user.designacionFuncionarioDto?.personaDto?.sexo;
      return gender === 'F' ? foundItem.avatarF : foundItem.avatarM;
    }
    return 'multi-user.jpg';
  }
  toggleAvatarSelection() {
    this.showAvatarSelection = !this.showAvatarSelection;
  }
  selectAvatar(avatar) {
    this.selectedAvatar = avatar;
    this.contentForm.patchValue({
      avatar: avatar
    });
    this.showAvatarSelection = false;
  }
  getAvatarsByCategory(category) {
    return this.avatarOptions.filter(option => option.category === category);
  }
  getCurrentAvatarInfo() {
    return this.avatarOptions.find(option => option.value === this.selectedAvatar) || {
      value: this.selectedAvatar,
      label: 'Avatar personalizado',
      category: 'custom'
    };
  }
  /* API Service functions */
  getUsers() {
    this.usuariosService.getAllUsers().subscribe({
      next: data => {
        this.usersList = data.sort((a, b) => {
          const nameA = a.designacionFuncionarioDto?.personaDto?.fullName || a.username || '';
          const nameB = b.designacionFuncionarioDto?.personaDto?.fullName || b.username || '';
          return nameA.localeCompare(nameB);
        });
      },
      error: error => {
        this.notify('Error al cargar los usuarios', 'error');
      }
    });
  }
  getFields() {
    this.complejosService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.canchasList = data.payload.sort((a, b) => a.nombre.localeCompare(b.nombre));
        } else {
          this.notify(data.payload, 'error');
        }
      },
      error: error => {
        this.notify('Error al cargar los complejos deportivos', 'error');
      }
    });
  }
  /**
   * Save user with enhanced validation
   */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.contentForm.enable();
      if (this.contentForm.errors?.['invalidTimeRange']) {
        this.notify('La hora de entrada debe ser menor que la hora de salida', 'error');
        return;
      }
      const fechaAsignacion = this.contentForm.value.fechaAsignacion ? new Date(this.contentForm.value.fechaAsignacion).toISOString() : undefined;
      const fechaFinAsignacion = this.contentForm.value.fechaFinAsignacion ? new Date(this.contentForm.value.fechaFinAsignacion).toISOString() : undefined;
      let datos = {
        userUuid: this.contentForm.value.userUuid,
        avatar: this.selectedAvatar,
        nombre: this.contentForm.value.nombre.trim(),
        telefono: this.contentForm.value.telefono?.trim(),
        activo: this.contentForm.value.activo,
        fechaAsignacion: fechaAsignacion,
        fechaFinAsignacion: fechaFinAsignacion,
        horaEntrada: this.contentForm.value.horaEntrada,
        horaSalida: this.contentForm.value.horaSalida,
        complejoDto: this.contentForm.value.complejoDto
      };
      if (this.contentForm.get('uuid')?.value) {
        datos.uuid = this.contentForm.value.uuid;
        this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Por favor, complete todos los campos requeridos correctamente', 'error');
      this.markFormGroupTouched();
    }
  }
  markFormGroupTouched() {
    Object.keys(this.contentForm.controls).forEach(key => {
      this.contentForm.get(key)?.markAsTouched();
    });
  }
  /* API Requests*/
  addData(datos) {
    this.encargadoCanchaService.save(datos).subscribe({
      next: data => {
        this.submitted = false;
        this.notify('Encargado registrado exitosamente', 'success');
        this.closeModal();
        this.itemsList.emit();
      },
      error: error => {
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al registrar el encargado: ${errorMessage}`, 'error');
      }
    });
  }
  updateData(datos) {
    this.encargadoCanchaService.update(datos).subscribe({
      next: data => {
        this.submitted = false;
        this.notify('Encargado actualizado exitosamente', 'success');
        this.closeModal();
        this.itemsList.emit();
      },
      error: error => {
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al actualizar el encargado: ${errorMessage}`, 'error');
      }
    });
  }
  deleteData(uuid) {
    this.encargadoCanchaService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data.status == 'OK') {
          this.getUsers();
          this.notify(data.payload, 'success');
          this.modalService.dismissAll();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  closeModal() {
    this.accion = '';
    this.submitted = false;
    this.showAvatarSelection = false;
    this.contentForm.enable();
    this.contentForm.reset();
    this.selectedAvatar = 'multi-user.jpg';
    this.modalService.dismissAll();
  }
  notify(message, type) {
    const config = {
      success: {
        icon: 'success',
        timer: 3000
      },
      error: {
        icon: 'error',
        timer: 5000
      },
      warning: {
        icon: 'warning',
        timer: 4000
      },
      info: {
        icon: 'info',
        timer: 3000
      }
    };
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: config[type].icon,
      timer: config[type].timer,
      timerProgressBar: true,
      showConfirmButton: false,
      toast: true,
      position: 'top-end'
    });
  }
  compareComplejo(c1, c2) {
    if (!c1 || !c2) {
      return c1 === c2;
    }
    if (c1.uuid && c2.uuid) {
      return c1.uuid === c2.uuid;
    }
    return c1.nombre === c2.nombre;
  }
  isValidPhoneNumber(phone) {
    const phoneRegex = /^\+?[0-9]{7,15}$/;
    return phoneRegex.test(phone);
  }
  formatPhoneNumber(phone) {
    if (!phone) return '';
    const cleaned = phone.replace(/[^\d+]/g, '');
    if (cleaned.startsWith('+591')) {
      const number = cleaned.substring(4);
      if (number.length === 8) {
        return `+591 ${number.substring(0, 4)} ${number.substring(4)}`;
      }
    }
    return cleaned;
  }
  static {
    this.ɵfac = function ModalEmployeeComponent_Factory(t) {
      return new (t || ModalEmployeeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_2__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_3__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_encargado_service__WEBPACK_IMPORTED_MODULE_4__.EncargadoService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
      type: ModalEmployeeComponent,
      selectors: [["app-modal-employee"]],
      inputs: {
        accion: "accion",
        row: "row"
      },
      outputs: {
        itemsList: "itemsList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵStandaloneFeature"]],
      decls: 124,
      vars: 46,
      consts: [["deleteModel", ""], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 3, "ngSubmit", "formGroup"], [1, "modal-body"], [1, "row", "g-3"], [1, "col-lg-12"], ["type", "hidden", "name", "uuid", "value", "", "formControlName", "uuid"], [1, "text-center"], [1, "position-relative", "d-inline-block"], [1, "avatar-md", "border", "border-3", "border-light", "shadow-sm", "rounded-circle", "bg-light"], [1, "avatar-lg", "rounded-circle", "object-fit-cover", 2, "width", "100%", "height", "100%", 3, "src", "alt"], [1, "position-absolute", "bottom-0", "end-0"], ["type", "button", "data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Cambiar Avatar", 1, "btn", "btn-light", "btn-sm", "rounded-circle", "p-2", "shadow-sm", 3, "click"], [1, "ri-image-edit-line"], [1, "mb-0"], [1, "text-muted"], ["class", "card", 4, "ngIf"], ["for", "userUuid", 1, "form-label", "mb-0"], [1, "ri-user-line", "me-2"], [1, "text-danger"], ["id", "userUuid", "formControlName", "userUuid", "required", "", 1, "form-select", 3, "change", "ngClass"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-lg-6"], ["for", "nombre-field", 1, "form-label", "mb-0"], [1, "ri-user-3-line", "me-2"], ["type", "text", "id", "nombre-field", "formControlName", "nombre", "placeholder", "Ingrese el nombre completo del encargado", 1, "form-control", 3, "ngClass"], ["for", "telefono-field", 1, "form-label", "mb-0"], [1, "ri-phone-line", "me-2"], [1, "input-group"], [1, "input-group-text"], [1, "ri-phone-fill"], ["type", "tel", "id", "telefono-field", "formControlName", "telefono", "placeholder", "Ej: +591 70123456 o 70123456", 1, "form-control", 3, "ngClass"], [4, "ngIf"], [1, "form-text", "text-muted", "pb-0"], [1, "ri-information-line", "me-1"], ["for", "complejoDto", 1, "form-label", "mb-0"], [1, "ri-building-line", "me-2"], ["id", "complejoDto", "formControlName", "complejoDto", "required", "", 1, "form-select", 3, "compareWith", "ngClass"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "fechaAsignacion-field", 1, "form-label", "mb-0"], [1, "ri-calendar-line", "me-2"], ["type", "date", "id", "fechaAsignacion-field", "formControlName", "fechaAsignacion", 1, "form-control", 3, "ngClass"], ["for", "fechaFinAsignacion-field", 1, "form-label", "mb-0"], [1, "ri-calendar-check-line", "me-2"], ["type", "date", "id", "fechaFinAsignacion-field", "formControlName", "fechaFinAsignacion", 1, "form-control"], [1, "form-text", "text-muted"], ["for", "horaEntrada-field", 1, "form-label", "mb-0"], [1, "ri-time-line", "me-2"], ["type", "time", "id", "horaEntrada-field", "formControlName", "horaEntrada", 1, "form-control", 3, "ngClass"], ["for", "horaSalida-field", 1, "form-label", "mb-0"], [1, "ri-time-fill", "me-2"], ["type", "time", "id", "horaSalida-field", "formControlName", "horaSalida", 1, "form-control", 3, "ngClass"], ["class", "text-danger small mt-1", 4, "ngIf"], [1, "card", "bg-light", "border-0", "mb-0"], [1, "form-check", "form-switch"], ["type", "checkbox", "role", "switch", "id", "activo-field", "formControlName", "activo", 1, "form-check-input"], ["for", "activo-field", 1, "form-check-label", "fw-medium"], [1, "ri-user-check-line", "me-2"], ["class", "card border-info mt-2", 4, "ngIf"], [1, "modal-footer", "bg-light", "py-1"], [1, "d-flex", "justify-content-between", "w-100"], [1, "d-flex", "align-items-center"], [1, "hstack", "gap-2"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-success", 3, "disabled"], ["class", "spinner-border spinner-border-sm me-2", "role", "status", 4, "ngIf"], [3, "class", 4, "ngIf"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-user-add-line", "me-2"], [1, "ri-user-settings-line", "me-2"], [1, "card"], [1, "card-header", "bg-light"], [1, "ri-gallery-line", "me-2"], [1, "card-body"], ["class", "mb-4", 4, "ngIf"], ["class", "mb-3", 4, "ngIf"], [1, "text-end"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-secondary", 3, "click"], [1, "mb-4"], [1, "text-primary", "mb-3"], [1, "ri-admin-line", "me-2"], [1, "row", "g-2"], ["class", "col-3", 4, "ngFor", "ngForOf"], [1, "col-3"], [1, "avatar-selection-item", "position-relative", "cursor-pointer", 3, "click"], [1, "avatar-sm", "rounded-circle", "border", 3, "src", "alt"], ["class", "selection-overlay", 4, "ngIf"], [1, "text-muted", "d-block", "mt-1"], [1, "selection-overlay"], [1, "ri-check-line", "text-white"], [1, "text-success", "mb-3"], [1, "text-warning", "mb-3"], [1, "ri-user-star-line", "me-2"], [1, "mb-3"], [1, "text-secondary", "mb-3"], [3, "value"], [1, "invalid-feedback"], [1, "ri-error-warning-line", "me-1"], ["class", "text-danger d-block", 4, "ngIf"], [1, "text-danger", "d-block"], [3, "ngValue"], [1, "text-danger", "small", "mt-1"], [1, "card", "border-info", "mt-2"], [1, "card-header", "bg-info-subtle"], [1, "ri-information-line", "me-2"], [1, "card-body", "p-3"], [1, "row"], [1, "col-sm-6"], [1, "fw-medium"], ["role", "status", 1, "spinner-border", "spinner-border-sm", "me-2"], ["class", "modal-content", 4, "ngIf"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function ModalEmployeeComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalEmployeeComponent_h5_1_Template, 3, 0, "h5", 2)(2, ModalEmployeeComponent_h5_2_Template, 3, 0, "h5", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "button", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_Template_button_click_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.closeModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "form", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngSubmit", function ModalEmployeeComponent_Template_form_ngSubmit_4_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.saveData());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](8, "input", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 9)(10, "div", 10)(11, "div", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "img", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](13, "div", 13)(14, "button", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_Template_button_click_14_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.toggleAvatarSelection());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](15, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "div", 16)(17, "small", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, ModalEmployeeComponent_div_19_Template, 14, 4, "div", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 7)(21, "label", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](22, "i", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23, "Usuario ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](24, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](25, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](26, "select", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ModalEmployeeComponent_Template_select_change_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.onUserSelectHandler($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "option", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28, "Seleccione un usuario...");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](29, ModalEmployeeComponent_option_29_Template, 3, 3, "option", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](30, ModalEmployeeComponent_div_30_Template, 2, 1, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](31, "div", 26)(32, "label", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](33, "i", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](34, "Nombre Completo ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](35, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](36, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](37, "input", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](38, ModalEmployeeComponent_div_38_Template, 4, 3, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](39, "div", 26)(40, "label", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](41, "i", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](42, "Tel\u00E9fono ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](43, "div", 32)(44, "span", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](45, "i", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](46, "input", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](47, ModalEmployeeComponent_div_47_Template, 4, 3, "div", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](48, "small", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](49, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](50, "Formato internacional recomendado: +591 70123456 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](51, "div", 7)(52, "label", 39);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](53, "i", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](54, "Complejo Deportivo ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](55, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](56, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](57, "select", 41)(58, "option", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](59, "Seleccione un complejo deportivo...");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](60, ModalEmployeeComponent_option_60_Template, 2, 2, "option", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](61, ModalEmployeeComponent_div_61_Template, 2, 1, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](62, "div", 26)(63, "label", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](64, "i", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](65, "Fecha de Asignaci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](66, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](67, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](68, "input", 45);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](69, ModalEmployeeComponent_div_69_Template, 2, 1, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](70, "div", 26)(71, "label", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](72, "i", 47);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](73, "Fecha Fin de Asignaci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](74, "input", 48);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](75, "small", 49);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](76, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](77, "Opcional - Dejar vac\u00EDo si es indefinido ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](78, "div", 26)(79, "label", 50);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](80, "i", 51);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](81, "Hora de Entrada ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](82, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](83, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](84, "input", 52);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](85, ModalEmployeeComponent_div_85_Template, 2, 1, "div", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](86, "div", 26)(87, "label", 53);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](88, "i", 54);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](89, "Hora de Salida ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](90, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](91, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](92, "input", 55);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](93, ModalEmployeeComponent_div_93_Template, 2, 1, "div", 25)(94, ModalEmployeeComponent_div_94_Template, 3, 0, "div", 56);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](95, "div", 7)(96, "div", 57)(97, "div", 58);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](98, "input", 59);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](99, "label", 60);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](100, "i", 61);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](101, "Encargado Activo ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](102, "small", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](103, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](104, " Solo los encargados activos pueden gestionar el complejo asignado ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](105, ModalEmployeeComponent_div_105_Template, 13, 4, "div", 62);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](106, "div", 63)(107, "div", 64)(108, "div", 65)(109, "small", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](110, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](111, "span", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](112, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](113, " Campos obligatorios ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](114, "div", 66)(115, "button", 67);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalEmployeeComponent_Template_button_click_115_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.closeModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](116, "i", 68);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](117, "Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](118, "button", 69);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](119, ModalEmployeeComponent_span_119_Template, 1, 0, "span", 70)(120, ModalEmployeeComponent_i_120_Template, 1, 2, "i", 71);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](121);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](122, ModalEmployeeComponent_ng_template_122_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.contentForm);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + ctx.selectedAvatar, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", ctx.getCurrentAvatarInfo().label);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx.getCurrentAvatarInfo().label);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.showAvatarSelection);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](32, _c0, ctx.submitted && ctx.form["userUuid"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.usersList);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["userUuid"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](34, _c0, ctx.submitted && ctx.form["nombre"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["nombre"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](36, _c0, ctx.form["telefono"].errors && (ctx.form["telefono"].touched || ctx.submitted)));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.form["telefono"].errors && (ctx.form["telefono"].touched || ctx.submitted));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("compareWith", ctx.compareComplejo)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](38, _c0, ctx.submitted && ctx.form["complejoDto"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.canchasList);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["complejoDto"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](40, _c0, ctx.submitted && ctx.form["fechaAsignacion"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["fechaAsignacion"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](15);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](42, _c0, ctx.submitted && ctx.form["horaEntrada"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["horaEntrada"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](44, _c0, ctx.submitted && ctx.form["horaSalida"].errors));
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.form["horaSalida"].errors);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (ctx.contentForm.errors == null ? null : ctx.contentForm.errors["invalidTimeRange"]) && ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "edit" && ctx.row);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.submitted || ctx.contentForm.invalid);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx.accion === "edit" ? "Actualizar Encargado" : "Guardar Encargado", " ");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _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__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormsModule, _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__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.CheckboxControlValueAccessor, _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__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslateModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 77843:
/*!******************************************************************************!*\
  !*** ./src/app/pages/modals/employee/modal-import/modal-import.component.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalImportComponent: () => (/* binding */ ModalImportComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! xlsx */ 13857);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 70271);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/shared.module */ 93887);
/* harmony import */ var src_app_core_services_api_encargado_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api/encargado.service */ 93653);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/data-table/data-table.component */ 54252);















function ModalImportComponent_app_data_table_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "app-data-table", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("selectedItemEmitter", function ModalImportComponent_app_data_table_19_Template_app_data_table_selectedItemEmitter_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r1.getSeleccionados($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("loading", ctx_r1.loading)("itemsList", ctx_r1.titles)("allcontent", ctx_r1.xlsxData);
  }
}
function ModalImportComponent_span_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "span", 20);
  }
}
class ModalImportComponent {
  constructor(activeModal, service, complejoService) {
    this.activeModal = activeModal;
    this.service = service;
    this.complejoService = complejoService;
    this.listaItems = new _angular_core__WEBPACK_IMPORTED_MODULE_6__.EventEmitter();
    this.xlsxData = [];
    this.selectedItems = [];
    this.loading = false;
    this.listaTemporal = [];
  }
  ngOnInit() {}
  cerrarModal() {
    this.activeModal.close();
  }
  cargarDatosDesdeExcel(event) {
    const file = event.target.files[0];
    if (file) {
      const reader = new FileReader();
      reader.readAsBinaryString(file);
      reader.onload = e => {
        let workBook = (0,xlsx__WEBPACK_IMPORTED_MODULE_7__.read)(reader.result, {
          type: 'binary'
        });
        let sheetNames = workBook.SheetNames;
        this.xlsxData = xlsx__WEBPACK_IMPORTED_MODULE_7__.utils.sheet_to_json(workBook.Sheets[sheetNames[0]]);
        this.listaTemporal = xlsx__WEBPACK_IMPORTED_MODULE_7__.utils.sheet_to_json(workBook.Sheets[sheetNames[0]]);
        if (this.xlsxData.length <= 0) {
          this.loading = false;
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: 'El archivo no tiene datos para importar',
            confirmButtonColor: '#299cdb'
          });
        }
      };
    }
  }
  getSeleccionados(items) {
    this.selectedItems = items;
  }
  buscarItem(event) {
    const val = event.target.value.toLowerCase();
    const temp = this.listaTemporal.filter(l => {
      return l.Nombre.toLowerCase().indexOf(val) !== -1 || !val;
    });
    this.xlsxData = temp;
  }
  createRegisterfromXlsx(xlsxData) {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.loading = true;
      const createPromises = [];
      for (let i = 0; i < xlsxData.length; i++) {
        let record = {
          userUuid: '' + xlsxData[i].userUuid,
          nombre: '' + xlsxData[i].Nombre,
          telefono: '' + xlsxData[i].Telefono,
          horaEntrada: '' + xlsxData[i]['Hora Entrada'],
          horaSalida: '' + xlsxData[i]['Hora Salida'],
          complejoDto: null
        };
        const createPromise = _this.searchData(xlsxData[i].Complejo).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.map)(complejoDto => {
          record.complejoDto = complejoDto;
          return record;
        })).toPromise().then(/*#__PURE__*/function () {
          var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (recordWithComplejo) {
            if (recordWithComplejo && !_this.recordExists(recordWithComplejo)) {
              yield _this.createRecord(recordWithComplejo);
            } else if (recordWithComplejo) {
              sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
                text: 'Registro ya existe',
                confirmButtonColor: '#299cdb'
              });
            }
          });
          return function (_x) {
            return _ref.apply(this, arguments);
          };
        }());
        createPromises.push(createPromise);
      }
      yield Promise.all(createPromises);
      _this.loading = false;
      _this.activeModal.close();
      _this.listaItems.emit();
    })();
  }
  searchData(nombre) {
    return this.complejoService.getAll().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.map)(response => {
      if (response['status'] === 'OK') {
        const list = response['payload'];
        const foundItem = list.find(item => item.nombre === nombre);
        if (!foundItem) {
          throw new Error('Complejo not found');
        }
        return foundItem;
      } else {
        throw new Error('Invalid response from server');
      }
    }));
  }
  recordExists(registro) {
    return this.itemsList.some(item => item.userUuid === registro.userUuid);
  }
  createRecord(datos) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const data = yield _this2.service.save(datos).toPromise();
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Registro Creado con éxito',
          confirmButtonColor: '#299cdb'
        });
      } catch (error) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Error al crear el registro',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    })();
  }
  static {
    this.ɵfac = function ModalImportComponent_Factory(t) {
      return new (t || ModalImportComponent)(_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_api_encargado_service__WEBPACK_IMPORTED_MODULE_3__.EncargadoService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__.ComplejosService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
      type: ModalImportComponent,
      selectors: [["app-modal-import"]],
      inputs: {
        itemsList: "itemsList",
        titles: "titles"
      },
      outputs: {
        listaItems: "listaItems"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵStandaloneFeature"]],
      decls: 26,
      vars: 7,
      consts: [[1, "modal-header"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click", "disabled"], [1, "modal-body"], [1, "alert-primary", "mb-3"], [1, "blockquote", "custom-blockquote", "blockquote-primary", "rounded", "mb-0"], [1, "text-primary"], [1, "text-body", "mb-2"], [1, "row", "d-flex", "justify-content-center", "mb-3"], [1, "col-12", "col-lg-6", "mb-3"], ["type", "file", "accept", ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel", 1, "form-control", "shadow-none", "rounded-3", 3, "change", "multiple"], [1, "d-flex", "justify-content-between", "rounded-3", "border", "ps-3"], [1, "d-flex", "align-items-center"], [1, "bi", "bi-search"], ["type", "text", "placeholder", "Buscar ...", 1, "form-control", "rounded-3", "border-0", "shadow-none", 3, "keyup"], [3, "loading", "itemsList", "allcontent", "selectedItemEmitter", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-primary", "rounded-3", 3, "click", "disabled"], ["class", "spinner-border spinner-border-sm", "aria-hidden", "true", 4, "ngIf"], ["type", "button", 1, "btn", "btn-outline-secondary", "rounded-3", 3, "click", "disabled"], [3, "selectedItemEmitter", "loading", "itemsList", "allcontent"], ["aria-hidden", "true", 1, "spinner-border", "spinner-border-sm"]],
      template: function ModalImportComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Importar Datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "button", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_3_listener() {
            return ctx.cerrarModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 2)(5, "div", 3)(6, "blockquote", 4)(7, "strong", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8, " Nota: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](10, "Solo se guardar\u00E1n los registros que no existan, los registros que ya existan no se tomaran en cuenta.");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](11, "div", 7)(12, "div", 8)(13, "input", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function ModalImportComponent_Template_input_change_13_listener($event) {
            return ctx.cargarDatosDesdeExcel($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "div", 8)(15, "div", 10)(16, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](17, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "input", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup", function ModalImportComponent_Template_input_keyup_18_listener($event) {
            return ctx.buscarItem($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](19, ModalImportComponent_app_data_table_19_Template, 1, 3, "app-data-table", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "div", 15)(21, "button", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_21_listener() {
            return ctx.createRegisterfromXlsx(ctx.selectedItems);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](22, ModalImportComponent_span_22_Template, 1, 0, "span", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](23);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](24, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_24_listener() {
            return ctx.cerrarModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](25, " Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("multiple", false);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.xlsxData.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.xlsxData.length <= 0 || ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.loading ? "Importando..." : "Importar", " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.loading);
        }
      },
      dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, _angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_5__.DataTableComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 48425:
/*!*************************************************************************!*\
  !*** ./src/app/pages/modals/field/modal-field/modal-field.component.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalFieldsComponent: () => (/* binding */ ModalFieldsComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 2510);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 98764);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ 61318);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs */ 59452);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs */ 70271);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/TipoCobro */ 73695);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ng-select/ng-select */ 62223);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/superficies.service */ 29977);
/* harmony import */ var src_app_core_services_api_tarifa_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/tarifa.service */ 674);
/* harmony import */ var src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/clasificadorRuat.service */ 12341);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);






















const _c0 = ["deleteConfirmation"];
const _c1 = ["deleteModel"];
const _c2 = a0 => ({
  "is-invalid": a0
});
const _c3 = () => ({
  id: 1,
  name: "Lunes"
});
const _c4 = () => ({
  id: 2,
  name: "Martes"
});
const _c5 = () => ({
  id: 3,
  name: "Mi\u00E9rcoles"
});
const _c6 = () => ({
  id: 4,
  name: "Jueves"
});
const _c7 = () => ({
  id: 5,
  name: "Viernes"
});
const _c8 = () => ({
  id: 6,
  name: "S\u00E1bado"
});
const _c9 = () => ({
  id: 7,
  name: "Domingo"
});
const _c10 = (a0, a1, a2, a3, a4, a5, a6) => [a0, a1, a2, a3, a4, a5, a6];
function ModalFieldsComponent_div_0_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "h5", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Agregar Campo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "h5", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Editar Datos de Campo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_31_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_31_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.form["complejoDto"].errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_38_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_38_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.form["superficieDto"].errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_option_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", cat_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](cat_r4);
  }
}
function ModalFieldsComponent_div_0_form_5_div_48_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_48_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_48_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.form["categoria"].errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_55_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_55_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_65_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_65_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_65_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.form["codigo"].errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_option_72_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const estado_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", estado_r5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](estado_r5);
  }
}
function ModalFieldsComponent_div_0_form_5_div_106_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Horas M\u00EDnima Aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "input", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "small", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Horas m\u00EDnimas para aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_div_107_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Duraci\u00F3n M\u00E1x. (min)");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "input", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "small", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Para auto-aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_div_108_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Personas M\u00E1x.");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "input", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "small", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Para auto-aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_tr_138_option_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dia_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", dia_r7.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](dia_r7.label);
  }
}
function ModalFieldsComponent_div_0_form_5_tr_138_button_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_button_28_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r9);
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.removeHorarioFijo(i_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalFieldsComponent_div_0_form_5_tr_138_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "tr", 107)(1, "td", 108)(2, "select", 109)(3, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](5, ModalFieldsComponent_div_0_form_5_tr_138_option_5_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "td", 110)(7, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "input", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](10, "input", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](12, "input", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](13, "td", 108)(14, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](15, "input", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "button", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_Template_button_click_16_listener() {
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.toggleObservacionesDropdown(i_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](17, "i", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "div", 119)(19, "a", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_Template_a_click_19_listener() {
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.setObservacion(i_r8, "Horario reducido"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](20, "Horario reducido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "a", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_Template_a_click_21_listener() {
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.setObservacion(i_r8, "Mantenimiento programado"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](22, "Mantenimiento programado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](23, "a", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_Template_a_click_23_listener() {
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.setObservacion(i_r8, "Sujeto a disponibilidad"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](24, "Sujeto a disponibilidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](25, "a", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_138_Template_a_click_25_listener() {
      const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.setObservacion(i_r8, "Requiere reserva previa"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](26, "Requiere reserva previa");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](27, "td", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](28, ModalFieldsComponent_div_0_form_5_tr_138_button_28_Template, 2, 1, "button", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_8_0;
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_14_0;
    const horario_r10 = ctx.$implicit;
    const i_r8 = ctx.index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroupName", i_r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](13, _c2, ctx_r1.submitted && ((tmp_8_0 = horario_r10.get("dia")) == null ? null : tmp_8_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.diaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "abierto-" + i_r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", !((tmp_11_0 = horario_r10.get("abierto")) == null ? null : tmp_11_0.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](15, _c2, ctx_r1.submitted && ((tmp_12_0 = horario_r10.get("horaApertura")) == null ? null : tmp_12_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", !((tmp_13_0 = horario_r10.get("abierto")) == null ? null : tmp_13_0.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](17, _c2, ctx_r1.submitted && ((tmp_14_0 = horario_r10.get("horaCierre")) == null ? null : tmp_14_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "obs-input-" + i_r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "obs-btn-" + i_r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("show", ctx_r1.showObsDropdown[i_r8]);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.horariosFijos.length > 1);
  }
}
function ModalFieldsComponent_div_0_form_5_tr_163_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", tipo_r12);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](tipo_r12);
  }
}
function ModalFieldsComponent_div_0_form_5_tr_163_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "tr", 107)(1, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "input", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "td", 108)(4, "select", 125)(5, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](6, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](7, ModalFieldsComponent_div_0_form_5_tr_163_option_7_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](8, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](9, "input", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](11, "input", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](12, "td", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](13, "input", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "td", 110)(15, "button", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_tr_163_Template_button_click_15_listener() {
      const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r11).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.removeHorarioExcepcion(i_r13));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](16, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_8_0;
    let tmp_9_0;
    const horario_r14 = ctx.$implicit;
    const i_r13 = ctx.index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroupName", i_r13);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c2, ctx_r1.submitted && ((tmp_8_0 = horario_r14.get("fecha")) == null ? null : tmp_8_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](7, _c2, ctx_r1.submitted && ((tmp_9_0 = horario_r14.get("tipoExcepcion")) == null ? null : tmp_9_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.tipoExcepcionList);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalFieldsComponent_div_0_form_5_tr_164_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "tr")(1, "td", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "No hay excepciones registradas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_button_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_div_167_button_8_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.removeTarifa(i_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_17_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_167_div_17_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_8_0 = tarifa_r18.get("clasificadorRuatDto")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_option_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", tipo_r19.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", tipo_r19.label, " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_27_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_167_div_27_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_8_0 = tarifa_r18.get("tipoCobro")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_28_option_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const freq_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", freq_r21.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", freq_r21.label, " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_28_div_9_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_28_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_167_div_28_div_9_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_9_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_9_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 46)(1, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Frecuencia ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "select", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function ModalFieldsComponent_div_0_form_5_div_167_div_28_Template_select_change_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r20);
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.onFrecuenciaChange(i_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](8, ModalFieldsComponent_div_0_form_5_div_167_div_28_option_8_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](9, ModalFieldsComponent_div_0_form_5_div_167_div_28_div_9_Template, 2, 1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    let tmp_10_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](3, _c2, ctx_r1.submitted && ((tmp_8_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_8_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.frecuenciaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_10_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_10_0.errors));
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_29_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "div", 167)(2, "div", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_9_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r1.getDisplaySesionesFromNumber((tmp_9_0 = tarifa_r18.get("sesionesIncluidas")) == null ? null : tmp_9_0.value), " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_29_div_4_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 175)(1, "div", 176)(2, "input", 177);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function ModalFieldsComponent_div_0_form_5_div_167_div_29_div_4_div_5_Template_input_change_2_listener($event) {
      const dia_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22).$implicit;
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.onDiaPersonalizadoChange(i_r17, dia_r23.id, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "label", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const dia_r23 = ctx.$implicit;
    const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "dia-" + i_r17 + "-" + dia_r23.id)("checked", ctx_r1.getDiasPersonalizados(i_r17)[dia_r23.id]);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("for", "dia-" + i_r17 + "-" + dia_r23.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", dia_r23.name, " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_29_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "div", 167)(2, "small", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "Seleccione los d\u00EDas de sesi\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](5, ModalFieldsComponent_div_0_form_5_div_167_div_29_div_4_div_5_Template, 5, 4, "div", 171);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 172)(7, "small", 173);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8, "Resumen:");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 174);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction7"](9, _c10, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](2, _c3), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](3, _c4), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](4, _c5), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](5, _c6), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](6, _c7), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](7, _c8), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](8, _c9)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r1.getDisplaySesionesFromDias(ctx_r1.getDiasPersonalizados(i_r17)), " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 166)(1, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Sesiones Incluidas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, ModalFieldsComponent_div_0_form_5_div_167_div_29_div_3_Template, 4, 1, "div", 86)(4, ModalFieldsComponent_div_0_form_5_div_167_div_29_div_4_Template, 11, 17, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    let tmp_9_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_8_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_8_0.value) && ((tmp_8_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_8_0.value) !== "personalizado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_9_0 = tarifa_r18.get("frecuencia")) == null ? null : tmp_9_0.value) === "personalizado");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_40_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_167_div_40_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_8_0 = tarifa_r18.get("categoriasDtoList")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_47_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_div_167_div_47_div_1_Template, 2, 0, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_8_0;
    const tarifa_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_8_0 = tarifa_r18.get("precioBase")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors["required"]);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_85_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 178)(1, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "No hay conceptos adicionales");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_option_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r26 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", tipo_r26.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", tipo_r26.label, " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_38_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 25)(1, "div", 194)(2, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "Hora Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "input", 195);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 194)(6, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, "Hora Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "input", 196);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 63)(10, "small", 197);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](11, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](12, " Este concepto aplicar\u00E1 solo dentro del intervalo especificado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_38_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 63)(1, "div", 190)(2, "div", 191)(3, "small", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "i", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Intervalo de Horas (Opcional) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "button", 192);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_38_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r27);
      const concepto_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.toggleTimeFields(concepto_r28));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](7, "i", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](9, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_38_div_9_Template, 13, 0, "div", 193);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_11_0;
    let tmp_12_0;
    const concepto_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ((tmp_11_0 = concepto_r28.get("desde")) == null ? null : tmp_11_0.value) || ((tmp_11_0 = concepto_r28.get("hasta")) == null ? null : tmp_11_0.value) ? "Ocultar" : "Agregar Horario", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_12_0 = concepto_r28.get("desde")) == null ? null : tmp_12_0.value) || ((tmp_12_0 = concepto_r28.get("hasta")) == null ? null : tmp_12_0.value));
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_39_span_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span", 201);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_12_0;
    const concepto_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate2"](" | ", (tmp_12_0 = concepto_r28.get("desde")) == null ? null : tmp_12_0.value, " - ", (tmp_12_0 = concepto_r28.get("hasta")) == null ? null : tmp_12_0.value, " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 63)(1, "div", 198)(2, "small")(3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_39_span_6_Template, 2, 2, "span", 199);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "span", 200);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_14_0;
    let tmp_15_0;
    const concepto_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"]((tmp_11_0 = concepto_r28.get("concepto")) == null ? null : tmp_11_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate3"](" - ", ctx_r1.getTipoConceptoDisplay((tmp_12_0 = concepto_r28.get("tipo")) == null ? null : tmp_12_0.value), ": ", (tmp_12_0 = concepto_r28.get("valor")) == null ? null : tmp_12_0.value, " ", ((tmp_12_0 = concepto_r28.get("tipo")) == null ? null : tmp_12_0.value) === "porcentaje" ? "%" : ((tmp_12_0 = concepto_r28.get("tipo")) == null ? null : tmp_12_0.value) === "por_hora" ? "Bs/h" : "Bs", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_13_0 = concepto_r28.get("desde")) == null ? null : tmp_13_0.value) && ((tmp_13_0 = concepto_r28.get("hasta")) == null ? null : tmp_13_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", ((tmp_14_0 = concepto_r28.get("activo")) == null ? null : tmp_14_0.value) ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ((tmp_15_0 = concepto_r28.get("activo")) == null ? null : tmp_15_0.value) ? "Activo" : "Inactivo", " ");
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_div_86_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 179)(1, "div", 180)(2, "span", 181);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "button", 182);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_div_167_div_86_Template_button_click_4_listener() {
      const j_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r24).index;
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.removeConcepto(i_r17, j_r25));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 25)(7, "div", 26)(8, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, "Concepto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](11, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](12, "input", 183);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](13, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_13_Template, 2, 0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "div", 184)(15, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](16, "Tipo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](17, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](18, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](19, "select", 185)(20, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](21, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](22, ModalFieldsComponent_div_0_form_5_div_167_div_86_option_22_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](23, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_23_Template, 2, 0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](24, "div", 184)(25, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](26, " Valor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](27, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](28, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](29, "small", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](31, "input", 186);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](32, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_32_Template, 2, 0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](33, "div", 187)(34, "div", 188);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](35, "input", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](36, "label", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](37, " Activo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](38, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_38_Template, 10, 2, "div", 189)(39, ModalFieldsComponent_div_0_form_5_div_167_div_86_div_39_Template, 9, 7, "div", 189);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_13_0;
    let tmp_14_0;
    let tmp_15_0;
    let tmp_17_0;
    let tmp_18_0;
    let tmp_19_0;
    let tmp_20_0;
    let tmp_21_0;
    const concepto_r28 = ctx.$implicit;
    const j_r25 = ctx.index;
    const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroupName", j_r25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](j_r25 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](17, _c2, ctx_r1.submitted && ((tmp_13_0 = concepto_r28.get("concepto")) == null ? null : tmp_13_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_14_0 = concepto_r28.get("concepto")) == null ? null : tmp_14_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](19, _c2, ctx_r1.submitted && ((tmp_15_0 = concepto_r28.get("tipo")) == null ? null : tmp_15_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.tipoConceptoOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_17_0 = concepto_r28.get("tipo")) == null ? null : tmp_17_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" (", ((tmp_18_0 = concepto_r28.get("tipo")) == null ? null : tmp_18_0.value) === "porcentaje" ? "%" : ((tmp_18_0 = concepto_r28.get("tipo")) == null ? null : tmp_18_0.value) === "por_hora" ? "Bs/h" : "Bs", ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](21, _c2, ctx_r1.submitted && ((tmp_19_0 = concepto_r28.get("valor")) == null ? null : tmp_19_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_20_0 = concepto_r28.get("valor")) == null ? null : tmp_20_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("mt-4", !((tmp_21_0 = concepto_r28.get("desde")) == null ? null : tmp_21_0.value) && !((tmp_21_0 = concepto_r28.get("hasta")) == null ? null : tmp_21_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "concepto-activo-" + i_r17 + "-" + j_r25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("for", "concepto-activo-" + i_r17 + "-" + j_r25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.showTimeFields(concepto_r28));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", concepto_r28.valid);
  }
}
function ModalFieldsComponent_div_0_form_5_div_167_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 130)(1, "div", 131)(2, "span", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "input", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "label", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, "Activa");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](8, ModalFieldsComponent_div_0_form_5_div_167_button_8_Template, 2, 1, "button", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 57)(10, "div", 25)(11, "div", 137)(12, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](13, "Clasificador RUAT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](15, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "ng-select", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function ModalFieldsComponent_div_0_form_5_div_167_Template_ng_select_change_16_listener() {
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r15).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.onClasificadorRuatChange(i_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](17, ModalFieldsComponent_div_0_form_5_div_167_div_17_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "div", 139)(19, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](20, "Tipo de Cobro ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](22, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](23, "select", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function ModalFieldsComponent_div_0_form_5_div_167_Template_select_change_23_listener() {
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r15).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.onTipoCobroChange(i_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](24, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](25, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](26, ModalFieldsComponent_div_0_form_5_div_167_option_26_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](27, ModalFieldsComponent_div_0_form_5_div_167_div_27_Template, 2, 1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](28, ModalFieldsComponent_div_0_form_5_div_167_div_28_Template, 10, 5, "div", 141)(29, ModalFieldsComponent_div_0_form_5_div_167_div_29_Template, 5, 2, "div", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](30, "div", 143)(31, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](32, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](33, "input", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](34, "div", 145)(35, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](36, "Categor\u00EDa(s) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](37, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](38, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](39, "ng-select", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](40, ModalFieldsComponent_div_0_form_5_div_167_div_40_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](41, "div", 147)(42, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](43, "Precio Base");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](44, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](45, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](46, "input", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](47, ModalFieldsComponent_div_0_form_5_div_167_div_47_Template, 2, 1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](48, "div", 149)(49, "small", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](50, "i", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](51, "Vigencia e intervalo Valido de la Tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](52, "div", 46)(53, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](54, "Fecha Inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](55, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](56, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](57, "input", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](58, "div", 46)(59, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](60, "Fecha Fin");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](61, "input", 153);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](62, "div", 46)(63, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](64, "Hora Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](65, "input", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](66, "div", 46)(67, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](68, "Hora Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](69, "input", 155);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](70, "div", 63)(71, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](72, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](73, "textarea", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](74, "div", 63)(75, "div", 157)(76, "div", 158)(77, "h6", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](78, "i", 159);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](79, "Conceptos Adicionales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](80, "button", 160);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_div_167_Template_button_click_80_listener() {
      const i_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r15).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.addConcepto(i_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](81, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](82, " Agregar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](83, "div", 57)(84, "div", 161);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](85, ModalFieldsComponent_div_0_form_5_div_167_div_85_Template, 3, 0, "div", 162)(86, ModalFieldsComponent_div_0_form_5_div_167_div_86_Template, 40, 23, "div", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    let tmp_13_0;
    let tmp_14_0;
    let tmp_15_0;
    let tmp_17_0;
    let tmp_18_0;
    let tmp_19_0;
    let tmp_22_0;
    let tmp_23_0;
    let tmp_24_0;
    let tmp_25_0;
    let tmp_26_0;
    const tarifa_r18 = ctx.$implicit;
    const i_r17 = ctx.index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroupName", i_r17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](i_r17 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("id", "tarifa-activo-" + i_r17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("for", "tarifa-activo-" + i_r17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.tarifas.length > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("items", ctx_r1.clasificadoresRuatList)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](23, _c2, ctx_r1.submitted && ((tmp_13_0 = tarifa_r18.get("clasificadorRuatDto")) == null ? null : tmp_13_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_14_0 = tarifa_r18.get("clasificadorRuatDto")) == null ? null : tmp_14_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](25, _c2, ctx_r1.submitted && ((tmp_15_0 = tarifa_r18.get("tipoCobro")) == null ? null : tmp_15_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.getFilteredTipoCobroOptions(i_r17));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_17_0 = tarifa_r18.get("tipoCobro")) == null ? null : tmp_17_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_18_0 = tarifa_r18.get("tipoCobro")) == null ? null : tmp_18_0.value) === "mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ((tmp_19_0 = tarifa_r18.get("tipoCobro")) == null ? null : tmp_19_0.value) === "mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("items", ctx_r1.categoriasList)("multiple", true)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](27, _c2, ctx_r1.submitted && ((tmp_22_0 = tarifa_r18.get("categoriasDtoList")) == null ? null : tmp_22_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_23_0 = tarifa_r18.get("categoriasDtoList")) == null ? null : tmp_23_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](29, _c2, ctx_r1.submitted && ((tmp_24_0 = tarifa_r18.get("precioBase")) == null ? null : tmp_24_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ((tmp_25_0 = tarifa_r18.get("precioBase")) == null ? null : tmp_25_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](31, _c2, ctx_r1.submitted && ((tmp_26_0 = tarifa_r18.get("fechaInicio")) == null ? null : tmp_26_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.getConceptos(i_r17).length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.getConceptos(i_r17).controls);
  }
}
function ModalFieldsComponent_div_0_form_5_div_173_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 202)(1, "small", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, " Campos obligatorios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
}
function ModalFieldsComponent_div_0_form_5_button_175_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 203);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_button_175_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r29);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.previousStep());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 204);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Anterior ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_button_180_Template(rf, ctx) {
  if (rf & 1) {
    const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 205);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_button_180_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r30);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.nextStep());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Siguiente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 206);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_button_181_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 208);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Guardar");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_button_181_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "span", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Guardando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_div_0_form_5_button_181_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 207);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, ModalFieldsComponent_div_0_form_5_button_181_span_1_Template, 3, 0, "span", 86)(2, ModalFieldsComponent_div_0_form_5_button_181_span_2_Template, 3, 0, "span", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalFieldsComponent_div_0_form_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "form", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("ngSubmit", function ModalFieldsComponent_div_0_form_5_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 11)(2, "ul", 12)(3, "li", 13)(4, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.goToStep(1));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "span", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](7, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8, "Informaci\u00F3n B\u00E1sica");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "li", 13)(10, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_a_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.goToStep(2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](11, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](12, "span", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](13, "i", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](14, "Horarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](15, "li", 13)(16, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_a_click_16_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.goToStep(3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](17, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "span", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](19, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](20, "Tarifas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](22, "input", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](23, "div", 24)(24, "div", 25)(25, "div", 26)(26, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](27, "Complejo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](28, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](29, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](30, "ng-select", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](31, ModalFieldsComponent_div_0_form_5_div_31_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](32, "div", 26)(33, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](34, "Superficie ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](35, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](36, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](37, "ng-select", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](38, ModalFieldsComponent_div_0_form_5_div_38_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](39, "div", 26)(40, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](41, "Categor\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](42, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](43, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](44, "select", 32)(45, "option", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](46, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](47, ModalFieldsComponent_div_0_form_5_option_47_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](48, ModalFieldsComponent_div_0_form_5_div_48_Template, 2, 1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](49, "div", 36)(50, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](51, "Nombre ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](52, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](53, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](54, "input", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](55, ModalFieldsComponent_div_0_form_5_div_55_Template, 2, 1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](56, "div", 38)(57, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](58, "C\u00F3digo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](59, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](60, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](61, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](62, "input", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](63, "button", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_button_click_63_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.generateCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](64, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](65, ModalFieldsComponent_div_0_form_5_div_65_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](66, "div", 38)(67, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](68, "Estado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](69, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](70, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](71, "select", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](72, ModalFieldsComponent_div_0_form_5_option_72_Template, 2, 2, "option", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](73, "div", 38)(74, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](75, "Capacidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](76, "input", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](77, "div", 38)(78, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](79, "Dimensiones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](80, "input", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](81, "div", 46)(82, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](83, "input", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](84, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](85, "Iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](86, "div", 46)(87, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](88, "input", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](89, "label", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](90, "Acceso Libre");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](91, "div", 52)(92, "div", 53)(93, "div", 54)(94, "h6", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](95, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](96, "Configuraci\u00F3n de Aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](97, "div", 57)(98, "div", 25)(99, "div", 26)(100, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](101, "input", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](102, "label", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](103, " Requiere Aprobaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](104, "small", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](105, "Las reservas requieren validaci\u00F3n manual");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](106, ModalFieldsComponent_div_0_form_5_div_106_Template, 6, 0, "div", 62)(107, ModalFieldsComponent_div_0_form_5_div_107_Template, 6, 0, "div", 62)(108, ModalFieldsComponent_div_0_form_5_div_108_Template, 6, 0, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](109, "div", 63)(110, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](111, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](112, "textarea", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](113, "div", 24)(114, "div", 65)(115, "div", 66)(116, "h6", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](117, "i", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](118, "Horarios Regulares");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](119, "button", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_button_click_119_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.addHorarioFijo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](120, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](121, " Agregar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](122, "div", 70)(123, "table", 71)(124, "thead", 72)(125, "tr")(126, "th", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](127, "D\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](128, "th", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](129, "Abierto");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](130, "th", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](131, "Apertura");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](132, "th", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](133, "Cierre");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](134, "th", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](135, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](136, "th", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](137, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](138, ModalFieldsComponent_div_0_form_5_tr_138_Template, 29, 19, "tr", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](139, "div")(140, "div", 66)(141, "h6", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](142, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](143, "Excepciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](144, "button", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_button_click_144_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.addHorarioExcepcion());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](145, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](146, " Agregar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](147, "div", 80)(148, "table", 71)(149, "thead", 72)(150, "tr")(151, "th", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](152, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](153, "th", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](154, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](155, "th", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](156, "Apertura");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](157, "th", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](158, "Cierre");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](159, "th", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](160, "Motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](161, "th", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](162, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](163, ModalFieldsComponent_div_0_form_5_tr_163_Template, 17, 9, "tr", 77)(164, ModalFieldsComponent_div_0_form_5_tr_164_Template, 3, 0, "tr", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](165, "div", 24)(166, "div", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](167, ModalFieldsComponent_div_0_form_5_div_167_Template, 87, 33, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](168, "button", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_button_click_168_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.addTarifa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](169, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](170, " Agregar Tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](171, "div", 90)(172, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](173, ModalFieldsComponent_div_0_form_5_div_173_Template, 6, 0, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](174, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](175, ModalFieldsComponent_div_0_form_5_button_175_Template, 3, 0, "button", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](176, "div", 95)(177, "button", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_form_5_Template_button_click_177_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](178, "i", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](179, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](180, ModalFieldsComponent_div_0_form_5_button_180_Template, 3, 0, "button", 98)(181, ModalFieldsComponent_div_0_form_5_button_181_Template, 3, 2, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    let tmp_25_0;
    let tmp_26_0;
    let tmp_27_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx_r1.fieldsForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 1)("show", ctx_r1.currentStep === 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("items", ctx_r1.complejosList)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](48, _c2, ctx_r1.submitted && ctx_r1.form["complejoDto"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["complejoDto"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("items", ctx_r1.surfacesList)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](50, _c2, ctx_r1.submitted && ctx_r1.form["superficieDto"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["superficieDto"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](52, _c2, ctx_r1.submitted && ctx_r1.form["categoria"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.categoriaCampoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["categoria"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](54, _c2, ctx_r1.submitted && ctx_r1.form["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["nombre"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](56, _c2, ctx_r1.submitted && ctx_r1.form["codigo"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["codigo"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](58, _c2, ctx_r1.submitted && ctx_r1.form["estadoActual"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.estadoActualList);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", (tmp_25_0 = ctx_r1.fieldsForm.get("requiereAprobacion")) == null ? null : tmp_25_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !((tmp_26_0 = ctx_r1.fieldsForm.get("requiereAprobacion")) == null ? null : tmp_26_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !((tmp_27_0 = ctx_r1.fieldsForm.get("requiereAprobacion")) == null ? null : tmp_27_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 2)("show", ctx_r1.currentStep === 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.horariosFijos.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.horariosExcepciones.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.horariosExcepciones.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("active", ctx_r1.currentStep === 3)("show", ctx_r1.currentStep === 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r1.tarifas.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.currentStep === 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.currentStep > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.currentStep < 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.currentStep === 3);
  }
}
function ModalFieldsComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 3)(1, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, ModalFieldsComponent_div_0_h5_2_Template, 3, 0, "h5", 5)(3, ModalFieldsComponent_div_0_h5_3_Template, 3, 0, "h5", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_div_0_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](5, ModalFieldsComponent_div_0_form_5_Template, 182, 60, "form", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.accion === "edit" || ctx_r1.accion === "");
  }
}
function ModalFieldsComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 3)(1, "div", 210)(2, "h5", 211);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "Confirmar Eliminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "button", 212);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_1_Template_button_click_4_listener() {
      const modal_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r31).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](modal_r32.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](6, "lord-icon", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "div", 215)(8, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, "\u00BFEst\u00E1 seguro de eliminar esta tarifa?");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "p", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](11, "Esta acci\u00F3n eliminar\u00E1 la tarifa de forma permanente.");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](12, "div", 217)(13, "button", 218);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_1_Template_button_click_13_listener() {
      const modal_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r31).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](modal_r32.dismiss("cancel"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](14, "i", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](15, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "button", 219);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_1_Template_button_click_16_listener() {
      const modal_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r31).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](modal_r32.close("delete"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](17, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](18, " S\u00ED, Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
}
function ModalFieldsComponent_ng_template_3_div_0_span_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 229);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " S\u00ED, Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_ng_template_3_div_0_span_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "span", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Eliminando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ModalFieldsComponent_ng_template_3_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 3)(1, "div", 210)(2, "h5", 211);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "Confirmar Eliminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "button", 221);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_3_div_0_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r33);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 222)(6, "div", 223);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](7, "lord-icon", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](8, "div", 224)(9, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](10, "\u00BFEst\u00E1 seguro de eliminar este campo deportivo?");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "p", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](12, " Esta acci\u00F3n eliminar\u00E1 permanentemente el campo deportivo \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](13, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](15, "\" y toda su informaci\u00F3n asociada (horarios, tarifas, etc.). ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "div", 225)(17, "button", 226);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_3_div_0_Template_button_click_17_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r33);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](18, "i", 227);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](19, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](20, "button", 228);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ModalFieldsComponent_ng_template_3_div_0_Template_button_click_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r33);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r1.deleteData(ctx_r1.row.uuid));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](21, ModalFieldsComponent_ng_template_3_div_0_span_21_Template, 3, 0, "span", 86)(22, ModalFieldsComponent_ng_template_3_div_0_span_22_Template, 3, 0, "span", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](ctx_r1.row.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalFieldsComponent_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ModalFieldsComponent_ng_template_3_div_0_Template, 23, 6, "div", 220);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.row.uuid);
  }
}
class ModalFieldsComponent {
  constructor(modalService, formBuilder, complejoService, fieldService, surfaceService, tarifaService, clasificadoresRuatService, categoriaService) {
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.complejoService = complejoService;
    this.fieldService = fieldService;
    this.surfaceService = surfaceService;
    this.tarifaService = tarifaService;
    this.clasificadoresRuatService = clasificadoresRuatService;
    this.categoriaService = categoriaService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.categoriaCampoList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.CategoriaCampo);
    this.estadoActualList = Object.values(src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoActual);
    this.tipoExcepcionList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoExcepcion);
    this.diaOptions = [{
      value: 'lunes_viernes',
      label: 'Lunes a Viernes',
      show: true,
      open: true
    }, {
      value: 'lunes',
      label: 'Lunes',
      show: false,
      open: true
    }, {
      value: 'martes',
      label: 'Martes',
      show: false,
      open: true
    }, {
      value: 'miercoles',
      label: 'Miércoles',
      show: false,
      open: true
    }, {
      value: 'jueves',
      label: 'Jueves',
      show: false,
      open: true
    }, {
      value: 'viernes',
      label: 'Viernes',
      show: false,
      open: true
    }, {
      value: 'sabado',
      label: 'Sábado',
      show: true,
      open: false
    }, {
      value: 'domingo',
      label: 'Domingo',
      show: true,
      open: false
    }];
    this.tipoConceptoOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_2__.tiposConcepto;
    this.tipoCobroOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_2__.TipoCobro;
    this.frecuenciaOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_2__.frecuencia;
    this.diasPersonalizados = {};
    this.clasificadorTipoCobroMap = {
      'hora': ['por_hora'],
      'mensualidad': ['mensualidad', 'por_sesion'],
      'evento': ['por_evento'],
      'persona': ['por_persona'],
      'club': ['por_club']
    };
    this.surfacesList = [];
    this.complejosList = [];
    this.clasificadoresRuatList = [];
    this.categoriasList = [];
    this.currentStep = 1;
    this.submitted = false;
    this.showObsDropdown = [];
    this.subscription = new rxjs__WEBPACK_IMPORTED_MODULE_11__.Subscription();
  }
  ngOnInit() {
    this.getFacilities();
    this.getSurfaces();
    this.getCategorias();
    this.getClasificadoresRuat();
    this.initForm();
    this.formDataSet();
    if (this.accion !== 'edit') {
      this.generateCodigo();
    }
  }
  ngOnDestroy() {
    this.subscription.unsubscribe();
  }
  initForm() {
    this.fieldsForm = this.formBuilder.group({
      uuid: [null],
      estadoActual: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoActual.ACTIVO, [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required]],
      codigo: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(50)]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(250)]],
      categoria: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required]],
      dimensiones: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(100)]],
      capacidadPersonas: [0, [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(0)]],
      tieneIluminacion: [false],
      observaciones: [''],
      accesoLibre: [false],
      requiereAprobacion: [false],
      horasMinimaAprobacion: [null, [this.conditionalApprovalValidator('requiereAprobacion', true)]],
      maxDuracionAutoAprobacion: [null],
      maxPersonasAutoAprobacion: [null],
      complejoDto: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required]],
      superficieDto: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required]],
      horariosFijosDtoList: this.formBuilder.array([], [this.overlappingSchedulesValidator()]),
      horariosExcepcionesDtoList: this.formBuilder.array([]),
      tarifasDtoList: this.formBuilder.array([])
    });
    this.initializeDefaultHorariosFijos();
  }
  initializeDefaultHorariosFijos() {
    const horariosFijosArray = this.fieldsForm.get('horariosFijosDtoList');
    this.diaOptions.forEach(dia => {
      if (dia.show) {
        horariosFijosArray.push(this.createHorarioFijoFormGroup({
          dia: dia.value,
          abierto: dia.open,
          horaApertura: dia.open ? '08:00' : null,
          horaCierre: dia.open ? '22:00' : null
        }));
      }
    });
  }
  overlappingSchedulesValidator() {
    return control => {
      const formArray = control;
      const horarios = formArray.controls.map((c, index) => {
        const formGroup = c;
        return {
          index,
          dia: formGroup.get('dia')?.value,
          horaApertura: formGroup.get('horaApertura')?.value,
          horaCierre: formGroup.get('horaCierre')?.value,
          abierto: formGroup.get('abierto')?.value
        };
      }).filter(h => h.dia && h.abierto);
      const duplicates = this.findOverlappingSchedules(horarios);
      if (duplicates.length > 0) {
        console.warn('Overlapping schedules found:', duplicates);
        return {
          overlappingSchedules: true
        };
      }
      return null;
    };
  }
  findOverlappingSchedules(horarios) {
    const duplicates = [];
    const dayGroups = this.groupByDay(horarios);
    for (const [dia, schedules] of Object.entries(dayGroups)) {
      if (schedules.length > 1) {
        for (let i = 0; i < schedules.length; i++) {
          for (let j = i + 1; j < schedules.length; j++) {
            if (this.schedulesOverlap(schedules[i], schedules[j])) {
              duplicates.push({
                dia,
                schedule1: schedules[i],
                schedule2: schedules[j]
              });
            }
          }
        }
      }
    }
    return duplicates;
  }
  groupByDay(horarios) {
    return horarios.reduce((groups, horario) => {
      const dia = horario.dia;
      if (!groups[dia]) {
        groups[dia] = [];
      }
      groups[dia].push(horario);
      return groups;
    }, {});
  }
  schedulesOverlap(schedule1, schedule2) {
    if (!schedule1.horaApertura || !schedule1.horaCierre || !schedule2.horaApertura || !schedule2.horaCierre) {
      return false;
    }
    const start1 = new Date(`1970-01-01T${schedule1.horaApertura}:00`);
    const end1 = new Date(`1970-01-01T${schedule1.horaCierre}:00`);
    const start2 = new Date(`1970-01-01T${schedule2.horaApertura}:00`);
    const end2 = new Date(`1970-01-01T${schedule2.horaCierre}:00`);
    return start1 < end2 && start2 < end1;
  }
  createHorarioFijoFormGroup(horario = {}) {
    return this.formBuilder.group({
      uuid: [horario.uuid || null],
      dia: [horario.dia || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      abierto: [horario.abierto !== undefined ? horario.abierto : true],
      horaApertura: [this.extractTimeHHMM(horario.horaApertura), [this.conditionalTimeValidator('abierto')]],
      horaCierre: [this.extractTimeHHMM(horario.horaCierre), [this.conditionalTimeValidator('abierto')]],
      observaciones: [horario.observaciones || '']
    });
  }
  createHorarioExcepcionFormGroup(horario = {}) {
    return this.formBuilder.group({
      uuid: [horario.uuid || null],
      fecha: [horario.fecha || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      tipoExcepcion: [horario.tipoExcepcion || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      horaApertura: [this.extractTimeHHMM(horario.horaApertura)],
      horaCierre: [this.extractTimeHHMM(horario.horaCierre)],
      motivo: [horario.motivo || '']
    });
  }
  createTarifaFormGroup(tarifa = {}) {
    return this.formBuilder.group({
      uuid: [tarifa.uuid || null],
      fechaInicio: [tarifa.fechaInicio || this.getTodayDate(), _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      fechaFin: [tarifa.fechaFin || null],
      precioBase: [tarifa.precioBase || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(0)]],
      desde: [this.extractTimeHHMM(tarifa.desde)],
      hasta: [this.extractTimeHHMM(tarifa.hasta)],
      descripcion: [tarifa.descripcion || ''],
      observaciones: [tarifa.observaciones || ''],
      activo: [tarifa.activo !== undefined ? tarifa.activo : true],
      tipoCobro: [tarifa.tipoCobro || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      frecuencia: [tarifa.frecuencia || '', this.conditionalValidator('tipoCobro', 'mensualidad')],
      sesionesIncluidas: [tarifa.sesionesIncluidas || null, [this.conditionalValidator('tipoCobro', 'mensualidad'), _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(1)]],
      clasificadorRuatDto: [tarifa.clasificadorRuatDto || null, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      categoriasDtoList: [tarifa.categoriasDtoList?.map(cat => cat.categoriaDto || cat) || [], [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.minLength(1)]],
      conceptosDtos: this.formBuilder.array([])
    });
  }
  conditionalValidator(dependentField, requiredValue) {
    return control => {
      if (!control.parent) return null;
      const dependentControlValue = control.parent.get(dependentField)?.value;
      if (dependentControlValue === requiredValue && !control.value) {
        return {
          required: true
        };
      }
      return null;
    };
  }
  createConceptoFormGroup(concepto = {}) {
    return this.formBuilder.group({
      uuid: [concepto.uuid || null],
      concepto: [concepto.concepto || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      tipo: [concepto.tipo || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      valor: [concepto.valor || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(0)]],
      desde: [this.extractTimeHHMM(concepto.desde)],
      hasta: [this.extractTimeHHMM(concepto.hasta)],
      activo: [concepto.activo !== undefined ? concepto.activo : true]
    });
  }
  conditionalApprovalValidator(dependentField, requiresApproval) {
    return control => {
      if (!control.parent) return null;
      const requiresApprovalValue = control.parent.get(dependentField)?.value;
      if (requiresApproval === requiresApprovalValue && !control.value) {
        return {
          required: true
        };
      }
      return null;
    };
  }
  showTimeFields(concepto) {
    const tipo = concepto.get('tipo')?.value;
    return tipo === 'por_hora' || tipo === 'fijo' || tipo === 'porcentaje';
  }
  getTipoConceptoDisplay(tipo) {
    const tipoMap = {
      'fijo': 'Monto Fijo',
      'porcentaje': 'Porcentaje',
      'por_hora': 'Por Hora'
    };
    return tipo ? tipoMap[tipo] || tipo : 'No especificado';
  }
  toggleTimeFields(concepto) {
    const desde = concepto.get('desde');
    const hasta = concepto.get('hasta');
    if (desde?.value || hasta?.value) {
      desde?.setValue(null);
      hasta?.setValue(null);
    } else {
      desde?.setValue('06:00');
      hasta?.setValue('22:00');
    }
  }
  inicializarDiasPersonalizadosParaTarifa(tarifaIndex) {
    if (!this.diasPersonalizados[tarifaIndex]) {
      this.diasPersonalizados[tarifaIndex] = {
        1: false,
        2: false,
        3: false,
        4: false,
        5: false,
        6: false,
        7: false // Domingo
      };
    }
  }
  getDiasPersonalizados(tarifaIndex) {
    if (!this.diasPersonalizados[tarifaIndex]) {
      this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    }
    return this.diasPersonalizados[tarifaIndex];
  }
  resetDiasPersonalizadosParaTarifa(tarifaIndex) {
    this.diasPersonalizados[tarifaIndex] = {
      1: false,
      2: false,
      3: false,
      4: false,
      5: false,
      6: false,
      7: false
    };
  }
  conditionalTimeValidator(dependentField) {
    return control => {
      if (!control.parent) return null;
      const isOpen = control.parent.get(dependentField)?.value;
      if (isOpen && !control.value) {
        return {
          required: true
        };
      }
      return null;
    };
  }
  getFilteredTipoCobroOptions(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const clasificador = tarifaGroup.get('clasificadorRuatDto')?.value;
    if (!clasificador || !clasificador.nombre) {
      return this.tipoCobroOptions;
    }
    const nombre = clasificador.nombre.toLowerCase();
    const matchingKeys = Object.keys(this.clasificadorTipoCobroMap).filter(key => nombre.includes(key));
    if (matchingKeys.length === 0) {
      return this.tipoCobroOptions;
    }
    const allowedTipoCobros = new Set();
    matchingKeys.forEach(key => {
      this.clasificadorTipoCobroMap[key].forEach(tipo => allowedTipoCobros.add(tipo));
    });
    return this.tipoCobroOptions.filter(option => allowedTipoCobros.has(option.value));
  }
  onClasificadorRuatChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const clasificador = tarifaGroup.get('clasificadorRuatDto')?.value;
    if (clasificador && clasificador.nombre) {
      const nombre = clasificador.nombre.toLowerCase();
      if (nombre.includes('hora')) {
        tarifaGroup.patchValue({
          tipoCobro: 'por_hora'
        });
      } else if (nombre.includes('mensualidad')) {
        tarifaGroup.patchValue({
          tipoCobro: 'mensualidad'
        });
      } else if (nombre.includes('evento')) {
        tarifaGroup.patchValue({
          tipoCobro: 'por_evento'
        });
      }
      this.onTipoCobroChange(tarifaIndex);
    }
  }
  getTodayDate() {
    const today = new Date();
    return today.toISOString().split('T')[0];
  }
  formDataSet() {
    if (this.row) {
      this.fieldsForm.patchValue({
        uuid: this.row.uuid,
        estadoActual: this.row.estadoActual,
        codigo: this.row.codigo,
        nombre: this.row.nombre,
        categoria: this.row.categoria,
        dimensiones: this.row.dimensiones,
        capacidadPersonas: this.row.capacidadPersonas,
        tieneIluminacion: this.row.tieneIluminacion,
        observaciones: this.row.observaciones,
        accesoLibre: this.row.accesoLibre,
        requiereAprobacion: this.row.requiereAprobacion,
        horasMinimaAprobacion: this.row.horasMinimaAprobacion,
        maxDuracionAutoAprobacion: this.row.maxDuracionAutoAprobacion,
        maxPersonasAutoAprobacion: this.row.maxPersonasAutoAprobacion,
        superficieDto: this.row.superficieDto,
        complejoDto: this.row.complejoDto
      });
      const horariosFijosArray = this.fieldsForm.get('horariosFijosDtoList');
      horariosFijosArray.clear();
      if (this.row.horariosFijosDtoList && this.row.horariosFijosDtoList.length > 0) {
        this.row.horariosFijosDtoList.forEach(horario => {
          horariosFijosArray.push(this.createHorarioFijoFormGroup({
            uuid: horario.uuid,
            dia: horario.dia,
            abierto: horario.abierto,
            horaApertura: horario.horaApertura,
            horaCierre: horario.horaCierre,
            observaciones: horario.observaciones
          }));
        });
      } else {
        this.initializeDefaultHorariosFijos();
      }
      const horariosExcepcionesArray = this.fieldsForm.get('horariosExcepcionesDtoList');
      horariosExcepcionesArray.clear();
      if (this.row.horariosExcepcionesDtoList && this.row.horariosExcepcionesDtoList.length > 0) {
        this.row.horariosExcepcionesDtoList.forEach(horario => {
          horariosExcepcionesArray.push(this.createHorarioExcepcionFormGroup(horario));
        });
      }
      const tarifasArray = this.fieldsForm.get('tarifasDtoList');
      tarifasArray.clear();
      if (this.row.tarifasDtoList && this.row.tarifasDtoList.length > 0) {
        this.row.tarifasDtoList.forEach((tarifa, index) => {
          const tarifaGroup = this.createTarifaFormGroup({
            ...tarifa,
            sesionesIncluidas: tarifa.sesionesIncluidas ? Number(tarifa.sesionesIncluidas) : null
          });
          if (tarifa.frecuencia === 'personalizado' && tarifa.sesionesIncluidas) {
            this.inicializarDiasPersonalizadosDesdeSesiones(index, Number(tarifa.sesionesIncluidas));
          }
          if (tarifa.conceptosDtos && tarifa.conceptosDtos.length > 0) {
            const conceptosArray = tarifaGroup.get('conceptosDtos');
            tarifa.conceptosDtos.forEach(concepto => {
              conceptosArray.push(this.createConceptoFormGroup(concepto));
            });
          }
          tarifasArray.push(tarifaGroup);
        });
      } else {
        tarifasArray.push(this.createTarifaFormGroup());
      }
    }
  }
  inicializarDiasPersonalizadosDesdeSesiones(tarifaIndex, sesiones) {
    this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    const dias = this.convertirSesionesToDias(sesiones);
    dias.forEach(dia => {
      this.diasPersonalizados[tarifaIndex][dia] = true;
    });
  }
  get form() {
    return this.fieldsForm.controls;
  }
  get horariosFijos() {
    return this.fieldsForm.get('horariosFijosDtoList');
  }
  get horariosExcepciones() {
    return this.fieldsForm.get('horariosExcepcionesDtoList');
  }
  get tarifas() {
    return this.fieldsForm.get('tarifasDtoList');
  }
  getConceptos(tarifaIndex) {
    return this.tarifas.at(tarifaIndex).get('conceptosDtos');
  }
  addHorarioExcepcion() {
    this.horariosExcepciones.push(this.createHorarioExcepcionFormGroup());
  }
  removeHorarioExcepcion(index) {
    this.horariosExcepciones.removeAt(index);
  }
  addHorarioFijo() {
    this.horariosFijos.push(this.createHorarioFijoFormGroup());
  }
  removeHorarioFijo(index) {
    if (this.horariosFijos.length > 1) {
      this.horariosFijos.removeAt(index);
      this.showObsDropdown.splice(index, 1);
    }
  }
  toggleObservacionesDropdown(index) {
    this.showObsDropdown[index] = !this.showObsDropdown[index];
    this.showObsDropdown.forEach((val, i) => {
      if (i !== index) this.showObsDropdown[i] = false;
    });
  }
  setObservacion(index, text) {
    const horario = this.horariosFijos.at(index);
    horario.get('observaciones')?.setValue(text);
    this.showObsDropdown[index] = false;
  }
  addTarifa() {
    const newIndex = this.tarifas.length;
    this.tarifas.push(this.createTarifaFormGroup());
    this.inicializarDiasPersonalizadosParaTarifa(newIndex);
  }
  removeTarifa(index) {
    const tarifaGroup = this.tarifas.at(index);
    const uuid = tarifaGroup.get('uuid')?.value;
    if (uuid) {
      const modalRef = this.modalService.open(this.deleteConfirmation);
      modalRef.result.then(result => {
        if (result === 'delete') {
          this.deleteTarifa(uuid).subscribe({
            next: result => {
              if (result) {
                this.tarifas.removeAt(index);
                delete this.diasPersonalizados[index];
              }
            },
            error: err => {
              console.error('Error while deleting tarifa', err);
            }
          });
        }
      }, reason => {});
    } else {
      this.tarifas.removeAt(index);
      delete this.diasPersonalizados[index];
    }
  }
  addConcepto(tarifaIndex) {
    this.getConceptos(tarifaIndex).push(this.createConceptoFormGroup());
  }
  removeConcepto(tarifaIndex, conceptoIndex) {
    this.getConceptos(tarifaIndex).removeAt(conceptoIndex);
  }
  getTipoCobro(tipo) {
    const tipoMap = {
      'por_hora': 'Por hora',
      'por_persona': 'Por persona',
      'por_evento': 'Por evento',
      'mensualidad': 'Mensualidad',
      'por_club': 'Por club'
    };
    return tipo ? tipoMap[tipo] || tipo : 'No especificado';
  }
  saveData() {
    this.submitted = true;
    this.markFormGroupTouched(this.fieldsForm);
    if (this.fieldsForm.valid) {
      const formData = this.prepareFormData();
      if (this.fieldsForm.get('uuid')?.value) {
        this.updateField(formData).subscribe({
          next: result => {
            if (result && result.status === 'OK') {
              this.notify('Campo deportivo actualizado exitosamente', 'success');
              this.closeModal();
              this.emitList.emit();
            }
          },
          error: error => {
            this.notify('Error en actualización: ' + error.message, 'error');
            this.submitted = false;
          }
        });
      } else {
        this.addField(formData).subscribe({
          next: result => {
            if (result && result.status === 'OK') {
              this.notify('Campo deportivo creado exitosamente', 'success');
              this.closeModal();
              this.emitList.emit();
            }
          },
          error: error => {
            this.notify('Error en creación: ' + error.message, 'error');
            this.submitted = false;
          }
        });
      }
    } else {
      this.showDetailedValidationErrors();
      this.currentStep = 1;
    }
  }
  showDetailedValidationErrors() {
    let errorMessage = 'Complete todos los campos requeridos. Problemas encontrados:\n\n';
    if (this.fieldsForm.get('horariosFijosDtoList')?.errors?.['overlappingSchedules']) {
      errorMessage += '• ❌ Horarios superpuestos encontrados (mismo día con horarios que se solapan)\n';
    }
    const basicFields = [{
      name: 'codigo',
      label: 'Código'
    }, {
      name: 'nombre',
      label: 'Nombre'
    }, {
      name: 'categoria',
      label: 'Categoría'
    }, {
      name: 'complejoDto',
      label: 'Complejo'
    }, {
      name: 'superficieDto',
      label: 'Superficie'
    }];
    basicFields.forEach(field => {
      if (this.fieldsForm.get(field.name)?.errors?.['required']) {
        errorMessage += `• ${field.label} es requerido\n`;
      }
    });
    this.horariosFijos.controls.forEach((control, index) => {
      const formGroup = control;
      const dia = formGroup.get('dia')?.value;
      const abierto = formGroup.get('abierto')?.value;
      if (!formGroup.valid) {
        errorMessage += `• Horario ${index + 1} (${this.getDiaLabel(dia)}):\n`;
        if (formGroup.get('dia')?.errors?.['required']) {
          errorMessage += '  - Día es requerido\n';
        }
        if (abierto) {
          if (formGroup.get('horaApertura')?.errors?.['required']) {
            errorMessage += '  - Hora apertura es requerida\n';
          }
          if (formGroup.get('horaCierre')?.errors?.['required']) {
            errorMessage += '  - Hora cierre es requerida\n';
          }
          if (formGroup.errors?.['invalidTimeRange']) {
            errorMessage += '  - Hora cierre debe ser posterior a hora apertura\n';
          }
        }
      }
    });
    this.tarifas.controls.forEach((control, index) => {
      const formGroup = control;
      if (!formGroup.valid) {
        errorMessage += `• Tarifa ${index + 1}:\n`;
        if (formGroup.get('fechaInicio')?.errors?.['required']) {
          errorMessage += '  - Fecha inicio es requerida\n';
        }
        if (formGroup.get('precioBase')?.errors?.['required']) {
          errorMessage += '  - Precio base es requerido\n';
        }
        if (formGroup.get('tipoCobro')?.errors?.['required']) {
          errorMessage += '  - Tipo de cobro es requerido\n';
        }
        if (formGroup.get('clasificadorRuatDto')?.errors?.['required']) {
          errorMessage += '  - Clasificador RUAT es requerido\n';
        }
        if (formGroup.get('categoriasDtoList')?.errors?.['required']) {
          errorMessage += '  - Al menos una categoría es requerida\n';
        }
      }
    });
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: 'Errores de Validación',
      html: errorMessage.replace(/\n/g, '<br>'),
      icon: 'warning',
      confirmButtonText: 'Entendido'
    });
  }
  getDiaLabel(diaValue) {
    const dia = this.diaOptions.find(d => d.value === diaValue);
    return dia ? dia.label : diaValue;
  }
  prepareFormData() {
    const formValue = this.fieldsForm.value;
    const datos = {
      estadoActual: formValue.estadoActual,
      codigo: formValue.codigo,
      nombre: formValue.nombre,
      categoria: formValue.categoria,
      dimensiones: formValue.dimensiones,
      capacidadPersonas: formValue.capacidadPersonas || 0,
      tieneIluminacion: formValue.tieneIluminacion,
      observaciones: formValue.observaciones,
      accesoLibre: formValue.accesoLibre,
      requiereAprobacion: formValue.requiereAprobacion,
      horasMinimaAprobacion: formValue.requiereAprobacion ? formValue.horasMinimaAprobacion : null,
      maxDuracionAutoAprobacion: !formValue.requiereAprobacion ? formValue.maxDuracionAutoAprobacion : null,
      maxPersonasAutoAprobacion: !formValue.requiereAprobacion ? formValue.maxPersonasAutoAprobacion : null,
      complejoDto: formValue.complejoDto,
      superficieDto: formValue.superficieDto,
      horariosFijosDtoList: formValue.horariosFijosDtoList.map(h => ({
        uuid: h.uuid || undefined,
        dia: h.dia,
        abierto: h.abierto,
        horaApertura: this.formatTimeForBackend(h.horaApertura),
        horaCierre: this.formatTimeForBackend(h.horaCierre),
        observaciones: h.observaciones || null
      })),
      horariosExcepcionesDtoList: formValue.horariosExcepcionesDtoList.map(h => ({
        uuid: h.uuid || undefined,
        fecha: h.fecha,
        tipoExcepcion: h.tipoExcepcion,
        horaApertura: this.formatTimeForBackend(h.horaApertura),
        horaCierre: this.formatTimeForBackend(h.horaCierre),
        motivo: h.motivo || null
      })),
      tarifasDtoList: formValue.tarifasDtoList.map(t => ({
        uuid: t.uuid || undefined,
        precioBase: parseFloat(t.precioBase),
        fechaInicio: t.fechaInicio,
        fechaFin: t.fechaFin || null,
        desde: this.formatTimeForBackend(t.desde),
        hasta: this.formatTimeForBackend(t.hasta),
        descripcion: t.descripcion || null,
        observaciones: t.observaciones || null,
        activo: t.activo,
        tipoCobro: t.tipoCobro,
        frecuencia: t.tipoCobro === 'mensualidad' ? t.frecuencia : null,
        sesionesIncluidas: t.tipoCobro === 'mensualidad' ? parseInt(t.sesionesIncluidas) : null,
        clasificadorRuatDto: t.clasificadorRuatDto,
        categoriasDtoList: t.categoriasDtoList.map(cat => ({
          categoriaDto: cat
        })),
        conceptosDtos: t.conceptosDtos?.map(c => ({
          uuid: c.uuid || undefined,
          concepto: c.concepto,
          tipo: c.tipo,
          valor: parseFloat(c.valor),
          desde: this.formatTimeForBackend(c.desde),
          hasta: this.formatTimeForBackend(c.hasta),
          activo: c.activo
        })) || []
      }))
    };
    if (formValue.uuid) {
      datos.uuid = formValue.uuid;
    }
    datos.fechaCreacion = new Date();
    return datos;
  }
  onTipoCobroChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const tipoCobro = tarifaGroup.get('tipoCobro')?.value;
    if (tipoCobro !== 'mensualidad') {
      tarifaGroup.patchValue({
        frecuencia: '',
        sesionesIncluidas: null
      });
    }
  }
  onFrecuenciaChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const frecuenciaValue = tarifaGroup.get('frecuencia')?.value;
    const frecuenciaConfig = this.frecuenciaOptions.find(f => f.value === frecuenciaValue);
    if (frecuenciaConfig) {
      if (frecuenciaConfig.value === 'personalizado') {
        this.resetDiasPersonalizadosParaTarifa(tarifaIndex);
        tarifaGroup.patchValue({
          sesionesIncluidas: 0
        });
      } else {
        tarifaGroup.patchValue({
          sesionesIncluidas: frecuenciaConfig.sesiones
        });
      }
    }
  }
  onDiaPersonalizadoChange(tarifaIndex, diaId, event) {
    const isChecked = event.target.checked;
    this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    this.diasPersonalizados[tarifaIndex][diaId] = isChecked;
    const diasSeleccionados = Object.keys(this.diasPersonalizados[tarifaIndex]).filter(key => this.diasPersonalizados[tarifaIndex][parseInt(key)]).map(key => parseInt(key)).sort();
    const sesionesValue = this.calcularSesionesFromDias(diasSeleccionados);
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    tarifaGroup.patchValue({
      sesionesIncluidas: sesionesValue
    });
  }
  getDisplaySesionesFromNumber(sesiones) {
    if (!sesiones || sesiones === 0) {
      return '❌ Ningún día seleccionado';
    }
    const diasSemanales = [{
      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'
    }];
    const sesionesStr = sesiones.toString();
    const selectedDayIds = sesionesStr.split('').map(Number);
    const displayParts = diasSemanales.map(dia => {
      const isSelected = selectedDayIds.includes(dia.id);
      return `${isSelected ? '✅' : '❌'} ${dia.name}`;
    });
    return displayParts.join('');
  }
  getDisplaySesionesFromDias(diasObj) {
    const diasSemanales = [{
      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'
    }];
    const displayParts = diasSemanales.map(dia => {
      const isSelected = diasObj[dia.id];
      return `${isSelected ? '✅' : '❌'} ${dia.name}`;
    });
    return displayParts.join(' • ');
  }
  calcularSesionesFromDias(dias) {
    if (dias.length === 0) return 0;
    return parseInt(dias.join(''));
  }
  convertirSesionesToDias(sesiones) {
    if (!sesiones || sesiones === 0) return [];
    return sesiones.toString().split('').map(Number);
  }
  markFormGroupTouched(formGroup) {
    Object.keys(formGroup.controls).forEach(key => {
      const control = formGroup.get(key);
      control?.markAsTouched();
      if (control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroup || control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormArray) {
        this.markFormGroupTouched(control);
      }
    });
  }
  generateCodigo() {
    const timestamp = Date.now().toString().slice(-6);
    const randomPart = Math.floor(Math.random() * 100).toString().padStart(2, '0');
    const codigo = `CAMPO-${timestamp}${randomPart}`;
    this.fieldsForm.patchValue({
      codigo: codigo
    });
  }
  formatDate(date) {
    if (!date) return '-';
    const d = new Date(date);
    return d.toLocaleDateString('es-BO');
  }
  extractTimeHHMM(time) {
    if (!time) return '';
    if (time.length === 8 && time.split(':').length === 3) {
      return time.substring(0, 5);
    }
    return time;
  }
  formatTimeForBackend(time) {
    if (!time) return null;
    if (time.length === 8 && time.split(':').length === 3) {
      return time;
    }
    if (time.length === 5 && time.split(':').length === 2) {
      return time + ':00';
    }
    return time;
  }
  /* API Requests */
  getFacilities() {
    this.complejoService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.complejosList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar los complejos', 'error');
      }
    });
  }
  getSurfaces() {
    this.surfaceService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.surfacesList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar las superficies', 'error');
      }
    });
  }
  getClasificadoresRuat() {
    this.clasificadoresRuatService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.clasificadoresRuatList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar los clasificadores RUAT', 'error');
      }
    });
  }
  getCategorias() {
    this.categoriaService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoriasList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar las categorías', 'error');
      }
    });
  }
  addField(datos) {
    return this.fieldService.save(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.tap)(result => {
      if (result.status !== 'OK') {
        throw new Error(result.message || 'Error al crear el campo deportivo');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.catchError)(error => {
      throw error;
    }));
  }
  updateField(campoData) {
    return this.fieldService.update(campoData).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.tap)(result => {
      if (result.status !== 'OK') {
        throw new Error(result.message || 'Error al actualizar el campo deportivo');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.catchError)(error => {
      throw error;
    }));
  }
  deleteData(uuid) {
    this.fieldService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'success');
          this.modalService.dismissAll();
          this.emitList.emit();
          this.closeModal();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  deleteTarifa(uuid) {
    return this.tarifaService.delete(uuid).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.tap)(data => {
      if (data.status === 'OK') {
        this.notify('Tarifa eliminada exitosamente', 'success');
      } else {
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'No se pudo eliminar la Tarifa',
          confirmButtonColor: '#299cdb'
        });
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.catchError)(error => {
      sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
        text: error,
        confirmButtonColor: '#299cdb',
        icon: 'error'
      });
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_15__.of)(false);
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_16__.map)(response => true), (0,rxjs__WEBPACK_IMPORTED_MODULE_14__.catchError)(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_15__.of)(false)));
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  goToStep(step) {
    this.currentStep = step;
  }
  nextStep() {
    if (this.currentStep < 3) {
      this.currentStep++;
    }
  }
  previousStep() {
    if (this.currentStep > 1) {
      this.currentStep--;
    }
  }
  closeModal() {
    this.submitted = false;
    this.currentStep = 1;
    this.showObsDropdown = [];
    this.fieldsForm.reset();
    this.modalService.dismissAll();
  }
  static {
    this.ɵfac = function ModalFieldsComponent_Factory(t) {
      return new (t || ModalFieldsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_5__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_6__.SuperficiesService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_tarifa_service__WEBPACK_IMPORTED_MODULE_7__.TarifaService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_8__.ClasificadorRuatService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__.CategoriasService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
      type: ModalFieldsComponent,
      selectors: [["app-modal-field"]],
      viewQuery: function ModalFieldsComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](_c0, 7);
          _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.deleteConfirmation = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.deleteModel = _t.first);
        }
      },
      inputs: {
        accion: "accion",
        row: "row"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵStandaloneFeature"]],
      decls: 5,
      vars: 2,
      consts: [["deleteConfirmation", ""], ["deleteModel", ""], ["class", "modal-content", 4, "ngIf", "ngIfElse"], [1, "modal-content"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["class", "tablelist-form", "autocomplete", "off", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-store-3-line", "me-2"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body", "p-0"], ["role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-justified"], [1, "nav-item"], ["role", "tab", 1, "nav-link", "py-2", 3, "click"], [1, "ri-information-line", "d-block", "d-sm-none"], [1, "d-none", "d-sm-inline"], [1, "ri-information-line", "me-1"], [1, "ri-calendar-line", "d-block", "d-sm-none"], [1, "ri-calendar-line", "me-1"], [1, "ri-money-dollar-circle-line", "d-block", "d-sm-none"], [1, "ri-money-dollar-circle-line", "me-1"], [1, "tab-content", "p-3", 2, "max-height", "65vh", "overflow-y", "auto"], ["type", "hidden", "formControlName", "uuid"], [1, "tab-pane"], [1, "row", "g-2"], [1, "col-lg-4", "col-md-6"], [1, "form-label", "mb-0"], [1, "text-danger"], ["bindLabel", "nombre", "formControlName", "complejoDto", "placeholder", "Seleccione", 3, "items", "ngClass"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["bindLabel", "descripcion", "formControlName", "superficieDto", "placeholder", "Seleccione", 3, "items", "ngClass"], ["formControlName", "categoria", 1, "form-select", "form-select", 3, "ngClass"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-lg-6", "col-md-8"], ["type", "text", "placeholder", "Nombre del campo", "formControlName", "nombre", "maxlength", "250", 1, "form-control", "form-control", 3, "ngClass"], [1, "col-lg-3", "col-md-4"], [1, "input-group"], ["type", "text", "placeholder", "CAMPO-001", "formControlName", "codigo", "maxlength", "50", 1, "form-control", 3, "ngClass"], ["type", "button", "title", "Generar nuevo c\u00F3digo", 1, "btn", "btn-outline-secondary", 3, "click"], [1, "ri-refresh-line"], ["formControlName", "estadoActual", 1, "form-select", "form-select", 3, "ngClass"], ["type", "number", "placeholder", "0", "formControlName", "capacidadPersonas", "min", "0", 1, "form-control", "form-control"], ["type", "text", "placeholder", "105m x 68m", "formControlName", "dimensiones", "maxlength", "100", 1, "form-control", "form-control"], [1, "col-lg-3", "col-6"], [1, "form-check", "form-switch", "mt-4"], ["type", "checkbox", "id", "tieneIluminacion", "formControlName", "tieneIluminacion", 1, "form-check-input"], ["for", "tieneIluminacion", 1, "form-check-label"], ["type", "checkbox", "id", "accesoLibre", "formControlName", "accesoLibre", 1, "form-check-input"], ["for", "accesoLibre", 1, "form-check-label"], [1, "col-12", "mt-3"], [1, "card", "border", "mb-0"], [1, "card-header", "bg-light", "py-2"], [1, "mb-0", "small"], [1, "ri-shield-check-line", "me-1"], [1, "card-body", "p-2"], [1, "form-check", "form-switch"], ["type", "checkbox", "id", "requiereAprobacion", "formControlName", "requiereAprobacion", 1, "form-check-input"], ["for", "requiereAprobacion", 1, "form-check-label", "fw-semibold", "small"], [1, "text-muted", "d-block"], ["class", "col-lg-4 col-md-6", 4, "ngIf"], [1, "col-12"], ["rows", "2", "placeholder", "Observaciones", "formControlName", "observaciones", 1, "form-control", "form-control-sm"], [1, "mb-3"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-2"], [1, "ri-calendar-check-line", "me-1"], ["type", "button", 1, "btn", "btn-sm", "btn-primary", 3, "click", "disabled"], [1, "ri-add-line"], ["formArrayName", "horariosFijosDtoList", 1, "table-responsive"], [1, "table", "table-sm", "table-bordered", "align-middle", "mb-0"], [1, "table-light"], [1, "py-1", "small", 2, "width", "18%"], [1, "text-center", "py-1", "small", 2, "width", "10%"], [1, "py-1", "small", 2, "width", "28%"], [1, "py-1", 2, "width", "8%"], [3, "formGroupName", 4, "ngFor", "ngForOf"], [1, "ri-calendar-event-line", "me-1"], ["type", "button", 1, "btn", "btn-sm", "btn-warning", 3, "click", "disabled"], ["formArrayName", "horariosExcepcionesDtoList", 1, "table-responsive"], [1, "py-1", "small", 2, "width", "20%"], [1, "py-1", "small", 2, "width", "22%"], [1, "py-1", "small", 2, "width", "15%"], [1, "py-1", "small", 2, "width", "23%"], [1, "py-1", 2, "width", "5%"], [4, "ngIf"], ["formArrayName", "tarifasDtoList"], ["class", "card mb-2 border", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-success", "btn-sm", 3, "click", "disabled"], [1, "modal-footer", "bg-light", "py-2"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], ["class", "d-flex align-items-center", 4, "ngIf"], [1, "hstack", "gap-2", "justify-content-between", "w-100"], ["type", "button", "class", "btn btn-secondary btn-sm", 3, "click", 4, "ngIf"], [1, "ms-auto", "hstack", "gap-2"], ["type", "button", 1, "btn", "btn-light", "btn-sm", 3, "click"], [1, "ri-close-line"], ["type", "button", "class", "btn btn-primary btn-sm", 3, "click", 4, "ngIf"], ["type", "submit", "class", "btn btn-success btn-sm", 4, "ngIf"], [1, "invalid-feedback", "d-block"], [3, "value"], [1, "invalid-feedback"], [1, "form-label", "mb-0", "small"], ["type", "number", "placeholder", "24", "formControlName", "horasMinimaAprobacion", "min", "0", "step", "1", 1, "form-control", "form-control-sm"], ["type", "number", "placeholder", "120", "formControlName", "maxDuracionAutoAprobacion", "min", "0", "step", "15", 1, "form-control", "form-control-sm"], ["type", "number", "placeholder", "20", "formControlName", "maxPersonasAutoAprobacion", "min", "0", "step", "1", 1, "form-control", "form-control-sm"], [3, "formGroupName"], [1, "py-1"], ["formControlName", "dia", 1, "form-select", "form-select-sm", 3, "ngClass"], [1, "text-center", "py-1"], [1, "form-check", "form-switch", "d-flex", "justify-content-center", "mb-0"], ["type", "checkbox", "formControlName", "abierto", 1, "form-check-input", 3, "id"], ["type", "time", "formControlName", "horaApertura", 1, "form-control", "form-control-sm", 3, "disabled", "ngClass"], ["type", "time", "formControlName", "horaCierre", 1, "form-control", "form-control-sm", 3, "disabled", "ngClass"], [1, "input-group", "input-group-sm"], ["type", "text", "formControlName", "observaciones", "placeholder", "Opcional", 1, "form-control", "form-control-sm", 3, "id"], ["type", "button", 1, "btn", "btn-outline-secondary", "btn-sm", 3, "click", "id"], [1, "ri-add-circle-line"], [1, "dropdown-menu", 2, "position", "absolute", "z-index", "1000"], ["href", "javascript:void(0)", 1, "dropdown-item", "small", 3, "click"], ["type", "button", "class", "btn btn-sm btn-danger", 3, "disabled", "click", 4, "ngIf"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click", "disabled"], [1, "ri-delete-bin-line"], ["type", "date", "formControlName", "fecha", 1, "form-control", "form-control-sm", 3, "ngClass"], ["formControlName", "tipoExcepcion", 1, "form-select", "form-select-sm", 3, "ngClass"], ["type", "time", "formControlName", "horaApertura", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "horaCierre", 1, "form-control", "form-control-sm"], ["type", "text", "formControlName", "motivo", "placeholder", "Motivo", 1, "form-control", "form-control-sm"], ["colspan", "6", 1, "text-center", "text-muted", "py-2", "small"], [1, "card", "mb-2", "border", 3, "formGroupName"], [1, "card-header", "bg-light", "d-flex", "align-items-center", "p-2"], [1, "badge", "bg-primary", "me-2"], [1, "form-check", "form-switch", "mb-0"], ["type", "checkbox", "formControlName", "activo", 1, "form-check-input", 3, "id"], [1, "form-check-label", "small", 3, "for"], ["type", "button", "class", "btn btn-sm btn-danger ms-auto", 3, "disabled", "click", 4, "ngIf"], [1, "col-lg-8", "col-6"], ["bindLabel", "nombre", "formControlName", "clasificadorRuatDto", "placeholder", "Seleccionar", 1, "ng-select-sm", 3, "change", "items", "ngClass"], [1, "col-lg-4", "col-6"], ["formControlName", "tipoCobro", 1, "form-select", "form-select-sm", 3, "change", "ngClass"], ["class", "col-lg-3 col-6", 4, "ngIf"], ["class", "col-lg-9 col-6", 4, "ngIf"], [1, "col-lg-6"], ["type", "text", "placeholder", "Tarifa diurna", "formControlName", "descripcion", 1, "form-control", "form-control-sm"], [1, "col-lg-4"], ["bindLabel", "nombre", "formControlName", "categoriasDtoList", "placeholder", "Seleccione", 1, "ng-select-sm", 3, "items", "multiple", "ngClass"], [1, "col-lg-2"], ["type", "number", "step", "0.01", "placeholder", "150.00", "formControlName", "precioBase", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "row", "g-2", "mt-1"], [1, "text-muted"], [1, "ri-time-line", "me-1"], ["type", "date", "formControlName", "fechaInicio", 1, "form-control", "form-control-sm", 3, "ngClass"], ["type", "date", "formControlName", "fechaFin", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "desde", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "hasta", 1, "form-control", "form-control-sm"], ["rows", "2", "formControlName", "observaciones", "placeholder", "Observaciones adicionales", 1, "form-control", "form-control-sm"], [1, "card", "bg-light", "border-0", "mb-0"], [1, "card-header", "d-flex", "justify-content-between", "align-items-center", "py-1", "px-2"], [1, "las", "la-plus-square", "me-1"], ["type", "button", 1, "btn", "btn-sm", "btn-success", "py-0", "px-2", 3, "click", "disabled"], ["formArrayName", "conceptosDtos"], ["class", "text-muted text-center py-1", 4, "ngIf"], ["class", "border rounded p-2 mb-2", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", "ms-auto", 3, "click", "disabled"], ["formControlName", "frecuencia", 1, "form-select", "form-select-sm", 3, "change", "ngClass"], [1, "col-lg-9", "col-6"], [1, "border", "rounded", "p-2", "bg-light"], [1, "small"], [1, "fw-semibold", "d-block", "mb-2"], [1, "row", "g-1"], ["class", "col-4", 4, "ngFor", "ngForOf"], [1, "mt-2", "p-2", "border-top", "bg-white", "rounded"], [1, "fw-semibold"], [1, "mt-1", "small"], [1, "col-4"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "change", "id", "checked"], [1, "text-muted", "text-center", "py-1"], [1, "border", "rounded", "p-2", "mb-2", 3, "formGroupName"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-1"], [1, "badge", "bg-secondary", "small"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", "py-0", "px-2", 3, "click", "disabled"], ["type", "text", "placeholder", "Ej: Luz, Agua, Mantenimiento", "formControlName", "concepto", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "col-lg-3", "col-md-3", "col-6"], ["formControlName", "tipo", 1, "form-select", "form-select-sm", 3, "ngClass"], ["type", "number", "step", "0.01", "min", "0", "placeholder", "0.00", "formControlName", "valor", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "col-lg-2", "col-12"], [1, "form-check", "form-switch", "mt-2"], ["class", "col-12", 4, "ngIf"], [1, "bg-light", "rounded", "p-2"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-0"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-primary", "py-0", "px-2", 3, "click"], ["class", "row g-2", 4, "ngIf"], [1, "col-6"], ["type", "time", "formControlName", "desde", "placeholder", "HH:MM", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "hasta", "placeholder", "HH:MM", 1, "form-control", "form-control-sm"], [1, "text-info"], [1, "alert", "alert-info", "py-1", "px-2", "mb-0"], ["class", "ms-2", 4, "ngIf"], [1, "badge", "ms-2", 3, "ngClass"], [1, "ms-2"], [1, "d-flex", "align-items-center"], ["type", "button", 1, "btn", "btn-secondary", "btn-sm", 3, "click"], [1, "ri-arrow-left-line"], ["type", "button", 1, "btn", "btn-primary", "btn-sm", 3, "click"], [1, "ri-arrow-right-line"], ["type", "submit", 1, "btn", "btn-success", "btn-sm"], [1, "ri-save-line"], [1, "spinner-border", "spinner-border-sm", "me-2"], [1, "modal-header", "py-2"], [1, "modal-title"], ["type", "button", 1, "btn-close", 3, "click"], [1, "modal-body", "text-center", "py-3"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-3"], [1, "text-muted", "mb-0"], [1, "modal-footer", "py-2"], [1, "btn", "btn-link", "link-success", "btn-sm", 3, "click"], ["type", "button", 1, "btn", "btn-danger", "btn-sm", 3, "click"], ["class", "modal-content", 4, "ngIf"], ["type", "button", 1, "btn-close", 3, "click", "disabled"], [1, "modal-body", "py-3"], [1, "text-center"], [1, "mt-3", "pt-2"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4"], [1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", 1, "btn", "w-sm", "btn-danger", 3, "click", "disabled"], [1, "ri-delete-bin-line", "me-1", "align-middle"]],
      template: function ModalFieldsComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ModalFieldsComponent_div_0_Template, 6, 4, "div", 2)(1, ModalFieldsComponent_ng_template_1_Template, 19, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"])(3, ModalFieldsComponent_ng_template_3_Template, 1, 1, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          const deleteModel_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.accion !== "delete")("ngIfElse", deleteModel_r34);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormControlName, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupName, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormArrayName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_19__.TranslateModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__.NgSelectModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__.NgSelectComponent],
      styles: [".ng-select.ng-select-sm .ng-select-container {\n  min-height: 28px !important;\n  height: 28px !important;\n  font-size: 0.75rem !important;\n}\n  .ng-select.ng-select-multiple.ng-select-sm .ng-select-container {\n  min-height: 28px !important;\n  height: auto !important;\n  font-size: 0.75rem !important;\n}\n  .ng-select.ng-select-multiple.ng-select-sm .ng-input input {\n  font-size: 0.75rem !important;\n  padding: 0.125rem 0 !important;\n  height: auto !important;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2ZpZWxkL21vZGFsLWZpZWxkL21vZGFsLWZpZWxkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdJO0VBQ0UsMkJBQUE7RUFDQSx1QkFBQTtFQUNBLDZCQUFBO0FBRk47QUFRSTtFQUNFLDJCQUFBO0VBQ0EsdUJBQUE7RUFDQSw2QkFBQTtBQU5OO0FBVU07RUFDRSw2QkFBQTtFQUNBLDhCQUFBO0VBQ0EsdUJBQUE7QUFSUiIsInNvdXJjZXNDb250ZW50IjpbIjo6bmctZGVlcCB7XHJcbiAgLy8gU2luZ2xlIHNlbGVjdCAtIG1hdGNoIGZvcm0tc2VsZWN0LXNtIGV4YWN0bHlcclxuICAubmctc2VsZWN0Lm5nLXNlbGVjdC1zbSB7XHJcbiAgICAubmctc2VsZWN0LWNvbnRhaW5lciB7XHJcbiAgICAgIG1pbi1oZWlnaHQ6IDI4cHggIWltcG9ydGFudDtcclxuICAgICAgaGVpZ2h0OiAyOHB4ICFpbXBvcnRhbnQ7XHJcbiAgICAgIGZvbnQtc2l6ZTogMC43NXJlbSAhaW1wb3J0YW50O1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gTXVsdGlwbGUgc2VsZWN0IC0gbWF0Y2ggZm9ybS1zZWxlY3Qtc21cclxuICAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3Qtc20ge1xyXG4gICAgLm5nLXNlbGVjdC1jb250YWluZXIge1xyXG4gICAgICBtaW4taGVpZ2h0OiAyOHB4ICFpbXBvcnRhbnQ7XHJcbiAgICAgIGhlaWdodDogYXV0byAhaW1wb3J0YW50O1xyXG4gICAgICBmb250LXNpemU6IDAuNzVyZW0gIWltcG9ydGFudDtcclxuICAgIH1cclxuXHJcbiAgICAubmctaW5wdXQge1xyXG4gICAgICBpbnB1dCB7XHJcbiAgICAgICAgZm9udC1zaXplOiAwLjc1cmVtICFpbXBvcnRhbnQ7XHJcbiAgICAgICAgcGFkZGluZzogMC4xMjVyZW0gMCAhaW1wb3J0YW50O1xyXG4gICAgICAgIGhlaWdodDogYXV0byAhaW1wb3J0YW50O1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 31661:
/*!***************************************************************************!*\
  !*** ./src/app/pages/modals/field/modal-import/modal-import.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalImportComponent: () => (/* binding */ ModalImportComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! xlsx */ 13857);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 61873);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 70271);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/shared.module */ 93887);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/superficies.service */ 29977);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/clasificadorRuat.service */ 12341);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/data-table/data-table.component */ 54252);


















function ModalImportComponent_app_data_table_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "app-data-table", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("selectedItemEmitter", function ModalImportComponent_app_data_table_23_Template_app_data_table_selectedItemEmitter_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r1.getSeleccionados($event));
    });
    _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__["ɵɵproperty"]("loading", ctx_r1.loading)("itemsList", ctx_r1.titles)("allcontent", ctx_r1.listaTemporal);
  }
}
function ModalImportComponent_span_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "span", 22);
  }
}
class ModalImportComponent {
  constructor(activeModal, fieldService, complejoService, superficieService, categoriesService, clasificadorService) {
    this.activeModal = activeModal;
    this.fieldService = fieldService;
    this.complejoService = complejoService;
    this.superficieService = superficieService;
    this.categoriesService = categoriesService;
    this.clasificadorService = clasificadorService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.xlsxData = [];
    this.selectedItems = [];
    this.loading = false;
    this.listaTemporal = [];
    this.categoryList = [];
    this.clasificadoresList = [];
  }
  ngOnInit() {
    this.loadClasificadores();
    this.loadCategories();
  }
  cerrarModal() {
    this.activeModal.close();
  }
  cargarDatosDesdeExcel(event) {
    const file = event.target.files[0];
    if (file) {
      const reader = new FileReader();
      reader.readAsBinaryString(file);
      reader.onload = e => {
        let workBook = (0,xlsx__WEBPACK_IMPORTED_MODULE_10__.read)(reader.result, {
          type: 'binary'
        });
        let sheetNames = workBook.SheetNames;
        this.xlsxData = xlsx__WEBPACK_IMPORTED_MODULE_10__.utils.sheet_to_json(workBook.Sheets[sheetNames[0]]);
        this.listaTemporal = this.xlsxData;
        if (this.xlsxData.length <= 0) {
          this.loading = false;
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: 'El archivo no tiene datos para importar',
            icon: 'warning',
            confirmButtonColor: '#299cdb'
          });
        }
      };
    }
  }
  getSeleccionados(items) {
    this.selectedItems = items;
  }
  buscarItem(event) {
    const val = event.target.value.toLowerCase();
    const temp = this.listaTemporal.filter(l => {
      return l.Codigo?.toLowerCase().indexOf(val) !== -1 || l.Nombre?.toLowerCase().indexOf(val) !== -1 || l.Superficie?.toLowerCase().indexOf(val) !== -1 || !val;
    });
    this.xlsxData = temp;
  }
  showImportInstructions() {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: 'Instrucciones de Importación - Campos Deportivos',
      html: `
        <div class="text-start">
          <p><strong>Formato CSV requerido:</strong></p>
          <ul>
            <li><strong>Complejo:</strong> Nombre exacto del complejo (debe existir en el sistema)</li>
            <li><strong>Superficie:</strong> Tipo de superficie exacto (debe existir en el sistema)</li>
            <li><strong>Clasificador Ruat:</strong> Clasificador definido por RUAT (debe existir en el sistema)(ej: RESERVA CAMPOS DEPORTIVOS POR HORA)</li>
            <li><strong>Categorias de Tarifa:</strong> Nombres separados por "; " (ej: "FUTBOL; BASKETBALL")</li>
            <li><strong>Horarios:</strong> Formato "HH:MM:SS-HH:MM:SS" o "CERRADO" para cada día</li>
            <li><strong>Lista de Tarifas Concepto:</strong> "Concepto1 [tipo1]: valor1 (desde1-hasta1); Concepto2 [tipo2]: valor2"</li>
            <li><strong>Lista de Excepciones:</strong> "YYYY-MM-DD: tipo_excepcion (motivo) HH:MM:SS-HH:MM:SS"</li>
          </ul>
          
          <p><strong>Ejemplos completos:</strong></p>
          <ul>
            <li><strong>Categorias de Tarifa:</strong> "FUTBOL; BASKETBALL; VOLEY"</li>
            <li><strong>Conceptos:</strong> "luz [por_hora]: 2 (18:00:00-22:00:00); mantenimiento [fijo]: 10"</li>
            <li><strong>Excepciones:</strong> "2025-12-25: cerrado (Navidad); 2025-12-24: horario_especial 08:00:00-16:00:00"</li>
            <li><strong>Horarios:</strong> Lunes-Viernes: "08:00:00-22:00:00", Sábado: "08:00:00-18:00:00", Domingo: "CERRADO"</li>
          </ul>
          
          <p class="text-warning"><strong>Nota:</strong> Los complejos, superficies, Clasificadores Ruat y categorías deben existir previamente en el sistema.</p>
        </div>
      `,
      icon: 'info',
      confirmButtonColor: '#299cdb',
      width: '600px',
      confirmButtonText: 'Entendido'
    });
  }
  createRegisterfromXlsx(xlsxData) {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!xlsxData || xlsxData.length === 0) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Por favor seleccione registros para importar',
          icon: 'info',
          confirmButtonColor: '#299cdb'
        });
        return;
      }
      _this.showImportInstructions();
      _this.loading = true;
      try {
        const groupedData = _this.groupByCodigo(xlsxData);
        let successCount = 0;
        let errorCount = 0;
        const errors = [];
        for (const codigo in groupedData) {
          const rows = groupedData[codigo];
          try {
            if (_this.recordExists(codigo)) {
              console.warn(`Campo ${codigo} ya existe, se omite`);
              continue;
            }
            yield _this.createCampoDeportivo(rows);
            successCount++;
          } catch (error) {
            errorCount++;
            errors.push(`${codigo}: ${error.message}`);
            console.error(`Error importing ${codigo}:`, error);
          }
        }
        _this.loading = false;
        if (successCount > 0 && errorCount === 0) {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: `${successCount} campo(s) importado(s) correctamente`,
            icon: 'success',
            confirmButtonColor: '#299cdb'
          });
        } else if (successCount > 0 && errorCount > 0) {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            title: 'Importación parcial',
            html: `<b>${successCount}</b> exitosos<br><b>${errorCount}</b> con errores<br><br>
                 <small>Errores: ${errors.join('; ')}</small>`,
            icon: 'warning',
            confirmButtonColor: '#299cdb'
          });
        } else {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: 'No se pudo importar ningún registro',
            icon: 'error',
            confirmButtonColor: '#299cdb'
          });
        }
        _this.activeModal.close();
        _this.emitList.emit();
      } catch (error) {
        _this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Error al procesar la importación',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    })();
  }
  createCampoDeportivo(rows) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const firstRow = rows[0];
      try {
        const {
          complejo,
          superficie
        } = yield _this2.getComplejoAndSuperficie(firstRow.Complejo, firstRow.Superficie);
        const campoData = {
          estadoActual: firstRow.Estado || 'ACTIVO',
          codigo: firstRow.Codigo,
          nombre: firstRow.Nombre || firstRow.Codigo,
          categoria: firstRow.Categoria || 'A',
          dimensiones: firstRow.Dimensiones || '',
          capacidadPersonas: parseInt(firstRow.Capacidad) || 0,
          tieneIluminacion: _this2.parseBoolean(firstRow.Iluminacion),
          observaciones: '',
          accesoLibre: _this2.parseBoolean(firstRow['Acceso Libre']),
          requiereAprobacion: _this2.parseBoolean(firstRow['Requiere Aprobacion']),
          horasMinimaAprobacion: _this2.parseBoolean(firstRow['Requiere Aprobacion']) ? 24 : null,
          maxDuracionAutoAprobacion: !_this2.parseBoolean(firstRow['Requiere Aprobacion']) ? 2 : null,
          maxPersonasAutoAprobacion: !_this2.parseBoolean(firstRow['Requiere Aprobacion']) ? 10 : null,
          complejoDto: complejo,
          superficieDto: superficie,
          horariosFijosDtoList: _this2.prepareHorariosFijos(firstRow),
          horariosExcepcionesDtoList: _this2.prepareHorariosExcepciones(firstRow['Lista de Excepciones']),
          tarifasDtoList: _this2.prepareTarifas(rows)
        };
        const campoCreado = yield _this2.fieldService.save(campoData).toPromise();
        if (campoCreado.status !== 'OK') {
          throw new Error('Error al crear campo deportivo: ' + (campoCreado.message || 'Unknown error'));
        }
      } catch (error) {
        console.error('Error in createCampoDeportivo:', error);
        throw error;
      }
    })();
  }
  prepareHorariosFijos(row) {
    const horarios = [];
    const daysMapping = {
      'Lunes': 'lunes',
      'Martes': 'martes',
      'Miercoles': 'miercoles',
      'Jueves': 'jueves',
      'Viernes': 'viernes',
      'Sabado': 'sabado',
      'Domingo': 'domingo'
    };
    Object.keys(daysMapping).forEach(day => {
      const schedule = row[day];
      if (schedule && schedule !== '') {
        if (schedule === 'CERRADO') {
          horarios.push({
            dia: daysMapping[day],
            abierto: false,
            horaApertura: null,
            horaCierre: null,
            observaciones: null
          });
        } else {
          const [horaApertura, horaCierre] = this.parseSchedule(schedule);
          horarios.push({
            dia: daysMapping[day],
            abierto: true,
            horaApertura: this.formatTimeForBackend(horaApertura),
            horaCierre: this.formatTimeForBackend(horaCierre),
            observaciones: null
          });
        }
      }
    });
    return horarios;
  }
  prepareHorariosExcepciones(excepcionesString) {
    if (!excepcionesString || excepcionesString.trim() === '') {
      return [];
    }
    return excepcionesString.split(';').map(item => {
      const trimmed = item.trim();
      if (!trimmed) return null;
      const fechaMatch = trimmed.match(/^(\d{4}-\d{2}-\d{2}):\s*([a-z_]+)/);
      if (!fechaMatch) return null;
      const fecha = fechaMatch[1];
      const tipoExcepcion = fechaMatch[2];
      let motivo = '';
      const motivoMatch = trimmed.match(/\(([^)]+)\)/);
      if (motivoMatch) {
        motivo = motivoMatch[1].trim();
      }
      let horaApertura = '';
      let horaCierre = '';
      const horarioMatch = trimmed.match(/(\d{2}:\d{2}:\d{2})-(\d{2}:\d{2}:\d{2})/);
      if (horarioMatch) {
        horaApertura = horarioMatch[1];
        horaCierre = horarioMatch[2];
      }
      return {
        fecha: fecha,
        tipoExcepcion: tipoExcepcion,
        horaApertura: horaApertura ? this.formatTimeForBackend(horaApertura) : null,
        horaCierre: horaCierre ? this.formatTimeForBackend(horaCierre) : null,
        motivo: motivo || null
      };
    }).filter(item => item !== null);
  }
  prepareTarifas(rows) {
    return rows.filter(row => row['Tipo Cobro'] && row['Costo Base']).map(row => {
      let fechaInicio;
      try {
        fechaInicio = this.formatDate(row['Fecha Inicio'] || new Date().toISOString().split('T')[0]);
      } catch (error) {
        console.warn('Error formatting fechaInicio, using today:', error);
        fechaInicio = new Date().toISOString().split('T')[0];
      }
      let fechaFin = null;
      if (row['Fecha Fin'] && String(row['Fecha Fin']).trim() !== '') {
        try {
          fechaFin = this.formatDate(row['Fecha Fin']);
        } catch (error) {
          console.warn('Error formatting fechaFin, setting to null:', error);
          fechaFin = null;
        }
      }
      const tarifa = {
        precioBase: parseFloat(row['Costo Base']) || 0,
        fechaInicio: fechaInicio,
        fechaFin: fechaFin,
        desde: this.formatTimeForBackend(row['Desde Tarifa'] || '08:00:00'),
        hasta: this.formatTimeForBackend(row['Hasta Tarifa'] || '22:00:00'),
        descripcion: row['Descripcion Tarifa'] || 'Tarifa Importada',
        observaciones: null,
        activo: true,
        tipoCobro: row['Tipo Cobro'] || 'por_hora',
        frecuencia: null,
        sesionesIncluidas: null,
        clasificadorRuatDto: this.clasificadoresList.find(c => c.nombre === row['Clasificador Ruat']),
        categoriasDtoList: this.prepareTarifaCategorias(row['Categorias de Tarifa']),
        conceptosDtos: this.prepareTarifaConceptos(row['Lista de Tarifas Concepto'])
      };
      return tarifa;
    });
  }
  prepareTarifaCategorias(categoriasString) {
    if (!categoriasString || categoriasString.trim() === '') {
      return [];
    }
    const categoriaNames = categoriasString.split(';').map(name => name.trim()).filter(name => name !== '');
    if (categoriaNames.length === 0) {
      return [];
    }
    const categorias = categoriaNames.map(nombre => this.categoryList.find(c => c.nombre === nombre)).filter(Boolean);
    if (categorias.length === 0) {
      console.warn(`No se encontraron categorías para: ${categoriasString}`);
      return [];
    }
    return categorias.map(categoria => ({
      categoriaDto: categoria
    }));
  }
  prepareTarifaConceptos(conceptosString) {
    if (!conceptosString || conceptosString.trim() === '') {
      return [];
    }
    return conceptosString.split(';').map(item => {
      const trimmed = item.trim();
      if (!trimmed) return null;
      const conceptoMatch = trimmed.match(/^([^\[]+)(?:\s*\[([^\]]+)\])?(?::\s*([\d.]+))?(?:\s*\(([^)]+)\))?/);
      if (!conceptoMatch) return null;
      const concepto = conceptoMatch[1].trim();
      const tipo = conceptoMatch[2] || 'adicional';
      const valor = conceptoMatch[3] ? parseFloat(conceptoMatch[3]) : 0;
      let desde = null;
      let hasta = null;
      const horarioMatch = conceptoMatch[4];
      if (horarioMatch) {
        const horarioParts = horarioMatch.split('-');
        desde = horarioParts[0] ? this.formatTimeForBackend(horarioParts[0].trim()) : null;
        hasta = horarioParts[1] ? this.formatTimeForBackend(horarioParts[1].trim()) : null;
      }
      return {
        concepto: concepto,
        tipo: tipo,
        valor: valor,
        desde: desde,
        hasta: hasta,
        activo: true
      };
    }).filter(item => item !== null);
  }
  formatTimeForBackend(timeInput) {
    if (!timeInput) {
      return '08:00:00';
    }
    const timeString = String(timeInput).trim();
    if (timeString === '') {
      return '08:00:00';
    }
    if (/^\d{2}:\d{2}:\d{2}$/.test(timeString)) {
      return timeString;
    }
    const parts = timeString.split(':');
    const hours = String(parseInt(parts[0] || '0')).padStart(2, '0');
    const minutes = String(parseInt(parts[1] || '0')).padStart(2, '0');
    const seconds = parts[2] ? String(parseInt(parts[2])).padStart(2, '0') : '00';
    return `${hours}:${minutes}:${seconds}`;
  }
  formatDate(dateInput) {
    if (!dateInput) {
      return new Date().toISOString().split('T')[0];
    }
    const dateString = String(dateInput).trim();
    if (dateString === '') {
      return new Date().toISOString().split('T')[0];
    }
    if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
      return dateString;
    }
    if (dateString.includes('/')) {
      const parts = dateString.split('/');
      if (parts.length === 3) {
        let month, day, year;
        if (parseInt(parts[0]) > 12) {
          day = parts[0].padStart(2, '0');
          month = parts[1].padStart(2, '0');
          year = parts[2];
        } else {
          month = parts[0].padStart(2, '0');
          day = parts[1].padStart(2, '0');
          year = parts[2];
        }
        if (year.length === 2) {
          year = `20${year}`;
        }
        return `${year}-${month}-${day}`;
      }
    }
    return new Date().toISOString().split('T')[0];
  }
  groupByCodigo(data) {
    return data.reduce((acc, item) => {
      const codigo = item.Codigo;
      if (!acc[codigo]) {
        acc[codigo] = [];
      }
      acc[codigo].push(item);
      return acc;
    }, {});
  }
  recordExists(codigo) {
    return this.itemsList.some(item => item.codigo === codigo);
  }
  getComplejoAndSuperficie(complejoNombre, superficieDesc) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_11__.forkJoin)({
        complejo: _this3.searchComplejo(complejoNombre),
        superficie: _this3.searchSuperficie(superficieDesc)
      }).toPromise();
    })();
  }
  searchComplejo(nombre) {
    return this.complejoService.getAll().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.map)(response => {
      if (response.status === 'OK') {
        const complejo = response.payload.find(c => c.nombre === nombre);
        if (!complejo) {
          throw new Error(`Complejo '${nombre}' no encontrado`);
        }
        return complejo;
      }
      throw new Error('Error al buscar complejo');
    }));
  }
  searchSuperficie(descripcion) {
    return this.superficieService.getAll().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_12__.map)(response => {
      if (response.status === 'OK') {
        const superficie = response.payload.find(s => s.descripcion === descripcion);
        if (!superficie) {
          throw new Error(`Superficie '${descripcion}' no encontrada`);
        }
        return superficie;
      }
      throw new Error('Error al buscar superficie');
    }));
  }
  loadCategories() {
    this.categoriesService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.categoryList = response.payload;
        }
      }
    });
  }
  loadClasificadores() {
    this.clasificadorService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.clasificadoresList = response.payload;
        }
      }
    });
  }
  parseSchedule(schedule) {
    const parts = schedule.split('-').map(s => s.trim());
    const horaApertura = this.formatTimeForBackend(parts[0] || '08:00:00');
    const horaCierre = this.formatTimeForBackend(parts[1] || '22:00:00');
    return [horaApertura, horaCierre];
  }
  parseBoolean(value) {
    if (typeof value === 'boolean') return value;
    if (typeof value === 'string') {
      return value.toUpperCase() === 'SI' || value.toUpperCase() === 'SÍ' || value === '1' || value === 'true';
    }
    return false;
  }
  static {
    this.ɵfac = function ModalImportComponent_Factory(t) {
      return new (t || ModalImportComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_3__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_4__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_5__.SuperficiesService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_6__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_7__.ClasificadorRuatService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: ModalImportComponent,
      selectors: [["app-modal-import"]],
      inputs: {
        itemsList: "itemsList",
        titles: "titles"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵStandaloneFeature"]],
      decls: 30,
      vars: 7,
      consts: [[1, "modal-header"], ["type", "button", 1, "btn", "btn-outline-info", "btn-sm", "me-2", 3, "click"], [1, "bi", "bi-info-circle"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click", "disabled"], [1, "modal-body"], [1, "alert-primary", "mb-3"], [1, "blockquote", "custom-blockquote", "blockquote-primary", "rounded", "mb-0"], [1, "text-primary"], [1, "text-body", "mb-2"], [1, "row", "d-flex", "justify-content-center", "mb-3"], [1, "col-12", "col-lg-6", "mb-3"], ["type", "file", "accept", ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel", 1, "form-control", "shadow-none", "rounded-3", 3, "change", "multiple"], [1, "d-flex", "justify-content-between", "rounded-3", "border", "ps-3"], [1, "d-flex", "align-items-center"], [1, "bi", "bi-search"], ["type", "text", "placeholder", "Buscar ...", 1, "form-control", "rounded-3", "border-0", "shadow-none", 3, "keyup"], [3, "loading", "itemsList", "allcontent", "selectedItemEmitter", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-primary", "rounded-3", 3, "click", "disabled"], ["class", "spinner-border spinner-border-sm", "aria-hidden", "true", 4, "ngIf"], ["type", "button", 1, "btn", "btn-outline-secondary", "rounded-3", 3, "click", "disabled"], [3, "selectedItemEmitter", "loading", "itemsList", "allcontent"], ["aria-hidden", "true", 1, "spinner-border", "spinner-border-sm"]],
      template: function ModalImportComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Importar Campos Deportivos");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div")(4, "button", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_4_listener() {
            return ctx.showImportInstructions();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](5, "i", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6, " Instrucciones ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "button", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_7_listener() {
            return ctx.cerrarModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 4)(9, "div", 5)(10, "blockquote", 6)(11, "strong", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, " Nota: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](13, "p", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14, "Solo se guardar\u00E1n los registros que no existan, los registros que ya existan no se tomaran en cuenta.");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "div", 9)(16, "div", 10)(17, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function ModalImportComponent_Template_input_change_17_listener($event) {
            return ctx.cargarDatosDesdeExcel($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "div", 10)(19, "div", 12)(20, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](21, "i", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "input", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("keyup", function ModalImportComponent_Template_input_keyup_22_listener($event) {
            return ctx.buscarItem($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](23, ModalImportComponent_app_data_table_23_Template, 1, 3, "app-data-table", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "div", 17)(25, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_25_listener() {
            return ctx.createRegisterfromXlsx(ctx.selectedItems);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](26, ModalImportComponent_span_26_Template, 1, 0, "span", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](27);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](28, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_28_listener() {
            return ctx.cerrarModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](29, " Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("multiple", false);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.xlsxData.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx.xlsxData.length <= 0 || ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx.loading ? "Importando..." : "Importar", " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx.loading);
        }
      },
      dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormsModule, _angular_common__WEBPACK_IMPORTED_MODULE_15__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_8__.DataTableComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 62837:
/*!*******************************************************************************!*\
  !*** ./src/app/pages/modals/field/modal-schedule/modal-schedule.component.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalScheduleComponent: () => (/* binding */ ModalScheduleComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 61873);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 36647);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 59452);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 61318);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_services_api_horarioFijo_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/api/horarioFijo.service */ 5743);
/* harmony import */ var src_app_core_services_api_horarioExcepcion_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api/horarioExcepcion.service */ 46717);














const _c0 = (a0, a1, a2) => ({
  "border-warning": a0,
  "border-danger": a1,
  "border-info": a2
});
const _c1 = (a0, a1, a2) => ({
  "bg-warning-subtle text-warning": a0,
  "bg-danger-subtle text-danger": a1,
  "bg-info-subtle text-info": a2
});
const _c2 = a0 => ({
  "is-invalid": a0
});
function ModalScheduleComponent_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Horarios de Atenci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_span_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Editar Horarios de Atenci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_17_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " No hay horarios configurados para este campo deportivo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_div_7_div_1_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](3, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, ModalScheduleComponent_div_17_div_2_div_4_div_7_div_1_span_5_Template, 2, 0, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slot_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("", slot_r1.start, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("", slot_r1.end, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", slot_r1.observaciones);
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_div_7_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "cite", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dia_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](dia_r2.timeSlots[0].observaciones);
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ModalScheduleComponent_div_17_div_2_div_4_div_7_div_1_Template, 6, 3, "div", 38)(2, ModalScheduleComponent_div_17_div_2_div_4_div_7_div_2_Template, 4, 1, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dia_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", dia_r2.timeSlots);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", dia_r2.timeSlots[0] == null ? null : dia_r2.timeSlots[0].observaciones);
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_ng_template_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Cerrado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_17_div_2_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 30)(1, "div", 31)(2, "div", 32)(3, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, ModalScheduleComponent_div_17_div_2_div_4_div_7_Template, 3, 2, "div", 35)(8, ModalScheduleComponent_div_17_div_2_div_4_ng_template_8_Template, 3, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 36)(11, "span", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const dia_r2 = ctx.$implicit;
    const closedTemplate_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", dia_r2.isOpen ? "border-success bg-light" : "border-secondary bg-secondary-subtle");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](dia_r2.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", dia_r2.isOpen)("ngIfElse", closedTemplate_r3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", dia_r2.isOpen ? "bg-success-subtle text-success" : "bg-secondary-subtle text-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", dia_r2.isOpen ? "Abierto" : "Cerrado", " ");
  }
}
function ModalScheduleComponent_div_17_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 27)(1, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Horarios Regulares");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ModalScheduleComponent_div_17_div_2_div_4_Template, 13, 6, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.getGroupedSchedules());
  }
}
function ModalScheduleComponent_div_17_div_3_div_4_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_6_0;
    let tmp_7_0;
    const excepcion_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](((tmp_6_0 = excepcion_r5.get("horaApertura")) == null ? null : tmp_6_0.value) || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](((tmp_7_0 = excepcion_r5.get("horaCierre")) == null ? null : tmp_7_0.value) || "-");
  }
}
function ModalScheduleComponent_div_17_div_3_div_4_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Horario especial ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_17_div_3_div_4_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const excepcion_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", (tmp_6_0 = excepcion_r5.get("motivo")) == null ? null : tmp_6_0.value, " ");
  }
}
function ModalScheduleComponent_div_17_div_3_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 51)(1, "div", 31)(2, "div", 32)(3, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](6, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](8, ModalScheduleComponent_div_17_div_3_div_4_div_8_Template, 7, 2, "div", 53)(9, ModalScheduleComponent_div_17_div_3_div_4_div_9_Template, 3, 0, "div", 54)(10, ModalScheduleComponent_div_17_div_3_div_4_div_10_Template, 3, 1, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 52)(12, "span", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    let tmp_5_0;
    let tmp_6_0;
    let tmp_7_0;
    let tmp_8_0;
    let tmp_9_0;
    let tmp_10_0;
    let tmp_11_0;
    const excepcion_r5 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction3"](10, _c0, ((tmp_5_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_5_0.value) === "horario_especial", ((tmp_5_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_5_0.value) === "mantenimiento", ((tmp_5_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_5_0.value) === "evento_municipal"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind2"](6, 7, (tmp_6_0 = excepcion_r5.get("fecha")) == null ? null : tmp_6_0.value, "dd/MM/yyyy"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ((tmp_7_0 = excepcion_r5.get("horaApertura")) == null ? null : tmp_7_0.value) || ((tmp_7_0 = excepcion_r5.get("horaCierre")) == null ? null : tmp_7_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !((tmp_8_0 = excepcion_r5.get("horaApertura")) == null ? null : tmp_8_0.value) && !((tmp_8_0 = excepcion_r5.get("horaCierre")) == null ? null : tmp_8_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (tmp_9_0 = excepcion_r5.get("motivo")) == null ? null : tmp_9_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction3"](14, _c1, ((tmp_10_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_10_0.value) === "horario_especial", ((tmp_10_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_10_0.value) === "mantenimiento", ((tmp_10_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_10_0.value) === "evento_municipal"));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r3.getTipoExcepcionLabel((tmp_11_0 = excepcion_r5.get("tipoExcepcion")) == null ? null : tmp_11_0.value), " ");
  }
}
function ModalScheduleComponent_div_17_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div")(1, "h6");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Excepciones de Horario");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ModalScheduleComponent_div_17_div_3_div_4_Template, 14, 18, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.horariosExcepciones.controls);
  }
}
function ModalScheduleComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ModalScheduleComponent_div_17_div_1_Template, 3, 0, "div", 23)(2, ModalScheduleComponent_div_17_div_2_Template, 5, 1, "div", 24)(3, ModalScheduleComponent_div_17_div_3_Template, 5, 1, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !(ctx_r3.horariosFijos.length > 0 || ctx_r3.horariosExcepciones.length > 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.horariosFijos.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.horariosExcepciones.length > 0);
  }
}
function ModalScheduleComponent_div_18_tr_28_option_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dia_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", dia_r8.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](dia_r8.label);
  }
}
function ModalScheduleComponent_div_18_tr_28_button_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_button_28_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r10);
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.removeHorarioFijo(i_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx_r3.submitted);
  }
}
function ModalScheduleComponent_div_18_tr_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr", 82)(1, "td")(2, "select", 83)(3, "option", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, ModalScheduleComponent_div_18_tr_28_option_5_Template, 2, 2, "option", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "td", 86)(7, "div", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](8, "input", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "input", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "input", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "td")(14, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "input", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "button", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_Template_button_click_16_listener() {
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.toggleObservacionesDropdown(i_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "div", 95)(19, "a", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_Template_a_click_19_listener() {
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.setObservacion(i_r9, "Horario reducido"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](20, "Horario reducido");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "a", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_Template_a_click_21_listener() {
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.setObservacion(i_r9, "Mantenimiento programado"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Mantenimiento programado");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "a", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_Template_a_click_23_listener() {
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.setObservacion(i_r9, "Sujeto a disponibilidad"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](24, "Sujeto a disponibilidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "a", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_28_Template_a_click_25_listener() {
      const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.setObservacion(i_r9, "Requiere reserva previa"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, "Requiere reserva previa");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "td", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](28, ModalScheduleComponent_div_18_tr_28_button_28_Template, 2, 1, "button", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_5_0;
    let tmp_8_0;
    let tmp_9_0;
    let tmp_10_0;
    let tmp_11_0;
    const horario_r11 = ctx.$implicit;
    const i_r9 = ctx.index;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroupName", i_r9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](13, _c2, ctx_r3.submitted && ((tmp_5_0 = horario_r11.get("dia")) == null ? null : tmp_5_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.diaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("id", "abierto-" + i_r9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", !((tmp_8_0 = horario_r11.get("abierto")) == null ? null : tmp_8_0.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](15, _c2, ctx_r3.submitted && ((tmp_9_0 = horario_r11.get("horaApertura")) == null ? null : tmp_9_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", !((tmp_10_0 = horario_r11.get("abierto")) == null ? null : tmp_10_0.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](17, _c2, ctx_r3.submitted && ((tmp_11_0 = horario_r11.get("horaCierre")) == null ? null : tmp_11_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("id", "obs-input-" + i_r9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("id", "obs-btn-" + i_r9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("show", ctx_r3.showObsDropdown[i_r9]);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.horariosFijos.length > 1);
  }
}
function ModalScheduleComponent_div_18_tr_49_small_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "(Pasada)");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_div_18_tr_49_option_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", tipo_r13);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](tipo_r13);
  }
}
function ModalScheduleComponent_div_18_tr_49_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr", 82)(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "input", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, ModalScheduleComponent_div_18_tr_49_small_3_Template, 2, 0, "small", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "td")(5, "select", 102)(6, "option", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](8, ModalScheduleComponent_div_18_tr_49_option_8_Template, 2, 2, "option", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "input", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "input", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](14, "input", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "td", 86)(16, "button", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_tr_49_Template_button_click_16_listener() {
      const i_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r12).index;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.removeHorarioExcepcion(i_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_6_0;
    let tmp_9_0;
    const horario_r15 = ctx.$implicit;
    const i_r14 = ctx.index;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("table-secondary", ctx_r3.isPastException(i_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroupName", i_r14);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](14, _c2, ctx_r3.submitted && ((tmp_6_0 = horario_r15.get("fecha")) == null ? null : tmp_6_0.errors)))("title", ctx_r3.isPastException(i_r14) ? "Excepci\u00F3n pasada - Solo lectura" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.isPastException(i_r14));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](16, _c2, ctx_r3.submitted && ((tmp_9_0 = horario_r15.get("tipoExcepcion")) == null ? null : tmp_9_0.errors)))("title", ctx_r3.isPastException(i_r14) ? "Excepci\u00F3n pasada - Solo lectura" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.tipoExcepcionList);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("title", ctx_r3.isPastException(i_r14) ? "Excepci\u00F3n pasada - Solo lectura" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("title", ctx_r3.isPastException(i_r14) ? "Excepci\u00F3n pasada - Solo lectura" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("title", ctx_r3.isPastException(i_r14) ? "Excepci\u00F3n pasada - Solo lectura" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx_r3.submitted || ctx_r3.isPastException(i_r14))("title", ctx_r3.isPastException(i_r14) ? "No se pueden eliminar excepciones pasadas" : "Eliminar");
  }
}
function ModalScheduleComponent_div_18_tr_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr")(1, "td", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "No hay excepciones registradas");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
}
function ModalScheduleComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div")(1, "ul", 60)(2, "li", 61)(3, "a", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_Template_a_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.switchTab("fijos"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, " Horarios Regulares ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "li", 61)(7, "a", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_Template_a_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.switchTab("excepciones"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](8, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, " Excepciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 65)(11, "div", 66)(12, "div", 67)(13, "table", 68)(14, "thead", 69)(15, "tr")(16, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17, "D\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "th", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Abierto");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21, "Apertura");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](22, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23, "Cierre");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](25, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](26, "th", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](28, ModalScheduleComponent_div_18_tr_28_Template, 29, 19, "tr", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](29, "button", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_Template_button_click_29_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.addHorarioFijo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](30, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, " Agregar D\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](32, "div", 66)(33, "div", 76)(34, "table", 68)(35, "thead", 69)(36, "tr")(37, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](38, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](39, "th", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](40, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](41, "th", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](42, "Apertura");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](43, "th", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](44, "Cierre");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](45, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](46, "Motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](47, "th", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](48, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](49, ModalScheduleComponent_div_18_tr_49_Template, 18, 18, "tr", 80)(50, ModalScheduleComponent_div_18_tr_50_Template, 3, 0, "tr", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](51, "button", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_div_18_Template_button_click_51_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.addHorarioExcepcion());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](52, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](53, " Agregar Excepci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("active", ctx_r3.currentTab === "fijos");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("active", ctx_r3.currentTab === "excepciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("active", ctx_r3.currentTab === "fijos")("show", ctx_r3.currentTab === "fijos");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.horariosFijos.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx_r3.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("active", ctx_r3.currentTab === "excepciones")("show", ctx_r3.currentTab === "excepciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r3.horariosExcepciones.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.horariosExcepciones.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx_r3.submitted);
  }
}
function ModalScheduleComponent_button_31_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Guardar");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_button_31_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "span", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Guardando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ModalScheduleComponent_button_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "button", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ModalScheduleComponent_button_31_span_1_Template, 3, 0, "span", 11)(2, ModalScheduleComponent_button_31_span_2_Template, 3, 0, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx_r3.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r3.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r3.submitted);
  }
}
class ModalScheduleComponent {
  constructor(modalService, horarioFijoService, horarioExcepcionService, formBuilder) {
    this.modalService = modalService;
    this.horarioFijoService = horarioFijoService;
    this.horarioExcepcionService = horarioExcepcionService;
    this.formBuilder = formBuilder;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.diaOptions = [{
      value: 'lunes_viernes',
      label: 'Lunes a Viernes',
      show: true,
      open: true
    }, {
      value: 'lunes',
      label: 'Lunes',
      show: false,
      open: true
    }, {
      value: 'martes',
      label: 'Martes',
      show: false,
      open: true
    }, {
      value: 'miercoles',
      label: 'Miércoles',
      show: false,
      open: true
    }, {
      value: 'jueves',
      label: 'Jueves',
      show: false,
      open: true
    }, {
      value: 'viernes',
      label: 'Viernes',
      show: false,
      open: true
    }, {
      value: 'sabado',
      label: 'Sábado',
      show: true,
      open: false
    }, {
      value: 'domingo',
      label: 'Domingo',
      show: true,
      open: false
    }];
    this.tipoExcepcionList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoExcepcion);
    this.submitted = false;
    this.currentTab = 'fijos';
    this.showObsDropdown = [];
    this.deletedHorariosFijos = [];
    this.deletedHorariosExcepciones = [];
  }
  ngOnInit() {
    this.form = this.formBuilder.group({
      horariosFijosDtoList: this.formBuilder.array([], [this.uniqueDiasValidator()]),
      horariosExcepcionesDtoList: this.formBuilder.array([], [this.uniqueFechasValidator()])
    });
    this.formDataSet();
    if (this.accion === 'show') {
      this.form.disable();
    }
  }
  formDataSet() {
    this.deletedHorariosFijos = [];
    this.deletedHorariosExcepciones = [];
    const horariosFijosArray = this.form.get('horariosFijosDtoList');
    if (this.row.horariosFijosDtoList && this.row.horariosFijosDtoList.length > 0) {
      this.row.horariosFijosDtoList.forEach(horario => {
        horariosFijosArray.push(this.createHorarioFijoFormGroup(horario));
      });
    } else if (this.accion === 'edit') {
      this.diaOptions.forEach(dia => {
        if (dia.show) {
          horariosFijosArray.push(this.createHorarioFijoFormGroup({
            dia: dia.value,
            abierto: dia.open,
            horaApertura: dia.open ? '08:00' : null,
            horaCierre: dia.open ? '22:00' : null
          }));
        }
      });
    }
    const horariosExcepcionesArray = this.form.get('horariosExcepcionesDtoList');
    if (this.row.horariosExcepcionesDtoList && this.row.horariosExcepcionesDtoList.length > 0) {
      this.row.horariosExcepcionesDtoList.forEach(horario => {
        horariosExcepcionesArray.push(this.createHorarioExcepcionFormGroup(horario));
      });
    }
  }
  createHorarioFijoFormGroup(horario = {}) {
    const group = this.formBuilder.group({
      uuid: [horario.uuid || null],
      dia: [horario.dia || '', _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required],
      abierto: [horario.abierto !== undefined ? horario.abierto : true],
      horaApertura: [this.extractTimeHHMM(horario.horaApertura), [this.conditionalTimeValidator('abierto')]],
      horaCierre: [this.extractTimeHHMM(horario.horaCierre), [this.conditionalTimeValidator('abierto')]],
      observaciones: [horario.observaciones || '']
    });
    group.get('abierto')?.valueChanges.subscribe(abierto => {
      const horaApertura = group.get('horaApertura');
      const horaCierre = group.get('horaCierre');
      if (!abierto) {
        horaApertura?.setValue(null, {
          emitEvent: false
        });
        horaCierre?.setValue(null, {
          emitEvent: false
        });
      }
      setTimeout(() => {
        horaApertura?.updateValueAndValidity({
          onlySelf: true
        });
        horaCierre?.updateValueAndValidity({
          onlySelf: true
        });
      });
    });
    return group;
  }
  createHorarioExcepcionFormGroup(horario = {}) {
    const isPastDate = this.isPastDate(horario.fecha);
    const isReadOnly = this.accion === 'edit' && isPastDate && horario.uuid;
    const group = this.formBuilder.group({
      uuid: [horario.uuid || null],
      fecha: [{
        value: horario.fecha || '',
        disabled: isReadOnly
      }, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, this.futureDateValidatorForNewEntries(horario.uuid)]],
      tipoExcepcion: [{
        value: horario.tipoExcepcion || '',
        disabled: isReadOnly
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required],
      horaApertura: [{
        value: this.extractTimeHHMM(horario.horaApertura),
        disabled: isReadOnly
      }],
      horaCierre: [{
        value: this.extractTimeHHMM(horario.horaCierre),
        disabled: isReadOnly
      }, this.timeRangeValidator('horaApertura')],
      motivo: [{
        value: horario.motivo || '',
        disabled: isReadOnly
      }],
      isPastException: [isPastDate && !!horario.uuid]
    });
    return group;
  }
  isPastDate(dateString) {
    if (!dateString) return false;
    const selectedDate = new Date(dateString);
    const today = new Date();
    today.setHours(0, 0, 0, 0);
    return selectedDate < today;
  }
  uniqueDiasValidator() {
    return control => {
      const formArray = control;
      const horarios = formArray.controls.map((c, index) => {
        const formGroup = c;
        return {
          index,
          dia: formGroup.get('dia')?.value,
          horaApertura: formGroup.get('horaApertura')?.value,
          horaCierre: formGroup.get('horaCierre')?.value,
          abierto: formGroup.get('abierto')?.value
        };
      }).filter(h => h.dia && h.abierto);
      const duplicates = this.findOverlappingSchedules(horarios);
      if (duplicates.length > 0) {
        console.warn('Overlapping schedules found:', duplicates);
        return {
          overlappingSchedules: true
        };
      }
      return null;
    };
  }
  findOverlappingSchedules(horarios) {
    const duplicates = [];
    const dayGroups = this.groupByDay(horarios);
    for (const [dia, schedules] of Object.entries(dayGroups)) {
      if (schedules.length > 1) {
        for (let i = 0; i < schedules.length; i++) {
          for (let j = i + 1; j < schedules.length; j++) {
            if (this.schedulesOverlap(schedules[i], schedules[j])) {
              duplicates.push({
                dia,
                schedule1: schedules[i],
                schedule2: schedules[j]
              });
            }
          }
        }
      }
    }
    return duplicates;
  }
  groupByDay(horarios) {
    return horarios.reduce((groups, horario) => {
      const dia = horario.dia;
      if (!groups[dia]) {
        groups[dia] = [];
      }
      groups[dia].push(horario);
      return groups;
    }, {});
  }
  schedulesOverlap(schedule1, schedule2) {
    if (!schedule1.horaApertura || !schedule1.horaCierre || !schedule2.horaApertura || !schedule2.horaCierre) {
      return false;
    }
    const start1 = new Date(`1970-01-01T${schedule1.horaApertura}:00`);
    const end1 = new Date(`1970-01-01T${schedule1.horaCierre}:00`);
    const start2 = new Date(`1970-01-01T${schedule2.horaApertura}:00`);
    const end2 = new Date(`1970-01-01T${schedule2.horaCierre}:00`);
    return start1 < end2 && start2 < end1;
  }
  uniqueFechasValidator() {
    return control => {
      const formArray = control;
      const fechas = formArray.controls.map(c => c.get('fecha')?.value).filter(Boolean).filter((_, index) => {
        const isPastException = formArray.at(index).get('isPastException')?.value;
        return !isPastException;
      });
      const uniqueFechas = new Set(fechas);
      if (fechas.length !== uniqueFechas.size) {
        return {
          duplicateDates: true
        };
      }
      return null;
    };
  }
  timeRangeValidator(startTimeControlName) {
    return control => {
      if (!control.parent) return null;
      const startTimeControl = control.parent.get(startTimeControlName);
      const endTimeControl = control;
      const isOpen = control.parent.get('abierto')?.value;
      if (!isOpen) {
        return null;
      }
      if (control === startTimeControl && !endTimeControl.value) {
        return null;
      }
      if (control === endTimeControl && !startTimeControl?.value) {
        return null;
      }
      if (startTimeControl?.value && endTimeControl.value) {
        const startTime = new Date(`1970-01-01T${startTimeControl?.value}:00`);
        const endTime = new Date(`1970-01-01T${endTimeControl.value}:00`);
        if (endTime <= startTime) {
          return {
            invalidTimeRange: true
          };
        }
      }
      return null;
    };
  }
  futureDateValidatorForNewEntries(existingUuid) {
    return control => {
      if (!control.value) return null;
      if (existingUuid && this.isPastDate(control.value)) {
        return null;
      }
      const selectedDate = new Date(control.value);
      const today = new Date();
      today.setHours(0, 0, 0, 0);
      if (selectedDate < today) {
        return {
          pastDate: true
        };
      }
      return null;
    };
  }
  conditionalTimeValidator(dependentField) {
    return control => {
      if (!control.parent) return null;
      const isOpen = control.parent.get(dependentField)?.value;
      if (isOpen && !control.value) {
        return {
          required: true
        };
      }
      return null;
    };
  }
  extractTimeHHMM(time) {
    if (!time) return '';
    if (time.length === 8 && time.split(':').length === 3) {
      return time.substring(0, 5);
    }
    return time;
  }
  formatTimeForBackend(time) {
    if (!time) return '';
    if (time.length === 8 && time.split(':').length === 3) {
      return time;
    }
    if (time.length === 5 && time.split(':').length === 2) {
      return time + ':00';
    }
    return time;
  }
  get horariosFijos() {
    return this.form.get('horariosFijosDtoList');
  }
  get horariosExcepciones() {
    return this.form.get('horariosExcepcionesDtoList');
  }
  isPastException(index) {
    const excepcion = this.horariosExcepciones.at(index);
    return excepcion.get('isPastException')?.value || false;
  }
  addHorarioFijo() {
    this.horariosFijos.push(this.createHorarioFijoFormGroup());
    this.showObsDropdown.push(false);
  }
  removeHorarioFijo(index) {
    if (this.horariosFijos.length > 1) {
      const horario = this.horariosFijos.at(index);
      const uuid = horario.get('uuid')?.value;
      if (uuid) {
        this.deletedHorariosFijos.push(uuid);
      }
      this.horariosFijos.removeAt(index);
      this.showObsDropdown.splice(index, 1);
    } else {
      this.notify('Debe haber al menos un horario fijo', 'warning');
    }
  }
  addHorarioExcepcion() {
    this.horariosExcepciones.push(this.createHorarioExcepcionFormGroup());
  }
  removeHorarioExcepcion(index) {
    const excepcion = this.horariosExcepciones.at(index);
    if (this.isPastException(index)) {
      this.notify('No se pueden eliminar excepciones pasadas', 'warning');
      return;
    }
    const uuid = excepcion.get('uuid')?.value;
    if (uuid) {
      this.deletedHorariosExcepciones.push(uuid);
    }
    this.horariosExcepciones.removeAt(index);
  }
  toggleObservacionesDropdown(index) {
    this.showObsDropdown[index] = !this.showObsDropdown[index];
    this.showObsDropdown.forEach((val, i) => {
      if (i !== index) this.showObsDropdown[i] = false;
    });
  }
  setObservacion(index, text) {
    const horario = this.horariosFijos.at(index);
    horario.get('observaciones')?.setValue(text);
    this.showObsDropdown[index] = false;
  }
  switchTab(tab) {
    this.currentTab = tab;
  }
  getDiaLabel(diaValue) {
    const dia = this.diaOptions.find(d => d.value === diaValue);
    return dia ? dia.label : diaValue;
  }
  getGroupedSchedules() {
    const groupedMap = new Map();
    this.horariosFijos.controls.forEach(control => {
      const formGroup = control;
      const dia = formGroup.get('dia')?.value;
      const abierto = formGroup.get('abierto')?.value;
      const horaApertura = formGroup.get('horaApertura')?.value;
      const horaCierre = formGroup.get('horaCierre')?.value;
      const observaciones = formGroup.get('observaciones')?.value;
      if (!groupedMap.has(dia)) {
        groupedMap.set(dia, {
          dia: dia,
          label: this.getDiaLabel(dia),
          isOpen: abierto,
          timeSlots: []
        });
      }
      if (abierto && horaApertura && horaCierre) {
        groupedMap.get(dia).timeSlots.push({
          start: horaApertura,
          end: horaCierre,
          observaciones: observaciones
        });
      }
    });
    return Array.from(groupedMap.values());
  }
  getTipoExcepcionLabel(tipo) {
    const labels = {
      'horario_especial': 'Horario Especial',
      'mantenimiento': 'Mantenimiento',
      'evento_municipal': 'Evento Municipal'
    };
    return labels[tipo] || tipo;
  }
  saveData() {
    this.submitted = true;
    this.markFormGroupTouched(this.form);
    if (!this.form.valid) {
      this.showDetailedValidationErrors();
      return;
    }
    const saveObservables = [];
    this.deletedHorariosFijos.forEach(uuid => {
      saveObservables.push(this.deleteSchedule(uuid));
    });
    this.deletedHorariosExcepciones.forEach(uuid => {
      saveObservables.push(this.deleteExcepcion(uuid));
    });
    this.horariosFijos.controls.forEach(control => {
      const formGroup = control;
      if (formGroup.valid && (formGroup.value.abierto || formGroup.value.uuid)) {
        const horarioData = {
          dia: formGroup.value.dia,
          abierto: formGroup.value.abierto,
          horaApertura: this.formatTimeForBackend(formGroup.value.horaApertura),
          horaCierre: this.formatTimeForBackend(formGroup.value.horaCierre),
          observaciones: formGroup.value.observaciones || null,
          campoDeportivoDto: this.row
        };
        if (formGroup.value.uuid) {
          horarioData.uuid = formGroup.value.uuid;
          saveObservables.push(this.updateSchedule(horarioData));
        } else {
          saveObservables.push(this.addSchedule(horarioData));
        }
      }
    });
    this.horariosExcepciones.controls.forEach((control, index) => {
      const formGroup = control;
      if (this.isPastException(index)) {
        return;
      }
      if (formGroup.valid) {
        const excepcionData = {
          fecha: formGroup.value.fecha,
          tipoExcepcion: formGroup.value.tipoExcepcion,
          horaApertura: this.formatTimeForBackend(formGroup.value.horaApertura),
          horaCierre: this.formatTimeForBackend(formGroup.value.horaCierre),
          motivo: formGroup.value.motivo || null,
          campoDeportivoDto: this.row
        };
        if (formGroup.value.uuid) {
          excepcionData.uuid = formGroup.value.uuid;
          saveObservables.push(this.updateExcepcion(excepcionData));
        } else {
          saveObservables.push(this.addExcepcion(excepcionData));
        }
      }
    });
    if (saveObservables.length === 0) {
      this.notify('No hay cambios para guardar', 'info');
      this.submitted = false;
      return;
    }
    (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.forkJoin)(saveObservables).subscribe({
      next: results => {
        this.notify('Todos los horarios han sido guardados exitosamente', 'success');
        this.submitted = false;
        this.closeModal();
        this.emitList.emit();
      },
      error: error => {
        this.submitted = false;
        this.notify('Error en proceso de Guardar: ' + error, 'error');
      }
    });
  }
  showDetailedValidationErrors() {
    let errorMessage = 'Formulario Inválido. Problemas encontrados:\n\n';
    if (this.form.get('horariosFijosDtoList')?.errors?.['overlappingSchedules']) {
      errorMessage += '• ❌ Horarios superpuestos encontrados (mismo día con horarios que se solapan)\n';
    }
    this.horariosFijos.controls.forEach((control, index) => {
      const formGroup = control;
      const dia = formGroup.get('dia')?.value;
      const abierto = formGroup.get('abierto')?.value;
      if (!formGroup.valid) {
        errorMessage += `• Horario ${index + 1} (${this.getDiaLabel(dia)}):\n`;
        if (formGroup.get('dia')?.errors?.['required']) {
          errorMessage += '  - Día es requerido\n';
        }
        if (abierto) {
          if (formGroup.get('horaApertura')?.errors?.['required']) {
            errorMessage += '  - Hora apertura es requerida\n';
          }
          if (formGroup.get('horaCierre')?.errors?.['required']) {
            errorMessage += '  - Hora cierre es requerida\n';
          }
          if (formGroup.errors?.['invalidTimeRange']) {
            errorMessage += '  - Hora cierre debe ser posterior a hora apertura\n';
          }
        }
      }
    });
    this.horariosExcepciones.controls.forEach((control, index) => {
      const formGroup = control;
      if (!formGroup.valid) {
        errorMessage += `• Excepción ${index + 1}:\n`;
        if (formGroup.get('fecha')?.errors?.['required']) {
          errorMessage += '  - Fecha es requerida\n';
        }
        if (formGroup.get('fecha')?.errors?.['pastDate']) {
          errorMessage += '  - Fecha no puede ser en el pasado\n';
        }
        if (formGroup.get('tipoExcepcion')?.errors?.['required']) {
          errorMessage += '  - Tipo de excepción es requerido\n';
        }
      }
    });
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: 'Errores de Validación',
      html: errorMessage.replace(/\n/g, '<br>'),
      icon: 'error',
      confirmButtonText: 'Entendido'
    });
  }
  markFormGroupTouched(formGroup) {
    Object.keys(formGroup.controls).forEach(key => {
      const control = formGroup.get(key);
      if (control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroup || control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormArray) {
        this.markFormGroupTouched(control);
      } else {
        control?.markAsTouched();
      }
    });
  }
  /* API requests - same as before */
  addSchedule(datos) {
    return this.horarioFijoService.save(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al guardar horario');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  updateSchedule(datos) {
    return this.horarioFijoService.update(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al actualizar horario');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  deleteSchedule(uuid) {
    return this.horarioFijoService.delete(uuid).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al eliminar horario');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  addExcepcion(datos) {
    return this.horarioExcepcionService.save(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al guardar excepción');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  updateExcepcion(datos) {
    return this.horarioExcepcionService.update(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al actualizar excepción');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  deleteExcepcion(uuid) {
    return this.horarioExcepcionService.delete(uuid).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(result);
      } else {
        throw new Error(result.message || 'Error al eliminar excepción');
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.catchError)(error => {
      throw new Error(error);
    }));
  }
  closeModal() {
    this.accion = '';
    this.submitted = false;
    this.currentTab = 'fijos';
    this.showObsDropdown = [];
    this.form.reset();
    this.modalService.dismissAll();
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function ModalScheduleComponent_Factory(t) {
      return new (t || ModalScheduleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_api_horarioFijo_service__WEBPACK_IMPORTED_MODULE_2__.HorarioFijoService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_api_horarioExcepcion_service__WEBPACK_IMPORTED_MODULE_3__.HorarioExcepcionService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
      type: ModalScheduleComponent,
      selectors: [["app-modal-schedule"]],
      inputs: {
        accion: "accion",
        row: "row"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵStandaloneFeature"]],
      decls: 32,
      vars: 9,
      consts: [["closedTemplate", ""], [1, "modal-content"], [1, "modal-header", "bg-info-subtle", "p-2"], [1, "d-flex", "flex-column", "w-100"], [1, "d-flex", "align-items-center", "mb-1"], [1, "las", "la-store", "me-2"], [1, "modal-title", "mb-0", "fw-semibold"], [1, "text-muted"], [1, "d-flex", "align-items-center"], [1, "ri-calendar-line", "me-2"], [1, "modal-title", "mb-0"], [4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], [1, "modal-footer", "bg-light", "py-2"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "ri-information-line", "me-1"], [1, "text-danger"], [1, "hstack", "gap-2"], ["type", "button", "data-bs-dismiss", "modal", 1, "btn", "btn-light", 3, "click"], [1, "ri-close-line", "me-1"], ["type", "submit", "class", "btn btn-success", 3, "disabled", 4, "ngIf"], ["class", "alert alert-info", 4, "ngIf"], ["class", "mb-2", 4, "ngIf"], [1, "alert", "alert-info"], [1, "ri-information-line", "me-2"], [1, "mb-2"], [1, "ri-calendar-check-line", "me-2"], ["class", "card schedule-item mb-2", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "card", "schedule-item", "mb-2", 3, "ngClass"], [1, "row", "p-1"], [1, "col-md-4", "col-12"], [1, "ri-calendar-line", "me-1"], [1, "col-md-6", "col-6", "flex"], [4, "ngIf", "ngIfElse"], [1, "col-md-2", "col-6"], [1, "badge", 3, "ngClass"], ["class", "d-flex align-items-center my-0", 4, "ngFor", "ngForOf"], ["class", "text-muted small mt-0", 4, "ngIf"], [1, "d-flex", "align-items-center", "my-0"], [1, "ri-time-line", "me-1", "text-muted", "small"], [1, "ri-arrow-right-line", "mx-2", "text-muted", "small"], ["class", "text-info mr-2", 4, "ngIf"], [1, "text-info", "mr-2"], [1, "ri-information-line"], [1, "text-muted", "small", "mt-0"], ["title", "Source Title"], [1, "ri-lock-line", "me-2"], [1, "ri-calendar-event-line", "me-2"], ["class", "card border-0 mb-2 shadow-sm h-100", "style", "border-left: 4px solid !important;", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "card", "border-0", "mb-2", "shadow-sm", "h-100", 2, "border-left", "4px solid !important", 3, "ngClass"], [1, "col"], ["class", "d-flex align-items-center", 4, "ngIf"], ["class", "text-muted", 4, "ngIf"], ["class", "mt-2 text-muted small", 4, "ngIf"], [1, "ri-time-line", "me-2"], [1, "fw-medium"], [1, "ri-arrow-right-line", "mx-2"], [1, "mt-2", "text-muted", "small"], ["role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom"], [1, "nav-item"], ["role", "tab", 1, "nav-link", 3, "click"], [1, "ri-calendar-check-line"], [1, "ri-calendar-event-line"], [1, "tab-content", "p-4", 2, "max-height", "60vh", "overflow-y", "auto"], [1, "tab-pane"], ["formArrayName", "horariosFijosDtoList", 1, "table-responsive"], [1, "table", "table-sm", "table-bordered", "align-middle"], [1, "table-light"], [2, "width", "20%"], [1, "text-center", 2, "width", "12%"], [2, "width", "8%"], [3, "formGroupName", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-sm", "btn-primary", 3, "click", "disabled"], [1, "ri-add-line"], ["formArrayName", "horariosExcepcionesDtoList", 1, "table-responsive"], [2, "width", "25%"], [2, "width", "15%"], [2, "width", "5%"], [3, "formGroupName", "table-secondary", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-sm", "btn-warning", 3, "click", "disabled"], [3, "formGroupName"], ["formControlName", "dia", 1, "form-select", "form-select-sm", 3, "ngClass"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "text-center"], [1, "form-check", "form-switch", "d-flex", "justify-content-center"], ["type", "checkbox", "formControlName", "abierto", 1, "form-check-input", 3, "id"], ["type", "time", "formControlName", "horaApertura", 1, "form-control", "form-control-sm", 3, "disabled", "ngClass"], ["type", "time", "formControlName", "horaCierre", 1, "form-control", "form-control-sm", 3, "disabled", "ngClass"], [1, "input-group", "input-group-sm"], ["type", "text", "formControlName", "observaciones", "placeholder", "Opcional", 1, "form-control", "form-control-sm", 3, "id"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click", "id"], [1, "ri-add-circle-line"], [1, "dropdown-menu", 2, "position", "absolute", "z-index", "1000"], ["href", "javascript:void(0)", 1, "dropdown-item", 3, "click"], ["type", "button", "class", "btn btn-sm btn-danger", 3, "disabled", "click", 4, "ngIf"], [3, "value"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click", "disabled"], [1, "ri-delete-bin-line"], ["type", "date", "formControlName", "fecha", 1, "form-control", "form-control-sm", 3, "ngClass", "title"], ["formControlName", "tipoExcepcion", 1, "form-select", "form-select-sm", 3, "ngClass", "title"], ["type", "time", "formControlName", "horaApertura", 1, "form-control", "form-control-sm", 3, "title"], ["type", "time", "formControlName", "horaCierre", 1, "form-control", "form-control-sm", 3, "title"], ["type", "text", "formControlName", "motivo", "placeholder", "Motivo", 1, "form-control", "form-control-sm", 3, "title"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click", "disabled", "title"], ["colspan", "6", 1, "text-center", "text-muted"], ["type", "submit", 1, "btn", "btn-success", 3, "disabled"], [1, "ri-save-line"], [1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function ModalScheduleComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "i", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "h6", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "div", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "h5", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](12, ModalScheduleComponent_span_12_Template, 2, 0, "span", 11)(13, ModalScheduleComponent_span_13_Template, 2, 0, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_Template_button_click_14_listener() {
            return ctx.closeModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "form", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngSubmit", function ModalScheduleComponent_Template_form_ngSubmit_15_listener() {
            return ctx.saveData();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](17, ModalScheduleComponent_div_17_Template, 4, 3, "div", 11)(18, ModalScheduleComponent_div_18_Template, 54, 17, "div", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "div", 15)(20, "div", 16)(21, "div", 8)(22, "small", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](23, "i", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "span", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](25, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, " Campos obligatorios ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "div", 19)(28, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalScheduleComponent_Template_button_click_28_listener() {
            return ctx.closeModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](29, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](30, "Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](31, ModalScheduleComponent_button_31_Template, 3, 3, "button", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.row.complejoDto.nombre, " - ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.row.codigo);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.accion === "show");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.form);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.accion === "show");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule, _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__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupName, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormArrayName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslateModule],
      styles: [".schedule-item[_ngcontent-%COMP%] {\n  border-left: 3px solid #28a745;\n  transition: all 0.2s;\n}\n\n.schedule-item[_ngcontent-%COMP%]:hover {\n  transform: translateX(2px);\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2ZpZWxkL21vZGFsLXNjaGVkdWxlL21vZGFsLXNjaGVkdWxlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNJO0VBR0ksOEJBQUE7RUFDQSxvQkFBQTtBQUZSOztBQUlJO0VBQ0ksMEJBQUE7QUFEUiIsInNvdXJjZXNDb250ZW50IjpbIlxyXG4gICAgLnNjaGVkdWxlLWl0ZW0ge1xyXG4gICAgICAgIC8vIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgICAgLy8gYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgICAgICBib3JkZXItbGVmdDogM3B4IHNvbGlkICMyOGE3NDU7XHJcbiAgICAgICAgdHJhbnNpdGlvbjogYWxsIDAuMnM7XHJcbiAgICB9XHJcbiAgICAuc2NoZWR1bGUtaXRlbTpob3ZlciB7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDJweCk7XHJcbiAgICB9XHJcbiJdLCJzb3VyY2VSb290IjoiIn0= */"]
    });
  }
}

/***/ }),

/***/ 56981:
/*!***************************************************************************!*\
  !*** ./src/app/pages/modals/field/modal-tarifa/modal-tarifa.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalTarifaComponent: () => (/* binding */ ModalTarifaComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 61873);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 36647);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 59452);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 61318);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 98764);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 70271);
/* harmony import */ var src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/TipoCobro */ 73695);
/* harmony import */ var src_app_core_services_api_tarifa_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/api/tarifa.service */ 674);
/* harmony import */ var src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/api/clasificadorRuat.service */ 12341);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);















const _c0 = ["deleteConfirmation"];
const _c1 = a0 => ({
  "is-invalid": a0
});
const _c2 = () => ({
  id: 1,
  name: "Lunes"
});
const _c3 = () => ({
  id: 2,
  name: "Martes"
});
const _c4 = () => ({
  id: 3,
  name: "Mi\u00E9rcoles"
});
const _c5 = () => ({
  id: 4,
  name: "Jueves"
});
const _c6 = () => ({
  id: 5,
  name: "Viernes"
});
const _c7 = () => ({
  id: 6,
  name: "S\u00E1bado"
});
const _c8 = () => ({
  id: 7,
  name: "Domingo"
});
const _c9 = (a0, a1, a2, a3, a4, a5, a6) => [a0, a1, a2, a3, a4, a5, a6];
function ModalTarifaComponent_span_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Tarifas");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_span_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Editar Tarifas");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_17_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " No hay tarifas registradas para este campo deportivo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 41)(1, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, " Clasificador ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "span", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", (tmp_7_0 = tarifa_r2.get("clasificadorRuatDto")) == null ? null : tmp_7_0.value == null ? null : tmp_7_0.value.nombre, " ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", (tmp_7_0 = tarifa_r2.get("frecuencia")) == null ? null : tmp_7_0.value, " ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", (tmp_7_0 = tarifa_r2.get("sesionesIncluidas")) == null ? null : tmp_7_0.value, " Sesiones ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" - ", ctx_r2.formatDate((tmp_7_0 = tarifa_r2.get("fechaFin")) == null ? null : tmp_7_0.value), "");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " - Sin fecha fin");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_div_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 41)(1, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, " Intervalo V\u00E1lido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 8)(5, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ((tmp_7_0 = tarifa_r2.get("desde")) == null ? null : tmp_7_0.value) || "00:00", " - ", ((tmp_7_0 = tarifa_r2.get("hasta")) == null ? null : tmp_7_0.value) || "23:59", " ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", cat_r4.nombre, " ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_span_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Sin categor\u00EDas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_div_38_tr_17_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")(4, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "td", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "td", 66)(9, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const concepto_r5 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](concepto_r5.concepto);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", ctx_r2.getConceptoBadgeClass(concepto_r5.tipo));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.getTipoConceptoDisplay(concepto_r5.tipo), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", concepto_r5.valor, "", concepto_r5.tipo === "porcentaje" ? "%" : " Bs", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", concepto_r5.activo ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", concepto_r5.activo ? "Activo" : "Inactivo", " ");
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 49)(1, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, " Conceptos Adicionales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 62)(5, "table", 63)(6, "thead", 64)(7, "tr")(8, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Concepto");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "th", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Valor");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "th", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, ModalTarifaComponent_div_17_div_2_div_1_div_38_tr_17_Template, 11, 7, "tr", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", (tmp_7_0 = tarifa_r2.get("conceptosDtos")) == null ? null : tmp_7_0.value);
  }
}
function ModalTarifaComponent_div_17_div_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29)(1, "div", 30)(2, "div", 31)(3, "h5", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 34)(7, "span", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 36)(10, "span", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](12, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](13, "span", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14, "Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](16, ModalTarifaComponent_div_17_div_2_div_1_div_16_Template, 7, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](17, "div", 41)(18, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](19, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](20, " Tipo de Cobro ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](21, "span", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, ModalTarifaComponent_div_17_div_2_div_1_span_23_Template, 3, 1, "span", 45)(24, ModalTarifaComponent_div_17_div_2_div_1_span_24_Template, 2, 1, "span", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](25, "div", 41)(26, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](27, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28, " Vigencia ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](29, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](31, ModalTarifaComponent_div_17_div_2_div_1_span_31_Template, 2, 1, "span", 11)(32, ModalTarifaComponent_div_17_div_2_div_1_span_32_Template, 2, 0, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](33, ModalTarifaComponent_div_17_div_2_div_1_div_33_Template, 7, 2, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](34, "div", 49)(35, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](36, ModalTarifaComponent_div_17_div_2_div_1_span_36_Template, 2, 1, "span", 51)(37, ModalTarifaComponent_div_17_div_2_div_1_span_37_Template, 2, 0, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](38, ModalTarifaComponent_div_17_div_2_div_1_div_38_Template, 18, 1, "div", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_7_0;
    let tmp_8_0;
    let tmp_9_0;
    let tmp_10_0;
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_14_0;
    let tmp_15_0;
    let tmp_16_0;
    let tmp_17_0;
    let tmp_18_0;
    let tmp_19_0;
    let tmp_20_0;
    let tmp_21_0;
    const tarifa_r2 = ctx.$implicit;
    const i_r6 = ctx.index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroupName", i_r6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ((tmp_7_0 = tarifa_r2.get("descripcion")) == null ? null : tmp_7_0.value) || "Tarifa est\u00E1ndar", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", ((tmp_8_0 = tarifa_r2.get("activo")) == null ? null : tmp_8_0.value) ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ((tmp_9_0 = tarifa_r2.get("activo")) == null ? null : tmp_9_0.value) ? "Tarifa Activa" : "Tarifa Inactiva", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](12, 16, (tmp_10_0 = tarifa_r2.get("precioBase")) == null ? null : tmp_10_0.value, "1.2-2"), " Bs");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_11_0 = tarifa_r2.get("clasificadorRuatDto")) == null ? null : tmp_11_0.value == null ? null : tmp_11_0.value.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.getTipoCobro((tmp_12_0 = tarifa_r2.get("tipoCobro")) == null ? null : tmp_12_0.value), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_13_0 = tarifa_r2.get("frecuencia")) == null ? null : tmp_13_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_14_0 = tarifa_r2.get("sesionesIncluidas")) == null ? null : tmp_14_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.formatDate((tmp_15_0 = tarifa_r2.get("fechaInicio")) == null ? null : tmp_15_0.value), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_16_0 = tarifa_r2.get("fechaFin")) == null ? null : tmp_16_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !((tmp_17_0 = tarifa_r2.get("fechaFin")) == null ? null : tmp_17_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_18_0 = tarifa_r2.get("desde")) == null ? null : tmp_18_0.value) || ((tmp_18_0 = tarifa_r2.get("hasta")) == null ? null : tmp_18_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", (tmp_19_0 = tarifa_r2.get("categoriasDtoList")) == null ? null : tmp_19_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !((tmp_20_0 = tarifa_r2.get("categoriasDtoList")) == null ? null : tmp_20_0.value) || ((tmp_20_0 = tarifa_r2.get("categoriasDtoList")) == null ? null : tmp_20_0.value.length) === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_21_0 = tarifa_r2.get("conceptosDtos")) == null ? null : tmp_21_0.value) && ((tmp_21_0 = tarifa_r2.get("conceptosDtos")) == null ? null : tmp_21_0.value.length) > 0);
  }
}
function ModalTarifaComponent_div_17_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_17_div_2_div_1_Template, 39, 19, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.tarifas.controls);
  }
}
function ModalTarifaComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_17_div_1_Template, 3, 0, "div", 24)(2, ModalTarifaComponent_div_17_div_2_Template, 2, 1, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !(ctx_r2.tarifas.length > 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.tarifas.length > 0);
  }
}
function ModalTarifaComponent_div_18_div_1_button_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_div_18_div_1_button_8_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r9);
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.removeTarifa(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.submitted);
  }
}
function ModalTarifaComponent_div_18_div_1_div_17_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_div_17_div_1_Template, 2, 0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_6_0 = tarifa_r11.get("clasificadorRuatDto")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors["required"]);
  }
}
function ModalTarifaComponent_div_18_div_1_option_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", tipo_r12.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", tipo_r12.label, " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_27_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_div_27_div_1_Template, 2, 0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_6_0 = tarifa_r11.get("tipoCobro")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors["required"]);
  }
}
function ModalTarifaComponent_div_18_div_1_div_28_option_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const freq_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", freq_r14.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", freq_r14.label, " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_28_div_9_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_28_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_div_28_div_9_div_1_Template, 2, 0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_7_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_7_0.errors == null ? null : tmp_7_0.errors["required"]);
  }
}
function ModalTarifaComponent_div_18_div_1_div_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 99)(1, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Frecuencia ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "select", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ModalTarifaComponent_div_18_div_1_div_28_Template_select_change_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r13);
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onFrecuenciaChange(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, ModalTarifaComponent_div_18_div_1_div_28_option_8_Template, 2, 2, "option", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, ModalTarifaComponent_div_18_div_1_div_28_div_9_Template, 2, 1, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    let tmp_8_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](3, _c1, ctx_r2.submitted && ((tmp_6_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_6_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.frecuenciaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_8_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_8_0.errors));
  }
}
function ModalTarifaComponent_div_18_div_1_div_29_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "div", 121)(2, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_7_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.getDisplaySesionesFromNumber((tmp_7_0 = tarifa_r11.get("sesionesIncluidas")) == null ? null : tmp_7_0.value), " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_29_div_4_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 129)(1, "div", 130)(2, "input", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ModalTarifaComponent_div_18_div_1_div_29_div_4_div_5_Template_input_change_2_listener($event) {
      const dia_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r15).$implicit;
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onDiaPersonalizadoChange(i_r10, dia_r16.id, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "label", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const dia_r16 = ctx.$implicit;
    const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "dia-" + i_r10 + "-" + dia_r16.id)("checked", ctx_r2.getDiasPersonalizados(i_r10)[dia_r16.id]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("for", "dia-" + i_r10 + "-" + dia_r16.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", dia_r16.name, " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_29_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "div", 121)(2, "small", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Seleccione los d\u00EDas de sesi\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ModalTarifaComponent_div_18_div_1_div_29_div_4_div_5_Template, 5, 4, "div", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 126)(7, "small", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, "Resumen:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction7"](9, _c9, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](2, _c2), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](3, _c3), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](4, _c4), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](5, _c5), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](6, _c6), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](7, _c7), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](8, _c8)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r2.getDisplaySesionesFromDias(ctx_r2.getDiasPersonalizados(i_r10)), " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 120)(1, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Sesiones Incluidas");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, ModalTarifaComponent_div_18_div_1_div_29_div_3_Template, 4, 1, "div", 11)(4, ModalTarifaComponent_div_18_div_1_div_29_div_4_Template, 11, 17, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    let tmp_7_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_6_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_6_0.value) && ((tmp_6_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_6_0.value) !== "personalizado");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_7_0 = tarifa_r11.get("frecuencia")) == null ? null : tmp_7_0.value) === "personalizado");
  }
}
function ModalTarifaComponent_div_18_div_1_div_40_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_div_40_div_1_Template, 2, 0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_6_0 = tarifa_r11.get("categoriasDtoList")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors["required"]);
  }
}
function ModalTarifaComponent_div_18_div_1_div_47_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_div_47_div_1_Template, 2, 0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const tarifa_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (tmp_6_0 = tarifa_r11.get("precioBase")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors["required"]);
  }
}
function ModalTarifaComponent_div_18_div_1_div_85_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 132)(1, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "No hay conceptos adicionales");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_option_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", tipo_r19.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", tipo_r19.label, " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Campo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_38_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 79)(1, "div", 149)(2, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Hora Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "input", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 149)(6, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Hora Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](8, "input", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 104)(10, "small", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12, " Este concepto aplicar\u00E1 solo dentro del intervalo especificado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_38_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 104)(1, "div", 145)(2, "div", 146)(3, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Intervalo de Horas (Opcional) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "button", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_div_18_div_1_div_86_div_38_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r20);
      const concepto_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.toggleTimeFields(concepto_r21));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, ModalTarifaComponent_div_18_div_1_div_86_div_38_div_9_Template, 13, 0, "div", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_9_0;
    let tmp_10_0;
    const concepto_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ((tmp_9_0 = concepto_r21.get("desde")) == null ? null : tmp_9_0.value) || ((tmp_9_0 = concepto_r21.get("hasta")) == null ? null : tmp_9_0.value) ? "Ocultar" : "Agregar Horario", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_10_0 = concepto_r21.get("desde")) == null ? null : tmp_10_0.value) || ((tmp_10_0 = concepto_r21.get("hasta")) == null ? null : tmp_10_0.value));
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_39_span_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_10_0;
    const concepto_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" | ", (tmp_10_0 = concepto_r21.get("desde")) == null ? null : tmp_10_0.value, " - ", (tmp_10_0 = concepto_r21.get("hasta")) == null ? null : tmp_10_0.value, " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 104)(1, "div", 153)(2, "small")(3, "strong");
    _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__["ɵɵtemplate"](6, ModalTarifaComponent_div_18_div_1_div_86_div_39_span_6_Template, 2, 2, "span", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "span", 155);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    let tmp_9_0;
    let tmp_10_0;
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    const concepto_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"]((tmp_9_0 = concepto_r21.get("concepto")) == null ? null : tmp_9_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate3"](" - ", ctx_r2.getTipoConceptoDisplay((tmp_10_0 = concepto_r21.get("tipo")) == null ? null : tmp_10_0.value), ": ", (tmp_10_0 = concepto_r21.get("valor")) == null ? null : tmp_10_0.value, " ", ((tmp_10_0 = concepto_r21.get("tipo")) == null ? null : tmp_10_0.value) === "porcentaje" ? "%" : ((tmp_10_0 = concepto_r21.get("tipo")) == null ? null : tmp_10_0.value) === "por_hora" ? "Bs/h" : "Bs", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_11_0 = concepto_r21.get("desde")) == null ? null : tmp_11_0.value) && ((tmp_11_0 = concepto_r21.get("hasta")) == null ? null : tmp_11_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", ((tmp_12_0 = concepto_r21.get("activo")) == null ? null : tmp_12_0.value) ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ((tmp_13_0 = concepto_r21.get("activo")) == null ? null : tmp_13_0.value) ? "Activo" : "Inactivo", " ");
  }
}
function ModalTarifaComponent_div_18_div_1_div_86_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 133)(1, "div", 134)(2, "span", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "button", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_div_18_div_1_div_86_Template_button_click_4_listener() {
      const j_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17).index;
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.removeConcepto(i_r10, j_r18));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "i", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 79)(7, "div", 137)(8, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Concepto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "input", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, ModalTarifaComponent_div_18_div_1_div_86_div_13_Template, 2, 0, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "div", 139)(15, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16, "Tipo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](17, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "select", 140)(20, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, ModalTarifaComponent_div_18_div_1_div_86_option_22_Template, 2, 2, "option", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, ModalTarifaComponent_div_18_div_1_div_86_div_23_Template, 2, 0, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](24, "div", 139)(25, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](26, " Valor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](29, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](31, "input", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](32, ModalTarifaComponent_div_18_div_1_div_86_div_32_Template, 2, 0, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](33, "div", 142)(34, "div", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](35, "input", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](36, "label", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](37, " Activo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](38, ModalTarifaComponent_div_18_div_1_div_86_div_38_Template, 10, 2, "div", 144)(39, ModalTarifaComponent_div_18_div_1_div_86_div_39_Template, 9, 7, "div", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_15_0;
    let tmp_16_0;
    let tmp_17_0;
    let tmp_18_0;
    let tmp_19_0;
    const concepto_r21 = ctx.$implicit;
    const j_r18 = ctx.index;
    const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroupName", j_r18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](j_r18 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](17, _c1, ctx_r2.submitted && ((tmp_11_0 = concepto_r21.get("concepto")) == null ? null : tmp_11_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_12_0 = concepto_r21.get("concepto")) == null ? null : tmp_12_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](19, _c1, ctx_r2.submitted && ((tmp_13_0 = concepto_r21.get("tipo")) == null ? null : tmp_13_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.tipoConceptoOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_15_0 = concepto_r21.get("tipo")) == null ? null : tmp_15_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" (", ((tmp_16_0 = concepto_r21.get("tipo")) == null ? null : tmp_16_0.value) === "porcentaje" ? "%" : ((tmp_16_0 = concepto_r21.get("tipo")) == null ? null : tmp_16_0.value) === "por_hora" ? "Bs/h" : "Bs", ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](21, _c1, ctx_r2.submitted && ((tmp_17_0 = concepto_r21.get("valor")) == null ? null : tmp_17_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_18_0 = concepto_r21.get("valor")) == null ? null : tmp_18_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("mt-4", !((tmp_19_0 = concepto_r21.get("desde")) == null ? null : tmp_19_0.value) && !((tmp_19_0 = concepto_r21.get("hasta")) == null ? null : tmp_19_0.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "concepto-activo-" + i_r10 + "-" + j_r18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("for", "concepto-activo-" + i_r10 + "-" + j_r18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.showTimeFields(concepto_r21));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", concepto_r21.valid);
  }
}
function ModalTarifaComponent_div_18_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 71)(1, "div", 72)(2, "span", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "input", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "label", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, "Activa");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, ModalTarifaComponent_div_18_div_1_button_8_Template, 2, 1, "button", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 78)(10, "div", 79)(11, "div", 80)(12, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Clasificador RUAT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "ng-select", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ModalTarifaComponent_div_18_div_1_Template_ng_select_change_16_listener() {
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8).index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onClasificadorRuatChange(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, ModalTarifaComponent_div_18_div_1_div_17_Template, 2, 1, "div", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "div", 84)(19, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](20, "Tipo de Cobro ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](21, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](22, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "select", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ModalTarifaComponent_div_18_div_1_Template_select_change_23_listener() {
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8).index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.onTipoCobroChange(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](24, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](25, "Seleccione");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](26, ModalTarifaComponent_div_18_div_1_option_26_Template, 2, 2, "option", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](27, ModalTarifaComponent_div_18_div_1_div_27_Template, 2, 1, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](28, ModalTarifaComponent_div_18_div_1_div_28_Template, 10, 5, "div", 89)(29, ModalTarifaComponent_div_18_div_1_div_29_Template, 5, 2, "div", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](30, "div", 91)(31, "label", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](32, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](33, "input", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](34, "div", 94)(35, "label", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](36, "Categor\u00EDa(s) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](37, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](38, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](39, "ng-select", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](40, ModalTarifaComponent_div_18_div_1_div_40_Template, 2, 1, "div", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](41, "div", 96)(42, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](43, "Precio Base");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](44, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](45, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](46, "input", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](47, ModalTarifaComponent_div_18_div_1_div_47_Template, 2, 1, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](48, "div", 98)(49, "small", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](50, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](51, "Vigencia e intervalo Valido de la Tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](52, "div", 99)(53, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](54, "Fecha Inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](55, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](56, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](57, "input", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](58, "div", 99)(59, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](60, "Fecha Fin");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](61, "input", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](62, "div", 99)(63, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](64, "Hora Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](65, "input", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](66, "div", 99)(67, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](68, "Hora Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](69, "input", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](70, "div", 104)(71, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](72, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](73, "textarea", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](74, "div", 104)(75, "div", 106)(76, "div", 107)(77, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](78, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](79, "Conceptos Adicionales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](80, "button", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_div_18_div_1_Template_button_click_80_listener() {
      const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8).index;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.addConcepto(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](81, "i", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](82, " Agregar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](83, "div", 78)(84, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](85, ModalTarifaComponent_div_18_div_1_div_85_Template, 3, 0, "div", 112)(86, ModalTarifaComponent_div_18_div_1_div_86_Template, 40, 23, "div", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_15_0;
    let tmp_16_0;
    let tmp_17_0;
    let tmp_20_0;
    let tmp_21_0;
    let tmp_22_0;
    let tmp_23_0;
    let tmp_24_0;
    const tarifa_r11 = ctx.$implicit;
    const i_r10 = ctx.index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroupName", i_r10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](i_r10 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "tarifa-activo-" + i_r10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("for", "tarifa-activo-" + i_r10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.tarifas.length > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("items", ctx_r2.clasificadoresRuatList)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](23, _c1, ctx_r2.submitted && ((tmp_11_0 = tarifa_r11.get("clasificadorRuatDto")) == null ? null : tmp_11_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_12_0 = tarifa_r11.get("clasificadorRuatDto")) == null ? null : tmp_12_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](25, _c1, ctx_r2.submitted && ((tmp_13_0 = tarifa_r11.get("tipoCobro")) == null ? null : tmp_13_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.getFilteredTipoCobroOptions(i_r10));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_15_0 = tarifa_r11.get("tipoCobro")) == null ? null : tmp_15_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_16_0 = tarifa_r11.get("tipoCobro")) == null ? null : tmp_16_0.value) === "mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ((tmp_17_0 = tarifa_r11.get("tipoCobro")) == null ? null : tmp_17_0.value) === "mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("items", ctx_r2.categoriasList)("multiple", true)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](27, _c1, ctx_r2.submitted && ((tmp_20_0 = tarifa_r11.get("categoriasDtoList")) == null ? null : tmp_20_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_21_0 = tarifa_r11.get("categoriasDtoList")) == null ? null : tmp_21_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](29, _c1, ctx_r2.submitted && ((tmp_22_0 = tarifa_r11.get("precioBase")) == null ? null : tmp_22_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ((tmp_23_0 = tarifa_r11.get("precioBase")) == null ? null : tmp_23_0.errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](31, _c1, ctx_r2.submitted && ((tmp_24_0 = tarifa_r11.get("fechaInicio")) == null ? null : tmp_24_0.errors)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.getConceptos(i_r10).length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.getConceptos(i_r10).controls);
  }
}
function ModalTarifaComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_div_18_div_1_Template, 87, 33, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "button", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_div_18_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.addTarifa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Agregar Tarifa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.tarifas.controls);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.submitted);
  }
}
function ModalTarifaComponent_button_31_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 158);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Guardar");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_button_31_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "span", 159);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Guardando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function ModalTarifaComponent_button_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ModalTarifaComponent_button_31_span_1_Template, 3, 0, "span", 11)(2, ModalTarifaComponent_button_31_span_2_Template, 3, 0, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx_r2.form.invalid || ctx_r2.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r2.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.submitted);
  }
}
function ModalTarifaComponent_ng_template_32_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 1)(1, "div", 160)(2, "h5", 161);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Confirmar Eliminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "button", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_ng_template_32_Template_button_click_4_listener() {
      const modal_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r22).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](modal_r23.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](6, "lord-icon", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "div", 165)(8, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "\u00BFEst\u00E1 seguro de eliminar esta tarifa?");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "p", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Esta acci\u00F3n eliminar\u00E1 la tarifa de forma permanente.");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 166)(13, "button", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_ng_template_32_Template_button_click_13_listener() {
      const modal_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r22).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](modal_r23.dismiss("cancel"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](14, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "button", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_ng_template_32_Template_button_click_16_listener() {
      const modal_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r22).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](modal_r23.close("delete"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](17, "i", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, " S\u00ED, Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
class ModalTarifaComponent {
  constructor(modalService, formBuilder, tarifaService, clasificadoresRuatService, categoriaService) {
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.tarifaService = tarifaService;
    this.clasificadoresRuatService = clasificadoresRuatService;
    this.categoriaService = categoriaService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.tipoCobroOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_1__.TipoCobro;
    this.frecuenciaOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_1__.frecuencia;
    this.tipoConceptoOptions = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_1__.tiposConcepto;
    this.clasificadoresRuatList = [];
    this.categoriasList = [];
    // Add the same mapping and days functionality
    this.clasificadorTipoCobroMap = {
      'hora': ['por_hora'],
      'mensualidad': ['mensualidad', 'por_sesion'],
      'evento': ['por_evento'],
      'persona': ['por_persona'],
      'club': ['por_club']
    };
    this.diasPersonalizados = {};
    this.submitted = false;
  }
  ngOnInit() {
    this.getClasificadoresRuat();
    this.getCategorias();
    this.form = this.formBuilder.group({
      tarifasDtoList: this.formBuilder.array([])
    });
    this.formDataSet();
    if (this.accion === 'show') {
      this.form.disable();
    }
  }
  formDataSet() {
    const tarifasArray = this.form.get('tarifasDtoList');
    if (this.row.tarifasDtoList && this.row.tarifasDtoList.length > 0) {
      this.row.tarifasDtoList.forEach((tarifa, index) => {
        const tarifaGroup = this.createTarifaFormGroup(tarifa);
        // Initialize personalized days if needed
        if (tarifa.frecuencia === 'personalizado' && tarifa.sesionesIncluidas) {
          this.inicializarDiasPersonalizadosDesdeSesiones(index, Number(tarifa.sesionesIncluidas));
        }
        if (tarifa.conceptosDtos && tarifa.conceptosDtos.length > 0) {
          const conceptosArray = tarifaGroup.get('conceptosDtos');
          tarifa.conceptosDtos.forEach(concepto => {
            conceptosArray.push(this.createConceptoFormGroup(concepto));
          });
        }
        tarifasArray.push(tarifaGroup);
      });
    } else if (this.accion === 'edit') {
      const newIndex = this.tarifas.length;
      this.tarifas.push(this.createTarifaFormGroup());
      this.inicializarDiasPersonalizadosParaTarifa(newIndex);
    }
  }
  createTarifaFormGroup(tarifa = {}) {
    return this.formBuilder.group({
      uuid: [tarifa.uuid || null],
      fechaInicio: [tarifa.fechaInicio || this.getTodayDate(), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required],
      fechaFin: [tarifa.fechaFin || null],
      precioBase: [tarifa.precioBase || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.min(0)]],
      desde: [this.extractTimeHHMM(tarifa.desde)],
      hasta: [this.extractTimeHHMM(tarifa.hasta)],
      descripcion: [tarifa.descripcion || ''],
      observaciones: [tarifa.observaciones || ''],
      activo: [tarifa.activo !== undefined ? tarifa.activo : true],
      tipoCobro: [tarifa.tipoCobro || '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required],
      frecuencia: [tarifa.frecuencia || '', this.conditionalValidator('tipoCobro', 'mensualidad')],
      sesionesIncluidas: [tarifa.sesionesIncluidas || null, [this.conditionalValidator('tipoCobro', 'mensualidad'), _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.min(1)]],
      clasificadorRuatDto: [tarifa.clasificadorRuatDto || null, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required],
      categoriasDtoList: [tarifa.categoriasDtoList?.map(cat => cat.categoriaDto || cat) || [], [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(1)]],
      conceptosDtos: this.formBuilder.array([])
    });
  }
  // Add conditional validator
  conditionalValidator(dependentField, requiredValue) {
    return control => {
      if (!control.parent) return null;
      const dependentControlValue = control.parent.get(dependentField)?.value;
      if (dependentControlValue === requiredValue && !control.value) {
        return {
          required: true
        };
      }
      return null;
    };
  }
  // Add the same methods from main modal
  getFilteredTipoCobroOptions(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const clasificador = tarifaGroup.get('clasificadorRuatDto')?.value;
    if (!clasificador || !clasificador.nombre) {
      return this.tipoCobroOptions;
    }
    const nombre = clasificador.nombre.toLowerCase();
    const matchingKeys = Object.keys(this.clasificadorTipoCobroMap).filter(key => nombre.includes(key));
    if (matchingKeys.length === 0) {
      return this.tipoCobroOptions;
    }
    const allowedTipoCobros = new Set();
    matchingKeys.forEach(key => {
      this.clasificadorTipoCobroMap[key].forEach(tipo => allowedTipoCobros.add(tipo));
    });
    return this.tipoCobroOptions.filter(option => allowedTipoCobros.has(option.value));
  }
  onClasificadorRuatChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const clasificador = tarifaGroup.get('clasificadorRuatDto')?.value;
    if (clasificador && clasificador.nombre) {
      const nombre = clasificador.nombre.toLowerCase();
      if (nombre.includes('hora')) {
        tarifaGroup.patchValue({
          tipoCobro: 'por_hora'
        });
      } else if (nombre.includes('mensualidad')) {
        tarifaGroup.patchValue({
          tipoCobro: 'mensualidad'
        });
      } else if (nombre.includes('evento')) {
        tarifaGroup.patchValue({
          tipoCobro: 'por_evento'
        });
      }
      this.onTipoCobroChange(tarifaIndex);
    }
  }
  onTipoCobroChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const tipoCobro = tarifaGroup.get('tipoCobro')?.value;
    if (tipoCobro !== 'mensualidad') {
      tarifaGroup.patchValue({
        frecuencia: '',
        sesionesIncluidas: null
      });
    }
  }
  onFrecuenciaChange(tarifaIndex) {
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    const frecuenciaValue = tarifaGroup.get('frecuencia')?.value;
    const frecuenciaConfig = this.frecuenciaOptions.find(f => f.value === frecuenciaValue);
    if (frecuenciaConfig) {
      if (frecuenciaConfig.value === 'personalizado') {
        this.resetDiasPersonalizadosParaTarifa(tarifaIndex);
        tarifaGroup.patchValue({
          sesionesIncluidas: 0
        });
      } else {
        tarifaGroup.patchValue({
          sesionesIncluidas: frecuenciaConfig.sesiones
        });
      }
    }
  }
  // Days management methods
  inicializarDiasPersonalizadosParaTarifa(tarifaIndex) {
    if (!this.diasPersonalizados[tarifaIndex]) {
      this.diasPersonalizados[tarifaIndex] = {
        1: false,
        2: false,
        3: false,
        4: false,
        5: false,
        6: false,
        7: false
      };
    }
  }
  getDiasPersonalizados(tarifaIndex) {
    if (!this.diasPersonalizados[tarifaIndex]) {
      this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    }
    return this.diasPersonalizados[tarifaIndex];
  }
  resetDiasPersonalizadosParaTarifa(tarifaIndex) {
    this.diasPersonalizados[tarifaIndex] = {
      1: false,
      2: false,
      3: false,
      4: false,
      5: false,
      6: false,
      7: false
    };
  }
  onDiaPersonalizadoChange(tarifaIndex, diaId, event) {
    const isChecked = event.target.checked;
    this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    this.diasPersonalizados[tarifaIndex][diaId] = isChecked;
    const diasSeleccionados = Object.keys(this.diasPersonalizados[tarifaIndex]).filter(key => this.diasPersonalizados[tarifaIndex][parseInt(key)]).map(key => parseInt(key)).sort();
    const sesionesValue = this.calcularSesionesFromDias(diasSeleccionados);
    const tarifaGroup = this.tarifas.at(tarifaIndex);
    tarifaGroup.patchValue({
      sesionesIncluidas: sesionesValue
    });
  }
  inicializarDiasPersonalizadosDesdeSesiones(tarifaIndex, sesiones) {
    this.inicializarDiasPersonalizadosParaTarifa(tarifaIndex);
    const dias = this.convertirSesionesToDias(sesiones);
    dias.forEach(dia => {
      this.diasPersonalizados[tarifaIndex][dia] = true;
    });
  }
  calcularSesionesFromDias(dias) {
    if (dias.length === 0) return 0;
    return parseInt(dias.join(''));
  }
  convertirSesionesToDias(sesiones) {
    if (!sesiones || sesiones === 0) return [];
    return sesiones.toString().split('').map(Number);
  }
  // Display methods
  getDisplaySesionesFromNumber(sesiones) {
    if (!sesiones || sesiones === 0) {
      return '❌ Ningún día seleccionado';
    }
    const diasSemanales = [{
      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'
    }];
    const sesionesStr = sesiones.toString();
    const selectedDayIds = sesionesStr.split('').map(Number);
    const displayParts = diasSemanales.map(dia => {
      const isSelected = selectedDayIds.includes(dia.id);
      return `${isSelected ? '✅' : '❌'} ${dia.name}`;
    });
    return displayParts.join(' • ');
  }
  getDisplaySesionesFromDias(diasObj) {
    const diasSemanales = [{
      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'
    }];
    const displayParts = diasSemanales.map(dia => {
      const isSelected = diasObj[dia.id];
      return `${isSelected ? '✅' : '❌'} ${dia.name}`;
    });
    return displayParts.join(' • ');
  }
  // Rest of the existing methods remain the same...
  createConceptoFormGroup(concepto = {}) {
    return this.formBuilder.group({
      uuid: [concepto.uuid || null],
      concepto: [concepto.concepto || '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required],
      tipo: [concepto.tipo || '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required],
      valor: [concepto.valor || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.min(0)]],
      desde: [this.extractTimeHHMM(concepto.desde)],
      hasta: [this.extractTimeHHMM(concepto.hasta)],
      activo: [concepto.activo !== undefined ? concepto.activo : true]
    });
  }
  showTimeFields(concepto) {
    const tipo = concepto.get('tipo')?.value;
    return tipo === 'por_hora' || tipo === 'fijo' || tipo === 'porcentaje';
  }
  getTipoConceptoDisplay(tipo) {
    const tipoMap = {
      'fijo': 'Monto Fijo',
      'porcentaje': 'Porcentaje',
      'por_hora': 'Por Hora'
    };
    return tipo ? tipoMap[tipo] || tipo : 'No especificado';
  }
  getConceptoBadgeClass(tipo) {
    switch (tipo) {
      case 'porcentaje':
        return 'bg-info-subtle text-info';
      case 'por_hora':
        return 'bg-warning-subtle text-warning';
      default:
        return 'bg-light-subtle text-body';
    }
  }
  toggleTimeFields(concepto) {
    const desde = concepto.get('desde');
    const hasta = concepto.get('hasta');
    if (desde?.value || hasta?.value) {
      desde?.setValue(null);
      hasta?.setValue(null);
    } else {
      desde?.setValue('06:00');
      hasta?.setValue('22:00');
    }
  }
  extractTimeHHMM(time) {
    if (!time) return '';
    if (time.length === 8 && time.split(':').length === 3) {
      return time.substring(0, 5);
    }
    return time;
  }
  formatTimeForBackend(time) {
    if (!time) return null;
    if (time.length === 8 && time.split(':').length === 3) {
      return time;
    }
    if (time.length === 5 && time.split(':').length === 2) {
      return time + ':00';
    }
    return time;
  }
  getTodayDate() {
    const today = new Date();
    return today.toISOString().split('T')[0];
  }
  get tarifas() {
    return this.form.get('tarifasDtoList');
  }
  getConceptos(tarifaIndex) {
    return this.tarifas.at(tarifaIndex).get('conceptosDtos');
  }
  addTarifa() {
    const newIndex = this.tarifas.length;
    this.tarifas.push(this.createTarifaFormGroup());
    this.inicializarDiasPersonalizadosParaTarifa(newIndex);
  }
  addConcepto(tarifaIndex) {
    const conceptosArray = this.getConceptos(tarifaIndex);
    conceptosArray.push(this.createConceptoFormGroup());
  }
  removeConcepto(tarifaIndex, conceptoIndex) {
    const conceptosArray = this.getConceptos(tarifaIndex);
    conceptosArray.removeAt(conceptoIndex);
  }
  removeTarifa(index) {
    const tarifaGroup = this.tarifas.at(index);
    const uuid = tarifaGroup.get('uuid')?.value;
    if (uuid) {
      const modalRef = this.modalService.open(this.deleteConfirmation);
      modalRef.result.then(result => {
        if (result === 'delete') {
          this.deleteTarifa(uuid).subscribe({
            next: result => {
              if (result) {
                this.tarifas.removeAt(index);
                delete this.diasPersonalizados[index];
              }
            }
          });
        }
      }, reason => {});
    } else {
      this.tarifas.removeAt(index);
      delete this.diasPersonalizados[index];
    }
  }
  getTipoCobro(tipo) {
    const tipoMap = {
      'por_hora': 'Por hora',
      'por_persona': 'Por persona',
      'por_evento': 'Por evento',
      'mensualidad': 'Mensualidad',
      'por_club': 'Por club'
    };
    return tipo ? tipoMap[tipo] || tipo : 'No especificado';
  }
  formatDate(date) {
    if (!date) return '-';
    const d = new Date(date);
    return d.toLocaleDateString('es-BO');
  }
  saveData() {
    this.submitted = true;
    if (!this.form.valid) {
      this.notify('Formulario Inválido. Verifique los campos requeridos.', 'error');
      return;
    }
    const saveObservables = [];
    this.tarifas.controls.forEach(control => {
      const tarifaData = {
        precioBase: parseFloat(control.value.precioBase),
        fechaInicio: control.value.fechaInicio,
        fechaFin: control.value.fechaFin || null,
        desde: this.formatTimeForBackend(control.value.desde),
        hasta: this.formatTimeForBackend(control.value.hasta),
        descripcion: control.value.descripcion || null,
        observaciones: control.value.observaciones || null,
        activo: control.value.activo,
        tipoCobro: control.value.tipoCobro,
        frecuencia: control.value.tipoCobro === 'mensualidad' ? control.value.frecuencia : null,
        sesionesIncluidas: control.value.tipoCobro === 'mensualidad' ? parseInt(control.value.sesionesIncluidas) : null,
        clasificadorRuatDto: control.value.clasificadorRuatDto,
        campoDeportivoDto: this.row,
        categoriasDtoList: control.value.categoriasDtoList.map(cat => ({
          categoriaDto: cat
        })),
        conceptosDtos: control.value.conceptosDtos.map(concepto => ({
          uuid: concepto.uuid || undefined,
          concepto: concepto.concepto,
          tipo: concepto.tipo,
          valor: parseFloat(concepto.valor),
          desde: this.formatTimeForBackend(concepto.desde),
          hasta: this.formatTimeForBackend(concepto.hasta),
          activo: concepto.activo
        }))
      };
      if (control.value.uuid) {
        tarifaData.uuid = control.value.uuid;
        saveObservables.push(this.updateTariff(tarifaData));
      } else {
        saveObservables.push(this.addTariff(tarifaData));
      }
    });
    if (saveObservables.length === 0) {
      this.notify('No hay cambios para guardar', 'info');
      return;
    }
    (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.forkJoin)(saveObservables).subscribe({
      next: result => {
        if (result !== null) {
          this.notify('Tarifas guardadas exitosamente', 'success');
          this.submitted = false;
          this.form.reset();
          this.emitList.emit();
          this.modalService.dismissAll();
        }
      },
      error: error => {
        this.submitted = false;
        this.notify('Error en proceso de Guardar: ' + error, 'error');
      }
    });
  }
  /* API requests */
  getClasificadoresRuat() {
    this.clasificadoresRuatService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.clasificadoresRuatList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar los clasificadores RUAT', 'error');
      }
    });
  }
  getCategorias() {
    this.categoriaService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoriasList = data.payload;
        }
      },
      error: error => {
        this.notify('No se pudo recuperar las categorías', 'error');
      }
    });
  }
  addTariff(datos) {
    return this.tarifaService.save(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(result);
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(null);
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.catchError)(error => {
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(null);
    }));
  }
  updateTariff(datos) {
    return this.tarifaService.update(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.switchMap)(result => {
      if (result.status === 'OK') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(result);
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(null);
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.catchError)(error => {
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(null);
    }));
  }
  deleteTarifa(uuid) {
    return this.tarifaService.delete(uuid).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_11__.tap)(data => {
      if (data.status === 'OK') {
        this.notify('Tarifa eliminada exitosamente', 'success');
      } else {
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'No se pudo eliminar la Tarifa',
          confirmButtonColor: '#299cdb'
        });
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.catchError)(error => {
      sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
        text: error,
        confirmButtonColor: '#299cdb',
        icon: 'error'
      });
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(false);
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_12__.map)(response => true), (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.catchError)(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(false)));
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 2000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().DismissReason).timer) {}
    });
  }
  closeModal() {
    this.accion = '';
    this.submitted = false;
    this.form.reset();
    this.modalService.dismissAll();
  }
  static {
    this.ɵfac = function ModalTarifaComponent_Factory(t) {
      return new (t || ModalTarifaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_tarifa_service__WEBPACK_IMPORTED_MODULE_2__.TarifaService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_3__.ClasificadorRuatService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_4__.CategoriasService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
      type: ModalTarifaComponent,
      selectors: [["app-modal-tarifa"]],
      viewQuery: function ModalTarifaComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c0, 7);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.deleteConfirmation = _t.first);
        }
      },
      inputs: {
        accion: "accion",
        row: "row"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵStandaloneFeature"]],
      decls: 34,
      vars: 10,
      consts: [["deleteConfirmation", ""], [1, "modal-content"], [1, "modal-header", "bg-info-subtle", "p-2"], [1, "d-flex", "flex-column", "w-100"], [1, "d-flex", "align-items-center", "mb-1"], [1, "las", "la-store", "me-2"], [1, "modal-title", "mb-0", "fw-semibold"], [1, "text-muted"], [1, "d-flex", "align-items-center"], [1, "ri-money-dollar-circle-line", "me-2"], [1, "modal-title", "mb-0"], [4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body", "p-4", 2, "max-height", "60vh", "overflow-y", "auto"], ["formArrayName", "tarifasDtoList", 4, "ngIf"], [1, "modal-footer", "bg-light", "py-2"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "ri-information-line", "me-1"], [1, "text-danger"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line"], ["type", "submit", "class", "btn btn-success", 3, "disabled", 4, "ngIf"], ["class", "alert alert-info", 4, "ngIf"], [1, "alert", "alert-info"], [1, "ri-information-line", "me-2"], ["formArrayName", "tarifasDtoList"], ["class", "card tarifa-option gap-2 mb-2", 3, "formGroupName", 4, "ngFor", "ngForOf"], [1, "card", "tarifa-option", "gap-2", "mb-2", 3, "formGroupName"], [1, "card-header", "tarifa-header", "p-0"], [1, "tarifa-title"], [1, "text-primary", "mb-1"], [1, "ri-price-tag-3-line"], [1, "tarifa-status", "mx-3", "mb-1", "small"], [1, "badge", 3, "ngClass"], [1, "tarifa-price"], [1, "amount"], [1, "currency"], [1, "tarifa-meta", "mb-0"], ["class", "tarifa-item", 4, "ngIf"], [1, "tarifa-item"], [1, "text-muted", "mb-0", "small"], [1, "ri-money-dollar-circle-line"], [1, "badge", "bg-primary-subtle", "text-primary"], ["class", "badge bg-light-subtle text-body", 4, "ngIf"], [1, "ri-calendar-event-line"], [1, "mb-0"], ["class", "text-muted", 4, "ngIf"], [1, "tarifa-meta", "m-0", "p-0"], [1, "d-flex", "gap-1", "flex-wrap"], ["class", "badge bg-success-subtle text-success", 4, "ngFor", "ngForOf"], ["class", "tarifa-meta m-0 p-0", 4, "ngIf"], [1, "badge", "bg-light", "text-body", "fs-10", "fw-medium"], [1, "mdi", "mdi-star", "text-warning", "me-1"], [1, "badge", "bg-light-subtle", "text-body"], [1, "ri-repeat-line"], [1, "ri-time-line", "me-1"], [1, "badge", "bg-light", "text-dark"], [1, "badge", "bg-success-subtle", "text-success"], [1, "text-muted", "mb-1", "small"], [1, "ri-file-list-3-line"], [1, "table-responsive"], [1, "table", "table-sm", "table-bordered"], [1, "table-light"], [1, "text-end"], [1, "text-center"], [4, "ngFor", "ngForOf"], ["class", "card mb-2 border", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-success", 3, "click", "disabled"], [1, "ri-add-line"], [1, "card", "mb-2", "border", 3, "formGroupName"], [1, "card-header", "bg-light", "d-flex", "align-items-center", "p-2"], [1, "badge", "bg-primary", "me-2"], [1, "form-check", "form-switch", "mb-0"], ["type", "checkbox", "formControlName", "activo", 1, "form-check-input", 3, "id"], [1, "form-check-label", "small", 3, "for"], ["type", "button", "class", "btn btn-sm btn-danger ms-auto", 3, "disabled", "click", 4, "ngIf"], [1, "card-body", "p-2"], [1, "row", "g-2"], [1, "col-lg-8", "col-6"], [1, "form-label", "mb-0", "small"], ["bindLabel", "nombre", "formControlName", "clasificadorRuatDto", "placeholder", "Seleccionar", 1, "ng-select-sm", 3, "change", "items", "ngClass"], ["class", "invalid-feedback d-block", 4, "ngIf"], [1, "col-lg-4", "col-6"], ["formControlName", "tipoCobro", 1, "form-select", "form-select-sm", 3, "change", "ngClass"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["class", "invalid-feedback", 4, "ngIf"], ["class", "col-lg-3 col-6", 4, "ngIf"], ["class", "col-lg-9 col-6", 4, "ngIf"], [1, "col-lg-6"], [1, "form-label", "mb-0"], ["type", "text", "placeholder", "Tarifa diurna", "formControlName", "descripcion", 1, "form-control", "form-control-sm"], [1, "col-lg-4"], ["bindLabel", "nombre", "formControlName", "categoriasDtoList", "placeholder", "Seleccione", 1, "ng-select-sm", 3, "items", "multiple", "ngClass"], [1, "col-lg-2"], ["type", "number", "step", "0.01", "placeholder", "150.00", "formControlName", "precioBase", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "row", "g-2", "mt-1"], [1, "col-lg-3", "col-6"], ["type", "date", "formControlName", "fechaInicio", 1, "form-control", "form-control-sm", 3, "ngClass"], ["type", "date", "formControlName", "fechaFin", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "desde", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "hasta", 1, "form-control", "form-control-sm"], [1, "col-12"], ["rows", "2", "formControlName", "observaciones", "placeholder", "Observaciones adicionales", 1, "form-control", "form-control-sm"], [1, "card", "bg-light", "border-0", "mb-0"], [1, "card-header", "d-flex", "justify-content-between", "align-items-center", "py-1", "px-2"], [1, "mb-0", "small"], [1, "las", "la-plus-square", "me-1"], ["type", "button", 1, "btn", "btn-sm", "btn-success", "py-0", "px-2", 3, "click", "disabled"], ["formArrayName", "conceptosDtos"], ["class", "text-muted text-center py-1", 4, "ngIf"], ["class", "border rounded p-2 mb-2", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", "ms-auto", 3, "click", "disabled"], [1, "ri-delete-bin-line"], [1, "invalid-feedback", "d-block"], [3, "value"], [1, "invalid-feedback"], ["formControlName", "frecuencia", 1, "form-select", "form-select-sm", 3, "change", "ngClass"], [1, "col-lg-9", "col-6"], [1, "border", "rounded", "p-2", "bg-light"], [1, "small"], [1, "fw-semibold", "d-block", "mb-2"], [1, "row", "g-1"], ["class", "col-4", 4, "ngFor", "ngForOf"], [1, "mt-2", "p-2", "border-top", "bg-white", "rounded"], [1, "fw-semibold"], [1, "mt-1", "small"], [1, "col-4"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "change", "id", "checked"], [1, "text-muted", "text-center", "py-1"], [1, "border", "rounded", "p-2", "mb-2", 3, "formGroupName"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-1"], [1, "badge", "bg-secondary", "small"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", "py-0", "px-2", 3, "click", "disabled"], [1, "col-lg-4", "col-md-6"], ["type", "text", "placeholder", "Ej: Luz, Agua, Mantenimiento", "formControlName", "concepto", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "col-lg-3", "col-md-3", "col-6"], ["formControlName", "tipo", 1, "form-select", "form-select-sm", 3, "ngClass"], ["type", "number", "step", "0.01", "min", "0", "placeholder", "0.00", "formControlName", "valor", 1, "form-control", "form-control-sm", 3, "ngClass"], [1, "col-lg-2", "col-12"], [1, "form-check", "form-switch", "mt-2"], ["class", "col-12", 4, "ngIf"], [1, "bg-light", "rounded", "p-2"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-0"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-primary", "py-0", "px-2", 3, "click"], ["class", "row g-2", 4, "ngIf"], [1, "col-6"], ["type", "time", "formControlName", "desde", "placeholder", "HH:MM", 1, "form-control", "form-control-sm"], ["type", "time", "formControlName", "hasta", "placeholder", "HH:MM", 1, "form-control", "form-control-sm"], [1, "text-info"], [1, "alert", "alert-info", "py-1", "px-2", "mb-0"], ["class", "ms-2", 4, "ngIf"], [1, "badge", "ms-2", 3, "ngClass"], [1, "ms-2"], ["type", "submit", 1, "btn", "btn-success", 3, "disabled"], [1, "ri-save-line"], [1, "spinner-border", "spinner-border-sm", "me-2"], [1, "modal-header"], [1, "modal-title"], ["type", "button", 1, "btn-close", 3, "click"], [1, "modal-body", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4"], [1, "modal-footer"], [1, "btn", "btn-link", "link-success", 3, "click"], ["type", "button", 1, "btn", "btn-danger", 3, "click"]],
      template: function ModalTarifaComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "h6", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](10, "i", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](11, "h5", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](12, ModalTarifaComponent_span_12_Template, 2, 0, "span", 11)(13, ModalTarifaComponent_span_13_Template, 2, 0, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "button", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_Template_button_click_14_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.closeModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "form", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngSubmit", function ModalTarifaComponent_Template_form_ngSubmit_15_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.saveData());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "div", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, ModalTarifaComponent_div_17_Template, 3, 2, "div", 11)(18, ModalTarifaComponent_div_18_Template, 5, 2, "div", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "div", 16)(20, "div", 17)(21, "div", 8)(22, "small", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](23, "i", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](24, "span", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](25, "*");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](26, " Campos obligatorios ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "div", 20)(28, "button", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ModalTarifaComponent_Template_button_click_28_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx.closeModal());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](29, "i", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](30, " Cerrar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](31, ModalTarifaComponent_button_31_Template, 3, 3, "button", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](32, ModalTarifaComponent_ng_template_32_Template, 19, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx.row.complejoDto.nombre, " - ");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx.row.codigo);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "show");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.form);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "show");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_14__.DecimalPipe, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormsModule, _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__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.CheckboxControlValueAccessor, _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__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupName, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormArrayName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_15__.TranslateModule],
      styles: [".tarifa-option[_ngcontent-%COMP%] {\n  border: 2px solid #e9ecef;\n  border-radius: 8px;\n  padding: 1rem;\n  cursor: pointer;\n  transition: all 0.2s ease;\n}\n.tarifa-option[_ngcontent-%COMP%]:hover {\n  border-color: #0d6efd;\n  transform: translateY(-2px);\n  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);\n}\n.tarifa-option[_ngcontent-%COMP%]:hover   .tarifa-action[_ngcontent-%COMP%] {\n  background-color: #0d6efd;\n  color: white;\n}\n.tarifa-option[_ngcontent-%COMP%]:active {\n  transform: translateY(0);\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n  gap: 1rem;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: baseline;\n  gap: 0.25rem;\n  flex-shrink: 0;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%] {\n  font-size: 1rem;\n  font-weight: 600;\n  color: #0d6efd;\n  line-height: 1;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-header[_ngcontent-%COMP%]   .tarifa-price[_ngcontent-%COMP%]   .currency[_ngcontent-%COMP%] {\n  font-size: 0.75rem;\n  font-weight: 300;\n  color: #6c757d;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-meta[_ngcontent-%COMP%] {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 0.5rem;\n  margin-bottom: 0.75rem;\n}\n.tarifa-option[_ngcontent-%COMP%]   .tarifa-action[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 0.5rem 0.75rem;\n  margin: 0 -1rem -1rem;\n  border-top: 1px solid #e9ecef;\n  font-size: 0.875rem;\n  font-weight: 600;\n  color: #0d6efd;\n  transition: all 0.2s ease;\n  border-radius: 0 0 6px 6px;\n}\n.tarifa-option[_ngcontent-%COMP%]:hover   .tarifa-action[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  transform: translateX(4px);\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL2ZpZWxkL21vZGFsLXRhcmlmYS9tb2RhbC10YXJpZmEuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUk7RUFDRSx5QkFBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLGVBQUE7RUFDQSx5QkFBQTtBQUNOO0FBQ007RUFDRSxxQkFBQTtFQUNBLDJCQUFBO0VBQ0EsK0NBQUE7QUFDUjtBQUNRO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0FBQ1Y7QUFHTTtFQUNFLHdCQUFBO0FBRFI7QUFJTTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHVCQUFBO0VBQ0EsU0FBQTtBQUZSO0FBSVE7RUFDRSxhQUFBO0VBQ0EscUJBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtBQUZWO0FBSVU7RUFDRSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsY0FBQTtBQUZaO0FBS1U7RUFDRSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtBQUhaO0FBUU07RUFDRSxhQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxzQkFBQTtBQU5SO0FBU007RUFDRSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EscUJBQUE7RUFDQSw2QkFBQTtFQUNBLG1CQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EseUJBQUE7RUFDQSwwQkFBQTtBQVBSO0FBVU07RUFDRSwwQkFBQTtBQVJSIiwic291cmNlc0NvbnRlbnQiOlsiICAgIC50YXJpZmEtb3B0aW9uIHtcclxuICAgICAgYm9yZGVyOiAycHggc29saWQgI2U5ZWNlZjtcclxuICAgICAgYm9yZGVyLXJhZGl1czogOHB4O1xyXG4gICAgICBwYWRkaW5nOiAxcmVtO1xyXG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICAgIHRyYW5zaXRpb246IGFsbCAwLjJzIGVhc2U7XHJcbiAgICAgIFxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICBib3JkZXItY29sb3I6ICMwZDZlZmQ7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0ycHgpO1xyXG4gICAgICAgIGJveC1zaGFkb3c6IDAgNHB4IDEycHggcmdiYSgxMywgMTEwLCAyNTMsIDAuMTUpO1xyXG4gICAgICAgIFxyXG4gICAgICAgIC50YXJpZmEtYWN0aW9uIHtcclxuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICMwZDZlZmQ7XHJcbiAgICAgICAgICBjb2xvcjogd2hpdGU7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmOmFjdGl2ZSB7XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDApO1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAudGFyaWZhLWhlYWRlciB7XHJcbiAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbiAgICAgICAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XHJcbiAgICAgICAgZ2FwOiAxcmVtO1xyXG4gICAgICAgIFxyXG4gICAgICAgIC50YXJpZmEtcHJpY2Uge1xyXG4gICAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICAgIGFsaWduLWl0ZW1zOiBiYXNlbGluZTtcclxuICAgICAgICAgIGdhcDogMC4yNXJlbTtcclxuICAgICAgICAgIGZsZXgtc2hyaW5rOiAwO1xyXG4gICAgICAgICAgXHJcbiAgICAgICAgICAuYW1vdW50IHtcclxuICAgICAgICAgICAgZm9udC1zaXplOiAxcmVtO1xyXG4gICAgICAgICAgICBmb250LXdlaWdodDogNjAwO1xyXG4gICAgICAgICAgICBjb2xvcjogIzBkNmVmZDtcclxuICAgICAgICAgICAgbGluZS1oZWlnaHQ6IDE7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBcclxuICAgICAgICAgIC5jdXJyZW5jeSB7XHJcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMC43NXJlbTtcclxuICAgICAgICAgICAgZm9udC13ZWlnaHQ6IDMwMDtcclxuICAgICAgICAgICAgY29sb3I6ICM2Yzc1N2Q7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAudGFyaWZhLW1ldGEge1xyXG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgICAgZmxleC13cmFwOiB3cmFwO1xyXG4gICAgICAgIGdhcDogMC41cmVtO1xyXG4gICAgICAgIG1hcmdpbi1ib3R0b206IDAuNzVyZW07XHJcbiAgICAgIH1cclxuICAgICAgXHJcbiAgICAgIC50YXJpZmEtYWN0aW9uIHtcclxuICAgICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcclxuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICAgIHBhZGRpbmc6IDAuNXJlbSAwLjc1cmVtO1xyXG4gICAgICAgIG1hcmdpbjogMCAtMXJlbSAtMXJlbTtcclxuICAgICAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2U5ZWNlZjtcclxuICAgICAgICBmb250LXNpemU6IDAuODc1cmVtO1xyXG4gICAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICAgICAgY29sb3I6ICMwZDZlZmQ7XHJcbiAgICAgICAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZTtcclxuICAgICAgICBib3JkZXItcmFkaXVzOiAwIDAgNnB4IDZweDtcclxuICAgICAgfVxyXG4gICAgICBcclxuICAgICAgJjpob3ZlciAudGFyaWZhLWFjdGlvbiBpIHtcclxuICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoNHB4KTtcclxuICAgICAgfVxyXG4gICAgfSJdLCJzb3VyY2VSb290IjoiIn0= */"]
    });
  }
}

/***/ }),

/***/ 85840:
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/modals/modal-booking-one-time/modal-booking-one-time.component.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingOneTimeModalComponent: () => (/* binding */ BookingOneTimeModalComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modules/reports/ticket/ticket.component */ 89291);
/* harmony import */ var src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/configuracionSistema.service */ 93866);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var src_app_core_services_api_reserva_puntual_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/reserva-puntual.service */ 32451);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);




















const _c0 = ["validationModal"];
const _c1 = ["ticketModal"];
const _c2 = ["annularModal"];
function BookingOneTimeModalComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 16)(1, "div", 17)(2, "span", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "p", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, "Procesando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
}
function BookingOneTimeModalComponent_div_0_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 20)(1, "div", 21)(2, "div", 22)(3, "div", 23)(4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](5, "img", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "h5", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "div", 22)(9, "label", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](10, "Tasa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](11, "input", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](12, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_div_2_Template_button_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Reserva: ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.nombre) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa);
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_Conditional_4_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r5);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.openDeleteModal("annularModal"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Anular ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_button_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_Conditional_4_button_3_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r6);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.confirmUsage());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Confirmar Uso ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_Conditional_4_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      const validationModal_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.openValidationModal(validationModal_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Validar Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_div_75_div_5_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 69)(1, "small")(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Observaciones:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const pago_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", pago_r10.observaciones, "");
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_div_75_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 65)(1, "div", 66)(2, "div", 67)(3, "small")(4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](7, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "div", 67)(9, "small")(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, "Monto:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "div", 67)(14, "small")(15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](16, "Forma:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](18, "div", 67)(19, "small")(20, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](21, "Entidad:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](23, BookingOneTimeModalComponent_div_0_Conditional_4_div_75_div_5_div_23_Template, 5, 1, "div", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const pago_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind2"](7, 5, pago_r10.fechaPago, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Bs. ", pago_r10.montoPagado, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", pago_r10.formaPago, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", pago_r10.entidadFinanciera, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", pago_r10.observaciones);
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_div_75_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "h6", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, BookingOneTimeModalComponent_div_0_Conditional_4_div_75_div_5_Template, 24, 8, "div", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_div_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "h6", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "i", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Observaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r2.row.observaciones);
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 30)(1, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](2, BookingOneTimeModalComponent_div_0_Conditional_4_button_2_Template, 3, 0, "button", 32)(3, BookingOneTimeModalComponent_div_0_Conditional_4_button_3_Template, 3, 0, "button", 33)(4, BookingOneTimeModalComponent_div_0_Conditional_4_button_4_Template, 3, 0, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "button", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_Conditional_4_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r4);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      const ticketModal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.openTicketModal(ticketModal_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](6, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, "Ver Ticket ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "div", 36)(9, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](10, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](11, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, "Estado Actual: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "span", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](15, "small", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](17, "div", 40)(18, "div", 41)(19, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "div", 44)(22, "h6", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](23, " TASA: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](24, "span", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](26, "div", 41)(27, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](28, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](29, "div", 44)(30, "h6", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](31, " Total: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](32, "span", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](34, "div", 41)(35, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](36, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](37, "div", 44)(38, "h6", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](40, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](41, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](42, "i", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](43, "div", 44)(44, "h6", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](46, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](47, "div", 51)(48, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](49, "i", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](50, "div", 44)(51, "h6", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](52, "Contribuyente: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](53, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](54);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](55, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](56);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](57, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](59, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](60, "div", 41)(61, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](62, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](63, "div", 44)(64, "h6", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](65);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](66, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](67);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](68, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](69, " Categor\u00EDa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](70, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](71);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](72, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](73, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](75, BookingOneTimeModalComponent_div_0_Conditional_4_div_75_Template, 6, 1, "div", 57)(76, BookingOneTimeModalComponent_div_0_Conditional_4_div_76_Template, 7, 1, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.canActivate.includes("ANULAR") && ((ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) === ctx_r2.EstadoReserva.SOLICITADA || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) === ctx_r2.EstadoReserva.PENDIENTE));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) === "PAGADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.canActivate.includes("VALIDAR") && (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoValidacion) === "PENDIENTE");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r2.getStatusDescription(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa) || "N/A", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"]("Bs. ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal) || "0.00", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Fecha de Uso: ", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind2"](40, 23, ctx_r2.row.fechaUso, "dd MMMM, yyyy"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate2"](" Horario: ", ctx_r2.row.horaInicio, " - ", ctx_r2.row.horaFin, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.primerApellido) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.segundoApellido), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate2"](" ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.numeroDocumento, " - ", ctx_r2.getCityDescription(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.numeroDocumento), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Telf: ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.telefono, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate2"](" Campo: ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.nombre, " - ", ctx_r2.row.superficie, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r2.row.categoria);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Capacidad: ", ctx_r2.row.cantidadPersonas, " personas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.row.observaciones);
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_5_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " La fecha de uso es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_5_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " La hora de inicio es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_5_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " La hora de fin es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_div_0_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "form", 11)(1, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](2, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Nota:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, " Solo puedes modificar el horario de reservas en estado PENDIENTE ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "div", 73)(7, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, "Complejo/Cancha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](9, "input", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "div", 73)(11, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, "Contribuyente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](13, "input", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "div", 76)(15, "div", 77)(16, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17, "Total Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](18, "input", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](19, "div", 79)(20, "span", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](22, "div", 76)(23, "div", 67)(24, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](25, "Fecha de Uso *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](26, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](27, "input", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](28, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](29, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](30, BookingOneTimeModalComponent_div_0_Conditional_5_div_30_Template, 2, 0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](31, "div", 86)(32, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](33, "Hora Inicio *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](34, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](35, "input", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](36, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](37, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](38, BookingOneTimeModalComponent_div_0_Conditional_5_div_38_Template, 2, 0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](39, "div", 86)(40, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](41, "Hora Fin *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](42, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](43, "input", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](44, "span", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](45, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](46, BookingOneTimeModalComponent_div_0_Conditional_5_div_46_Template, 2, 0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](47, "div", 90)(48, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](49, "Observaciones (opcional)");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](50, "textarea", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r2.reservationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.primerApellido) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.segundoApellido));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r2.form["fechaUso"].invalid && ctx_r2.form["fechaUso"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.form["fechaUso"].invalid && ctx_r2.form["fechaUso"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r2.form["horaInicio"].invalid && ctx_r2.form["horaInicio"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.form["horaInicio"].invalid && ctx_r2.form["horaInicio"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r2.form["horaFin"].invalid && ctx_r2.form["horaFin"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.form["horaFin"].invalid && ctx_r2.form["horaFin"].touched);
  }
}
function BookingOneTimeModalComponent_div_0_button_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_button_10_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r11);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", !ctx_r2.reservationForm.valid || !ctx_r2.reservationForm.dirty || ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Guardando..." : "Guardar Cambios", " ");
  }
}
function BookingOneTimeModalComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](1, BookingOneTimeModalComponent_div_0_div_1_Template, 6, 0, "div", 8)(2, BookingOneTimeModalComponent_div_0_div_2_Template, 13, 2, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, BookingOneTimeModalComponent_div_0_Conditional_4_Template, 77, 26)(5, BookingOneTimeModalComponent_div_0_Conditional_5_Template, 51, 15, "form", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "div", 12)(7, "button", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_div_0_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r1);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](8, "i", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](10, BookingOneTimeModalComponent_div_0_button_10_Template, 3, 2, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit" || ctx_r2.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵconditional"](4, ctx_r2.accion === "show" ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵconditional"](5, ctx_r2.accion === "edit" ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit");
  }
}
function BookingOneTimeModalComponent_ng_template_1_app_ticket_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "app-ticket", 96);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("bookingType", ctx_r2.row.reservaDto.tipoReserva || "puntual")("reservationData", ctx_r2.row.reservaDto)("autoLoad", true)("showAsModal", true);
  }
}
function BookingOneTimeModalComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](0, BookingOneTimeModalComponent_ng_template_1_app_ticket_0_Template, 1, 4, "app-ticket", 95);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto);
  }
}
function BookingOneTimeModalComponent_ng_container_3_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " El motivo es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_container_3_div_34_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, "La observaci\u00F3n es requerida.");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_container_3_div_34_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, "La observaci\u00F3n debe tener al menos 10 caracteres.");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_container_3_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](1, BookingOneTimeModalComponent_ng_container_3_div_34_div_1_Template, 2, 0, "div", 6)(2, BookingOneTimeModalComponent_ng_container_3_div_34_div_2_Template, 2, 0, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const observationCtrl_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", observationCtrl_r14.errors == null ? null : observationCtrl_r14.errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", observationCtrl_r14.errors == null ? null : observationCtrl_r14.errors["minlength"]);
  }
}
function BookingOneTimeModalComponent_ng_container_3_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 124)(1, "div", 125)(2, "div", 126)(3, "span", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
  }
}
function BookingOneTimeModalComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "div", 97)(2, "h5", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Anular Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_container_3_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 10)(6, "div", 100)(7, "div", 101)(8, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, "\u00BFEst\u00E1s seguro de Anular la Reserva?");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, "Esta acci\u00F3n no se puede deshacer.");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](12, "form", 102, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("ngSubmit", function BookingOneTimeModalComponent_ng_container_3_Template_form_ngSubmit_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const annulForm_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.annularData(annulForm_r13.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "div", 103)(15, "div", 104)(16, "label", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17, "Indique el motivo de la Anulaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](18, "select", 106, 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeModalComponent_ng_container_3_Template_select_ngModelChange_18_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayBindingSet"](ctx_r2.motivo, $event) || (ctx_r2.motivo = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](20, "option", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](21, "Seleccione un motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](22, "option", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](23, "A SOLICITUD DEL CONTRIBUYENTE");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](24, "option", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](25, "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](26, "option", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](27, "REGISTRO DE DATOS INCONSISTENTES");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](28, BookingOneTimeModalComponent_ng_container_3_div_28_Template, 2, 0, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](29, "div", 104)(30, "label", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](31, "Escriba la Observaci\u00F3n de la Reserva *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](32, "input", 113, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeModalComponent_ng_container_3_Template_input_ngModelChange_32_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayBindingSet"](ctx_r2.observation, $event) || (ctx_r2.observation = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](34, BookingOneTimeModalComponent_ng_container_3_div_34_Template, 3, 2, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](35, "p", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](36, "i", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](37, " Al confirmar no podr\u00E1 reactivar esta reserva nuevamente. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](38, "div", 116)(39, "div", 117)(40, "button", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_container_3_Template_button_click_40_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](41, "i", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](42, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](43, "button", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_container_3_Template_button_click_43_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r12);
      const annulForm_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.annularData(annulForm_r13.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](44, "i", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](46, BookingOneTimeModalComponent_ng_container_3_div_46_Template, 5, 0, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const annulForm_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](13);
    const motivoCtrl_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](19);
    const observationCtrl_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](33);
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", motivoCtrl_r15.invalid && motivoCtrl_r15.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.motivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", motivoCtrl_r15.invalid && motivoCtrl_r15.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", observationCtrl_r14.invalid && observationCtrl_r14.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.observation);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", observationCtrl_r14.invalid && observationCtrl_r14.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", annulForm_r13.invalid || ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Anulando..." : "Anular", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
  }
}
function BookingOneTimeModalComponent_ng_template_4_div_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " Seleccione un estado de validaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_div_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " El motivo del rechazo es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_span_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, " Las observaciones son opcionales para la aprobaci\u00F3n. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_span_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, " Debe proporcionar un motivo para el rechazo de la reserva. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Proceso de Aprobaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, " \u2022 La reserva ser\u00E1 registrada en RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, " \u2022 Se generar\u00E1 un n\u00FAmero de tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, " \u2022 El contribuyente tendr\u00E1 24 horas para realizar el pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " \u2022 La reserva cambiar\u00E1 a estado \"PENDIENTE\" ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Proceso de Rechazo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, " \u2022 La reserva ser\u00E1 marcada como \"RECHAZADA\"");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, " \u2022 Se notificar\u00E1 al contribuyente por email");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, " \u2022 El contribuyente podr\u00E1 realizar una nueva reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " \u2022 Esta acci\u00F3n no se puede deshacer ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeModalComponent_ng_template_4_div_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 124)(1, "div", 125)(2, "div", 126)(3, "span", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobando..." : "Rechazando...", " ");
  }
}
function BookingOneTimeModalComponent_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 97)(1, "h5", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Validar Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_template_4_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r16);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "div", 10)(5, "div", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](6, "i", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, "Informaci\u00F3n de la Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](9, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " Tasa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](12, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](14, " | Contribuyente: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17, " | Monto: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](18, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](21, " Fecha: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](22, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](24, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](25, " | Horario: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](26, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](28, "form", 11)(29, "div", 104)(30, "label", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](31, "Estado de Validaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](32, "select", 130)(33, "option", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](34, "Aprobar Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](35, "option", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](36, "Rechazar Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](37, BookingOneTimeModalComponent_ng_template_4_div_37_Template, 2, 0, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](38, "div", 104)(39, "label", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](41, "textarea", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](42, BookingOneTimeModalComponent_ng_template_4_div_42_Template, 2, 0, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](43, "small", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](44, BookingOneTimeModalComponent_ng_template_4_span_44_Template, 3, 0, "span", 6)(45, BookingOneTimeModalComponent_ng_template_4_span_45_Template, 3, 0, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](46, BookingOneTimeModalComponent_ng_template_4_div_46_Template, 12, 0, "div", 134)(47, BookingOneTimeModalComponent_ng_template_4_div_47_Template, 12, 0, "div", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](48, "div", 116)(49, "button", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_template_4_Template_button_click_49_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r16);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](50, "i", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](51, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](52, "button", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function BookingOneTimeModalComponent_ng_template_4_Template_button_click_52_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r16);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r2.validateReservation());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](53, "i", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](54);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](55, BookingOneTimeModalComponent_ng_template_4_div_55_Template, 7, 1, "div", 122);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"]((ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa) || "Pendiente");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"]((ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"]("Bs. ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind2"](24, 25, ctx_r2.row.fechaUso, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate2"]("", ctx_r2.row.horaInicio, " - ", ctx_r2.row.horaFin, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r2.validationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Observaciones (Opcional)" : "Motivo de Rechazo *", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("placeholder", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Ingrese observaciones para la aprobaci\u00F3n (opcional)..." : "Ingrese el motivo del rechazo (requerido)...");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "APROBADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "RECHAZADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "APROBADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "RECHAZADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassMap"](ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "btn-success" : "btn-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", ctx_r2.showLoading || !ctx_r2.validationForm.valid);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Procesando..." : ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobar Reserva" : "Rechazar Reserva", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
  }
}
class BookingOneTimeModalComponent {
  constructor(modalService, formBuilder, systemConfigsService, ruatService, pagoService, router, reservaPuntualService, reservaService, authService) {
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.systemConfigsService = systemConfigsService;
    this.ruatService = ruatService;
    this.pagoService = pagoService;
    this.router = router;
    this.reservaPuntualService = reservaPuntualService;
    this.reservaService = reservaService;
    this.authService = authService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_11__.EventEmitter();
    this.systemConfigList = [];
    this.CityAcronym = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.CityAcronym;
    this.EstadoReserva = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva;
    this.submitted = false;
    this.validationSubmitted = false;
    this.showLoading = false;
    this.motivo = '';
    this.observation = '';
  }
  ngOnInit() {
    this.userData = this.authService.currentUser();
    if (this.authService.tokenUser() !== 'CONTRIBUYENTE_SESSION') {
      this.userData = this.userData.designacion.personaDto;
    }
    this.getConfigsSystem();
    this.initForm();
  }
  ngAfterViewInit() {
    setTimeout(() => {
      if (!this.accion) return;
      switch (this.accion) {
        case 'validarModal':
          this.openValidationModal(this.validationModal);
          break;
        case 'annularModal':
          if (this.annularModal) {
            this.openDeleteModal(this.annularModal);
          }
          break;
        case 'ticketModal':
          this.openTicketModal(this.ticketModal);
          break;
      }
    });
  }
  initForm() {
    this.reservationForm = this.formBuilder.group({
      fechaUso: [this.row?.fechaUso ? new Date(this.row.fechaUso).toISOString().split('T')[0] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      horaInicio: [this.row?.horaInicio || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      horaFin: [this.row?.horaFin || '', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      observaciones: [this.row?.observaciones || '']
    });
  }
  initValidationForm() {
    this.validationForm = this.formBuilder.group({
      validationStatus: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required],
      validationObservation: ['']
    });
    this.validationForm.get('validationStatus')?.valueChanges.subscribe(status => {
      this.updateObservationValidation(status);
    });
  }
  updateObservationValidation(status) {
    const observationControl = this.validationForm.get('validationObservation');
    if (status === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.RECHAZADA) {
      observationControl?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required]);
      observationControl?.updateValueAndValidity();
    } else {
      observationControl?.clearValidators();
      observationControl?.updateValueAndValidity();
    }
  }
  get form() {
    return this.reservationForm.controls;
  }
  get validationFormControls() {
    return this.validationForm.controls;
  }
  saveData() {
    this.submitted = true;
    if (this.reservationForm.valid) {
      let datos = {
        ...this.row,
        ...this.reservationForm.value
      };
      this.updateReservaPuntual(datos);
    } else {
      this.notify('Formulario Inválido! Por favor complete todos los campos requeridos.', 'error');
    }
  }
  /**
   * Open modals
   */
  openValidationModal(content) {
    this.initValidationForm();
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
    this.validationSubmitted = false;
    const modalRef = this.modalService.open(content, {
      centered: true,
      size: 'md',
      backdrop: 'static'
    });
    modalRef.dismissed.subscribe(reason => {
      if (this.accion === 'validar') {
        this.onCloseModal();
      }
    });
    modalRef.closed.subscribe(result => {
      if (this.accion === 'validar') {
        this.onCloseModal();
      }
    });
  }
  openDeleteModal(content) {
    this.accion = content;
    this.motivo = '';
    this.observation = '';
  }
  openTicketModal(content) {
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
    this.emitList.emit();
  }
  confirmUsage() {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: 'Confirmar Uso',
      text: '¿Estás seguro de que la reserva se ha utilizado completamente?',
      icon: 'question',
      showCancelButton: true,
      confirmButtonText: 'Sí, confirmar',
      cancelButtonText: 'Cancelar',
      confirmButtonColor: '#299cdb',
      cancelButtonColor: '#6c757d'
    }).then(result => {
      if (result.isConfirmed) {
        this.showLoading = true;
        const updatedReserva = {
          ...this.row,
          reservaDto: {
            ...this.row.reservaDto,
            estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
          }
        };
        this.updateReservaPuntual(updatedReserva).then(() => {
          this.showLoading = false;
          this.notify('Reserva marcada como completada exitosamente', 'success');
          this.emitList.emit();
          this.onCloseModal();
        }).catch(error => {
          this.showLoading = false;
          this.notify('Error al actualizar la reserva: ' + error, 'error');
        });
      }
    });
  }
  validateReservation() {
    this.validationSubmitted = true;
    this.updateObservationValidation(this.validationForm.value.validationStatus);
    if (this.validationForm.valid) {
      this.showLoading = true;
      const validationData = this.validationForm.value;
      const isApproved = validationData.validationStatus === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA;
      const reservaUuid = this.row.reservaDto?.uuid;
      if (!reservaUuid) {
        this.showLoading = false;
        this.notify('Error: No se pudo identificar la reserva', 'error');
        return;
      }
      if (isApproved) {
        this.approveReserva(reservaUuid, validationData.validationObservation);
      } else {
        this.rejectReserva(reservaUuid, validationData.validationObservation);
      }
    } else {
      this.notify('Por favor complete todos los campos de validación', 'error');
    }
  }
  /* API REQUESTS */
  getConfigsSystem() {
    this.systemConfigsService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.systemConfigList = data.payload;
        }
      }
    });
  }
  approveReserva(reservaUuid, observaciones = '') {
    var _this = this;
    const aprobadoPor = this.userData.nombreCompleto || this.userData.fullName;
    this.reservaService.aprobarReserva(reservaUuid, aprobadoPor).subscribe({
      next: function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this.showLoading = false;
            yield _this.registerReservationInRuat(data.payload);
            _this.openTicketModal(_this.ticketModal);
            _this.notify('Reserva aprobada exitosamente y registrada en Ruat', 'success');
            // const updatedReservaPuntual = {
            //   ...this.row,
            //   reservaDto: {
            //     ...this.row.reservaDto,
            //     ...reservaActualizada,
            //     observacionesValidacion: observaciones
            //   }
            // };
            // await this.sendValidationEmail(updatedReservaPuntual, true,'');
            // this.emitList.emit();
            // this.modalService.dismissAll();
            // this.onCloseModal();
          } catch (emailError) {
            _this.showLoading = false;
            console.error('Error sending email:', emailError);
            _this.notify('Reserva aprobada exitosamente, pero error al enviar notificación por email', 'warning');
            _this.emitList.emit();
            _this.modalService.dismissAll();
            _this.onCloseModal();
          }
        });
        return function next(_x) {
          return _ref.apply(this, arguments);
        };
      }(),
      error: error => {
        this.showLoading = false;
        console.error('Error approving reservation:', error);
        this.notify('Error al aprobar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  rejectReserva(reservaUuid, motivoRechazo = '') {
    var _this2 = this;
    const aprobadoPor = this.userData.nombreCompleto || this.userData.fullName;
    this.reservaService.rechazarReserva(reservaUuid, motivoRechazo, aprobadoPor).subscribe({
      next: function () {
        var _ref2 = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this2.showLoading = false;
            _this2.openTicketModal(_this2.ticketModal);
            // const updatedReservaPuntual = {
            //   ...this.row,
            //   reservaDto: {
            //     ...this.row.reservaDto,
            //     ...reservaActualizada,
            //     observacionesValidacion: motivoRechazo
            //   }
            // };
            // await this.sendValidationEmail(updatedReservaPuntual, false,'');          
            _this2.notify('Reserva rechazada exitosamente y notificación enviada al contribuyente', 'success');
            // this.emitList.emit();
            // this.modalService.dismissAll();
            // this.onCloseModal();
          } catch (emailError) {
            _this2.showLoading = false;
            console.error('Error sending email:', emailError);
            _this2.notify('Reserva rechazada exitosamente, pero error al enviar notificación por email', 'warning');
            _this2.emitList.emit();
            _this2.modalService.dismissAll();
            _this2.onCloseModal();
          }
        });
        return function next(_x2) {
          return _ref2.apply(this, arguments);
        };
      }(),
      error: error => {
        this.showLoading = false;
        console.error('Error rejecting reservation:', error);
        this.notify('Error al rechazar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  registerReservationInRuat(reservaData) {
    const codigoAlcaldia = this.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
    const codigoUsuario = this.systemConfigList.find(config => config.clave === 'CODIGO_USUARIO_RUAT')?.valorTexto || '';
    const servicioMunicipal = this.systemConfigList.find(config => config.clave === 'SERVICIO_MUNICIPAL_RUAT')?.valorTexto || '';
    const ruatData = {
      codigoAlcaldia: codigoAlcaldia,
      codigoUsuario: reservaData.contribuyenteDto.codigoContribuyente,
      codigoContribuyente: reservaData.contribuyenteDto.codigoContribuyente,
      servicioMunicipal: servicioMunicipal,
      datosConcepto: [{
        numero: '1',
        codigoClasificador: reservaData.tarifaDto.clasificadorRuatDto.codigo,
        tipoArancel: reservaData.tarifaDto.clasificadorRuatDto.tipoArancel || "DI",
        monto: reservaData.montoTotal
      }],
      observacion: reservaData.reservaPuntualDto?.observaciones || reservaData.reservaRecurrenteDto?.observaciones || 'Reserva de Cancha Deportiva GAMQ'
    };
    const code = reservaData.contribuyenteDto.codigoContribuyente || '';
    this.ruatService.createTasa(codigoAlcaldia, codigoUsuario, servicioMunicipal, ruatData, code).subscribe({
      next: response => {
        if (response.status === 'OK') {
          if (response.payload.continuarFlujo) {
            reservaData.numeroTasa = response.payload.numeroTasa;
            this.updateReserva(reservaData);
          } else {
            this.handleError('Error en RUAT', response.payload.mensaje || 'No se pudo registrar la tasa');
          }
        } else {
          this.handleError('Error en RUAT', response.mensaje || 'No se pudo registrar la tasa');
        }
      },
      error: error => {
        this.handleError('Error de conexión con RUAT', error.error?.mensaje || error.message);
      }
    });
  }
  updateReservaPuntual(data) {
    return new Promise((resolve, reject) => {
      this.reservaPuntualService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  updateReserva(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  /* RUAT REQUESTS */
  annularData(formValues) {
    if (!formValues || !this.row?.reservaDto) {
      this.notify('No se pudo obtener los datos de la reserva', 'error');
      return;
    }
    const reserva = this.row.reservaDto;
    if (reserva.esReservaGratuita && (!reserva.numeroTasa || reserva.numeroTasa.trim() === '')) {
      this.cancelGratuitousReservation(reserva, formValues);
    } else {
      this.cancelPaidReservation(reserva, formValues);
    }
  }
  cancelGratuitousReservation(reserva, formValues) {
    const updatedReserva = {
      ...reserva,
      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA,
      motivoRechazo: formValues.motivo
    };
    this.showLoading = true;
    this.reservaService.update(updatedReserva).subscribe({
      next: () => {
        this.showLoading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Reserva Anulada!',
          text: 'La reserva gratuita ha sido anulada exitosamente.',
          icon: 'success',
          confirmButtonColor: '#299cdb',
          timer: 5000,
          timerProgressBar: true
        });
        this.emitList.emit();
        this.modalService.dismissAll('close click');
      },
      error: error => {
        this.showLoading = false;
        this.notify('Error al anular la reserva gratuita localmente', 'error');
      }
    });
  }
  cancelPaidReservation(reserva, formValues) {
    if (!reserva.numeroTasa) {
      this.notify('No se pudo obtener el número de tasa para la anulación en RUAT', 'error');
      return;
    }
    const codigoAlcaldia = this.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
    const codigoUsuario = this.systemConfigList.find(config => config.clave === 'CODIGO_USUARIO_RUAT')?.valorTexto || '';
    const requestData = {
      numeroTasa: reserva.numeroTasa,
      motivo: formValues.motivo,
      observacion: formValues.observation
    };
    this.showLoading = true;
    this.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).subscribe({
      next: resp => {
        if (resp['status'] === 'OK') {
          const text = resp.payload['mensajeConfirmacion'];
          const updatedReserva = {
            ...reserva,
            estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA,
            motivoRechazo: formValues.motivo
          };
          this.reservaService.update(updatedReserva).subscribe({
            next: () => {
              this.showLoading = false;
              sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
                title: 'Anulado!',
                text: text,
                icon: 'success',
                confirmButtonColor: '#299cdb',
                timer: 5000,
                timerProgressBar: true
              });
              this.emitList.emit();
              this.modalService.dismissAll('close click');
            },
            error: error => {
              this.showLoading = false;
              this.notify('Reserva anulada en RUAT pero error al actualizar localmente', 'warning');
            }
          });
        } else {
          this.showLoading = false;
          this.notify(resp.payload || 'Error al anular en RUAT', 'error');
        }
      },
      error: error => {
        this.showLoading = false;
        this.notify('Error al realizar la anulación en RUAT', 'error');
      }
    });
  }
  /* Status Helper Methods */
  getStatusBadgeClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA:
        return 'bg-warning-subtle text-warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE:
        return 'bg-info-subtle text-info';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA:
        return 'bg-primary-subtle text-primary';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA:
        return 'bg-danger-subtle text-danger';
      // case EstadoReserva.RECHAZADA:
      //   return 'bg-danger-subtle text-danger';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA:
        return 'bg-dark-subtle text-dark';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW:
        return 'bg-dark-subtle text-dark';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getValidationBadgeClass(estado) {
    switch (estado) {
      case 'PENDIENTE':
        return 'bg-warning-subtle text-warning';
      case 'APROBADA':
        return 'bg-success-subtle text-success';
      case 'RECHAZADA':
        return 'bg-danger-subtle text-danger';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getStatusDescription(estado) {
    const descriptions = {
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA]: 'Esperando validación administrativa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE]: 'Reserva aprobada, pendiente de pago',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA]: 'Pago confirmado, reserva activa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO]: 'Reserva en curso',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA]: 'Reserva finalizada exitosamente',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA]: 'Reserva cancelada por el usuario',
      // [EstadoReserva.RECHAZADA]: 'Reserva rechazada por validación',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA]: 'Tiempo de pago expirado',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW]: 'Usuario no se presentó'
    };
    return descriptions[estado] || 'Estado desconocido';
  }
  getValidationDescription(estado) {
    const descriptions = {
      'PENDIENTE': 'Esperando validación administrativa',
      'APROBADA': 'Reserva validada y aprobada',
      'RECHAZADA': 'Reserva rechazada por validación'
    };
    return descriptions[estado] || 'Estado de validación desconocido';
  }
  getCityDescription(cityId) {
    if (!cityId) return 'N/A';
    const city = this.CityAcronym.find(c => '' + c.id === cityId);
    return city ? city.value : 'Desconocido';
  }
  /* Common functions */
  onCloseModal() {
    if (this.reservationForm) {
      this.reservationForm.enable();
      this.reservationForm.reset();
    }
    if (this.validationForm) {
      this.validationForm.enable();
      this.validationForm.reset();
    }
    this.modalService.dismissAll();
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 4000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  handleError(title, error) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: title,
      text: error.message || 'Por favor, intente nuevamente.',
      icon: 'error',
      confirmButtonText: 'Entendido'
    });
  }
  static {
    this.ɵfac = function BookingOneTimeModalComponent_Factory(t) {
      return new (t || BookingOneTimeModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_5__.ConfiguracionSistemaService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_6__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_7__.PagoService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_14__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_puntual_service__WEBPACK_IMPORTED_MODULE_8__.ReservaPuntualService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_9__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
      type: BookingOneTimeModalComponent,
      selectors: [["app-booking-one-time-modal"]],
      viewQuery: function BookingOneTimeModalComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵviewQuery"](_c0, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵviewQuery"](_c1, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵviewQuery"](_c2, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵloadQuery"]()) && (ctx.validationModal = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵloadQuery"]()) && (ctx.ticketModal = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵloadQuery"]()) && (ctx.annularModal = _t.first);
        }
      },
      inputs: {
        accion: "accion",
        row: "row",
        canActivate: "canActivate"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵStandaloneFeature"]],
      decls: 6,
      vars: 2,
      consts: [["ticketModal", ""], ["validationModal", ""], ["annulForm", "ngForm"], ["motivoCtrl", "ngModel"], ["observationCtrl", "ngModel"], ["class", "modal-content", 4, "ngIf"], [4, "ngIf"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], ["class", "modal-header border p-2", 4, "ngIf"], [1, "modal-body"], [3, "formGroup"], [1, "modal-footer"], ["type", "button", "id", "btn-cancel-event", 1, "btn", "btn-light", 3, "click"], [1, "ri-close-line", "me-1"], ["type", "submit", "class", "btn btn-success", "id", "btn-save-event", 3, "disabled", "click", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], [1, "modal-header", "border", "p-2"], [1, "mini-stats-wid", "d-flex", "w-100", "justify-content-between", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "avatar-sm"], [1, "mini-stat-icon", "avatar-title", "rounded-circle", "text-success", "bg-success-subtle", "fs-4"], ["src", "assets/icons/logos/logo-sm.png", "alt", "Logo", 1, "card-logo", "card-logo-dark", "user-profile-image", "img-fluid"], [1, "modal-title", "ms-2", "mb-0"], ["for", "numeroTasa", 1, "me-2", "mb-0"], ["type", "text", "disabled", "", 1, "form-control", "form-control-sm", "tasa-input", 2, "width", "120px", 3, "value"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", "ms-2", 3, "click"], [1, "text-end", "mb-3"], ["role", "group", 1, "btn-group"], ["class", "btn btn-soft-danger btn-sm ms-1", 3, "click", 4, "ngIf"], ["class", "btn btn-soft-success btn-sm ms-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-soft-info", "btn-sm", "ms-1", 3, "click"], [1, "ri-ticket-line", "me-1"], [1, "alert", "alert-borderless", "mb-3", 3, "ngClass"], [1, "ri-information-line", "me-2", "fs-16"], [1, "badge", "ms-2", 3, "ngClass"], [1, "d-block", "mt-1"], [1, "reservation-details"], [1, "d-flex", "align-items-center", "mb-2"], [1, "flex-shrink-0", "me-3"], [1, "ri-barcode-line", "text-muted", "fs-lg"], [1, "flex-grow-1"], [1, "fw-semibold", "mb-0"], [1, "text-muted"], [1, "bx", "bx-dollar-circle", "text-muted", "fs-lg"], [1, "d-block", "fw-semibold", "mb-0"], [1, "ri-calendar-event-line", "text-muted", "fs-lg"], [1, "ri-time-line", "text-muted", "fs-lg"], [1, "d-flex", "mb-3"], [1, "ri-user-line", "text-muted", "fs-lg"], [1, "d-block", "text-muted", "mb-0"], [1, "ri-government-line", "text-muted", "fs-lg"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "ri-user-line", "me-1"], ["class", "mt-3", 4, "ngIf"], [1, "btn", "btn-soft-danger", "btn-sm", "ms-1", 3, "click"], [1, "btn", "btn-soft-success", "btn-sm", "ms-1", 3, "click"], [1, "ri-check-double-line", "me-1"], [1, "mt-3"], [1, "fw-semibold", "mb-2"], [1, "ri-money-dollar-circle-line", "me-2"], ["class", "bg-light p-2 rounded mb-2", 4, "ngFor", "ngForOf"], [1, "bg-light", "p-2", "rounded", "mb-2"], [1, "row"], [1, "col-md-6"], ["class", "col-12", 4, "ngIf"], [1, "col-12"], [1, "ri-file-text-line", "me-2"], [1, "alert", "alert-warning", "alert-borderless", "mb-3"], [1, "ri-alert-line", "me-2"], [1, "form-group", "mb-3"], [1, "form-label", "mb-1"], ["type", "text", "disabled", "", 1, "form-control", 3, "value"], [1, "row", "mb-3"], [1, "col-6"], ["type", "number", "disabled", "", 1, "form-control", 3, "value"], [1, "col-6", "d-flex", "align-items-end"], [1, "badge", 3, "ngClass"], [1, "input-group"], ["type", "date", "formControlName", "fechaUso", 1, "form-control"], [1, "input-group-text"], [1, "ri-calendar-event-line"], ["class", "text-danger small mt-1", 4, "ngIf"], [1, "col-md-3"], ["type", "time", "formControlName", "horaInicio", "step", "1800", 1, "form-control"], [1, "ri-time-line"], ["type", "time", "formControlName", "horaFin", "step", "1800", 1, "form-control"], [1, "form-group"], ["formControlName", "observaciones", "rows", "2", "placeholder", "Agregar observaciones sobre el cambio de horario...", 1, "form-control"], [1, "text-danger", "small", "mt-1"], ["type", "submit", "id", "btn-save-event", 1, "btn", "btn-success", 3, "click", "disabled"], [1, "ri-save-line", "me-1"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal", 4, "ngIf"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal"], [1, "modal-header", "border-bottom"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "mt-4", 3, "ngSubmit"], [1, "fs-15", "mx-4", "mx-sm-5"], [1, "mb-3"], ["for", "motivo", 1, "form-label"], ["data-choices", "", "name", "motivo", "id", "idCategory", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", ""], ["value", "A SOLICITUD DEL CONTRIBUYENTE"], ["value", "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO"], ["value", "REGISTRO DE DATOS INCONSISTENTES"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "observation", 1, "form-label"], ["type", "text", "placeholder", "M\u00EDnimo 10 caracteres", "name", "observation", "required", "", "minlength", "10", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "text-muted", "mb-0", "fs-15", "mx-4", "mx-sm-5"], [1, "ri-alert-line", "me-1"], [1, "modal-footer", "border-top"], [1, "d-flex", "gap-2", "justify-content-center", "w-100"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "submit", "id", "delete-button", 1, "btn", "btn-danger", 3, "click", "disabled"], [1, "ri-close-circle-line", "me-1"], ["id", "elmLoader", "class", "modal-backdrop fade show", 4, "ngIf"], [1, "invalid-feedback"], ["id", "elmLoader", 1, "modal-backdrop", "fade", "show"], [1, "d-flex", "justify-content-center", "align-items-center", "h-100"], ["role", "status", 1, "spinner-border", "text-white", "avatar-sm"], [1, "alert", "alert-info", "alert-borderless", "mb-3"], [1, "ri-information-line", "me-2"], [1, "form-label"], ["formControlName", "validationStatus", 1, "form-control"], ["value", "APROBADA"], ["value", "RECHAZADA"], ["formControlName", "validationObservation", "rows", "4", 1, "form-control", 3, "placeholder"], ["class", "alert alert-warning alert-borderless", 4, "ngIf"], ["class", "alert alert-danger alert-borderless", 4, "ngIf"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], ["type", "button", 1, "btn", 3, "click", "disabled"], [1, "ri-check-line", "me-1"], [1, "ri-information-line"], [1, "ri-alert-line"], [1, "alert", "alert-warning", "alert-borderless"], [1, "alert", "alert-danger", "alert-borderless"], [1, "text-white", "ms-2"]],
      template: function BookingOneTimeModalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](0, BookingOneTimeModalComponent_div_0_Template, 11, 5, "div", 5)(1, BookingOneTimeModalComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"])(3, BookingOneTimeModalComponent_ng_container_3_Template, 47, 14, "ng-container", 6)(4, BookingOneTimeModalComponent_ng_template_4_Template, 56, 28, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.accion === "show" || ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.accion === "annularModal");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_15__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_15__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.MinLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavModule, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgForm, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__.TicketComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 38574:
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/modals/modal-booking-recurrent/modal-booking-recurrent.component.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingRecurrentModalComponent: () => (/* binding */ BookingRecurrentModalComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modules/reports/ticket/ticket.component */ 89291);
/* harmony import */ var src_app_core_services_api_reserva_recurrente_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/reserva-recurrente.service */ 19699);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/configuracionSistema.service */ 93866);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);






















const _c0 = ["validationModel"];
const _c1 = ["ticketModal"];
const _c2 = ["annularModal"];
const _forTrack0 = ($index, $item) => $item.value;
const _forTrack1 = ($index, $item) => $item.key;
function BookingRecurrentModalComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 17)(1, "div", 18)(2, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](4, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, "Procesando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
}
function BookingRecurrentModalComponent_div_0_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 21)(1, "div", 22)(2, "div", 23)(3, "div", 24)(4, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](5, "img", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "h5", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](8, "div", 23)(9, "label", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](10, "Tasa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](11, "input", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](12, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_div_2_Template_button_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate2"](" ", "Reserva Recurrente", ": ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.nombre) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r5);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
      const validationModel_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.openValidationModal(validationModel_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Validar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_3_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.accion = "edit");
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Cambiar Horario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r8);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.openDeleteModal("annularModal"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Anular ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_8_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r10);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.confirmUsage());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Confirmar Uso ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 74)(1, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](2, BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_2_Template, 3, 0, "button", 76)(3, BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_3_Template, 3, 0, "button", 77)(4, BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_4_Template, 3, 0, "button", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "button", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Conditional_4_div_0_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r4);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
      const ticketModal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.openTicketModal(ticketModal_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](6, "i", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, "Ver Ticket ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](8, BookingRecurrentModalComponent_div_0_Conditional_4_div_0_button_8_Template, 3, 0, "button", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.canValidateReservation());
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.canEditReservation());
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.canCancelReservation());
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) === "PAGADA");
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 99)(1, "small", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dia_r11 = ctx.$implicit;
    const i_r12 = ctx.$index;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"](i_r12 === 6 ? "border-end-0" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](dia_r11.shortName);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 105)(2, "small", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "small", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const timeSlot_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](timeSlot_r13.displayTime);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 108)(2, "small", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Conditional_1_Template, 5, 1, "div", 104)(2, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Conditional_2_Template, 3, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const diaIndex_r14 = ctx.$index;
    const timeSlot_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"](diaIndex_r14 === 6 ? "border-end-0" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("bg-success-subtle", ctx_r2.isTimeSlotBooked(diaIndex_r14, timeSlot_r13.key));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵconditional"](1, ctx_r2.isTimeSlotBooked(diaIndex_r14, timeSlot_r13.key) ? 1 : 2);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeaterCreate"](1, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_For_2_Template, 3, 5, "div", 102, _forTrack0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const slotIndex_r15 = ctx.$index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"](slotIndex_r15 === ctx_r2.getTimeSlots().length - 1 ? "border-bottom-0" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeater"](ctx_r2.getDiasSemanaDisplay());
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 64)(1, "div", 89)(2, "div", 90)(3, "div", 91)(4, "small", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](5, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](6, "Horario Semanal:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](7, "div", 94)(8, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](10, "div", 95)(11, "div", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeaterCreate"](12, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_13_Template, 3, 3, "div", 97, _forTrack0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeaterCreate"](14, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_For_15_Template, 3, 2, "div", 98, _forTrack1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"]("", ctx_r2.getTotalWeeklyHours(), " horas semanales");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeater"](ctx_r2.getDiasSemanaDisplay());
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeater"](ctx_r2.getTimeSlots());
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_106_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "p", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "No hay informaci\u00F3n de horario disponible");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_129_div_5_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 119)(1, "small")(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Observaciones:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const pago_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", pago_r16.observaciones, "");
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_129_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 116)(1, "div", 52)(2, "div", 53)(3, "small")(4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](7, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](8, "div", 53)(9, "small")(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, "Monto:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](13, "div", 53)(14, "small")(15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](16, "Forma:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](18, "div", 53)(19, "small")(20, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](21, "Entidad:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](23, "div", 53)(24, "small")(25, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](26, "Folio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](28, "div", 53)(29, "small")(30, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](31, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](32, "span", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](34, BookingRecurrentModalComponent_div_0_Conditional_4_div_129_div_5_div_34_Template, 5, 1, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const pago_r16 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](7, 8, pago_r16.fechaPago, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" Bs. ", pago_r16.montoPagado, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", pago_r16.formaPago, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", pago_r16.entidadFinanciera, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", pago_r16.folio, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", pago_r16.estadoPago === ctx_r2.EstadoPago.PAGADO ? "bg-success-subtle text-success" : "bg-warning-subtle text-warning");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", pago_r16.estadoPago, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", pago_r16.observaciones);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_129_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "h6", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](3, "i", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](5, BookingRecurrentModalComponent_div_0_Conditional_4_div_129_div_5_Template, 35, 11, "div", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngForOf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_div_130_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "h6", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](3, "i", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Observaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.observaciones);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](0, BookingRecurrentModalComponent_div_0_Conditional_4_div_0_Template, 9, 4, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](1, "div", 32)(2, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](3, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, "Estado Actual: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "span", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](8, "small", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](10, "div", 36)(11, "div", 37)(12, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](13, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](14, "div", 40)(15, "h6", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](16, " TASA: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](17, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](19, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](20, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](21, "div", 40)(22, "h6", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](23, " Total: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](24, "span", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](26, "div", 37)(27, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](28, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](29, "div", 40)(30, "h6", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](31, "Contribuyente: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](32, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](34, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](36, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](37);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](38, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](39, "div", 37)(40, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](41, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](42, "div", 40)(43, "h6", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](45, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](47, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](48, " Categor\u00EDa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](49, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](51, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](52, "div", 49)(53, "h6", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](54, "i", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](55, "Informaci\u00F3n de Recurrencia ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](56, "div", 52)(57, "div", 53)(58, "div", 23)(59, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](60, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](61, "div", 40)(62, "small", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](63, "Tipo de Recurrencia");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](64, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](65);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](66, "div", 53)(67, "div", 23)(68, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](69, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](70, "div", 40)(71, "small", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](72, "Duraci\u00F3n por Sesi\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](73, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](74);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](75, "div", 53)(76, "div", 23)(77, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](78, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](79, "div", 40)(80, "small", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](81, "Sesiones Totales");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](82, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](83);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](84, "div", 53)(85, "div", 23)(86, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](87, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](88, "div", 40)(89, "small", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](90, "Personas");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](91, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](92);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](93, "div", 60)(94, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](95, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](96, "div")(97, "small", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](98, "Per\u00EDodo Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](99, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](100);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](101, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](102, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](103, "div", 49)(104, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](105, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_105_Template, 16, 1, "div", 64)(106, BookingRecurrentModalComponent_div_0_Conditional_4_Conditional_106_Template, 4, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](107, "div", 65)(108, "div", 66)(109, "div", 67)(110, "div", 68)(111, "div", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](112);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](113, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](114, "D\u00EDas activos");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](115, "div", 67)(116, "div", 68)(117, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](118);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](119, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](120, "Sesiones totales");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](121, "div", 67)(122, "div", 68)(123, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](125, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](126, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](127, "Horas totales");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](128, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](129, BookingRecurrentModalComponent_div_0_Conditional_4_div_129_Template, 6, 1, "div", 73)(130, BookingRecurrentModalComponent_div_0_Conditional_4_div_130_Template, 7, 1, "div", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.canActivate.includes("ACTUALIZAR") || ctx_r2.canActivate.includes("VALIDAR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", ctx_r2.getStatusAlertClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.getStatusDescription(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa) || "N/A", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"]("Bs. ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal) || "0.00", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.primerApellido) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.segundoApellido), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate2"](" ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.numeroDocumento, " - ", ctx_r2.getCityDescription(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.expedido), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" Telf: ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.telefono, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate2"](" Campo: ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.nombre, " - ", ctx_r2.row.superficie, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.categoria);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.getRecurrenceDescription(ctx_r2.row.tipoRecurrencia));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"]("", ctx_r2.row.duracionSesionHoras, " horas");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.cantidadSesiones);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.cantidadPersonas || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate2"]("", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](101, 27, ctx_r2.row.fechaInicio, "dd/MM/yyyy"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](102, 30, ctx_r2.row.fechaFin, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵconditional"](105, ctx_r2.row.tableroDto && ctx_r2.row.tableroDto.horario ? 105 : 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.diasSemana.split(",").length);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.row.cantidadSesiones);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](125, 33, ctx_r2.row.duracionSesionHoras * ctx_r2.row.cantidadSesiones, "1.0-1"));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.row.observaciones);
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " La fecha de inicio es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " La fecha de fin es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_option_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "option", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r17 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", tipo_r17.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", tipo_r17.label, " ");
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " El tipo de recurrencia es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " La duraci\u00F3n es requerida (m\u00EDnimo 0.5 horas) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_58_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 67)(1, "div", 148)(2, "input", 149);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("change", function BookingRecurrentModalComponent_div_0_Conditional_5_div_58_Template_input_change_2_listener($event) {
      const dia_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r18).$implicit;
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.onDiaSemanaChange($event, dia_r19.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "label", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const dia_r19 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("id", "dia_" + dia_r19.value)("value", dia_r19.value)("checked", ctx_r2.form["diasSemana"].value.includes(dia_r19.value));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("for", "dia_" + dia_r19.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", dia_r19.label, " ");
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " Seleccione al menos un d\u00EDa de la semana ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_div_64_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " La cantidad de personas es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_div_0_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "form", 12)(1, "div", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](2, "i", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Nota:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, " Solo puedes modificar reservas recurrentes en estado PENDIENTE ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "div", 123)(7, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](8, "Complejo/Cancha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](9, "input", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](10, "div", 123)(11, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](12, "Contribuyente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](13, "input", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](14, "div", 126)(15, "div", 127)(16, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](17, "Total Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](18, "input", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](19, "div", 129)(20, "span", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](22, "div", 126)(23, "div", 53)(24, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](25, "Fecha Inicio *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](26, "div", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](27, "input", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](28, "span", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](29, "i", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](30, BookingRecurrentModalComponent_div_0_Conditional_5_div_30_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](31, "div", 53)(32, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](33, "Fecha Fin *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](34, "div", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](35, "input", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](36, "span", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](37, "i", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](38, BookingRecurrentModalComponent_div_0_Conditional_5_div_38_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](39, "div", 126)(40, "div", 53)(41, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](42, "Tipo de Recurrencia *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](43, "select", 136)(44, "option", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](45, "Seleccione tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](46, BookingRecurrentModalComponent_div_0_Conditional_5_option_46_Template, 2, 2, "option", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](47, BookingRecurrentModalComponent_div_0_Conditional_5_div_47_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](48, "div", 53)(49, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](50, "Duraci\u00F3n por Sesi\u00F3n (horas) *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](51, "input", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](52, BookingRecurrentModalComponent_div_0_Conditional_5_div_52_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](53, "div", 140)(54, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](55, "D\u00EDas de la Semana *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](56, "div", 141)(57, "div", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](58, BookingRecurrentModalComponent_div_0_Conditional_5_div_58_Template, 5, 5, "div", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](59, BookingRecurrentModalComponent_div_0_Conditional_5_div_59_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](60, "div", 140)(61, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](62, "Cantidad de Personas *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](63, "input", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](64, BookingRecurrentModalComponent_div_0_Conditional_5_div_64_Template, 2, 0, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](65, "div", 144)(66, "label", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](67, "Observaciones (opcional)");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](68, "textarea", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r2.reservationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto == null ? null : ctx_r2.row.reservaDto.campoDeportivoDto.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.primerApellido) + " " + (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.segundoApellido));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.form["fechaInicio"].invalid && ctx_r2.form["fechaInicio"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["fechaInicio"].invalid && ctx_r2.form["fechaInicio"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.form["fechaFin"].invalid && ctx_r2.form["fechaFin"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["fechaFin"].invalid && ctx_r2.form["fechaFin"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.form["tipoRecurrencia"].invalid && ctx_r2.form["tipoRecurrencia"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngForOf", ctx_r2.tipoRecurrenciaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["tipoRecurrencia"].invalid && ctx_r2.form["tipoRecurrencia"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.form["duracionSesionHoras"].invalid && ctx_r2.form["duracionSesionHoras"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["duracionSesionHoras"].invalid && ctx_r2.form["duracionSesionHoras"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngForOf", ctx_r2.diasSemanaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["diasSemana"].invalid && ctx_r2.form["diasSemana"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.form["cantidadPersonas"].invalid && ctx_r2.form["cantidadPersonas"].touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.form["cantidadPersonas"].invalid && ctx_r2.form["cantidadPersonas"].touched);
  }
}
function BookingRecurrentModalComponent_div_0_button_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_button_10_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r20);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", !ctx_r2.reservationForm.valid || !ctx_r2.reservationForm.dirty || ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Guardando..." : "Guardar Cambios", " ");
  }
}
function BookingRecurrentModalComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, BookingRecurrentModalComponent_div_0_div_1_Template, 6, 0, "div", 9)(2, BookingRecurrentModalComponent_div_0_div_2_Template, 13, 3, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](4, BookingRecurrentModalComponent_div_0_Conditional_4_Template, 131, 36)(5, BookingRecurrentModalComponent_div_0_Conditional_5_Template, 69, 24, "form", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "div", 13)(7, "button", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_div_0_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](8, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](10, BookingRecurrentModalComponent_div_0_button_10_Template, 3, 2, "button", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit" || ctx_r2.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵconditional"](4, ctx_r2.accion === "show" ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵconditional"](5, ctx_r2.accion === "edit" ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit");
  }
}
function BookingRecurrentModalComponent_ng_template_1_app_ticket_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](0, "app-ticket", 154);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("bookingType", ctx_r2.row.reservaDto.tipoReserva || "recurrente")("reservationData", ctx_r2.row.reservaDto)("autoLoad", true)("showAsModal", true);
  }
}
function BookingRecurrentModalComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](0, BookingRecurrentModalComponent_ng_template_1_app_ticket_0_Template, 1, 4, "app-ticket", 153);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto);
  }
}
function BookingRecurrentModalComponent_ng_container_3_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " El motivo es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_container_3_div_34_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, "La observaci\u00F3n es requerida.");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_container_3_div_34_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, "La observaci\u00F3n debe tener al menos 10 caracteres.");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_container_3_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, BookingRecurrentModalComponent_ng_container_3_div_34_div_1_Template, 2, 0, "div", 6)(2, BookingRecurrentModalComponent_ng_container_3_div_34_div_2_Template, 2, 0, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    const observationCtrl_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", observationCtrl_r23.errors == null ? null : observationCtrl_r23.errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", observationCtrl_r23.errors == null ? null : observationCtrl_r23.errors["minlength"]);
  }
}
function BookingRecurrentModalComponent_ng_container_3_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 180)(1, "div", 181)(2, "div", 182)(3, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
  }
}
function BookingRecurrentModalComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](1, "div", 155)(2, "h5", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Anular Reserva Recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](4, "button", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_container_3_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "div", 11)(6, "div", 158)(7, "div", 159)(8, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9, "\u00BFEst\u00E1s seguro de Anular la Reserva Recurrente?");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](10, "p", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, "Esta acci\u00F3n no se puede deshacer.");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](12, "form", 160, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("ngSubmit", function BookingRecurrentModalComponent_ng_container_3_Template_form_ngSubmit_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const annulForm_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.annularData(annulForm_r22.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](14, "div", 161)(15, "div", 140)(16, "label", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](17, "Indique el motivo de la Anulaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](18, "select", 163, 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentModalComponent_ng_container_3_Template_select_ngModelChange_18_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayBindingSet"](ctx_r2.motivo, $event) || (ctx_r2.motivo = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](20, "option", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](21, "Seleccione un motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](22, "option", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](23, "A SOLICITUD DEL CONTRIBUYENTE");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](24, "option", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](25, "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](26, "option", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](27, "REGISTRO DE DATOS INCONSISTENTES");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](28, BookingRecurrentModalComponent_ng_container_3_div_28_Template, 2, 0, "div", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](29, "div", 140)(30, "label", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](31, "Escriba la Observaci\u00F3n de la Reserva *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](32, "input", 169, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentModalComponent_ng_container_3_Template_input_ngModelChange_32_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayBindingSet"](ctx_r2.observation, $event) || (ctx_r2.observation = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](34, BookingRecurrentModalComponent_ng_container_3_div_34_Template, 3, 2, "div", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](35, "p", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](36, "i", 171);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](37, " Al confirmar no podr\u00E1 reactivar esta reserva recurrente nuevamente. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](38, "div", 172)(39, "div", 173)(40, "button", 174);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_container_3_Template_button_click_40_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](41, "i", 175);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](42, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](43, "button", 176);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_container_3_Template_button_click_43_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r21);
      const annulForm_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.annularData(annulForm_r22.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](44, "i", 177);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](46, BookingRecurrentModalComponent_ng_container_3_div_46_Template, 5, 0, "div", 178);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const annulForm_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](13);
    const motivoCtrl_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](19);
    const observationCtrl_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](33);
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", motivoCtrl_r24.invalid && motivoCtrl_r24.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.motivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", motivoCtrl_r24.invalid && motivoCtrl_r24.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", observationCtrl_r23.invalid && observationCtrl_r23.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.observation);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", observationCtrl_r23.invalid && observationCtrl_r23.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", annulForm_r22.invalid || ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Anulando..." : "Anular", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
  }
}
function BookingRecurrentModalComponent_ng_template_4_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " Seleccione un estado de validaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_div_43_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " El motivo del rechazo es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_span_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 195);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, " Las observaciones son opcionales para la aprobaci\u00F3n. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_span_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 196);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, " Debe proporcionar un motivo para el rechazo de la reserva. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 197);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Proceso de Aprobaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, " \u2022 La reserva ser\u00E1 registrada en RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, " \u2022 Se generar\u00E1 un n\u00FAmero de tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9, " \u2022 El contribuyente tendr\u00E1 24 horas para realizar el pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, " \u2022 La reserva cambiar\u00E1 a estado \"PENDIENTE\" ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_div_48_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 198);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Proceso de Rechazo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](5, " \u2022 La reserva ser\u00E1 marcada como \"RECHAZADA\"");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, " \u2022 Se notificar\u00E1 al contribuyente por email");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](9, " \u2022 El contribuyente podr\u00E1 realizar una nueva reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, " \u2022 Esta acci\u00F3n no se puede deshacer ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentModalComponent_ng_template_4_div_56_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 180)(1, "div", 181)(2, "div", 182)(3, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "div", 199);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobando..." : "Rechazando...", " ");
  }
}
function BookingRecurrentModalComponent_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 155)(1, "h5", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Validar Reserva Recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "button", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_template_4_Template_button_click_3_listener() {
      const modal_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r25).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](modal_r26.dismiss("Cancel click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](4, "div", 11)(5, "div", 183);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](6, "i", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](7, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](8, "Informaci\u00F3n de la Reserva Recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](9, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](10, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, " Tasa: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](12, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](14, " | Contribuyente: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](17, " | Monto: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](18, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](20, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](21, " Per\u00EDodo: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](22, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](24, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](25, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](26, " | Recurrencia: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](27, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](29, "form", 12)(30, "div", 140)(31, "label", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](32, "Estado de Validaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](33, "select", 186)(34, "option", 187);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](35, "Aprobar Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](36, "option", 188);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](37, "Rechazar Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](38, BookingRecurrentModalComponent_ng_template_4_div_38_Template, 2, 0, "div", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](39, "div", 140)(40, "label", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](41);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](42, "textarea", 189);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](43, BookingRecurrentModalComponent_ng_template_4_div_43_Template, 2, 0, "div", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](44, "small", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](45, BookingRecurrentModalComponent_ng_template_4_span_45_Template, 3, 0, "span", 6)(46, BookingRecurrentModalComponent_ng_template_4_span_46_Template, 3, 0, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](47, BookingRecurrentModalComponent_ng_template_4_div_47_Template, 12, 0, "div", 190)(48, BookingRecurrentModalComponent_ng_template_4_div_48_Template, 12, 0, "div", 191);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](49, "div", 172)(50, "button", 192);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_template_4_Template_button_click_50_listener() {
      const modal_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r25).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](modal_r26.dismiss("Cancel click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](51, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](52, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](53, "button", 193);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function BookingRecurrentModalComponent_ng_template_4_Template_button_click_53_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r25);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r2.validateReservation());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](54, "i", 194);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](56, BookingRecurrentModalComponent_ng_template_4_div_56_Template, 7, 1, "div", 178);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"]((ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.numeroTasa) || "Pendiente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"]((ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombreCompleto) || (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto == null ? null : ctx_r2.row.reservaDto.contribuyenteDto.nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"]("Bs. ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate2"]("", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](24, 25, ctx_r2.row.fechaInicio, "dd/MM/yyyy"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind2"](25, 28, ctx_r2.row.fechaFin, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r2.getRecurrenceDescription(ctx_r2.row.tipoRecurrencia));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r2.validationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Observaciones (Opcional)" : "Motivo de Rechazo *", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("placeholder", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Ingrese observaciones para la aprobaci\u00F3n (opcional)..." : "Ingrese el motivo del rechazo (requerido)...");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "APROBADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "RECHAZADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "APROBADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "RECHAZADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", ctx_r2.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"](ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "btn-success" : "btn-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", ctx_r2.showLoading || !ctx_r2.validationForm.valid);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r2.showLoading ? "Procesando..." : ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobar Reserva" : "Rechazar Reserva", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r2.showLoading);
  }
}
class BookingRecurrentModalComponent {
  constructor(modalService, formBuilder, reservaRecurrenteService, reservaService, canchasService, contribuyentesService, ruatService, systemConfigsService, pagoService, router, authService) {
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.reservaRecurrenteService = reservaRecurrenteService;
    this.reservaService = reservaService;
    this.canchasService = canchasService;
    this.contribuyentesService = contribuyentesService;
    this.ruatService = ruatService;
    this.systemConfigsService = systemConfigsService;
    this.pagoService = pagoService;
    this.router = router;
    this.authService = authService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_13__.EventEmitter();
    this.systemConfigList = [];
    this.CityAcronym = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.CityAcronym;
    this.EstadoReserva = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva;
    this.EstadoPago = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoPago;
    this.submitted = false;
    this.validationSubmitted = false;
    this.showLoading = false;
    this.canchasList = [];
    this.contribuyentesList = [];
    this.selectedItems = [];
    this.consultResults = [];
    this.motivo = '';
    this.observation = '';
    this.validationObservation = '';
    this.validationStatus = 'APROBADA';
    this.diasSemanaOptions = [{
      value: 'LUNES',
      label: 'Lunes'
    }, {
      value: 'MARTES',
      label: 'Martes'
    }, {
      value: 'MIERCOLES',
      label: 'Miércoles'
    }, {
      value: 'JUEVES',
      label: 'Jueves'
    }, {
      value: 'VIERNES',
      label: 'Viernes'
    }, {
      value: 'SABADO',
      label: 'Sábado'
    }, {
      value: 'DOMINGO',
      label: 'Domingo'
    }];
    this.tipoRecurrenciaOptions = [{
      value: 'SEMANAL',
      label: 'Semanal'
    }, {
      value: 'MENSUAL',
      label: 'Mensual'
    }];
  }
  ngOnInit() {
    this.userData = this.authService.currentUser();
    if (this.authService.tokenUser() !== 'CONTRIBUYENTE_SESSION') {
      this.userData = this.userData.designacion.personaDto;
    }
    this.getConfigsSystem();
    this.getFields();
    this.getTaxpayers();
    if (this.accion === 'validar') {
      this.initValidationForm();
    } else if (this.accion === 'edit') {
      this.initForm();
    }
  }
  ngAfterViewInit() {
    setTimeout(() => {
      if (!this.accion) return;
      switch (this.accion) {
        case 'validarModal':
          this.openValidationModal(this.validationModel);
          break;
        case 'annularModal':
          if (this.annularModal) {
            this.openDeleteModal(this.annularModal);
          }
          break;
        case 'ticketModal':
          this.openTicketModal(this.ticketModal);
          break;
      }
    });
  }
  initForm() {
    const today = new Date();
    const minDate = today.toISOString().split('T')[0];
    const maxDate = new Date();
    maxDate.setFullYear(today.getFullYear() + 1);
    this.reservationForm = this.formBuilder.group({
      fechaInicio: [this.row?.fechaInicio ? new Date(this.row.fechaInicio).toISOString().split('T')[0] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required],
      fechaFin: [this.row?.fechaFin ? new Date(this.row.fechaFin).toISOString().split('T')[0] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required],
      tipoRecurrencia: [this.row?.tipoRecurrencia || '', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required],
      diasSemana: [this.row?.diasSemana ? this.row.diasSemana.split(',') : [], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required],
      duracionSesionHoras: [this.row?.duracionSesionHoras || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(0.5)]],
      cantidadPersonas: [this.row?.cantidadPersonas || '', [_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(1)]],
      observaciones: [this.row?.observaciones || '']
    });
  }
  initValidationForm() {
    this.validationForm = this.formBuilder.group({
      validationStatus: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required],
      validationObservation: ['']
    });
    this.validationForm.get('validationStatus')?.valueChanges.subscribe(status => {
      this.updateObservationValidation(status);
    });
  }
  updateObservationValidation(status) {
    const observationControl = this.validationForm.get('validationObservation');
    if (status === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.RECHAZADA) {
      observationControl?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required]);
      observationControl?.updateValueAndValidity();
    } else {
      observationControl?.clearValidators();
      observationControl?.updateValueAndValidity();
    }
  }
  get form() {
    return this.reservationForm.controls;
  }
  get validationFormControls() {
    return this.validationForm.controls;
  }
  onDiaSemanaChange(event, diaValue) {
    const diasArray = [...this.reservationForm.value.diasSemana];
    if (event.target.checked) {
      diasArray.push(diaValue);
    } else {
      const index = diasArray.indexOf(diaValue);
      if (index > -1) {
        diasArray.splice(index, 1);
      }
    }
    this.reservationForm.patchValue({
      diasSemana: diasArray
    });
  }
  isDaySelected(dayValue) {
    if (!this.row?.diasSemana) return false;
    return this.row.diasSemana.split(',').includes(dayValue);
  }
  /**
   * Get short day name for display
   */
  getShortDayName(fullName) {
    const shortNames = {
      'Lunes': 'Lun',
      'Martes': 'Mar',
      'Miércoles': 'Mié',
      'Jueves': 'Jue',
      'Viernes': 'Vie',
      'Sábado': 'Sáb',
      'Domingo': 'Dom'
    };
    return shortNames[fullName] || fullName;
  }
  getDiasSemanaDisplay() {
    return [{
      value: 'LUNES',
      shortName: 'Lun',
      fullName: 'Lunes',
      index: 0
    }, {
      value: 'MARTES',
      shortName: 'Mar',
      fullName: 'Martes',
      index: 1
    }, {
      value: 'MIERCOLES',
      shortName: 'Mié',
      fullName: 'Miércoles',
      index: 2
    }, {
      value: 'JUEVES',
      shortName: 'Jue',
      fullName: 'Jueves',
      index: 3
    }, {
      value: 'VIERNES',
      shortName: 'Vie',
      fullName: 'Viernes',
      index: 4
    }, {
      value: 'SABADO',
      shortName: 'Sáb',
      fullName: 'Sábado',
      index: 5
    }, {
      value: 'DOMINGO',
      shortName: 'Dom',
      fullName: 'Domingo',
      index: 6
    }];
  }
  getTimeSlots() {
    if (!this.row?.tableroDto?.horario) return [];
    const allTimeSlots = new Set();
    this.row.tableroDto.horario.forEach(daySlots => {
      if (daySlots && daySlots.length > 0) {
        daySlots.forEach(slot => {
          allTimeSlots.add(slot);
        });
      }
    });
    return Array.from(allTimeSlots).map(slot => {
      const [startTime, endTime] = slot.split('-');
      const startHour = parseInt(startTime.split(':')[0]);
      return {
        key: slot,
        displayTime: `${startTime} - ${endTime}`,
        startTime: startTime,
        endTime: endTime,
        period: startHour >= 12 ? 'PM' : 'AM',
        startHour: startHour
      };
    }).sort((a, b) => a.startHour - b.startHour);
  }
  /**
   * Check if a specific time slot is booked on a specific day
   */
  isTimeSlotBooked(dayIndex, timeSlot) {
    if (!this.row?.tableroDto?.horario?.[dayIndex]) return false;
    return this.row.tableroDto.horario[dayIndex].includes(timeSlot);
  }
  /**
   * Check if a day has any bookings
   */
  hasBookingsOnDay(dayIndex) {
    return !!(this.row?.tableroDto?.horario?.[dayIndex] && this.row.tableroDto.horario[dayIndex].length > 0);
  }
  /**
   * Get booked time slots for a specific day
   */
  getBookedTimeSlotsForDay(dayIndex) {
    if (!this.hasBookingsOnDay(dayIndex)) return [];
    return this.row.tableroDto.horario[dayIndex];
  }
  /**
   * Get total weekly sessions
   */
  getTotalWeeklySessions() {
    if (!this.row?.tableroDto?.horario) return 0;
    return this.row.tableroDto.horario.reduce((total, daySlots) => {
      return total + (daySlots ? daySlots.length : 0);
    }, 0);
  }
  getTotalWeeklyHours() {
    const weeklySessions = this.getTotalWeeklySessions();
    return weeklySessions * (this.row?.duracionSesionHoras || 0);
  }
  /**
   * Check if a day is selected in the recurrence pattern
   */
  isDayInRecurrence(dayIndex) {
    if (!this.row?.diasSemana) return false;
    const dayNames = ['lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado', 'domingo'];
    const selectedDays = this.row.diasSemana.toLowerCase().split(',');
    return selectedDays.includes(dayNames[dayIndex]);
  }
  /**
   * Save reservation changes
   */
  saveData() {
    this.submitted = true;
    if (this.reservationForm.valid) {
      let datos = {
        ...this.row,
        ...this.reservationForm.value,
        diasSemana: this.reservationForm.value.diasSemana.join(',')
      };
      this.updateData(datos);
    } else {
      this.notify('Formulario Inválido! Por favor complete todos los campos requeridos.', 'error');
    }
  }
  /**
   * Validate reservation (Approve/Reject) using dedicated services
   */
  validateReservation() {
    this.validationSubmitted = true;
    this.updateObservationValidation(this.validationForm.value.validationStatus);
    if (this.validationForm.valid) {
      this.showLoading = true;
      const validationData = this.validationForm.value;
      const isApproved = validationData.validationStatus === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA;
      const reservaUuid = this.row.reservaDto?.uuid;
      if (!reservaUuid) {
        this.showLoading = false;
        this.notify('Error: No se pudo identificar la reserva', 'error');
        return;
      }
      if (isApproved) {
        this.approveReserva(reservaUuid, validationData.validationObservation);
      } else {
        this.rejectReserva(reservaUuid, validationData.validationObservation);
      }
    } else {
      this.notify('Por favor complete todos los campos de validación', 'error');
    }
  }
  /**
   * Approve reservation using dedicated service
   */
  approveReserva(reservaUuid, observaciones = '') {
    var _this = this;
    const aprobadoPor = this.userData.nombreCompleto || this.userData.fullName;
    this.reservaService.aprobarReserva(reservaUuid, aprobadoPor).subscribe({
      next: function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this.showLoading = false;
            yield _this.registerReservationInRuat(data.payload);
            _this.openTicketModal(_this.ticketModal);
            _this.notify('Reserva recurrente aprobada exitosamente y registrada en RUAT', 'success');
          } catch (error) {
            _this.showLoading = false;
            console.error('Error in approval process:', error);
            _this.notify('Reserva aprobada pero error en proceso adicional: ' + error, 'warning');
          }
        });
        return function next(_x) {
          return _ref.apply(this, arguments);
        };
      }(),
      error: error => {
        this.showLoading = false;
        console.error('Error approving reservation:', error);
        this.notify('Error al aprobar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  /**
   * Reject reservation using dedicated service
   */
  rejectReserva(reservaUuid, motivoRechazo = '') {
    var _this2 = this;
    const aprobadoPor = this.userData.nombreCompleto || this.userData.fullName;
    this.reservaService.rechazarReserva(reservaUuid, motivoRechazo, aprobadoPor).subscribe({
      next: function () {
        var _ref2 = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this2.showLoading = false;
            _this2.openTicketModal(_this2.ticketModal);
            _this2.notify('Reserva recurrente rechazada exitosamente', 'success');
          } catch (error) {
            _this2.showLoading = false;
            console.error('Error in rejection process:', error);
            _this2.notify('Reserva rechazada pero error en proceso adicional', 'warning');
          }
        });
        return function next(_x2) {
          return _ref2.apply(this, arguments);
        };
      }(),
      error: error => {
        this.showLoading = false;
        console.error('Error rejecting reservation:', error);
        this.notify('Error al rechazar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  /**
   * Register reservation in RUAT system
   */
  registerReservationInRuat(reservaData) {
    const codigoAlcaldia = this.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
    const codigoUsuario = this.systemConfigList.find(config => config.clave === 'CODIGO_USUARIO_RUAT')?.valorTexto || '';
    const servicioMunicipal = this.systemConfigList.find(config => config.clave === 'SERVICIO_MUNICIPAL_RUAT')?.valorTexto || '';
    const ruatData = {
      codigoAlcaldia: codigoAlcaldia,
      codigoUsuario: reservaData.contribuyenteDto.codigoContribuyente,
      codigoContribuyente: reservaData.contribuyenteDto.codigoContribuyente,
      servicioMunicipal: servicioMunicipal,
      datosConcepto: [{
        numero: '1',
        codigoClasificador: reservaData.tarifaDto.clasificadorRuatDto.codigo,
        tipoArancel: reservaData.tarifaDto.clasificadorRuatDto.tipoArancel || "DI",
        monto: reservaData.montoTotal
      }],
      observacion: reservaData.reservaRecurrenteDto?.observaciones || 'Reserva Recurrente de Cancha Deportiva GAMQ'
    };
    const code = reservaData.contribuyenteDto.codigoContribuyente || '';
    this.ruatService.createTasa(codigoAlcaldia, codigoUsuario, servicioMunicipal, ruatData, code).subscribe({
      next: response => {
        if (response.status === 'OK' && response.payload.continuarFlujo) {
          reservaData.numeroTasa = response.payload.numeroTasa;
          this.updateReserva(reservaData);
        } else {
          this.handleError('Error en RUAT', response.payload?.mensaje || 'No se pudo registrar la tasa');
        }
      },
      error: error => {
        this.handleError('Error de conexión con RUAT', error.error?.mensaje || error.message);
      }
    });
  }
  /**
   * Open modals
   */
  openValidationModal(content) {
    this.initValidationForm();
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
    this.validationSubmitted = false;
    const modalRef = this.modalService.open(content, {
      centered: true,
      size: 'md',
      backdrop: 'static'
    });
    modalRef.dismissed.subscribe(reason => {
      if (this.accion === 'validar') {
        this.onCloseModal();
      }
    });
  }
  openDeleteModal(content) {
    this.accion = content;
    this.motivo = '';
    this.observation = '';
  }
  openTicketModal(content) {
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
    this.emitList.emit();
  }
  /**
   * Confirm usage of recurrent reservation
   */
  confirmUsage() {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: 'Confirmar Uso',
      text: '¿Estás seguro de que la reserva recurrente se ha utilizado completamente?',
      icon: 'question',
      showCancelButton: true,
      confirmButtonText: 'Sí, confirmar',
      cancelButtonText: 'Cancelar',
      confirmButtonColor: '#299cdb',
      cancelButtonColor: '#6c757d'
    }).then(result => {
      if (result.isConfirmed) {
        this.showLoading = true;
        const updatedReserva = {
          ...this.row,
          reservaDto: {
            ...this.row.reservaDto,
            estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
          }
        };
        this.updateReservaRecurrente(updatedReserva).then(() => {
          this.showLoading = false;
          this.notify('Reserva recurrente marcada como completada exitosamente', 'success');
          this.emitList.emit();
          this.onCloseModal();
        }).catch(error => {
          this.showLoading = false;
          this.notify('Error al actualizar la reserva: ' + error, 'error');
        });
      }
    });
  }
  /* API REQUESTS */
  getConfigsSystem() {
    this.systemConfigsService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.systemConfigList = data.payload;
        }
      }
    });
  }
  getFields() {
    this.canchasService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.canchasList = data.payload;
        } else {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: data.payload,
            confirmButtonColor: '#299cdb'
          });
        }
      },
      error: error => {
        console.error('Error fetching fields:', error);
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Error al cargar los campos deportivos',
          icon: 'error'
        });
      }
    });
  }
  getTaxpayers() {
    this.contribuyentesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.contribuyentesList = data.payload;
        } else {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: data.payload,
            confirmButtonColor: '#299cdb'
          });
        }
      },
      error: error => {
        console.error('Error fetching taxpayers:', error);
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'Error al cargar los contribuyentes',
          icon: 'error'
        });
      }
    });
  }
  updateReservaRecurrente(data) {
    return new Promise((resolve, reject) => {
      this.reservaRecurrenteService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva recurrente:", error);
          reject(error);
        }
      });
    });
  }
  updateReserva(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  updateData(datosUnit) {
    this.showLoading = true;
    this.reservaRecurrenteService.update(datosUnit).subscribe({
      next: data => {
        this.showLoading = false;
        this.submitted = false;
        this.onCloseModal();
        this.emitList.emit();
        this.notify('Reserva recurrente actualizada exitosamente!', 'success');
      },
      error: error => {
        this.showLoading = false;
        this.notify('No se pudo actualizar la reserva recurrente! ' + error, 'error');
      }
    });
  }
  /* RUAT REQUESTS */
  annularData(formValues) {
    if (!formValues || !this.row?.reservaDto) {
      this.notify('No se pudo obtener los datos de la reserva', 'error');
      return;
    }
    const reserva = this.row.reservaDto;
    if (reserva.esReservaGratuita && (!reserva.numeroTasa || reserva.numeroTasa.trim() === '')) {
      this.cancelGratuitousReservation(reserva, formValues);
    } else {
      this.cancelPaidReservation(reserva, formValues);
    }
  }
  cancelGratuitousReservation(reserva, formValues) {
    const updatedReserva = {
      ...reserva,
      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA,
      motivoRechazo: formValues.motivo
    };
    this.showLoading = true;
    this.reservaService.update(updatedReserva).subscribe({
      next: () => {
        this.showLoading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Reserva Anulada!',
          text: 'La reserva gratuita ha sido anulada exitosamente.',
          icon: 'success',
          confirmButtonColor: '#299cdb',
          timer: 5000,
          timerProgressBar: true
        });
        this.emitList.emit();
        this.modalService.dismissAll('close click');
      },
      error: error => {
        this.showLoading = false;
        this.notify('Error al anular la reserva gratuita localmente', 'error');
      }
    });
  }
  cancelPaidReservation(reserva, formValues) {
    if (!reserva.numeroTasa) {
      this.notify('No se pudo obtener el número de tasa para la anulación en RUAT', 'error');
      return;
    }
    const codigoAlcaldia = this.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
    const codigoUsuario = this.systemConfigList.find(config => config.clave === 'CODIGO_USUARIO_RUAT')?.valorTexto || '';
    const requestData = {
      numeroTasa: reserva.numeroTasa,
      motivo: formValues.motivo,
      observacion: formValues.observation
    };
    this.showLoading = true;
    this.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).subscribe({
      next: resp => {
        if (resp['status'] === 'OK') {
          const text = resp.payload['mensajeConfirmacion'];
          const updatedReserva = {
            ...reserva,
            estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA,
            motivoRechazo: formValues.motivo
          };
          this.reservaService.update(updatedReserva).subscribe({
            next: () => {
              this.showLoading = false;
              sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
                title: 'Anulado!',
                text: text,
                icon: 'success',
                confirmButtonColor: '#299cdb',
                timer: 5000,
                timerProgressBar: true
              });
              this.emitList.emit();
              this.modalService.dismissAll('close click');
            },
            error: error => {
              this.showLoading = false;
              this.notify('Reserva anulada en RUAT pero error al actualizar localmente', 'warning');
            }
          });
        } else {
          this.showLoading = false;
          this.notify(resp.payload || 'Error al anular en RUAT', 'error');
        }
      },
      error: error => {
        this.showLoading = false;
        this.notify('Error al realizar la anulación en RUAT', 'error');
      }
    });
  }
  /* Consultation functionality */
  consultModal(content, data) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this3.selectedItems.length === 0) {
        _this3.selectedItems.push(_this3.row);
      }
      const codigoAlcaldia = _this3.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
      _this3.consultResults = [];
      for (const item of _this3.selectedItems) {
        _this3.showLoading = true;
        try {
          const result = yield _this3.consultData(codigoAlcaldia, item);
          _this3.consultResults.push(result);
        } catch (error) {
          console.error("Error during consultation:", error);
          _this3.consultResults.push({
            item,
            text: 'Error al realizar la consulta',
            type: 'error'
          });
        } finally {
          _this3.showLoading = false;
        }
      }
      _this3.modalService.open(content, {
        centered: true,
        size: 'lg'
      });
      _this3.selectedItems = [];
      _this3.emitList.emit();
    })();
  }
  consultData(codigoAlcaldia, item) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!item || !item.reservaDto?.numeroTasa) {
        return {
          item,
          text: 'No se pudo obtener el dato seleccionado',
          type: 'warning'
        };
      }
      try {
        const nroTasa = item.reservaDto.numeroTasa;
        const resp = yield _this4.ruatService.consultaPagoTasa(codigoAlcaldia, nroTasa).toPromise();
        if (resp['status'] !== 'OK') {
          return {
            item,
            text: "La Tasa y Otro Ingreso no tiene pagos",
            type: 'warning'
          };
        }
        if (!resp.payload.continuarFlujo) {
          return {
            item,
            text: resp.payload.observacion,
            type: 'warning'
          };
        }
        const text = resp.payload.observacion;
        if (item.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA || item.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE) {
          const pagoData = resp.payload.pagoTasa;
          try {
            const [day, month, year] = pagoData.fechaPago.split('/');
            const formattedDate = `${year}-${month}-${day}`;
            const nuevoPago = {
              numeroTasa: pagoData.numeroTasa,
              tipoTasa: "TO",
              folio: pagoData.folio,
              formaPago: pagoData.formaPago,
              fechaPago: new Date(formattedDate),
              entidadFinanciera: pagoData.entidadFinanciera,
              montoPagado: parseFloat(pagoData.montoPago) || 0,
              observaciones: pagoData.observacion,
              estadoPago: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoPago.PAGADO,
              ultimaConsulta: new Date(),
              respuestaCompletaRuat: JSON.stringify(resp),
              reservaDto: item.reservaDto
            };
            const pagoResp = yield _this4.pagoService.save(nuevoPago).toPromise();
            if (pagoResp.status === 'OK') {
              const updatedReservaRecurrente = {
                ...item,
                reservaDto: {
                  ...item.reservaDto,
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA
                }
              };
              yield _this4.updateReservaRecurrente(updatedReservaRecurrente);
              return {
                item: updatedReservaRecurrente,
                text,
                type: 'success',
                hasPayment: true,
                pagoData: pagoResp.payload
              };
            }
          } catch (error) {
            console.error('Error saving pago:', error);
            return {
              item,
              text: 'Error al guardar el pago',
              type: 'error',
              hasPayment: true
            };
          }
        }
        return {
          item,
          text,
          type: 'info',
          hasPayment: true,
          pagoData: item.reservaDto?.pagosDtoList?.[0] || resp.payload.pagoTasa
        };
      } catch (error) {
        console.error('Error:', error);
        return {
          item,
          text: 'Error al realizar la consulta en RUAT',
          type: 'error',
          hasPayment: false
        };
      }
    })();
  }
  /* Helper Methods */
  getStatusBadgeClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA:
        return 'bg-warning-subtle text-warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE:
        return 'bg-info-subtle text-info';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA:
        return 'bg-primary-subtle text-primary';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA:
        return 'bg-danger-subtle text-danger';
      // case EstadoReserva.RECHAZADA:
      //   return 'bg-danger-subtle text-danger';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA:
        return 'bg-dark-subtle text-dark';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW:
        return 'bg-dark-subtle text-dark';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getValidationBadgeClass(estado) {
    switch (estado) {
      case 'PENDIENTE':
        return 'bg-warning-subtle text-warning';
      case 'APROBADA':
        return 'bg-success-subtle text-success';
      case 'RECHAZADA':
        return 'bg-danger-subtle text-danger';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getStatusAlertClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA:
        return 'alert-warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE:
        return 'alert-info';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA:
        return 'alert-primary';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA:
        return 'alert-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA:
      // case EstadoReserva.RECHAZADA:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW:
        return 'alert-danger';
      default:
        return 'alert-secondary';
    }
  }
  getStatusDescription(estado) {
    const descriptions = {
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA]: 'Esperando validación administrativa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE]: 'Reserva aprobada, pendiente de pago',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA]: 'Pago confirmado, reserva activa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO]: 'Reserva en curso',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA]: 'Reserva finalizada exitosamente',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA]: 'Reserva cancelada por el usuario',
      // [EstadoReserva.RECHAZADA]: 'Reserva rechazada por validación',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA]: 'Tiempo de pago expirado',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW]: 'Usuario no se presentó'
    };
    return descriptions[estado] || 'Estado desconocido';
  }
  getValidationDescription(estado) {
    const descriptions = {
      'PENDIENTE': 'Esperando validación administrativa',
      'APROBADA': 'Reserva validada y aprobada',
      'RECHAZADA': 'Reserva rechazada por validación'
    };
    return descriptions[estado] || 'Estado de validación desconocido';
  }
  getCityDescription(cityId) {
    if (!cityId) return 'N/A';
    const city = this.CityAcronym.find(c => '' + c.id === cityId);
    return city ? city.value : 'Desconocido';
  }
  getDiasSemanaLabels(diasString) {
    if (!diasString) return 'N/A';
    const diasArray = diasString.split(',');
    return diasArray.map(dia => {
      const option = this.diasSemanaOptions.find(d => d.value === dia);
      return option ? option.label : dia;
    }).join(', ');
  }
  getRecurrenceDescription(tipoRecurrencia) {
    return tipoRecurrencia === 'SEMANAL' ? 'Semanal' : 'Mensual';
  }
  /* Common functions */
  onCloseModal() {
    this.accion = '';
    if (this.reservationForm) {
      this.reservationForm.enable();
      this.reservationForm.reset();
    }
    if (this.validationForm) {
      this.validationForm.enable();
      this.validationForm.reset();
    }
    this.modalService.dismissAll();
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 4000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  handleError(title, error) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: title,
      text: error.message || 'Por favor, intente nuevamente.',
      icon: 'error',
      confirmButtonText: 'Entendido'
    });
  }
  /**
   * Check if reservation can be validated
   */
  canValidateReservation() {
    const estadoValidacion = this.row?.reservaDto?.estadoValidacion;
    const estadoReserva = this.row?.reservaDto?.estadoReserva;
    return estadoValidacion === 'PENDIENTE' && estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE && this.canActivate.includes('VALIDAR');
  }
  /**
   * Check if reservation can be edited
   */
  canEditReservation() {
    return this.row?.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE && this.canActivate.includes('CAMBIAR-HORARIO');
  }
  /**
   * Check if reservation can be cancelled
   */
  canCancelReservation() {
    const estado = this.row?.reservaDto?.estadoReserva;
    return (estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA || estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE) && this.canActivate.includes('ANULAR');
  }
  /**
   * Check if reservation can be consulted
   */
  canConsultReservation() {
    const estado = this.row?.reservaDto?.estadoReserva;
    return (estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA || estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE) && this.canActivate.includes('ACTUALIZAR');
  }
  static {
    this.ɵfac = function BookingRecurrentModalComponent_Factory(t) {
      return new (t || BookingRecurrentModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_recurrente_service__WEBPACK_IMPORTED_MODULE_5__.ReservaRecurrenteService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_6__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_7__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_8__.ContribuyentesService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_9__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_10__.ConfiguracionSistemaService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_11__.PagoService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_16__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_12__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineComponent"]({
      type: BookingRecurrentModalComponent,
      selectors: [["app-booking-recurrent-modal"]],
      viewQuery: function BookingRecurrentModalComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵviewQuery"](_c0, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵviewQuery"](_c1, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵviewQuery"](_c2, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵloadQuery"]()) && (ctx.validationModel = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵloadQuery"]()) && (ctx.ticketModal = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵloadQuery"]()) && (ctx.annularModal = _t.first);
        }
      },
      inputs: {
        accion: "accion",
        row: "row",
        canActivate: "canActivate"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵStandaloneFeature"]],
      decls: 6,
      vars: 2,
      consts: [["ticketModal", ""], ["validationModel", ""], ["annulForm", "ngForm"], ["motivoCtrl", "ngModel"], ["observationCtrl", "ngModel"], ["class", "modal-content", 4, "ngIf"], [4, "ngIf"], ["role", "document"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], ["class", "modal-header border p-2", 4, "ngIf"], [1, "modal-body"], [3, "formGroup"], [1, "modal-footer"], ["type", "button", "id", "btn-cancel-event", 1, "btn", "btn-light", 3, "click"], [1, "ri-close-line", "me-1"], ["type", "submit", "class", "btn btn-success", "id", "btn-save-event", 3, "disabled", "click", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], [1, "modal-header", "border", "p-2"], [1, "mini-stats-wid", "d-flex", "w-100", "justify-content-between", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "avatar-sm"], [1, "mini-stat-icon", "avatar-title", "rounded-circle", "text-success", "bg-success-subtle", "fs-4"], ["src", "assets/icons/logos/logo-sm.png", "alt", "Logo", 1, "card-logo", "card-logo-dark", "user-profile-image", "img-fluid"], [1, "modal-title", "ms-2", "mb-0"], ["for", "numeroTasa", 1, "me-2", "mb-0"], ["type", "text", "disabled", "", 1, "form-control", "form-control-sm", "tasa-input", 2, "width", "120px", 3, "value"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", "ms-2", 3, "click"], ["class", "text-end mb-3", 4, "ngIf"], [1, "alert", "alert-borderless", "mb-3", 3, "ngClass"], [1, "ri-information-line", "me-2", "fs-16"], [1, "badge", "ms-2", 3, "ngClass"], [1, "d-block", "mt-1"], [1, "reservation-details"], [1, "d-flex", "align-items-center", "mb-2"], [1, "flex-shrink-0", "me-3"], [1, "ri-barcode-line", "text-muted", "fs-lg"], [1, "flex-grow-1"], [1, "fw-semibold", "mb-0"], [1, "text-muted"], [1, "bx", "bx-dollar-circle", "text-muted", "fs-lg"], [1, "d-block", "fw-semibold", "mb-0"], [1, "ri-user-line", "text-muted", "fs-lg"], [1, "d-block", "text-muted", "mb-0"], [1, "ri-government-line", "text-muted", "fs-lg"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "align-items-center", "mb-2"], [1, "card-title", "fw-semibold", "mb-2"], [1, "ri-calendar-schedule-line", "me-2"], [1, "row"], [1, "col-md-6"], [1, "flex-shrink-0", "me-2"], [1, "ri-repeat-line", "text-muted"], [1, "text-muted", "d-block"], [1, "ri-time-line", "text-muted"], [1, "ri-calendar-check-line", "text-muted"], [1, "ri-group-line", "text-muted"], [1, "col-md-12"], [1, "d-flex", "align-items-center", "p-2", "bg-light", "rounded"], [1, "ri-calendar-event-line", "text-primary", "me-2"], [1, "schedule-board-container"], [1, "schedule-grid"], [1, "timeline-footer", "mt-2", "border-top"], [1, "row", "text-center"], [1, "col-md-4"], [1, "stat-item"], [1, "stat-value", "text-primary", "fw-bold"], [1, "stat-label", "text-muted", "small"], [1, "stat-value", "text-success", "fw-bold"], [1, "stat-value", "text-info", "fw-bold"], ["class", "mt-3", 4, "ngIf"], [1, "text-end", "mb-3"], ["role", "group", 1, "btn-group"], ["class", "btn btn-soft-success btn-sm", 3, "click", 4, "ngIf"], ["class", "btn btn-soft-warning btn-sm ms-1", 3, "click", 4, "ngIf"], ["class", "btn btn-soft-danger btn-sm ms-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-soft-info", "btn-sm", "ms-1", 3, "click"], [1, "ri-ticket-line", "me-1"], ["class", "btn btn-soft-success btn-sm ms-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-soft-success", "btn-sm", 3, "click"], [1, "ri-checkbox-circle-line", "me-1"], [1, "btn", "btn-soft-warning", "btn-sm", "ms-1", 3, "click"], [1, "ri-edit-2-line", "me-1"], [1, "btn", "btn-soft-danger", "btn-sm", "ms-1", 3, "click"], [1, "btn", "btn-soft-success", "btn-sm", "ms-1", 3, "click"], [1, "ri-check-double-line", "me-1"], [1, "schedule-header", "bg-primary", "text-white", "p-2", "rounded-top"], [1, "row", "align-items-center"], [1, "col"], [1, "fw-semibold"], [1, "ri-dashboard-line", "me-2"], [1, "col-auto"], [1, "schedule-body", "border", "border-top-0", "rounded-bottom"], [1, "row", "g-0", "border-bottom", "bg-light"], [1, "col", "border-end", "p-2", "text-center", 3, "class"], [1, "row", "g-0", "border-bottom", 3, "class"], [1, "col", "border-end", "p-2", "text-center"], [1, "fw-semibold", "text-muted", "d-block"], [1, "row", "g-0", "border-bottom"], [1, "col", "border-end", "p-2", "text-center", "position-relative", 3, "class", "bg-success-subtle"], [1, "col", "border-end", "p-2", "text-center", "position-relative"], [1, "booked-slot-content"], [1, "ri-checkbox-circle-fill", "text-success", "d-block", "mb-1"], [1, "text-success", "fw-medium", "d-block"], [1, "available-slot-content"], [1, "ri-time-line", "text-muted", "d-block", "mb-1"], [1, "text-center", "py-4", "text-muted"], [1, "ri-information-line", "display-4"], [1, "mt-2", "mb-0"], [1, "mt-3"], [1, "fw-semibold", "mb-2"], [1, "ri-money-dollar-circle-line", "me-2"], ["class", "bg-light p-2 rounded mb-2", 4, "ngFor", "ngForOf"], [1, "bg-light", "p-2", "rounded", "mb-2"], [1, "badge", 3, "ngClass"], ["class", "col-12", 4, "ngIf"], [1, "col-12"], [1, "ri-file-text-line", "me-2"], [1, "alert", "alert-warning", "alert-borderless", "mb-3"], [1, "ri-alert-line", "me-2"], [1, "form-group", "mb-3"], [1, "form-label", "mb-1"], ["type", "text", "disabled", "", 1, "form-control", 3, "value"], [1, "row", "mb-3"], [1, "col-6"], ["type", "number", "disabled", "", 1, "form-control", 3, "value"], [1, "col-6", "d-flex", "align-items-end"], [1, "input-group"], ["type", "date", "formControlName", "fechaInicio", 1, "form-control"], [1, "input-group-text"], [1, "ri-calendar-event-line"], ["class", "text-danger small mt-1", 4, "ngIf"], ["type", "date", "formControlName", "fechaFin", 1, "form-control"], ["formControlName", "tipoRecurrencia", 1, "form-control"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["type", "number", "formControlName", "duracionSesionHoras", "step", "0.5", "min", "0.5", 1, "form-control"], [1, "mb-3"], [1, "border", "rounded", "p-3"], ["class", "col-md-4", 4, "ngFor", "ngForOf"], ["type", "number", "formControlName", "cantidadPersonas", "min", "1", 1, "form-control"], [1, "form-group"], ["formControlName", "observaciones", "rows", "2", "placeholder", "Agregar observaciones sobre los cambios...", 1, "form-control"], [1, "text-danger", "small", "mt-1"], [3, "value"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "change", "id", "value", "checked"], [1, "form-check-label", 3, "for"], ["type", "submit", "id", "btn-save-event", 1, "btn", "btn-success", 3, "click", "disabled"], [1, "ri-save-line", "me-1"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal", 4, "ngIf"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal"], [1, "modal-header", "border-bottom"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "mt-4", 3, "ngSubmit"], [1, "fs-15", "mx-4", "mx-sm-5"], ["for", "motivo", 1, "form-label"], ["data-choices", "", "name", "motivo", "id", "idCategory", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "A SOLICITUD DEL CONTRIBUYENTE"], ["value", "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO"], ["value", "REGISTRO DE DATOS INCONSISTENTES"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "observation", 1, "form-label"], ["type", "text", "placeholder", "M\u00EDnimo 10 caracteres", "name", "observation", "required", "", "minlength", "10", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "text-muted", "mb-0", "fs-15", "mx-4", "mx-sm-5"], [1, "ri-alert-line", "me-1"], [1, "modal-footer", "border-top"], [1, "d-flex", "gap-2", "justify-content-center", "w-100"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "submit", "id", "delete-button", 1, "btn", "btn-danger", 3, "click", "disabled"], [1, "ri-close-circle-line", "me-1"], ["id", "elmLoader", "class", "modal-backdrop fade show", 4, "ngIf"], [1, "invalid-feedback"], ["id", "elmLoader", 1, "modal-backdrop", "fade", "show"], [1, "d-flex", "justify-content-center", "align-items-center", "h-100"], ["role", "status", 1, "spinner-border", "text-white", "avatar-sm"], [1, "alert", "alert-info", "alert-borderless", "mb-3"], [1, "ri-information-line", "me-2"], [1, "form-label"], ["formControlName", "validationStatus", 1, "form-control"], ["value", "APROBADA"], ["value", "RECHAZADA"], ["formControlName", "validationObservation", "rows", "4", 1, "form-control", 3, "placeholder"], ["class", "alert alert-warning alert-borderless", 4, "ngIf"], ["class", "alert alert-danger alert-borderless", 4, "ngIf"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], ["type", "button", 1, "btn", 3, "click", "disabled"], [1, "ri-check-line", "me-1"], [1, "ri-information-line"], [1, "ri-alert-line"], [1, "alert", "alert-warning", "alert-borderless"], [1, "alert", "alert-danger", "alert-borderless"], [1, "text-white", "ms-2"]],
      template: function BookingRecurrentModalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](0, BookingRecurrentModalComponent_div_0_Template, 11, 5, "div", 5)(1, BookingRecurrentModalComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplateRefExtractor"])(3, BookingRecurrentModalComponent_ng_container_3_Template, 47, 14, "ng-container", 6)(4, BookingRecurrentModalComponent_ng_template_4_Template, 57, 31, "ng-template", 7, 1, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.accion === "show" || ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.accion === "annularModal");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_17__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_17__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.MinLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavModule, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgForm, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__.TicketComponent],
      styles: ["\n\n.ng-select[_ngcontent-%COMP%]   .ng-dropdown-panel[_ngcontent-%COMP%] {\n  background-color: white !important; \n\n}\n\n.ng-select[_ngcontent-%COMP%]   .ng-dropdown-panel[_ngcontent-%COMP%]   .ng-option[_ngcontent-%COMP%] {\n  background-color: white; \n\n}\n\n.ng-select[_ngcontent-%COMP%]   .ng-dropdown-panel[_ngcontent-%COMP%]   .ng-option[_ngcontent-%COMP%]:hover {\n  background-color: #f1f1f1; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel {\n  background-color: white !important; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel .ng-option {\n  background-color: white; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel .ng-option:hover {\n  background-color: #f1f1f1; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel {\n  background-color: white !important; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel .ng-option {\n  background-color: white; \n\n}\n\n[_nghost-%COMP%]     .ng-select .ng-dropdown-panel .ng-option:hover {\n  background-color: #f1f1f1; \n\n}\n\n.tasa-input[_ngcontent-%COMP%] {\n  width: 80px; \n\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kYWxzL21vZGFsLWJvb2tpbmctcmVjdXJyZW50L21vZGFsLWJvb2tpbmctcmVjdXJyZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlDQUFBO0FBQ0E7RUFDSSxrQ0FBQSxFQUFBLGtDQUFBO0FBQ0o7O0FBRUU7RUFDRSx1QkFBQSxFQUFBLDhDQUFBO0FBQ0o7O0FBRUU7RUFDRSx5QkFBQSxFQUFBLDBDQUFBO0FBQ0o7O0FBRUU7RUFDRSxrQ0FBQSxFQUFBLGtDQUFBO0FBQ0o7O0FBRUU7RUFDRSx1QkFBQSxFQUFBLDhDQUFBO0FBQ0o7O0FBRUU7RUFDRSx5QkFBQSxFQUFBLDBDQUFBO0FBQ0o7O0FBRUU7RUFDRSxrQ0FBQSxFQUFBLGtDQUFBO0FBQ0o7O0FBRUU7RUFDRSx1QkFBQSxFQUFBLDhDQUFBO0FBQ0o7O0FBRUU7RUFDRSx5QkFBQSxFQUFBLDBDQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBLEVBQUEsMkJBQUE7QUFDSiIsInNvdXJjZXNDb250ZW50IjpbIi8qIEN1c3RvbSBzdHlsZXMgZm9yIG5nLXNlbGVjdCBkcm9wZG93biAqL1xyXG4ubmctc2VsZWN0IC5uZy1kcm9wZG93bi1wYW5lbCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50OyAvKiBTZXQgYmFja2dyb3VuZCBjb2xvciB0byB3aGl0ZSAqL1xyXG4gIH1cclxuICBcclxuICAubmctc2VsZWN0IC5uZy1kcm9wZG93bi1wYW5lbCAubmctb3B0aW9uIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOyAvKiBTZXQgaW5kaXZpZHVhbCBvcHRpb24gYmFja2dyb3VuZCB0byB3aGl0ZSAqL1xyXG4gIH1cclxuICBcclxuICAubmctc2VsZWN0IC5uZy1kcm9wZG93bi1wYW5lbCAubmctb3B0aW9uOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmMWYxZjE7IC8qIE9wdGlvbmFsOiBTZXQgaG92ZXIgY29sb3IgZm9yIG9wdGlvbnMgKi9cclxuICB9XHJcbiAgXHJcbiAgOmhvc3QgOjpuZy1kZWVwIC5uZy1zZWxlY3QgLm5nLWRyb3Bkb3duLXBhbmVsIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7IC8qIFNldCBiYWNrZ3JvdW5kIGNvbG9yIHRvIHdoaXRlICovXHJcbiAgfVxyXG4gIFxyXG4gIDpob3N0IDo6bmctZGVlcCAubmctc2VsZWN0IC5uZy1kcm9wZG93bi1wYW5lbCAubmctb3B0aW9uIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOyAvKiBTZXQgaW5kaXZpZHVhbCBvcHRpb24gYmFja2dyb3VuZCB0byB3aGl0ZSAqL1xyXG4gIH1cclxuICBcclxuICA6aG9zdCA6Om5nLWRlZXAgLm5nLXNlbGVjdCAubmctZHJvcGRvd24tcGFuZWwgLm5nLW9wdGlvbjpob3ZlciB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjFmMWYxOyAvKiBPcHRpb25hbDogU2V0IGhvdmVyIGNvbG9yIGZvciBvcHRpb25zICovXHJcbiAgfVxyXG4gIFxyXG4gIDpob3N0IDo6bmctZGVlcCAubmctc2VsZWN0IC5uZy1kcm9wZG93bi1wYW5lbCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50OyAvKiBTZXQgYmFja2dyb3VuZCBjb2xvciB0byB3aGl0ZSAqL1xyXG4gIH1cclxuICBcclxuICA6aG9zdCA6Om5nLWRlZXAgLm5nLXNlbGVjdCAubmctZHJvcGRvd24tcGFuZWwgLm5nLW9wdGlvbiB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsgLyogU2V0IGluZGl2aWR1YWwgb3B0aW9uIGJhY2tncm91bmQgdG8gd2hpdGUgKi9cclxuICB9XHJcbiAgXHJcbiAgOmhvc3QgOjpuZy1kZWVwIC5uZy1zZWxlY3QgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1vcHRpb246aG92ZXIge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2YxZjFmMTsgLyogT3B0aW9uYWw6IFNldCBob3ZlciBjb2xvciBmb3Igb3B0aW9ucyAqL1xyXG4gIH1cclxuICBcclxuICAudGFzYS1pbnB1dCB7XHJcbiAgICB3aWR0aDogODBweDsgLyogQWRqdXN0IHdpZHRoIGFzIG5lZWRlZCAqL1xyXG4gIH1cclxuICAiXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 37416:
/*!*************************************************************************************!*\
  !*** ./src/app/pages/modals/modal-booking-school/modal-booking-school.component.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingPeriodoModalComponent: () => (/* binding */ BookingPeriodoModalComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modules/reports/ticket/ticket.component */ 89291);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_reserva_periodo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/reserva-periodo.service */ 23064);
/* harmony import */ var src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/api/estudianteEscuela.service */ 10399);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/api/clasificadorRuat.service */ 12341);

























const _c0 = ["validationModel"];
const _c1 = ["ticketModal"];
const _c2 = ["annularModal"];
function BookingPeriodoModalComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 18)(1, "div", 19)(2, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "p", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, "Procesando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
}
function BookingPeriodoModalComponent_div_0_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "div", 25)(4, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](5, "img", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "h5", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_div_2_Template_button_click_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r2);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.accion === "" ? "Nueva Mensualidad" : ctx_r2.accion === "edit" ? "Editar Mensualidad" : "Detalles de Mensualidad", " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r5);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](4);
      const validationModel_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.openValidationModal(validationModel_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Validar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_3_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r7);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.accion = "edit");
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Editar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r8);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.openDeleteModal(ctx_r2.annularModal));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Anular ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 51)(1, "div", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](2, BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_2_Template, 3, 0, "button", 53)(3, BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_3_Template, 3, 0, "button", 54)(4, BookingPeriodoModalComponent_div_0_Conditional_4_div_0_button_4_Template, 3, 0, "button", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "button", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_Conditional_4_div_0_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r4);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      const ticketModal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.openTicketModal(ticketModal_r9));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, "Ver Ticket ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.canValidateReservation());
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.canEditReservation());
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.canCancelReservation());
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_small_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "small", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, "Reserva Gratuita");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 63)(1, "div", 64)(2, "h6", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Contribuyente Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "div", 66)(5, "p", 67)(6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "p", 67)(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, "Documento:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](13, "p", 68)(14, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](15, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const contribuyente_r10 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", contribuyente_r10 == null ? null : contribuyente_r10.nombreCompleto, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", contribuyente_r10 == null ? null : contribuyente_r10.tipoDocumento, " ", contribuyente_r10 == null ? null : contribuyente_r10.numeroDocumento, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", contribuyente_r10 == null ? null : contribuyente_r10.email, "");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_55_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 73)(1, "div", 36)(2, "div", 37)(3, "small")(4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](7, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "div", 37)(9, "small")(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, "Monto:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](13, "div", 37)(14, "small")(15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](16, "Forma:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](18, "div", 37)(19, "small")(20, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](21, "Entidad:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](23, "div", 37)(24, "small")(25, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](26, "Folio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](28, "div", 37)(29, "small")(30, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](31, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](32, "span", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const pago_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind2"](7, 7, pago_r11.fechaPago, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", pago_r11.montoPagado, " Bs.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", pago_r11.formaPago, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", pago_r11.entidadFinanciera, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", pago_r11.folio, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", pago_r11.estadoPago === "PAGADO" ? "bg-success-subtle text-success" : "bg-warning-subtle text-warning");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", pago_r11.estadoPago, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_div_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "h6", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](3, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, "Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](5, BookingPeriodoModalComponent_div_0_Conditional_4_div_55_div_5_Template, 34, 10, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](0, BookingPeriodoModalComponent_div_0_Conditional_4_div_0_Template, 8, 3, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](1, "div", 31)(2, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](3, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, "Estado Actual: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "span", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "small", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](10, "div", 35)(11, "div", 36)(12, "div", 37)(13, "div", 38)(14, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](15, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](16, "div", 41)(17, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](18, "Estudiante");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](19, "p", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](21, "small", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](23, "div", 37)(24, "div", 38)(25, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](26, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](27, "div", 41)(28, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](29, "Escuela");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](30, "p", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](31);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](32, "small", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](34, "div", 36)(35, "div", 37)(36, "div", 38)(37, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](38, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](39, "div", 41)(40, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](41, "Per\u00EDodo");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](42, "p", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](43);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](44, "div", 37)(45, "div", 38)(46, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](47, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](48, "div", 41)(49, "h6", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](50, "Monto");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](51, "p", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](52);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](53, BookingPeriodoModalComponent_div_0_Conditional_4_small_53_Template, 2, 0, "small", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](54, BookingPeriodoModalComponent_div_0_Conditional_4_div_54_Template, 17, 4, "div", 49)(55, BookingPeriodoModalComponent_div_0_Conditional_4_div_55_Template, 6, 1, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.canActivate.includes("ACTUALIZAR") || ctx_r2.canActivate.includes("VALIDAR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", ctx_r2.getStatusAlertClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", ctx_r2.getStatusBadgeClass(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", (ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.getStatusDescription(ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estadoReserva));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Matr\u00EDcula: ", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.reservaPeriodoDto == null ? null : ctx_r2.row.reservaDto.reservaPeriodoDto.matricula, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.organizacionDto == null ? null : ctx_r2.row.reservaDto.organizacionDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.organizacionDto == null ? null : ctx_r2.row.reservaDto.organizacionDto.disciplina);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.getMonthName(ctx_r2.row.mes));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal, " Bs.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.esReservaGratuita);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEstudiante == null ? null : ctx_r2.selectedEstudiante.contribuyenteDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.pagosDtoList);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_5_option_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const month_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", month_r13.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", month_r13.name, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_5_option_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const year_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", year_r14);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", year_r14, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "form", 12)(1, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "i", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, "Nota:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, " Solo puedes modificar mensualidades en estado PENDIENTE ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "div", 77)(7, "div", 37)(8, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9, "Estudiante");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "input", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](11, "div", 37)(12, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](13, "Escuela");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](14, "input", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](15, "div", 77)(16, "div", 37)(17, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](18, "Mes *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](19, "select", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_5_Template_select_change_19_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onMonthChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](20, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](21, "Seleccione mes");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](22, BookingPeriodoModalComponent_div_0_Conditional_5_option_22_Template, 2, 2, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](23, "div", 37)(24, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](25, "A\u00F1o *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](26, "select", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_5_Template_select_change_26_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r12);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onYearChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](27, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](28, "Seleccione a\u00F1o");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](29, BookingPeriodoModalComponent_div_0_Conditional_5_option_29_Template, 2, 2, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](30, "div", 84)(31, "label", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](32, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](33, "textarea", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx_r2.reservaForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", ctx_r2.selectedEstudiante == null ? null : ctx_r2.selectedEstudiante.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", ctx_r2.selectedEscuela == null ? null : ctx_r2.selectedEscuela.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.months);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.years);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const estudiante_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", estudiante_r16.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", estudiante_r16.nombreCompleto, " - ", estudiante_r16.matricula, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_8_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const escuela_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", escuela_r18.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate3"](" ", escuela_r18.nombre, " - ", escuela_r18.disciplina, " - ", escuela_r18.tarifaMensual, " Bs. ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 84)(1, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Escuela Municipal *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "select", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_6_div_8_Template_select_change_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r17);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onEscuelaChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, "Seleccione una escuela");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](6, BookingPeriodoModalComponent_div_0_Conditional_6_div_8_option_6_Template, 2, 4, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.filteredEscuelas);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_9_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const month_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", month_r20.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", month_r20.name, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_9_option_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const year_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", year_r21);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", year_r21, " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 77)(1, "div", 37)(2, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Mes *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "select", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_6_div_9_Template_select_change_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r19);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onMonthChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6, "Seleccione mes");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](7, BookingPeriodoModalComponent_div_0_Conditional_6_div_9_option_7_Template, 2, 2, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "div", 37)(9, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](10, "A\u00F1o *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](11, "select", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_6_div_9_Template_select_change_11_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r19);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onYearChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](13, "Seleccione a\u00F1o");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](14, BookingPeriodoModalComponent_div_0_Conditional_6_div_9_option_14_Template, 2, 2, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.months);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.years);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_10_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "option", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const reserva_r23 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", reserva_r23.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.getReservaDisplayInfo(reserva_r23), " ");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_10_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " No hay reservas recurrentes activas para esta escuela en el mes seleccionado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 84)(1, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Escuelas Reservadas *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "select", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_6_div_10_Template_select_change_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r22);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onReservaRecurrenteChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, "Seleccione reserva recurrente");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](6, BookingPeriodoModalComponent_div_0_Conditional_6_div_10_option_6_Template, 2, 2, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](7, BookingPeriodoModalComponent_div_0_Conditional_6_div_10_div_7_Template, 2, 0, "div", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.availableReservasRecurrentes);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.availableReservasRecurrentes.length === 0);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 63)(1, "div", 64)(2, "h6", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Contribuyente Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "div", 66)(5, "p", 67)(6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "p", 67)(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, "Documento:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](13, "p", 68)(14, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](15, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const contribuyente_r24 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", contribuyente_r24 == null ? null : contribuyente_r24.nombreCompleto, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"](" ", contribuyente_r24 == null ? null : contribuyente_r24.tipoDocumento, " ", contribuyente_r24 == null ? null : contribuyente_r24.numeroDocumento, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", contribuyente_r24 == null ? null : contribuyente_r24.email, "");
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_12_p_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "p", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Reserva gratuita para escuela municipal ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 63)(1, "div", 64)(2, "h6", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Informaci\u00F3n de Pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "div", 66)(5, "p", 67)(6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, "Tarifa Mensual:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "p", 68)(10, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, "Total a Pagar:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](13, BookingPeriodoModalComponent_div_0_Conditional_6_div_12_p_13_Template, 3, 0, "p", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.selectedEscuela.tarifaMensual, " Bs.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.getTotalAmount(), " Bs.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEscuela.permiteReservasGratuitas);
  }
}
function BookingPeriodoModalComponent_div_0_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "form", 12)(1, "div", 84)(2, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Estudiante *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "select", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("change", function BookingPeriodoModalComponent_div_0_Conditional_6_Template_select_change_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r15);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onEstudianteChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6, "Seleccione un estudiante");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](7, BookingPeriodoModalComponent_div_0_Conditional_6_option_7_Template, 2, 3, "option", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](8, BookingPeriodoModalComponent_div_0_Conditional_6_div_8_Template, 7, 1, "div", 89)(9, BookingPeriodoModalComponent_div_0_Conditional_6_div_9_Template, 15, 2, "div", 90)(10, BookingPeriodoModalComponent_div_0_Conditional_6_div_10_Template, 8, 2, "div", 89)(11, BookingPeriodoModalComponent_div_0_Conditional_6_div_11_Template, 17, 4, "div", 49)(12, BookingPeriodoModalComponent_div_0_Conditional_6_div_12_Template, 14, 3, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](13, "div", 84)(14, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](15, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](16, "textarea", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx_r2.reservaForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx_r2.estudiantesList);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEstudiante);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEstudiante && ctx_r2.selectedEscuela);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedMonth && ctx_r2.selectedYear && ctx_r2.selectedEscuela);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEstudiante == null ? null : ctx_r2.selectedEstudiante.contribuyenteDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.selectedEscuela);
  }
}
function BookingPeriodoModalComponent_div_0_button_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_button_11_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r25);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", !ctx_r2.reservaForm.valid || !ctx_r2.reservaForm.dirty || ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.isLoading ? "Guardando..." : "Guardar Cambios", " ");
  }
}
function BookingPeriodoModalComponent_div_0_button_12_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "span", 101);
  }
}
function BookingPeriodoModalComponent_div_0_button_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_button_12_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r26);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onSubmit());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingPeriodoModalComponent_div_0_button_12_span_1_Template, 1, 0, "span", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", ctx_r2.reservaForm.invalid || ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.isLoading ? "Registrando..." : "Registrar Mensualidad", " ");
  }
}
function BookingPeriodoModalComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingPeriodoModalComponent_div_0_div_1_Template, 6, 0, "div", 9)(2, BookingPeriodoModalComponent_div_0_div_2_Template, 9, 1, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](4, BookingPeriodoModalComponent_div_0_Conditional_4_Template, 56, 14)(5, BookingPeriodoModalComponent_div_0_Conditional_5_Template, 34, 5, "form", 12)(6, BookingPeriodoModalComponent_div_0_Conditional_6_Template, 17, 7, "form", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "div", 13)(8, "button", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_div_0_Template_button_click_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r1);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](9, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](10, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](11, BookingPeriodoModalComponent_div_0_button_11_Template, 3, 2, "button", 16)(12, BookingPeriodoModalComponent_div_0_button_12_Template, 3, 3, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit" || ctx_r2.accion === "show" || ctx_r2.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](4, ctx_r2.accion === "show" ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](5, ctx_r2.accion === "edit" ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](6, ctx_r2.accion === "" ? 6 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.accion === "");
  }
}
function BookingPeriodoModalComponent_ng_template_1_app_ticket_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "app-ticket", 103);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("bookingType", "periodo")("reservationData", ctx_r2.row.reservaDto)("autoLoad", true)("showAsModal", true);
  }
}
function BookingPeriodoModalComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](0, BookingPeriodoModalComponent_ng_template_1_app_ticket_0_Template, 1, 4, "app-ticket", 102);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.row.reservaDto);
  }
}
function BookingPeriodoModalComponent_ng_container_3_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " El motivo es requerido. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_container_3_div_34_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, "La observaci\u00F3n es requerida.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_container_3_div_34_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, "La observaci\u00F3n debe tener al menos 10 caracteres.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_container_3_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, BookingPeriodoModalComponent_ng_container_3_div_34_div_1_Template, 2, 0, "div", 6)(2, BookingPeriodoModalComponent_ng_container_3_div_34_div_2_Template, 2, 0, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    const observationCtrl_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", observationCtrl_r29.errors == null ? null : observationCtrl_r29.errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", observationCtrl_r29.errors == null ? null : observationCtrl_r29.errors["minlength"]);
  }
}
function BookingPeriodoModalComponent_ng_container_3_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 129)(1, "div", 130)(2, "div", 131)(3, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()();
  }
}
function BookingPeriodoModalComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](1, "div", 104)(2, "h5", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Anular Mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "button", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_container_3_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "div", 11)(6, "div", 107)(7, "div", 108)(8, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9, "\u00BFEst\u00E1s seguro de Anular la Mensualidad?");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](10, "p", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, "Esta acci\u00F3n no se puede deshacer.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "form", 109, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("ngSubmit", function BookingPeriodoModalComponent_ng_container_3_Template_form_ngSubmit_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const annulForm_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.annularData(annulForm_r28.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](14, "div", 110)(15, "div", 84)(16, "label", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](17, "Indique el motivo de la Anulaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](18, "select", 112, 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoModalComponent_ng_container_3_Template_select_ngModelChange_18_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayBindingSet"](ctx_r2.motivo, $event) || (ctx_r2.motivo = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](20, "option", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](21, "Seleccione un motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](22, "option", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](23, "A SOLICITUD DEL CONTRIBUYENTE");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](24, "option", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](25, "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](26, "option", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](27, "REGISTRO DE DATOS INCONSISTENTES");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](28, BookingPeriodoModalComponent_ng_container_3_div_28_Template, 2, 0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](29, "div", 84)(30, "label", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](31, "Escriba la Observaci\u00F3n de la Reserva *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](32, "input", 118, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoModalComponent_ng_container_3_Template_input_ngModelChange_32_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayBindingSet"](ctx_r2.observation, $event) || (ctx_r2.observation = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](34, BookingPeriodoModalComponent_ng_container_3_div_34_Template, 3, 2, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](35, "p", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](36, "i", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](37, " Al confirmar no podr\u00E1 reactivar esta mensualidad nuevamente. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](38, "div", 121)(39, "div", 122)(40, "button", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_container_3_Template_button_click_40_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.onCloseModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](41, "i", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](42, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](43, "button", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_container_3_Template_button_click_43_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r27);
      const annulForm_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](13);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.annularData(annulForm_r28.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](44, "i", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](46, BookingPeriodoModalComponent_ng_container_3_div_46_Template, 5, 0, "div", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const annulForm_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](13);
    const motivoCtrl_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](19);
    const observationCtrl_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵreference"](33);
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassProp"]("disabled", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassProp"]("is-invalid", motivoCtrl_r30.invalid && motivoCtrl_r30.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.motivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", motivoCtrl_r30.invalid && motivoCtrl_r30.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassProp"]("is-invalid", observationCtrl_r29.invalid && observationCtrl_r29.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtwoWayProperty"]("ngModel", ctx_r2.observation);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", observationCtrl_r29.invalid && observationCtrl_r29.touched);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", annulForm_r28.invalid || ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.isLoading ? "Anulando..." : "Anular", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.isLoading);
  }
}
function BookingPeriodoModalComponent_ng_template_4_div_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Seleccione un estado de validaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_template_4_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " El motivo del rechazo es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_template_4_div_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Proceso de Aprobaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, " \u2022 La mensualidad ser\u00E1 registrada en RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, " \u2022 Se generar\u00E1 un n\u00FAmero de tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9, " \u2022 El contribuyente tendr\u00E1 24 horas para realizar el pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, " \u2022 La mensualidad cambiar\u00E1 a estado \"PENDIENTE\" ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_template_4_div_43_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, "Proceso de Rechazo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](5, " \u2022 La mensualidad ser\u00E1 marcada como \"RECHAZADA\"");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](7, " \u2022 Se notificar\u00E1 al contribuyente por email");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](8, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9, " \u2022 El contribuyente podr\u00E1 realizar una nueva solicitud");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, " \u2022 Esta acci\u00F3n no se puede deshacer ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoModalComponent_ng_template_4_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 129)(1, "div", 130)(2, "div", 131)(3, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "div", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobando..." : "Rechazando...", " ");
  }
}
function BookingPeriodoModalComponent_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 104)(1, "h5", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, "Validar Mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "button", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_template_4_Template_button_click_3_listener() {
      const modal_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r31).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](modal_r32.dismiss("Cancel click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](4, "div", 11)(5, "div", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "i", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](8, "Informaci\u00F3n de la Mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](9, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](10, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](11, " Estudiante: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](14, " | Escuela: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](15, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](17, " | Monto: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](18, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](20, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](21, " Per\u00EDodo: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](22, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](24, " | Matr\u00EDcula: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](25, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](27, "form", 12)(28, "div", 84)(29, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](30, "Estado de Validaci\u00F3n *");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](31, "select", 134)(32, "option", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](33, "Aprobar Mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](34, "option", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](35, "Rechazar Mensualidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](36, BookingPeriodoModalComponent_ng_template_4_div_36_Template, 2, 0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](37, "div", 84)(38, "label", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](40, "textarea", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](41, BookingPeriodoModalComponent_ng_template_4_div_41_Template, 2, 0, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](42, BookingPeriodoModalComponent_ng_template_4_div_42_Template, 12, 0, "div", 138)(43, BookingPeriodoModalComponent_ng_template_4_div_43_Template, 12, 0, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](44, "div", 121)(45, "button", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_template_4_Template_button_click_45_listener() {
      const modal_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r31).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](modal_r32.dismiss("Cancel click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](46, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](47, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](48, "button", 141);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function BookingPeriodoModalComponent_ng_template_4_Template_button_click_48_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r31);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r2.validateReservation());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](49, "i", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](51, BookingPeriodoModalComponent_ng_template_4_div_51_Template, 7, 1, "div", 127);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.organizacionDto == null ? null : ctx_r2.row.reservaDto.organizacionDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.montoTotal, " Bs.");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.getMonthName(ctx_r2.row.mes));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx_r2.row.reservaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto == null ? null : ctx_r2.row.reservaDto.estudianteEscuelaDto.matricula);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx_r2.validationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationStatus"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Observaciones (Opcional)" : "Motivo de Rechazo *", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassProp"]("is-invalid", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("placeholder", ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Ingrese observaciones para la aprobaci\u00F3n (opcional)..." : "Ingrese el motivo del rechazo (requerido)...");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.validationFormControls["validationObservation"].invalid && ctx_r2.validationSubmitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "APROBADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.validationForm.value.validationStatus === "RECHAZADA");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassMap"](ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "btn-success" : "btn-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", ctx_r2.isLoading || !ctx_r2.validationForm.valid);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", ctx_r2.isLoading ? "Procesando..." : ctx_r2.validationForm.value.validationStatus === "APROBADA" ? "Aprobar Mensualidad" : "Rechazar Mensualidad", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.isLoading);
  }
}
class BookingPeriodoModalComponent {
  constructor(activeModal, fb, router, cdRef, modalService, authenticationService, complejoService, campoService, reservaService, ruatService, reservaPeriodoService, estudianteService, organizationService, pagoService, ClasificadorService) {
    this.activeModal = activeModal;
    this.fb = fb;
    this.router = router;
    this.cdRef = cdRef;
    this.modalService = modalService;
    this.authenticationService = authenticationService;
    this.complejoService = complejoService;
    this.campoService = campoService;
    this.reservaService = reservaService;
    this.ruatService = ruatService;
    this.reservaPeriodoService = reservaPeriodoService;
    this.estudianteService = estudianteService;
    this.organizationService = organizationService;
    this.pagoService = pagoService;
    this.ClasificadorService = ClasificadorService;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_16__.EventEmitter();
    this.reservaGenerada = new _angular_core__WEBPACK_IMPORTED_MODULE_16__.EventEmitter();
    this.userRole = 'Contribuyente';
    this.isLoading = false;
    this.isRuatAuthenticated = false;
    this.systemConfigList = {};
    this.reservationsList = [];
    this.complejosList = [];
    this.camposDeportivosList = [];
    this.organizationsList = [];
    this.estudiantesList = [];
    this.mensualidadesEstudiante = [];
    this.submitted = false;
    this.validationSubmitted = false;
    this.filteredEscuelas = [];
    this.availableReservasRecurrentes = [];
    this.motivo = '';
    this.observation = '';
    this.validationObservation = '';
    this.validationStatus = 'APROBADA';
    this.months = [{
      value: 1,
      name: 'Enero'
    }, {
      value: 2,
      name: 'Febrero'
    }, {
      value: 3,
      name: 'Marzo'
    }, {
      value: 4,
      name: 'Abril'
    }, {
      value: 5,
      name: 'Mayo'
    }, {
      value: 6,
      name: 'Junio'
    }, {
      value: 7,
      name: 'Julio'
    }, {
      value: 8,
      name: 'Agosto'
    }, {
      value: 9,
      name: 'Septiembre'
    }, {
      value: 10,
      name: 'Octubre'
    }, {
      value: 11,
      name: 'Noviembre'
    }, {
      value: 12,
      name: 'Diciembre'
    }];
    this.years = [];
  }
  ngOnInit() {
    this.breadCrumbItems = [{
      label: 'Complejo'
    }, {
      label: 'Reserva Período',
      active: true
    }];
    this.currentTime = new Date().toLocaleTimeString();
    this.systemConfigList = this.authenticationService.getAllConfigs();
    this.initializeForm();
    this.initializeYears();
    this.getClasificador();
    this.getEstudiantes();
    this.getOrganizations();
    if (this.accion === 'validarModal') {
      this.initValidationForm();
    } else if (this.accion === 'edit') {
      this.initEditForm();
    } else if (this.accion === 'show') {
      this.loadReservaData();
    }
  }
  ngAfterViewInit() {
    setTimeout(() => {
      if (!this.accion) return;
      switch (this.accion) {
        case 'validarModal':
          this.openValidationModal(this.validationModel);
          break;
        case 'annularModal':
          if (this.annularModal) {
            this.openDeleteModal(this.annularModal);
          }
          break;
        case 'ticketModal':
          this.openTicketModal(this.ticketModal);
          break;
      }
    });
  }
  initializeForm() {
    this.reservaForm = this.fb.group({
      estudiante: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      escuela: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      reservaRecurrente: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      mes: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      año: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      observaciones: ['']
    });
    const currentDate = new Date();
    this.reservaForm.patchValue({
      mes: currentDate.getMonth() + 1,
      año: currentDate.getFullYear()
    });
    this.selectedMonth = currentDate.getMonth() + 1;
    this.selectedYear = currentDate.getFullYear();
  }
  initEditForm() {
    if (!this.row?.reservaDto) return;
    this.reservaForm = this.fb.group({
      estudiante: [{
        value: this.row.reservaDto.estudianteEscuelaDto?.uuid || '',
        disabled: true
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      escuela: [{
        value: this.row.reservaDto.organizacionDto?.uuid || '',
        disabled: true
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      reservaRecurrente: [{
        value: this.row.reservaDto.uuid || '',
        disabled: true
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      mes: [this.row.mes, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      año: [this.row.año, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      observaciones: ['']
    });
    this.selectedMonth = this.row.mes;
    this.selectedYear = this.row.año;
    this.selectedEstudiante = this.row.reservaDto.estudianteEscuelaDto;
    this.selectedEscuela = this.row.reservaDto.organizacionDto;
    this.selectedReservaRecurrente = this.row.reservaDto;
  }
  initValidationForm() {
    this.validationForm = this.fb.group({
      validationStatus: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      validationObservation: ['']
    });
    this.validationForm.get('validationStatus')?.valueChanges.subscribe(status => {
      this.updateObservationValidation(status);
    });
  }
  updateObservationValidation(status) {
    const observationControl = this.validationForm.get('validationObservation');
    if (status === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.RECHAZADA) {
      observationControl?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required]);
      observationControl?.updateValueAndValidity();
    } else {
      observationControl?.clearValidators();
      observationControl?.updateValueAndValidity();
    }
  }
  initializeYears() {
    const currentYear = new Date().getFullYear();
    for (let i = currentYear - 1; i <= currentYear + 1; i++) {
      this.years.push(i);
    }
  }
  loadReservaData() {
    if (!this.row?.reservaDto) return;
    this.selectedEstudiante = this.row.reservaDto.estudianteEscuelaDto;
    this.selectedEscuela = this.row.reservaDto.organizacionDto;
    this.selectedReservaRecurrente = this.row.reservaDto;
    this.selectedMonth = this.row.mes;
    this.selectedYear = this.row.año;
  }
  onEstudianteChange(event) {
    const target = event.target;
    const estudianteUuid = target.value;
    const estudiante = this.estudiantesList.find(e => e.uuid === estudianteUuid);
    if (estudiante) {
      this.onEstudianteSelected(estudiante);
    }
  }
  onEstudianteSelected(estudiante) {
    this.selectedEstudiante = estudiante;
    this.reservaForm.patchValue({
      estudiante: estudiante.uuid
    });
    this.filteredEscuelas = this.organizationsList.filter(org => org.tipoOrganizacion === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_3__.TipoOrganizacion.ESCUELA_MUNICIPAL && org.activo);
    this.loadMensualidadesEstudiante();
    this.selectedEscuela = undefined;
    this.selectedReservaRecurrente = undefined;
    this.availableReservasRecurrentes = [];
    this.reservaForm.patchValue({
      escuela: '',
      reservaRecurrente: ''
    });
  }
  onEscuelaChange(event) {
    const target = event.target;
    const escuelaUuid = target.value;
    const escuela = this.filteredEscuelas.find(e => e.uuid === escuelaUuid);
    if (escuela) {
      this.onEscuelaSelected(escuela);
    }
  }
  onEscuelaSelected(escuela) {
    this.selectedEscuela = escuela;
    this.reservaForm.patchValue({
      escuela: escuela.uuid
    });
    this.loadReservasRecurrentesFromEscuela(escuela);
    this.selectedReservaRecurrente = undefined;
    this.reservaForm.patchValue({
      reservaRecurrente: ''
    });
  }
  onReservaRecurrenteChange(event) {
    const target = event.target;
    const reservaUuid = target.value;
    const reserva = this.availableReservasRecurrentes.find(r => r.uuid === reservaUuid);
    if (reserva) {
      this.onReservaRecurrenteSelected(reserva);
    }
  }
  onReservaRecurrenteSelected(reserva) {
    this.selectedReservaRecurrente = reserva;
    this.reservaForm.patchValue({
      reservaRecurrente: reserva.uuid
    });
  }
  onMonthChange(event) {
    const target = event.target;
    this.selectedMonth = parseInt(target.value);
    this.reservaForm.patchValue({
      mes: this.selectedMonth
    });
    this.onMonthYearChange();
  }
  onYearChange(event) {
    const target = event.target;
    this.selectedYear = parseInt(target.value);
    this.reservaForm.patchValue({
      año: this.selectedYear
    });
    this.onMonthYearChange();
  }
  onMonthYearChange() {
    this.selectedMonth = this.reservaForm.get('mes')?.value;
    this.selectedYear = this.reservaForm.get('año')?.value;
    if (this.selectedEscuela) {
      this.filterReservasBySelectedMonth();
    }
    this.checkExistingMensualidad();
  }
  onSubmit() {
    if (this.reservaForm.invalid) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: 'Formulario Incompleto',
        text: 'Por favor complete todos los campos requeridos',
        icon: 'warning',
        confirmButtonText: 'Entendido'
      });
      return;
    }
    if (!this.selectedEstudiante || !this.selectedEscuela || !this.selectedReservaRecurrente) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: 'Error',
        text: 'Seleccione estudiante, escuela y reserva recurrente',
        icon: 'error',
        confirmButtonText: 'Entendido'
      });
      return;
    }
    this.isLoading = true;
    const reservaData = this.prepareReservaPeriodoData();
    this.registerReservaPeriodoInRuat(reservaData);
  }
  saveData() {
    this.submitted = true;
    if (this.reservaForm.valid) {
      this.isLoading = true;
      const updatedData = {
        ...this.row,
        mes: this.reservaForm.value.mes,
        año: this.reservaForm.value.año,
        reservaDto: {
          ...this.row.reservaDto,
          observaciones: this.reservaForm.value.observaciones
        }
      };
      this.updateReservaPeriodo(updatedData);
    } else {
      this.notify('Formulario Inválido! Por favor complete todos los campos requeridos.', 'error');
    }
  }
  validateReservation() {
    this.validationSubmitted = true;
    this.updateObservationValidation(this.validationForm.value.validationStatus);
    if (this.validationForm.valid) {
      this.isLoading = true;
      const validationData = this.validationForm.value;
      const isApproved = validationData.validationStatus === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA;
      const reservaUuid = this.row.reservaDto?.uuid;
      if (!reservaUuid) {
        this.isLoading = false;
        this.notify('Error: No se pudo identificar la reserva', 'error');
        return;
      }
      if (isApproved) {
        this.approveReserva(reservaUuid, validationData.validationObservation);
      } else {
        this.rejectReserva(reservaUuid, validationData.validationObservation);
      }
    } else {
      this.notify('Por favor complete todos los campos de validación', 'error');
    }
  }
  annularData(formValues) {
    if (!formValues || !this.row.reservaDto) {
      this.notify('No se pudo obtener los datos de la reserva', 'error');
      return;
    }
    const codigoAlcaldia = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
    const codigoUsuario = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
    const requestData = {
      numeroTasa: this.row.reservaDto.numeroTasa,
      motivo: formValues.motivo,
      observacion: formValues.observation
    };
    this.isLoading = true;
    this.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).subscribe({
      next: resp => {
        this.isLoading = false;
        if (resp['status'] === 'OK') {
          const text = resp.payload['mensajeConfirmacion'];
          const updatedReserva = {
            ...this.row.reservaDto,
            estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.CANCELADA
          };
          this.reservaService.update(updatedReserva).subscribe({
            next: () => {
              sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
                title: 'Anulado!',
                text: text,
                icon: 'success',
                confirmButtonColor: '#299cdb',
                timer: 5000,
                timerProgressBar: true
              });
              this.emitList.emit();
              this.modalService.dismissAll('close click');
            },
            error: error => {
              this.notify('Reserva anulada en RUAT pero error al actualizar localmente', 'warning');
            }
          });
        } else {
          this.notify(resp.payload || 'Error al anular en RUAT', 'error');
        }
      },
      error: error => {
        this.isLoading = false;
        console.error('Error:', error);
        this.notify('Error al realizar la anulación en RUAT', 'error');
      }
    });
  }
  // Modal Methods
  openValidationModal(content) {
    this.initValidationForm();
    const modalRef = this.modalService.open(content, {
      centered: true,
      size: 'md',
      backdrop: 'static'
    });
    modalRef.dismissed.subscribe(reason => {
      this.onCloseModal();
    });
  }
  openDeleteModal(content) {
    this.accion = 'annularModal';
    this.motivo = '';
    this.observation = '';
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
  }
  openTicketModal(content) {
    this.modalService.open(content, {
      centered: true,
      size: 'md'
    });
  }
  onCancel() {
    this.activeModal.dismiss('cancel');
  }
  onCloseModal() {
    this.accion = '';
    if (this.reservaForm) {
      this.reservaForm.enable();
      this.reservaForm.reset();
    }
    if (this.validationForm) {
      this.validationForm.enable();
      this.validationForm.reset();
    }
    this.modalService.dismissAll();
    this.activeModal.dismiss();
  }
  // Helper Methods
  approveReserva(reservaUuid, observaciones = '') {
    var _this = this;
    const aprobadoPor = this.authenticationService.currentUser()?.nombreCompleto || 'Sistema';
    this.reservaService.aprobarReserva(reservaUuid, aprobadoPor).subscribe({
      next: function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this.isLoading = false;
            yield _this.registerReservationInRuat(data.payload);
            _this.openTicketModal(_this.ticketModal);
            _this.notify('Mensualidad aprobada exitosamente y registrada en RUAT', 'success');
            _this.emitList.emit();
          } catch (error) {
            _this.isLoading = false;
            console.error('Error in approval process:', error);
            _this.notify('Reserva aprobada pero error en proceso adicional: ' + error, 'warning');
          }
        });
        return function next(_x) {
          return _ref.apply(this, arguments);
        };
      }(),
      error: error => {
        this.isLoading = false;
        console.error('Error approving reservation:', error);
        this.notify('Error al aprobar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  rejectReserva(reservaUuid, motivoRechazo = '') {
    var _this2 = this;
    const aprobadoPor = this.authenticationService.currentUser()?.nombreCompleto || 'Sistema';
    this.reservaService.rechazarReserva(reservaUuid, motivoRechazo, aprobadoPor).subscribe({
      next: function () {
        var _ref2 = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (data) {
          try {
            _this2.isLoading = false;
            _this2.openTicketModal(_this2.ticketModal);
            _this2.notify('Mensualidad rechazada exitosamente', 'success');
            _this2.emitList.emit();
          } catch (error) {
            _this2.isLoading = false;
            console.error('Error in rejection process:', error);
            _this2.notify('Reserva rechazada pero error en proceso adicional', 'warning');
          }
        });
        return function next(_x2) {
          return _ref2.apply(this, arguments);
        };
      }(),
      error: error => {
        this.isLoading = false;
        console.error('Error rejecting reservation:', error);
        this.notify('Error al rechazar la reserva: ' + (error.error?.message || error.message), 'error');
      }
    });
  }
  loadReservasRecurrentesFromEscuela(escuela) {
    if (!escuela.reservasDtoList || escuela.reservasDtoList.length === 0) {
      this.availableReservasRecurrentes = [];
      return;
    }
    this.availableReservasRecurrentes = escuela.reservasDtoList.filter(reserva => reserva.tipoReserva === 'recurrente' && reserva.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA && reserva.reservaRecurrenteDto?.activo === true);
    this.filterReservasBySelectedMonth();
  }
  filterReservasBySelectedMonth() {
    if (!this.selectedMonth || !this.selectedYear) return;
    this.availableReservasRecurrentes = this.availableReservasRecurrentes.filter(reserva => this.isReservaInSelectedMonth(reserva));
  }
  isReservaInSelectedMonth(reserva) {
    if (!this.selectedMonth || !this.selectedYear || !reserva.reservaRecurrenteDto) return false;
    const recurrente = reserva.reservaRecurrenteDto;
    const reservaStart = new Date(recurrente.fechaInicio);
    const reservaEnd = new Date(recurrente.fechaFin);
    const selectedDateStart = new Date(this.selectedYear, this.selectedMonth - 1, 1);
    const selectedDateEnd = new Date(this.selectedYear, this.selectedMonth, 0);
    return reservaStart <= selectedDateEnd && reservaEnd >= selectedDateStart;
  }
  checkExistingMensualidad() {
    if (!this.selectedEstudiante || !this.selectedMonth || !this.selectedYear) return;
    const existingMensualidad = this.mensualidadesEstudiante.find(m => m.mes === this.selectedMonth && m.año === this.selectedYear);
    if (existingMensualidad) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: 'Mensualidad Existente',
        text: `El estudiante ya tiene una mensualidad registrada para ${this.getMonthName(this.selectedMonth)} ${this.selectedYear}`,
        icon: 'warning',
        confirmButtonText: 'Entendido'
      });
    }
  }
  loadMensualidadesEstudiante() {
    if (!this.selectedEstudiante?.uuid) return;
    this.reservaPeriodoService.getMensualidadesByEstudiante(this.selectedEstudiante.uuid).subscribe({
      next: response => {
        if (response.status === 'OK' && response.payload && response.payload.content) {
          this.mensualidadesEstudiante = response.payload.content;
        } else {
          this.mensualidadesEstudiante = [];
        }
      },
      error: error => {
        console.error('Error loading monthly payments:', error);
        this.mensualidadesEstudiante = [];
      }
    });
  }
  get form() {
    return this.reservaForm.controls;
  }
  get validationFormControls() {
    return this.validationForm.controls;
  }
  getMonthName(month) {
    return this.months.find(m => m.value === month)?.name || '';
  }
  getTotalAmount() {
    return this.selectedEscuela?.tarifaMensual || 0;
  }
  getReservaDisplayInfo(reserva) {
    const recurrente = reserva.reservaRecurrenteDto;
    if (!recurrente) return 'Reserva sin información';
    const campo = reserva.campoDeportivoDto?.nombre || 'Campo no especificado';
    const dias = recurrente.diasSemana || 'Días no especificados';
    const horario = recurrente.duracionSesionHoras ? `${recurrente.duracionSesionHoras}h` : 'Horario no especificado';
    const fechaInicio = new Date(recurrente.fechaInicio).toLocaleDateString();
    const fechaFin = new Date(recurrente.fechaFin).toLocaleDateString();
    return `${campo} - ${dias} - ${horario} (${fechaInicio} a ${fechaFin})`;
  }
  getStatusBadgeClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA:
        return 'bg-warning-subtle text-warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE:
        return 'bg-info-subtle text-info';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA:
        return 'bg-primary-subtle text-primary';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA:
        return 'bg-success-subtle text-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.CANCELADA:
        return 'bg-danger-subtle text-danger';
      // case EstadoReserva.RECHAZADA:
      //   return 'bg-danger-subtle text-danger';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EXPIRADA:
        return 'bg-dark-subtle text-dark';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.NO_SHOW:
        return 'bg-dark-subtle text-dark';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getValidationBadgeClass(estado) {
    switch (estado) {
      case 'PENDIENTE':
        return 'bg-warning-subtle text-warning';
      case 'APROBADA':
        return 'bg-success-subtle text-success';
      case 'RECHAZADA':
        return 'bg-danger-subtle text-danger';
      default:
        return 'bg-secondary-subtle text-secondary';
    }
  }
  getStatusAlertClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA:
        return 'alert-warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE:
        return 'alert-info';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA:
        return 'alert-primary';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA:
        return 'alert-success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.CANCELADA:
      // case EstadoReserva.RECHAZADA:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EXPIRADA:
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.NO_SHOW:
        return 'alert-danger';
      default:
        return 'alert-secondary';
    }
  }
  getStatusDescription(estado) {
    const descriptions = {
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA]: 'Esperando validación administrativa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE]: 'Mensualidad aprobada, pendiente de pago',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PAGADA]: 'Pago confirmado, mensualidad activa',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EN_CURSO]: 'Mensualidad en curso',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.COMPLETADA]: 'Mensualidad finalizada exitosamente',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.CANCELADA]: 'Mensualidad cancelada',
      // [EstadoReserva.RECHAZADA]: 'Mensualidad rechazada por validación',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.EXPIRADA]: 'Tiempo de pago expirado',
      [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.NO_SHOW]: 'Estudiante no se presentó'
    };
    return descriptions[estado] || 'Estado desconocido';
  }
  getValidationDescription(estado) {
    const descriptions = {
      'PENDIENTE': 'Esperando validación administrativa',
      'APROBADA': 'Mensualidad validada y aprobada',
      'RECHAZADA': 'Mensualidad rechazada por validación'
    };
    return descriptions[estado] || 'Estado de validación desconocido';
  }
  canValidateReservation() {
    const estadoValidacion = this.row?.reservaDto?.estadoValidacion;
    const estadoReserva = this.row?.reservaDto?.estadoReserva;
    return estadoValidacion === 'PENDIENTE' && estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE && this.canActivate.includes('VALIDAR');
  }
  canEditReservation() {
    return this.row?.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE && this.canActivate.includes('ACTUALIZAR');
  }
  canCancelReservation() {
    const estado = this.row?.reservaDto?.estadoReserva;
    return (estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.SOLICITADA || estado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE) && this.canActivate.includes('ANULAR');
  }
  prepareReservaPeriodoData() {
    const formValue = this.reservaForm.value;
    const reservaPayload = {
      fechaCreacion: new Date().toISOString(),
      fechaReserva: new Date().toISOString(),
      estadoValidacion: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.APROBADA,
      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE,
      tipoReserva: 'periodo',
      montoTotal: this.getTotalAmount(),
      clasificadorRuatId: this.clasificador.codigo,
      observaciones: formValue.observaciones || `Mensualidad para ${this.selectedEstudiante?.nombreCompleto} - ${this.selectedEscuela?.nombre}`,
      campoDeportivoDto: {
        uuid: this.selectedReservaRecurrente?.campoDeportivoDto?.uuid
      },
      contribuyenteDto: {
        uuid: this.selectedEstudiante?.contribuyenteDto?.uuid
      },
      estudianteEscuelaDto: {
        uuid: this.selectedEstudiante?.uuid
      },
      organizacionDto: {
        uuid: this.selectedEscuela?.uuid
      },
      tarifaDto: null,
      reservaPeriodoDto: {
        mes: formValue.mes,
        año: formValue.año,
        matricula: this.selectedEstudiante?.matricula,
        disciplina: this.selectedEscuela?.disciplina,
        entrenador: this.selectedEscuela?.entrenador
      }
    };
    return reservaPayload;
  }
  registerReservaPeriodoInRuat(reservaData) {
    const contribuyente = this.selectedEstudiante?.contribuyenteDto;
    if (!contribuyente?.codigoContribuyente) {
      this.handleError('Datos incompletos', 'Falta el código de contribuyente para registrar en RUAT');
      return;
    }
    const ruatData = {
      codigoAlcaldia: this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI',
      codigoUsuario: this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '',
      codigoContribuyente: contribuyente.codigoContribuyente,
      servicioMunicipal: this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.SERVICIO_MUNICIPAL_RUAT]?.valorTexto || '2174',
      datosConcepto: [{
        numero: '1',
        codigoClasificador: reservaData.clasificadorRuatId,
        tipoArancel: 'DI',
        monto: reservaData.montoTotal.toFixed(2)
      }],
      observacion: reservaData.observaciones || 'Mensualidad Escuela Municipal'
    };
    this.ruatService.createTasa(this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI', this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '', this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.SERVICIO_MUNICIPAL_RUAT]?.valorTexto || '2174', ruatData, contribuyente.codigoContribuyente).subscribe({
      next: response => {
        if (response.status === 'OK' && response.payload.continuarFlujo) {
          reservaData.numeroTasa = response.payload.numeroTasa;
          this.saveReservaPeriodo(reservaData);
        } else {
          this.handleError('Error en RUAT', response.payload?.mensaje || 'No se pudo registrar la tasa');
        }
      },
      error: error => {
        this.isLoading = false;
        this.handleError('Error de conexión con RUAT', error.error?.mensaje || error.message);
      }
    });
  }
  saveReservaPeriodo(reservaData) {
    this.reservaService.create(reservaData).subscribe({
      next: response => {
        this.isLoading = false;
        if (response.status === 'OK') {
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            title: '¡Éxito!',
            text: 'Mensualidad registrada correctamente',
            icon: 'success',
            confirmButtonText: 'Aceptar'
          });
          this.reservaGenerada.emit(response.payload);
          this.activeModal.close('success');
        } else {
          throw new Error(response.message || 'Error al crear reserva');
        }
      },
      error: error => {
        this.isLoading = false;
        let errorMessage = 'No se pudo registrar la mensualidad. Por favor, intente nuevamente.';
        if (error.error && error.error.message) {
          errorMessage = error.error.message;
        } else if (error.message) {
          errorMessage = error.message;
        }
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Error',
          text: errorMessage,
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  updateReservaPeriodo(data) {
    this.reservaPeriodoService.update(data).subscribe({
      next: response => {
        this.isLoading = false;
        if (response.status === 'OK') {
          this.notify('Mensualidad actualizada exitosamente', 'success');
          this.emitList.emit();
          this.onCloseModal();
        } else {
          throw new Error(response.message || 'Error al actualizar mensualidad');
        }
      },
      error: error => {
        this.isLoading = false;
        console.error('Error updating periodo reservation:', error);
        this.notify('Error al actualizar la mensualidad', 'error');
      }
    });
  }
  registerReservationInRuat(reservaData) {
    const codigoAlcaldia = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
    const codigoUsuario = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
    const servicioMunicipal = this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_5__.ClaveConfiguracion.SERVICIO_MUNICIPAL_RUAT]?.valorTexto || '2174';
    const ruatData = {
      codigoAlcaldia: codigoAlcaldia,
      codigoUsuario: codigoUsuario,
      codigoContribuyente: reservaData.contribuyenteDto.codigoContribuyente,
      servicioMunicipal: servicioMunicipal,
      datosConcepto: [{
        numero: '1',
        codigoClasificador: this.clasificador.codigo || reservaData.clasificadorRuatId,
        tipoArancel: "DI",
        monto: reservaData.montoTotal
      }],
      observacion: 'Mensualidad Escuela Municipal'
    };
    const code = reservaData.contribuyenteDto.codigoContribuyente || '';
    this.ruatService.createTasa(codigoAlcaldia, codigoUsuario, servicioMunicipal, ruatData, code).subscribe({
      next: response => {
        if (response.status === 'OK' && response.payload.continuarFlujo) {
          reservaData.numeroTasa = response.payload.numeroTasa;
          this.updateReserva(reservaData);
        } else {
          this.handleError('Error en RUAT', response.payload?.mensaje || 'No se pudo registrar la tasa');
        }
      },
      error: error => {
        this.handleError('Error de conexión con RUAT', error.error?.mensaje || error.message);
      }
    });
  }
  updateReserva(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  handleError(title, message) {
    this.isLoading = false;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: title,
      text: message,
      icon: 'error',
      confirmButtonText: 'Entendido'
    });
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 4000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  /* API REQUESTS */
  getClasificador() {
    this.ClasificadorService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          const list = response.payload;
          this.clasificador = list.find(item => item.nombre === 'RESERVA CAMPOS DEPORTIVOS POR PERSONA');
        }
      },
      error: error => {
        console.error('Error loading organizations:', error);
        this.organizationsList = [];
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Error',
          text: 'No se pudieron cargar las organizaciones. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  getOrganizations() {
    this.organizationService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.organizationsList = response.payload.content || [];
        } else {
          this.organizationsList = [];
        }
      },
      error: error => {
        console.error('Error loading organizations:', error);
        this.organizationsList = [];
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Error',
          text: 'No se pudieron cargar las organizaciones. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  getEstudiantes() {
    this.estudianteService.getAll().subscribe({
      next: response => {
        if (response.status === 'OK') {
          this.estudiantesList = response.payload;
        } else {
          this.estudiantesList = [];
        }
      },
      error: error => {
        console.error('Error loading students:', error);
        this.estudiantesList = [];
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Error',
          text: 'No se pudieron cargar los estudiantes. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      }
    });
  }
  static {
    this.ɵfac = function BookingPeriodoModalComponent_Factory(t) {
      return new (t || BookingPeriodoModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_19__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_16__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_7__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_8__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_9__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_periodo_service__WEBPACK_IMPORTED_MODULE_11__.ReservaPeriodoService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_12__.EstudianteEscuelaService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_13__.OrganizacionService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_14__.PagoService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_15__.ClasificadorRuatService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
      type: BookingPeriodoModalComponent,
      selectors: [["app-booking-periodo-modal"]],
      viewQuery: function BookingPeriodoModalComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵviewQuery"](_c0, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵviewQuery"](_c1, 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵviewQuery"](_c2, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵloadQuery"]()) && (ctx.validationModel = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵloadQuery"]()) && (ctx.ticketModal = _t.first);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵloadQuery"]()) && (ctx.annularModal = _t.first);
        }
      },
      inputs: {
        accion: "accion",
        row: "row",
        canActivate: "canActivate"
      },
      outputs: {
        emitList: "emitList",
        reservaGenerada: "reservaGenerada"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵStandaloneFeature"]],
      decls: 6,
      vars: 2,
      consts: [["ticketModal", ""], ["validationModel", ""], ["annulForm", "ngForm"], ["motivoCtrl", "ngModel"], ["observationCtrl", "ngModel"], ["class", "modal-content", 4, "ngIf"], [4, "ngIf"], ["role", "document"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], ["class", "modal-header border p-2", 4, "ngIf"], [1, "modal-body"], [3, "formGroup"], [1, "modal-footer"], ["type", "button", "id", "btn-cancel-event", 1, "btn", "btn-light", 3, "click"], [1, "ri-close-line", "me-1"], ["type", "submit", "class", "btn btn-success", "id", "btn-save-event", 3, "disabled", "click", 4, "ngIf"], ["type", "button", "class", "btn btn-primary", 3, "disabled", "click", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], [1, "modal-header", "border", "p-2"], [1, "mini-stats-wid", "d-flex", "w-100", "justify-content-between", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "avatar-sm"], [1, "mini-stat-icon", "avatar-title", "rounded-circle", "text-success", "bg-success-subtle", "fs-4"], ["src", "assets/icons/logos/logo-sm.png", "alt", "Logo", 1, "card-logo", "card-logo-dark", "user-profile-image", "img-fluid"], [1, "modal-title", "ms-2", "mb-0"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", "ms-2", 3, "click"], ["class", "text-end mb-3", 4, "ngIf"], [1, "alert", "alert-borderless", "mb-3", 3, "ngClass"], [1, "ri-information-line", "me-2", "fs-16"], [1, "badge", "ms-2", 3, "ngClass"], [1, "d-block", "mt-1"], [1, "reservation-details"], [1, "row"], [1, "col-md-6"], [1, "d-flex", "align-items-center", "mb-3"], [1, "flex-shrink-0", "me-3"], [1, "ri-user-line", "text-muted"], [1, "flex-grow-1"], [1, "fw-semibold", "mb-1"], [1, "text-muted", "mb-0"], [1, "text-muted"], [1, "ri-hotel-line", "text-muted"], [1, "ri-calendar-event-line", "text-muted"], [1, "ri-money-dollar-circle-line", "text-muted"], ["class", "text-muted", 4, "ngIf"], ["class", "card mb-3", 4, "ngIf"], ["class", "mt-3", 4, "ngIf"], [1, "text-end", "mb-3"], ["role", "group", 1, "btn-group"], ["class", "btn btn-soft-success btn-sm", 3, "click", 4, "ngIf"], ["class", "btn btn-soft-warning btn-sm ms-1", 3, "click", 4, "ngIf"], ["class", "btn btn-soft-danger btn-sm ms-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-soft-info", "btn-sm", "ms-1", 3, "click"], [1, "ri-ticket-line", "me-1"], [1, "btn", "btn-soft-success", "btn-sm", 3, "click"], [1, "ri-checkbox-circle-line", "me-1"], [1, "btn", "btn-soft-warning", "btn-sm", "ms-1", 3, "click"], [1, "ri-edit-2-line", "me-1"], [1, "btn", "btn-soft-danger", "btn-sm", "ms-1", 3, "click"], [1, "card", "mb-3"], [1, "card-header"], [1, "card-title", "mb-0"], [1, "card-body"], [1, "mb-1"], [1, "mb-0"], [1, "mt-3"], [1, "fw-semibold", "mb-2"], [1, "ri-money-dollar-circle-line", "me-2"], ["class", "bg-light p-2 rounded mb-2", 4, "ngFor", "ngForOf"], [1, "bg-light", "p-2", "rounded", "mb-2"], [1, "badge", 3, "ngClass"], [1, "alert", "alert-warning", "alert-borderless", "mb-3"], [1, "ri-alert-line", "me-2"], [1, "row", "mb-3"], [1, "form-label", "mb-1"], ["type", "text", "disabled", "", 1, "form-control", 3, "value"], ["formControlName", "mes", 1, "form-select", 3, "change"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "a\u00F1o", 1, "form-select", 3, "change"], [1, "mb-3"], ["formControlName", "observaciones", "rows", "3", "placeholder", "Observaciones adicionales...", 1, "form-control"], [3, "value"], [1, "form-label"], ["formControlName", "estudiante", 1, "form-select", 3, "change"], ["class", "mb-3", 4, "ngIf"], ["class", "row mb-3", 4, "ngIf"], ["formControlName", "escuela", 1, "form-select", 3, "change"], ["formControlName", "reservaRecurrente", 1, "form-select", 3, "change"], ["class", "form-text", 4, "ngIf"], [1, "form-text"], ["class", "mb-0 text-success", 4, "ngIf"], [1, "mb-0", "text-success"], ["type", "submit", "id", "btn-save-event", 1, "btn", "btn-success", 3, "click", "disabled"], [1, "ri-save-line", "me-1"], ["type", "button", 1, "btn", "btn-primary", 3, "click", "disabled"], ["class", "spinner-border spinner-border-sm me-2", 4, "ngIf"], [1, "spinner-border", "spinner-border-sm", "me-2"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal", 4, "ngIf"], [3, "bookingType", "reservationData", "autoLoad", "showAsModal"], [1, "modal-header", "border-bottom"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "mt-4", 3, "ngSubmit"], [1, "fs-15", "mx-4", "mx-sm-5"], ["for", "motivo", 1, "form-label"], ["data-choices", "", "name", "motivo", "id", "idCategory", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "A SOLICITUD DEL CONTRIBUYENTE"], ["value", "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO"], ["value", "REGISTRO DE DATOS INCONSISTENTES"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "observation", 1, "form-label"], ["type", "text", "placeholder", "M\u00EDnimo 10 caracteres", "name", "observation", "required", "", "minlength", "10", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "text-muted", "mb-0", "fs-15", "mx-4", "mx-sm-5"], [1, "ri-alert-line", "me-1"], [1, "modal-footer", "border-top"], [1, "d-flex", "gap-2", "justify-content-center", "w-100"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "submit", "id", "delete-button", 1, "btn", "btn-danger", 3, "click", "disabled"], [1, "ri-close-circle-line", "me-1"], ["id", "elmLoader", "class", "modal-backdrop fade show", 4, "ngIf"], [1, "invalid-feedback"], ["id", "elmLoader", 1, "modal-backdrop", "fade", "show"], [1, "d-flex", "justify-content-center", "align-items-center", "h-100"], ["role", "status", 1, "spinner-border", "text-white", "avatar-sm"], [1, "alert", "alert-info", "alert-borderless", "mb-3"], [1, "ri-information-line", "me-2"], ["formControlName", "validationStatus", 1, "form-control"], ["value", "APROBADA"], ["value", "RECHAZADA"], ["formControlName", "validationObservation", "rows", "4", 1, "form-control", 3, "placeholder"], ["class", "alert alert-warning alert-borderless", 4, "ngIf"], ["class", "alert alert-danger alert-borderless", 4, "ngIf"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], ["type", "button", 1, "btn", 3, "click", "disabled"], [1, "ri-check-line", "me-1"], [1, "alert", "alert-warning", "alert-borderless"], [1, "alert", "alert-danger", "alert-borderless"], [1, "text-white", "ms-2"]],
      template: function BookingPeriodoModalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](0, BookingPeriodoModalComponent_div_0_Template, 13, 7, "div", 5)(1, BookingPeriodoModalComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplateRefExtractor"])(3, BookingPeriodoModalComponent_ng_container_3_Template, 47, 14, "ng-container", 6)(4, BookingPeriodoModalComponent_ng_template_4_Template, 52, 22, "ng-template", 7, 1, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.accion === "show" || ctx.accion === "edit" || ctx.accion === "");
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.accion === "annularModal");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.MinLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgForm, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbTypeaheadModule, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_4__.TicketComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 93126:
/*!*************************************************************************!*\
  !*** ./src/app/pages/modals/modal-facility/modal-facility.component.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalFacilitiesComponent: () => (/* binding */ ModalFacilitiesComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_shared_map_leaflet_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared/map/leaflet.component */ 79843);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);















const _c0 = a0 => ({
  "is-invalid": a0
});
function ModalFacilitiesComponent_h5_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "h5", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Agregar Complejo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "h5", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Editar Datos de Complejo Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_form_4_div_9_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, "El nombre es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_form_4_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, ModalFacilitiesComponent_form_4_div_9_div_1_Template, 2, 0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["required"]);
  }
}
function ModalFacilitiesComponent_form_4_option_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const estado_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", estado_r3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](estado_r3);
  }
}
function ModalFacilitiesComponent_form_4_option_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", tipo_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](tipo_r4);
  }
}
function ModalFacilitiesComponent_form_4_div_24_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, "Debe seleccionar una opci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_form_4_div_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, ModalFacilitiesComponent_form_4_div_24_div_1_Template, 2, 0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoEstructura"].errors["required"]);
  }
}
function ModalFacilitiesComponent_form_4_option_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const distrito_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", distrito_r5.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](distrito_r5.value);
  }
}
function ModalFacilitiesComponent_form_4_div_38_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, "Debe seleccionar un distrito");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_form_4_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, ModalFacilitiesComponent_form_4_div_38_div_1_Template, 2, 0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.form["distrito"].errors["required"]);
  }
}
function ModalFacilitiesComponent_form_4_div_46_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, "El campo Direcci\u00F3n es obligatorio");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ModalFacilitiesComponent_form_4_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, ModalFacilitiesComponent_form_4_div_46_div_1_Template, 2, 0, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.form["ubicacion"].errors["required"]);
  }
}
function ModalFacilitiesComponent_form_4_div_47_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 48)(1, "small", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"](" Latitud: ", ctx_r1.form["latitud"].value, " | Longitud: ", ctx_r1.form["longitud"].value, " ");
  }
}
function ModalFacilitiesComponent_form_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "form", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("ngSubmit", function ModalFacilitiesComponent_form_4_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r1.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 7)(2, "div", 8)(3, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div")(6, "label", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](8, "input", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, ModalFacilitiesComponent_form_4_div_9_Template, 2, 1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 14)(11, "div")(12, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](13, "Estado Actual");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "select", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](15, ModalFacilitiesComponent_form_4_option_15_Template, 2, 2, "option", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "div", 14)(17, "div")(18, "label", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](19, "Tipo de Estructura");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "select", 19)(21, "option", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](22, "Seleccione una opci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](23, ModalFacilitiesComponent_form_4_option_23_Template, 2, 2, "option", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](24, ModalFacilitiesComponent_form_4_div_24_Template, 2, 1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](25, "div", 14)(26, "div")(27, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](28, "Tel\u00E9fono Principal");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](29, "input", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](30, "div", 14)(31, "div")(32, "label", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](33, "Distrito");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](34, "select", 24)(35, "option", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](36, "Seleccione un distrito");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](37, ModalFacilitiesComponent_form_4_option_37_Template, 2, 2, "option", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](38, ModalFacilitiesComponent_form_4_div_38_Template, 2, 1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](39, "div", 9)(40, "label", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](41, "Ubicaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](42, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](43, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](44, "button", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalFacilitiesComponent_form_4_Template_button_click_44_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r1.openMapa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](45, "Abrir Mapa");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](46, ModalFacilitiesComponent_form_4_div_46_Template, 2, 1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](47, ModalFacilitiesComponent_form_4_div_47_Template, 3, 2, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](48, "div", 9)(49, "div", 30)(50, "div", 31)(51, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](52, "input", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](53, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](54, " \u00BFTiene Iluminaci\u00F3n? ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](55, "div", 31)(56, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](57, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](58, "label", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](59, " \u00BFTiene Vestuarios? ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](60, "div", 31)(61, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](62, "input", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](63, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](64, " \u00BFTiene Gradar\u00EDas? ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](65, "div", 9)(66, "div")(67, "label", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](68, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](69, "textarea", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](70, "div", 41)(71, "div", 42)(72, "button", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalFacilitiesComponent_form_4_Template_button_click_72_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](73, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](74, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](75);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx_r1.complejoForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](16, _c0, ctx_r1.submitted && ctx_r1.form["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["nombre"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r1.estadoComplejoList);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](18, _c0, ctx_r1.submitted && ctx_r1.form["tipoEstructura"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r1.tipoEstructuraList);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["tipoEstructura"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](20, _c0, ctx_r1.submitted && ctx_r1.form["distrito"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r1.distictList);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["distrito"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", true)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](22, _c0, ctx_r1.submitted && ctx_r1.form["ubicacion"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["ubicacion"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.form["ubicacion"].value);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx_r1.accion === "edit" ? "Actualizar" : "Agregar", " ");
  }
}
class ModalFacilitiesComponent {
  constructor(modalService, complejosService, formBuilder) {
    this.modalService = modalService;
    this.complejosService = complejosService;
    this.formBuilder = formBuilder;
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_6__.EventEmitter();
    this.tipoEstructuraList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_3__.TipoEstructura);
    this.estadoComplejoList = Object.values(src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_4__.EstadoActual);
    this.distictList = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.Districts;
    this.tieneIluminacion = false;
    this.tieneVestuarios = false;
    this.tieneGraderias = false;
    this.submitted = false;
  }
  ngOnInit() {
    this.initForm();
    this.formDataSet();
  }
  initForm() {
    this.complejoForm = this.formBuilder.group({
      uuid: [''],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      telefonoPrincipal: [''],
      tipoEstructura: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      estadoActual: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_4__.EstadoActual.ACTIVO],
      tieneIluminacion: [false],
      tieneVestuarios: [false],
      tieneGraderias: [false],
      distrito: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      ubicacion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      latitud: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      longitud: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]],
      observaciones: ['']
    });
  }
  get form() {
    return this.complejoForm.controls;
  }
  formDataSet() {
    if (this.row && this.accion !== '') {
      this.complejoForm.patchValue({
        uuid: this.row.uuid,
        nombre: this.row.nombre,
        telefonoPrincipal: this.row.telefonoPrincipal,
        tipoEstructura: this.row.tipoEstructura,
        estadoActual: this.row.estadoActual || src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_4__.EstadoActual.ACTIVO,
        tieneIluminacion: this.row.tieneIluminacion || false,
        tieneVestuarios: this.row.tieneVestuarios || false,
        tieneGraderias: this.row.tieneGraderias || false,
        distrito: this.row.distrito,
        ubicacion: this.row.ubicacion,
        latitud: this.row.latitud,
        longitud: this.row.longitud,
        observaciones: this.row.observaciones
      });
    }
  }
  openMapa() {
    const modalRef = this.modalService.open(src_app_shared_map_leaflet_component__WEBPACK_IMPORTED_MODULE_1__.LeafletComponent, {
      backdrop: 'static',
      size: 'lg',
      keyboard: false
    });
    modalRef.componentInstance.title = 'Buscar en Mapa';
    modalRef.componentInstance.form = true;
    if (this.row) {
      modalRef.componentInstance.latitud = this.row.latitud;
      modalRef.componentInstance.longitud = this.row.longitud;
      modalRef.componentInstance.direccion = this.row.ubicacion;
    }
    modalRef.componentInstance.latLngEmitter.subscribe(data => {
      const latitud = data.lat;
      const longitud = data.lng;
      const direccion = data.dir;
      this.complejoForm.get('ubicacion')?.patchValue(direccion);
      this.complejoForm.get('latitud')?.patchValue(latitud);
      this.complejoForm.get('longitud')?.patchValue(longitud);
    });
  }
  saveData() {
    this.submitted = true;
    if (this.complejoForm.valid) {
      this.complejoForm.enable();
      const datos = {
        nombre: this.complejoForm.value.nombre,
        telefonoPrincipal: this.complejoForm.value.telefonoPrincipal,
        tipoEstructura: this.complejoForm.value.tipoEstructura,
        estadoActual: this.complejoForm.value.estadoActual,
        tieneIluminacion: this.complejoForm.value.tieneIluminacion,
        tieneVestuarios: this.complejoForm.value.tieneVestuarios,
        tieneGraderias: this.complejoForm.value.tieneGraderias,
        distrito: this.complejoForm.value.distrito,
        ubicacion: this.complejoForm.value.ubicacion,
        latitud: this.complejoForm.value.latitud,
        longitud: this.complejoForm.value.longitud,
        observaciones: this.complejoForm.value.observaciones
      };
      if (this.complejoForm.get('uuid')?.value) {
        datos.uuid = this.complejoForm.value.uuid;
        this.updateData(datos);
      } else {
        datos.fechaCreacion = new Date();
        this.addData(datos);
      }
    } else {
      this.notify('Formulario Inválido!', 'error');
    }
  }
  addData(datos) {
    this.complejosService.save(datos).subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.submitted = false;
          this.modalService.dismissAll();
          this.complejoForm.reset();
          this.emitList.emit();
          this.notify('Complejo Deportivo registrado exitosamente!', 'success');
        } else {
          this.notify(data.payload, 'error');
        }
      },
      error: error => {
        this.notify('Error: ' + error.message, 'error');
      }
    });
  }
  updateData(datos) {
    this.complejosService.update(datos).subscribe({
      next: data => {
        this.submitted = false;
        this.modalService.dismissAll();
        this.complejoForm.reset();
        this.emitList.emit();
        this.notify('Complejo Deportivo actualizado exitosamente!', 'success');
      },
      error: error => {
        this.submitted = false;
        this.modalService.dismissAll();
        this.complejoForm.reset();
        this.notify('No se pudo actualizar el complejo!', 'error');
      }
    });
  }
  confirm(content, id) {
    this.deleteId = id;
    this.modalService.open(content, {
      centered: true
    });
  }
  // Delete Data
  deleteData(id) {
    if (id) {
      // Implement delete logic here
    } else {
      // Implement bulk delete logic here
    }
    this.deleteId = '';
    this.masterSelected = false;
  }
  closeModal() {
    this.accion = '';
    this.complejoForm.enable();
    this.modalService.dismissAll();
    this.complejoForm.reset();
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 2000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function ModalFacilitiesComponent_Factory(t) {
      return new (t || ModalFacilitiesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_5__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
      type: ModalFacilitiesComponent,
      selectors: [["app-modal-facility"]],
      inputs: {
        accion: "accion",
        row: "row"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵStandaloneFeature"]],
      decls: 5,
      vars: 4,
      consts: [[1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["class", "tablelist-form", "autocomplete", "off", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-government-line", "me-2"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], [1, "row", "g-3"], [1, "col-lg-12"], ["type", "hidden", "formControlName", "uuid"], ["for", "nombre-field", 1, "form-label", "mb-0"], ["type", "text", "id", "nombre-field", "placeholder", "Ingresa el Nombre del Complejo", "required", "", "formControlName", "nombre", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", "align", "left", 4, "ngIf"], [1, "col-lg-6"], ["for", "estadoActual-field", 1, "form-label", "mb-0"], ["id", "estadoActual-field", "formControlName", "estadoActual", 1, "form-control"], [3, "value", 4, "ngFor", "ngForOf"], ["for", "tipoEstructura-field", 1, "form-label", "mb-0"], ["id", "tipoEstructura-field", "formControlName", "tipoEstructura", 1, "form-control", 3, "ngClass"], ["value", ""], ["for", "telefonoPrincipal-field", 1, "form-label", "mb-0"], ["type", "text", "id", "telefonoPrincipal-field", "placeholder", "Ingresa el tel\u00E9fono", "formControlName", "telefonoPrincipal", 1, "form-control"], ["for", "distrito-field", 1, "form-label", "mb-0"], ["id", "distrito-field", "formControlName", "distrito", 1, "form-control", 3, "ngClass"], ["for", "ubicacion-field", 1, "form-label", "mb-0"], [1, "input-group"], ["type", "text", "id", "ubicacion-field", "placeholder", "Seleccione la ubicaci\u00F3n en el mapa", "required", "", "formControlName", "ubicacion", 1, "form-control", 3, "disabled", "ngClass"], ["type", "button", 1, "btn", "btn-soft-secondary", "fw-medium", 3, "click"], ["class", "input-group mt-2", 4, "ngIf"], [1, "row"], [1, "col-lg-4"], [1, "form-check"], ["type", "checkbox", "id", "tieneIluminacion-field", "formControlName", "tieneIluminacion", 1, "form-check-input"], ["for", "tieneIluminacion-field", 1, "form-check-label"], ["type", "checkbox", "id", "tieneVestuarios-field", "formControlName", "tieneVestuarios", 1, "form-check-input"], ["for", "tieneVestuarios-field", 1, "form-check-label"], ["type", "checkbox", "id", "tieneGraderias-field", "formControlName", "tieneGraderias", 1, "form-check-input"], ["for", "tieneGraderias-field", 1, "form-check-label"], ["for", "observaciones-field", 1, "form-label", "mb-0"], ["id", "observaciones-field", "rows", "3", "placeholder", "Observaciones adicionales", "formControlName", "observaciones", 1, "form-control"], [1, "modal-footer"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "button", 1, "btn", "btn-light", 3, "click"], ["type", "submit", 1, "btn", "btn-success", 3, "disabled"], ["align", "left", 1, "invalid-feedback"], [4, "ngIf"], [3, "value"], [1, "input-group", "mt-2"], [1, "text-muted"]],
      template: function ModalFacilitiesComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, ModalFacilitiesComponent_h5_1_Template, 3, 0, "h5", 1)(2, ModalFacilitiesComponent_h5_2_Template, 3, 0, "h5", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "button", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ModalFacilitiesComponent_Template_button_click_3_listener() {
            return ctx.closeModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, ModalFacilitiesComponent_form_4_Template, 76, 24, "form", 3);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.accion === "");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.accion === "edit");
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.submitted);
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.accion === "edit" || ctx.accion === "");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _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__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__.TranslateModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 75762:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/modals/modal-organization/modal-organization.component.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalOrganizationComponent: () => (/* binding */ ModalOrganizationComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);










const _c0 = a0 => ({
  "is-invalid": a0
});
function ModalOrganizationComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 10)(1, "div", 11)(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "p", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Procesando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function ModalOrganizationComponent_div_0_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Agregar Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_h5_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Editar Datos de Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_h5_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Ver Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_10_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El nombre es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_10_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El nombre debe tener al menos 2 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_10_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El nombre no puede exceder 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_10_div_1_Template, 3, 0, "div", 43)(2, ModalOrganizationComponent_div_0_form_7_div_10_div_2_Template, 3, 0, "div", 43)(3, ModalOrganizationComponent_div_0_form_7_div_10_div_3_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["minlength"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["maxlength"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_option_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", tipo_r4.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", tipo_r4.label, " ");
  }
}
function ModalOrganizationComponent_div_0_form_7_div_21_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El tipo de organizaci\u00F3n es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_21_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoOrganizacion"].errors["required"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_27_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El NIT no puede exceder 20 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_27_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["nroNit"].errors["maxlength"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_28_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El c\u00F3digo de escuela es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_28_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_28_div_7_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["codigoEscuela"].errors["required"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 54)(1, "label", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "C\u00F3digo de Escuela ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ModalOrganizationComponent_div_0_form_7_div_28_div_7_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](3, _c0, ctx_r1.submitted && ctx_r1.form["codigoEscuela"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["codigoEscuela"].errors);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_29_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La disciplina es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_29_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_29_div_7_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["disciplina"].errors["required"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 54)(1, "label", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Disciplina ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ModalOrganizationComponent_div_0_form_7_div_29_div_7_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](3, _c0, ctx_r1.submitted && ctx_r1.form["disciplina"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["disciplina"].errors);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_30_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El entrenador es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_30_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_30_div_7_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["entrenador"].errors["required"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 54)(1, "label", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Entrenador ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ModalOrganizationComponent_div_0_form_7_div_30_div_7_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](3, _c0, ctx_r1.submitted && ctx_r1.form["entrenador"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["entrenador"].errors);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_39_small_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Ingrese un n\u00FAmero v\u00E1lido (7-15 d\u00EDgitos, opcional +) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_39_small_1_Template, 3, 0, "small", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["telefono"].errors["pattern"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_45_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Ingrese un email v\u00E1lido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_45_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors["email"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_51_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La personer\u00EDa jur\u00EDdica no puede exceder 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_51_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["personeriaJuridica"].errors["maxlength"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_small_64_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Las escuelas municipales siempre permiten reservas gratuitas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_small_71_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Las escuelas municipales siempre requieren pago de mensualidad ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_72_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La tarifa mensual es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_72_div_7_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La tarifa no puede ser negativa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_72_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_72_div_7_div_1_Template, 3, 0, "div", 43)(2, ModalOrganizationComponent_div_0_form_7_div_72_div_7_div_2_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tarifaMensual"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tarifaMensual"].errors["min"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_72_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 54)(1, "label", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Tarifa Mensual (Bs.) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ModalOrganizationComponent_div_0_form_7_div_72_div_7_Template, 3, 2, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](3, _c0, ctx_r1.submitted && ctx_r1.form["tarifaMensual"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["tarifaMensual"].errors);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_84_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La direcci\u00F3n no puede exceder 500 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_84_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_84_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["direccion"].errors["maxlength"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_option_94_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const contribuyente_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("(NIT: ", contribuyente_r5.nroNit, ")");
  }
}
function ModalOrganizationComponent_div_0_form_7_option_94_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, ModalOrganizationComponent_div_0_form_7_option_94_span_2_Template, 2, 1, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const contribuyente_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngValue", contribuyente_r5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"](" ", contribuyente_r5.nombreCompleto || contribuyente_r5.nombre + " " + contribuyente_r5.primerApellido + " " + (contribuyente_r5.segundoApellido || ""), " - ", contribuyente_r5.numeroDocumento, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", contribuyente_r5.nroNit);
  }
}
function ModalOrganizationComponent_div_0_form_7_div_95_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Debe seleccionar un representante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_div_95_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_form_7_div_95_div_1_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["representanteDto"].errors["required"]);
  }
}
function ModalOrganizationComponent_div_0_form_7_small_96_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " El representante debe ser un contribuyente registrado en el sistema ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_div_0_form_7_span_110_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "span", 104);
  }
}
function ModalOrganizationComponent_div_0_form_7_i_111_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"](ctx_r1.accion === "edit" ? "ri-save-line me-1" : "ri-add-line me-1");
  }
}
function ModalOrganizationComponent_div_0_form_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "form", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngSubmit", function ModalOrganizationComponent_div_0_form_7_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 19)(2, "div", 20)(3, "div", 21)(4, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Nombre de la Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](9, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, ModalOrganizationComponent_div_0_form_7_div_10_Template, 4, 3, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 27)(12, "label", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14, "Tipo de Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](16, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "select", 30)(18, "option", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](19, "Seleccione el tipo...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](20, ModalOrganizationComponent_div_0_form_7_option_20_Template, 2, 2, "option", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](21, ModalOrganizationComponent_div_0_form_7_div_21_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](22, "div", 27)(23, "label", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](24, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25, "NIT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](26, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, ModalOrganizationComponent_div_0_form_7_div_27_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](28, ModalOrganizationComponent_div_0_form_7_div_28_Template, 8, 5, "div", 36)(29, ModalOrganizationComponent_div_0_form_7_div_29_Template, 8, 5, "div", 36)(30, ModalOrganizationComponent_div_0_form_7_div_30_Template, 8, 5, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "div", 27)(32, "label", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](33, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Tel\u00E9fono ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "div", 39)(36, "span", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](37, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](38, "input", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](39, ModalOrganizationComponent_div_0_form_7_div_39_Template, 2, 1, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "div", 27)(41, "label", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](42, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](43, "Email ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](44, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](45, ModalOrganizationComponent_div_0_form_7_div_45_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](46, "div", 27)(47, "label", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](48, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Personer\u00EDa Jur\u00EDdica ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](50, "input", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](51, ModalOrganizationComponent_div_0_form_7_div_51_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](52, "div", 50)(53, "div", 51)(54, "h6", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](55, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](56, "Configuraci\u00F3n de Pagos y Reservas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "div", 20)(58, "div", 54)(59, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](60, "input", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](61, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](62, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](63, "Permitir Reservas Gratuitas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](64, ModalOrganizationComponent_div_0_form_7_small_64_Template, 3, 0, "small", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](65, "div", 54)(66, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](67, "input", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](68, "label", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](69, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](70, "Requiere Pago Mensualidad ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](71, ModalOrganizationComponent_div_0_form_7_small_71_Template, 3, 0, "small", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](72, ModalOrganizationComponent_div_0_form_7_div_72_Template, 8, 5, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](73, "div", 27)(74, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](75, "input", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](76, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](77, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](78, "Organizaci\u00F3n Activa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](79, "div", 21)(80, "label", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](81, "i", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](82, "Direcci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](83, "textarea", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](84, ModalOrganizationComponent_div_0_form_7_div_84_Template, 2, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](85, "div", 21)(86, "label", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](87, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](88, "Representante Legal ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](89, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](90, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](91, "select", 72)(92, "option", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](93, "Seleccione un representante...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](94, ModalOrganizationComponent_div_0_form_7_option_94_Template, 3, 4, "option", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](95, ModalOrganizationComponent_div_0_form_7_div_95_Template, 2, 1, "div", 26)(96, ModalOrganizationComponent_div_0_form_7_small_96_Template, 3, 0, "small", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](97, "div", 74)(98, "div", 75)(99, "div", 76)(100, "small", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](101, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](102, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](103, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](104, " Campos obligatorios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](105, "div", 79)(106, "button", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_div_0_form_7_Template_button_click_106_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](107, "i", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](108, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](109, "button", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](110, ModalOrganizationComponent_div_0_form_7_span_110_Template, 1, 0, "span", 83)(111, ModalOrganizationComponent_div_0_form_7_i_111_Template, 1, 2, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx_r1.contentForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](43, _c0, ctx_r1.submitted && ctx_r1.form["nombre"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["nombre"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](45, _c0, ctx_r1.submitted && ctx_r1.form["tipoOrganizacion"].errors))("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.tiposOrganizacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["tipoOrganizacion"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](47, _c0, ctx_r1.submitted && ctx_r1.form["nroNit"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["nroNit"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.isEscuelaMunicipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.isEscuelaMunicipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.isEscuelaMunicipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](49, _c0, ctx_r1.form["telefono"].errors && (ctx_r1.form["telefono"].touched || ctx_r1.submitted)))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["telefono"].errors && (ctx_r1.form["telefono"].touched || ctx_r1.submitted));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](51, _c0, ctx_r1.submitted && ctx_r1.form["email"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["email"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](53, _c0, ctx_r1.submitted && ctx_r1.form["personeriaJuridica"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["personeriaJuridica"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.isEscuelaMunicipal || ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.isEscuelaMunicipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.isEscuelaMunicipal || ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.isEscuelaMunicipal);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.requierePagoMensualidad);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](55, _c0, ctx_r1.submitted && ctx_r1.form["direccion"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["direccion"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("compareWith", ctx_r1.compareContribuyente)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](57, _c0, ctx_r1.submitted && ctx_r1.form["representanteDto"].errors))("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.contribuyentesList);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["representanteDto"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading || ctx_r1.contentForm.invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.accion === "edit" ? "Actualizar" : "Guardar", " ");
  }
}
function ModalOrganizationComponent_div_0_div_8_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 110)(1, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "C\u00F3digo de Escuela:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.codigoEscuela);
  }
}
function ModalOrganizationComponent_div_0_div_8_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 110)(1, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Disciplina:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.disciplina);
  }
}
function ModalOrganizationComponent_div_0_div_8_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 110)(1, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Entrenador:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.entrenador);
  }
}
function ModalOrganizationComponent_div_0_div_8_div_57_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Tarifa Mensual:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](5, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](5, 1, ctx_r1.row.tarifaMensual, "Bs. "));
  }
}
function ModalOrganizationComponent_div_0_div_8_hr_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "hr");
  }
}
function ModalOrganizationComponent_div_0_div_8_div_77_span_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" - ", ctx_r1.row.representanteDto.expedido, "");
  }
}
function ModalOrganizationComponent_div_0_div_8_div_77_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 122)(1, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "NIT:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.representanteDto.nroNit);
  }
}
function ModalOrganizationComponent_div_0_div_8_div_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div")(1, "div", 76)(2, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 107)(5, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Representante Legal");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 109)(8, "div", 122)(9, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Nombre Completo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 122)(14, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "Documento:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](18, ModalOrganizationComponent_div_0_div_8_div_77_span_18_Template, 2, 1, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, ModalOrganizationComponent_div_0_div_8_div_77_div_19_Template, 5, 1, "div", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "div", 122)(21, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "div", 122)(26, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](27, "Tel\u00E9fono:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.representanteDto.nombreCompleto || ctx_r1.row.representanteDto.nombre + " " + ctx_r1.row.representanteDto.primerApellido + " " + (ctx_r1.row.representanteDto.segundoApellido || ""), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.representanteDto.numeroDocumento, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.representanteDto.expedido);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.representanteDto.nroNit);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.representanteDto.email || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.representanteDto.telefono || "No registrado");
  }
}
function ModalOrganizationComponent_div_0_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 19)(1, "div", 76)(2, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 107)(5, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Informaci\u00F3n General");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 109)(8, "div", 110)(9, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Tipo de Organizaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 110)(14, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "NIT:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](18, ModalOrganizationComponent_div_0_div_8_div_18_Template, 5, 1, "div", 113)(19, ModalOrganizationComponent_div_0_div_8_div_19_Template, 5, 1, "div", 113)(20, ModalOrganizationComponent_div_0_div_8_div_20_Template, 5, 1, "div", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 110)(22, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23, "Personer\u00EDa Jur\u00EDdica:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](24, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "div", 110)(27, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div", 112)(30, "span", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "div", 115)(33, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Direcci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](37, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "div", 76)(39, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](40, "i", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](41, "div", 107)(42, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](43, "Configuraci\u00F3n de Pagos y Reservas");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](44, "div", 109)(45, "div", 117)(46, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](47, "Permite Reservas Gratuitas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "div", 112)(49, "span", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](51, "div", 117)(52, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](53, "Requiere Pago Mensualidad:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](54, "div", 112)(55, "span", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](56);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](57, ModalOrganizationComponent_div_0_div_8_div_57_Template, 6, 4, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](58, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](59, "div", 76)(60, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](61, "i", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](62, "div", 107)(63, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](64, "Informaci\u00F3n de Contacto");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](65, "div", 109)(66, "div", 110)(67, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](68, "Tel\u00E9fono:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](69, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](71, "div", 110)(72, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](74, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](75);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](76, ModalOrganizationComponent_div_0_div_8_hr_76_Template, 1, 0, "hr", 43)(77, ModalOrganizationComponent_div_0_div_8_div_77_Template, 30, 6, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](78, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](79, "div", 76)(80, "div", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](81, "i", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](82, "div", 107)(83, "h6", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](84, "Informaci\u00F3n del Sistema");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](85, "div", 109)(86, "div", 110)(87, "small", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](88, "Fecha de Creaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](89, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](90);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.getTipoOrganizacionLabel(ctx_r1.row.tipoOrganizacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.nroNit || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.codigoEscuela);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.disciplina);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.entrenador);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.personeriaJuridica || "No registrada");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.activo ? "bg-success" : "bg-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.activo ? "Activo" : "Inactivo", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.direccion || "No registrada");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.permiteReservasGratuitas ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.permiteReservasGratuitas ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.requierePagoMensualidad ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.requierePagoMensualidad ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.requierePagoMensualidad && ctx_r1.row.tarifaMensual);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.telefono || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.email || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.representanteDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.representanteDto);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.formatDate(ctx_r1.row.fechaCreacion));
  }
}
function ModalOrganizationComponent_div_0_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 74)(1, "button", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_div_0_div_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function ModalOrganizationComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ModalOrganizationComponent_div_0_div_1_Template, 6, 0, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ModalOrganizationComponent_div_0_h5_3_Template, 3, 0, "h5", 5)(4, ModalOrganizationComponent_div_0_h5_4_Template, 3, 0, "h5", 5)(5, ModalOrganizationComponent_div_0_h5_5_Template, 3, 0, "h5", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_div_0_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ModalOrganizationComponent_div_0_form_7_Template, 113, 59, "form", 7)(8, ModalOrganizationComponent_div_0_div_8_Template, 91, 19, "div", 8)(9, ModalOrganizationComponent_div_0_div_9_Template, 4, 0, "div", 9);
    _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"]("ngIf", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show" && ctx_r1.row);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show");
  }
}
function ModalOrganizationComponent_ng_template_1_div_0_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " S\u00ED, Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_ng_template_1_div_0_span_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "span", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Eliminando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ModalOrganizationComponent_ng_template_1_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2)(1, "div", 126)(2, "button", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_ng_template_1_div_0_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 19)(4, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "lord-icon", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 130)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "\u00BFEst\u00E1 seguro de eliminar la Organizaci\u00F3n?");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "p", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, " Esta acci\u00F3n eliminar\u00E1 permanentemente el registro de la Organizaci\u00F3n \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "\" y todo dato asociado. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "div", 132)(15, "button", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_ng_template_1_div_0_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](16, "i", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "button", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ModalOrganizationComponent_ng_template_1_div_0_Template_button_click_18_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.deleteData(ctx_r1.row.uuid));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, ModalOrganizationComponent_ng_template_1_div_0_span_19_Template, 3, 0, "span", 43)(20, ModalOrganizationComponent_ng_template_1_div_0_span_20_Template, 3, 0, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalOrganizationComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ModalOrganizationComponent_ng_template_1_div_0_Template, 21, 6, "div", 125);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.uuid);
  }
}
class ModalOrganizationComponent {
  constructor(modalService, organizacionesService, formBuilder) {
    this.modalService = modalService;
    this.organizacionesService = organizacionesService;
    this.formBuilder = formBuilder;
    this.contribuyentesList = [];
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
    this.submitted = false;
    this.showLoading = false;
    // Updated organization types according to the enum
    this.tiposOrganizacion = [{
      value: src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ASOCIACION,
      label: 'Asociación'
    }, {
      value: src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.CLUB,
      label: 'Club'
    }, {
      value: src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL,
      label: 'Escuela Municipal'
    }, {
      value: src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ORGANIZACION,
      label: 'Organización'
    }];
  }
  ngOnInit() {
    this.initializeForm();
    this.formDataSet();
    this.setupFormListeners();
  }
  initializeForm() {
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      tipoOrganizacion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.minLength(2), _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(200)]],
      telefono: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.pattern('^\\+?[0-9]{7,15}$')]],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.email]],
      direccion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(500)]],
      personeriaJuridica: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(100)]],
      nroNit: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(20)]],
      activo: [true],
      // Escuela Municipal fields
      entrenador: [''],
      disciplina: [''],
      codigoEscuela: [''],
      // Payment and reservation fields
      requierePagoMensualidad: [false],
      tarifaMensual: [0, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.min(0)]],
      permiteReservasGratuitas: [false],
      representanteDto: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]]
    });
  }
  setupFormListeners() {
    // Listen for organization type changes to show/hide fields
    this.contentForm.get('tipoOrganizacion')?.valueChanges.subscribe(tipo => {
      this.handleTipoOrganizacionChange(tipo);
    });
    // Listen for payment requirement changes
    this.contentForm.get('requierePagoMensualidad')?.valueChanges.subscribe(requierePago => {
      this.handlePagoMensualidadChange(requierePago);
    });
  }
  handleTipoOrganizacionChange(tipo) {
    const escuelaMunicipalFields = ['entrenador', 'disciplina', 'codigoEscuela'];
    const paymentFields = ['requierePagoMensualidad', 'tarifaMensual', 'permiteReservasGratuitas'];
    // Reset fields when type changes
    escuelaMunicipalFields.forEach(field => {
      this.contentForm.get(field)?.setValue('');
    });
    if (tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL) {
      // Escuela Municipal specific logic
      this.contentForm.get('requierePagoMensualidad')?.setValue(true);
      this.contentForm.get('permiteReservasGratuitas')?.setValue(true);
      // Add validators for escuela municipal fields
      escuelaMunicipalFields.forEach(field => {
        this.contentForm.get(field)?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]);
        this.contentForm.get(field)?.updateValueAndValidity();
      });
    } else {
      // For other types, remove required validators from escuela municipal fields
      escuelaMunicipalFields.forEach(field => {
        this.contentForm.get(field)?.clearValidators();
        this.contentForm.get(field)?.updateValueAndValidity();
      });
      // For asociacion and club, set default values
      if (tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ASOCIACION || tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.CLUB) {
        this.contentForm.get('permiteReservasGratuitas')?.setValue(true);
      }
    }
  }
  handlePagoMensualidadChange(requierePago) {
    if (requierePago) {
      this.contentForm.get('tarifaMensual')?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.min(0)]);
    } else {
      this.contentForm.get('tarifaMensual')?.clearValidators();
      this.contentForm.get('tarifaMensual')?.setValue(0);
    }
    this.contentForm.get('tarifaMensual')?.updateValueAndValidity();
  }
  /**
   * Form data get
   */
  get form() {
    return this.contentForm.controls;
  }
  // Helper getter to check if current type is Escuela Municipal
  get isEscuelaMunicipal() {
    return this.contentForm.get('tipoOrganizacion')?.value === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ESCUELA_MUNICIPAL;
  }
  // Helper getter to check if current type is Asociacion or Club
  get isAsociacionOrClub() {
    const tipo = this.contentForm.get('tipoOrganizacion')?.value;
    return tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.ASOCIACION || tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_1__.TipoOrganizacion.CLUB;
  }
  // Helper getter to check if requires monthly payment
  get requierePagoMensualidad() {
    return this.contentForm.get('requierePagoMensualidad')?.value;
  }
  formDataSet() {
    if (this.accion !== '' && this.row) {
      this.contentForm.patchValue({
        uuid: this.row.uuid,
        tipoOrganizacion: this.row.tipoOrganizacion,
        nombre: this.row.nombre,
        telefono: this.row.telefono || '',
        email: this.row.email || '',
        direccion: this.row.direccion || '',
        personeriaJuridica: this.row.personeriaJuridica || '',
        nroNit: this.row.nroNit || '',
        activo: this.row.activo !== undefined ? this.row.activo : true,
        // Escuela Municipal fields
        entrenador: this.row.entrenador || '',
        disciplina: this.row.disciplina || '',
        codigoEscuela: this.row.codigoEscuela || '',
        // Payment and reservation fields
        requierePagoMensualidad: this.row.requierePagoMensualidad || false,
        tarifaMensual: this.row.tarifaMensual || 0,
        permiteReservasGratuitas: this.row.permiteReservasGratuitas || false,
        representanteDto: this.row.representanteDto
      });
      if (this.accion === 'show') {
        this.contentForm.disable();
      }
    }
  }
  compareContribuyente(c1, c2) {
    if (!c1 || !c2) {
      return c1 === c2;
    }
    if (c1.uuid && c2.uuid) {
      return c1.uuid === c2.uuid;
    }
    return c1.numeroDocumento === c2.numeroDocumento;
  }
  /**
   * Save organization
   */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.showLoading = true;
      const formData = this.contentForm.value;
      let datos = {
        tipoOrganizacion: formData.tipoOrganizacion,
        nombre: formData.nombre.trim(),
        telefono: formData.telefono?.trim() || undefined,
        email: formData.email?.trim() || undefined,
        direccion: formData.direccion?.trim() || undefined,
        personeriaJuridica: formData.personeriaJuridica?.trim() || undefined,
        nroNit: formData.nroNit?.trim() || undefined,
        activo: formData.activo,
        // Escuela Municipal fields
        entrenador: formData.entrenador?.trim() || undefined,
        disciplina: formData.disciplina?.trim() || undefined,
        codigoEscuela: formData.codigoEscuela?.trim() || undefined,
        // Payment and reservation fields
        requierePagoMensualidad: formData.requierePagoMensualidad,
        tarifaMensual: formData.requierePagoMensualidad ? formData.tarifaMensual : undefined,
        permiteReservasGratuitas: formData.permiteReservasGratuitas,
        representanteDto: formData.representanteDto
      };
      if (formData.uuid) {
        datos.uuid = formData.uuid;
        this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Por favor, complete todos los campos requeridos correctamente', 'error');
      this.markFormGroupTouched();
    }
  }
  markFormGroupTouched() {
    Object.keys(this.contentForm.controls).forEach(key => {
      this.contentForm.get(key)?.markAsTouched();
    });
  }
  /* API Requests */
  addData(datos) {
    this.organizacionesService.save(datos).subscribe({
      next: data => {
        this.showLoading = false;
        this.submitted = false;
        this.notify('Organización registrada exitosamente', 'success');
        this.closeModal();
        this.emitList.emit();
      },
      error: error => {
        this.showLoading = false;
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al registrar la organización: ${errorMessage}`, 'error');
      }
    });
  }
  updateData(datos) {
    this.organizacionesService.update(datos).subscribe({
      next: data => {
        this.showLoading = false;
        this.submitted = false;
        this.notify('Organización actualizada exitosamente', 'success');
        this.closeModal();
        this.emitList.emit();
      },
      error: error => {
        this.showLoading = false;
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al actualizar la organización: ${errorMessage}`, 'error');
      }
    });
  }
  deleteData(uuid) {
    this.organizacionesService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'success');
          this.modalService.dismissAll();
          this.emitList.emit();
          this.closeModal();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  closeModal() {
    this.submitted = false;
    this.showLoading = false;
    this.contentForm.enable();
    this.contentForm.reset();
    this.modalService.dismissAll();
  }
  notify(message, type) {
    const config = {
      success: {
        icon: 'success',
        timer: 3000
      },
      error: {
        icon: 'error',
        timer: 5000
      },
      warning: {
        icon: 'warning',
        timer: 4000
      },
      info: {
        icon: 'info',
        timer: 3000
      }
    };
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      text: message,
      icon: config[type].icon,
      timer: config[type].timer,
      timerProgressBar: true,
      showConfirmButton: false,
      toast: true,
      position: 'top-end'
    });
  }
  getTipoOrganizacionLabel(tipo) {
    const tipoObj = this.tiposOrganizacion.find(t => t.value === tipo);
    return tipoObj ? tipoObj.label : tipo;
  }
  formatDate(date) {
    if (!date) return 'N/A';
    const dateObj = new Date(date);
    return dateObj.toLocaleDateString('es-BO', {
      day: '2-digit',
      month: '2-digit',
      year: 'numeric',
      hour: '2-digit',
      minute: '2-digit'
    });
  }
  static {
    this.ɵfac = function ModalOrganizationComponent_Factory(t) {
      return new (t || ModalOrganizationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_2__.OrganizacionService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
      type: ModalOrganizationComponent,
      selectors: [["app-modal-organization-modal"]],
      inputs: {
        accion: "accion",
        row: "row",
        contribuyentesList: "contribuyentesList"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵStandaloneFeature"]],
      decls: 3,
      vars: 2,
      consts: [["deleteModel", ""], ["class", "modal-content", 4, "ngIf", "ngIfElse"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["class", "tablelist-form", "autocomplete", "off", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["class", "modal-body", 4, "ngIf"], ["class", "modal-footer bg-light py-2", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-parent-line", "me-2"], [1, "ri-parent-fill", "me-2"], [1, "ri-eye-line", "me-2"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], [1, "row", "g-3"], [1, "col-lg-12"], ["for", "nombre-field", 1, "form-label", "mb-0"], [1, "ri-building-2-line", "me-2"], [1, "text-danger"], ["type", "text", "id", "nombre-field", "formControlName", "nombre", "placeholder", "Ingrese el nombre de la organizaci\u00F3n", 1, "form-control", 3, "ngClass", "readonly"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-lg-6"], ["for", "tipoOrganizacion-field", 1, "form-label", "mb-0"], [1, "ri-shield-user-line", "me-2"], ["id", "tipoOrganizacion-field", "formControlName", "tipoOrganizacion", 1, "form-select", 3, "ngClass", "disabled"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], ["for", "nroNit-field", 1, "form-label", "mb-0"], [1, "ri-id-card-line", "me-2"], ["type", "text", "id", "nroNit-field", "formControlName", "nroNit", "placeholder", "N\u00FAmero de Identificaci\u00F3n Tributaria", 1, "form-control", 3, "ngClass", "readonly"], ["class", "col-lg-4", 4, "ngIf"], ["for", "telefono-field", 1, "form-label", "mb-0"], [1, "ri-phone-line", "me-2"], [1, "input-group"], [1, "input-group-text"], [1, "ri-phone-fill"], ["type", "tel", "id", "telefono-field", "formControlName", "telefono", "placeholder", "Ej: +591 70123456", 1, "form-control", 3, "ngClass", "readonly"], [4, "ngIf"], ["for", "email-field", 1, "form-label", "mb-0"], [1, "ri-mail-line", "me-2"], ["type", "email", "id", "email-field", "formControlName", "email", "placeholder", "organizacion@ejemplo.com", 1, "form-control", 3, "ngClass", "readonly"], ["for", "personeriaJuridica-field", 1, "form-label", "mb-0"], [1, "ri-file-text-line", "me-2"], ["type", "text", "id", "personeriaJuridica-field", "formControlName", "personeriaJuridica", "placeholder", "N\u00FAmero de personer\u00EDa jur\u00EDdica", 1, "form-control", 3, "ngClass", "readonly"], [1, "col-lg-12", "mt-2"], [1, "border", "rounded", "p-3", "bg-light"], [1, "mb-3"], [1, "ri-money-dollar-circle-line", "me-2"], [1, "col-lg-4"], [1, "form-check", "form-switch"], ["type", "checkbox", "role", "switch", "id", "permiteReservasGratuitas-field", "formControlName", "permiteReservasGratuitas", 1, "form-check-input", 3, "disabled"], ["for", "permiteReservasGratuitas-field", 1, "form-check-label", "fw-medium"], [1, "ri-calendar-check-line", "me-2"], ["class", "form-text text-muted", 4, "ngIf"], ["type", "checkbox", "role", "switch", "id", "requierePagoMensualidad-field", "formControlName", "requierePagoMensualidad", 1, "form-check-input", 3, "disabled"], ["for", "requierePagoMensualidad-field", 1, "form-check-label", "fw-medium"], [1, "ri-bank-card-line", "me-2"], [1, "form-check", "form-switch", "mt-4"], ["type", "checkbox", "role", "switch", "id", "activo-field", "formControlName", "activo", 1, "form-check-input", 3, "disabled"], ["for", "activo-field", 1, "form-check-label", "fw-medium"], [1, "ri-checkbox-circle-line", "me-2"], ["for", "direccion-field", 1, "form-label", "mb-0"], [1, "ri-map-pin-line", "me-2"], ["id", "direccion-field", "formControlName", "direccion", "placeholder", "Ingrese la direcci\u00F3n completa", "rows", "2", 1, "form-control", 3, "ngClass", "readonly"], ["for", "representanteDto", 1, "form-label", "mb-0"], [1, "ri-user-star-line", "me-2"], ["id", "representanteDto", "formControlName", "representanteDto", "required", "", 1, "form-select", 3, "compareWith", "ngClass", "disabled"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "modal-footer", "bg-light", "py-2"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "text-muted"], [1, "ri-information-line", "me-1"], [1, "hstack", "gap-2"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-success", 3, "disabled"], ["class", "spinner-border spinner-border-sm me-2", "role", "status", 4, "ngIf"], [3, "class", 4, "ngIf"], [1, "invalid-feedback"], [1, "ri-error-warning-line", "me-1"], [3, "value"], ["for", "codigoEscuela-field", 1, "form-label", "mb-0"], [1, "ri-code-line", "me-2"], ["type", "text", "id", "codigoEscuela-field", "formControlName", "codigoEscuela", "placeholder", "C\u00F3digo \u00FAnico de escuela", 1, "form-control", 3, "ngClass", "readonly"], ["for", "disciplina-field", 1, "form-label", "mb-0"], [1, "ri-football-line", "me-2"], ["type", "text", "id", "disciplina-field", "formControlName", "disciplina", "placeholder", "Ej: F\u00FAtbol, B\u00E1squetbol, etc.", 1, "form-control", 3, "ngClass", "readonly"], ["for", "entrenador-field", 1, "form-label", "mb-0"], [1, "ri-user-line", "me-2"], ["type", "text", "id", "entrenador-field", "formControlName", "entrenador", "placeholder", "Nombre del entrenador", 1, "form-control", 3, "ngClass", "readonly"], ["class", "text-danger d-block mt-1", 4, "ngIf"], [1, "text-danger", "d-block", "mt-1"], [1, "form-text", "text-muted"], ["for", "tarifaMensual-field", 1, "form-label", "mb-0"], [1, "ri-money-dollar-box-line", "me-2"], ["type", "number", "id", "tarifaMensual-field", "formControlName", "tarifaMensual", "placeholder", "0.00", "min", "0", "step", "0.01", 1, "form-control", 3, "ngClass", "readonly"], [3, "ngValue"], ["role", "status", 1, "spinner-border", "spinner-border-sm", "me-2"], [1, "flex-shrink-0", "me-3"], [1, "ri-information-line", "text-muted", "fs-5"], [1, "flex-grow-1"], [1, "fw-semibold", "mb-1"], [1, "row"], [1, "col-sm-6"], [1, "text-muted", "d-block"], [1, "fw-medium"], ["class", "col-sm-6", 4, "ngIf"], [1, "badge", 3, "ngClass"], [1, "col-12"], [1, "ri-money-dollar-circle-line", "text-muted", "fs-5"], [1, "col-sm-4"], ["class", "col-sm-4", 4, "ngIf"], [1, "ri-contacts-line", "text-muted", "fs-5"], [1, "ri-history-line", "text-muted", "fs-5"], [1, "ri-user-star-line", "text-muted", "fs-5"], [1, "col-sm-6", "mb-2"], ["class", "col-sm-6 mb-2", 4, "ngIf"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], ["class", "modal-content", 4, "ngIf"], [1, "modal-header"], ["type", "button", 1, "btn-close", 3, "click", "disabled"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], [1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", 1, "btn", "w-sm", "btn-danger", 3, "click", "disabled"], [1, "ri-delete-bin-line", "me-1", "align-middle"], [1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function ModalOrganizationComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ModalOrganizationComponent_div_0_Template, 10, 8, "div", 1)(1, ModalOrganizationComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          const deleteModel_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.accion !== "delete")("ngIfElse", deleteModel_r8);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.CurrencyPipe, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 97464:
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/modals/modal-system-configuration/modal-system-configuration.component.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SystemConfigurationModalComponent: () => (/* binding */ SystemConfigurationModalComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/api/configuracionSistema.service */ 93866);










const _c0 = a0 => ({
  "is-invalid": a0
});
function SystemConfigurationModalComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 10)(1, "div", 11)(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "p", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Procesando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function SystemConfigurationModalComponent_div_0_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Agregar Configuraci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_h5_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Editar Configuraci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_h5_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Ver Configuraci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_option_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const clave_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", clave_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", clave_r4, " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_15_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La clave es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_15_div_1_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["clave"].errors["required"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La clave personalizada es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Formato: MAY\u00DASCULAS, n\u00FAmeros y guiones bajos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_div_1_Template, 3, 0, "div", 72)(2, SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_div_2_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["claveCustom"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["claveCustom"].errors["pattern"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "label", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Clave Personalizada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, SystemConfigurationModalComponent_div_0_form_7_div_16_div_7_Template, 3, 2, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](2, _c0, ctx_r1.submitted && ctx_r1.form["claveCustom"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["claveCustom"].errors);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_option_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const categoria_r5 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", categoria_r5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.getCategoriaLabel(categoria_r5), " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_27_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "La categor\u00EDa es requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_27_div_1_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["categoria"].errors["required"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_35_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El nombre es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_35_div_1_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors["required"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_option_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r6 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", tipo_r6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.getTipoValorLabel(tipo_r6), " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_51_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El tipo de valor es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_51_div_1_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].errors["required"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_52_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const unidad_r7 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", unidad_r7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.getUnidadMedidaLabel(unidad_r7), " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "label", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Unidad de Medida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "select", 79)(5, "option", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Sin unidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, SystemConfigurationModalComponent_div_0_form_7_div_52_option_7_Template, 2, 2, "option", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.unidadesMedida);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 34)(1, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Valor Texto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "input", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "label", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Valor Num\u00E9rico ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "input", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "div", 87)(2, "div", 88)(3, "label", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "i", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Valor M\u00EDnimo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 88)(8, "label", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](9, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Valor M\u00E1ximo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](11, "input", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_56_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "label", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Valor Boolean ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "input", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "label", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.form["valorBoolean"].value ? "Verdadero" : "Falso", " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_57_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 34)(1, "label", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Valor JSON ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "textarea", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "small", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7, " Formato JSON v\u00E1lido requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_option_67_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ambito_r8 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ambito_r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.getAmbitoAplicacionLabel(ambito_r8), " ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_68_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "El \u00E1mbito de aplicaci\u00F3n es requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_form_7_div_68_div_1_Template, 3, 0, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["aplicaA"].errors["required"]);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_69_small_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "lowercase");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" UUID del ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 1, ctx_r1.form["aplicaA"].value), " espec\u00EDfico ");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21)(1, "label", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "UUID de Referencia ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "input", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, SystemConfigurationModalComponent_div_0_form_7_div_69_small_5_Template, 4, 3, "small", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_90_small_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "small", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Array JSON de valores permitidos (opcional) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_div_0_form_7_div_90_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 34)(1, "label", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Valores Posibles (JSON Array) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "textarea", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, SystemConfigurationModalComponent_div_0_form_7_div_90_small_5_Template, 3, 0, "small", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_span_104_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "span", 111);
  }
}
function SystemConfigurationModalComponent_div_0_form_7_i_105_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"](ctx_r1.accion === "edit" ? "ri-save-line me-1" : "ri-add-line me-1");
  }
}
function SystemConfigurationModalComponent_div_0_form_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "form", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngSubmit", function SystemConfigurationModalComponent_div_0_form_7_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 19)(2, "div", 20)(3, "div", 21)(4, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Clave ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "select", 25)(10, "option", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Seleccione una clave...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](12, SystemConfigurationModalComponent_div_0_form_7_option_12_Template, 2, 2, "option", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14, "[Personalizada]");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](15, SystemConfigurationModalComponent_div_0_form_7_div_15_Template, 2, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](16, SystemConfigurationModalComponent_div_0_form_7_div_16_Template, 8, 4, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "div", 21)(18, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "Categor\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "select", 33)(24, "option", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25, "Seleccione la categor\u00EDa...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](26, SystemConfigurationModalComponent_div_0_form_7_option_26_Template, 2, 2, "option", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, SystemConfigurationModalComponent_div_0_form_7_div_27_Template, 2, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 34)(29, "label", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](30, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31, "Nombre ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](34, "input", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, SystemConfigurationModalComponent_div_0_form_7_div_35_Template, 2, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "div", 34)(37, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](38, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](39, "Descripci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](40, "textarea", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](41, "div", 21)(42, "label", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](43, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](44, "Tipo de Valor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](45, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](46, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](47, "select", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function SystemConfigurationModalComponent_div_0_form_7_Template_select_change_47_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.onTipoValorChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "option", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Seleccione el tipo...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](50, SystemConfigurationModalComponent_div_0_form_7_option_50_Template, 2, 2, "option", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](51, SystemConfigurationModalComponent_div_0_form_7_div_51_Template, 2, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](52, SystemConfigurationModalComponent_div_0_form_7_div_52_Template, 8, 2, "div", 30)(53, SystemConfigurationModalComponent_div_0_form_7_div_53_Template, 5, 1, "div", 44)(54, SystemConfigurationModalComponent_div_0_form_7_div_54_Template, 5, 1, "div", 30)(55, SystemConfigurationModalComponent_div_0_form_7_div_55_Template, 12, 2, "div", 30)(56, SystemConfigurationModalComponent_div_0_form_7_div_56_Template, 8, 2, "div", 30)(57, SystemConfigurationModalComponent_div_0_form_7_div_57_Template, 8, 1, "div", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](58, "div", 21)(59, "label", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](60, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](61, "\u00C1mbito de Aplicaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](62, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](63, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](64, "select", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("change", function SystemConfigurationModalComponent_div_0_form_7_Template_select_change_64_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.onAplicaAChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](65, "option", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](66, "Seleccione el \u00E1mbito...");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](67, SystemConfigurationModalComponent_div_0_form_7_option_67_Template, 2, 2, "option", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](68, SystemConfigurationModalComponent_div_0_form_7_div_68_Template, 2, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](69, SystemConfigurationModalComponent_div_0_form_7_div_69_Template, 6, 2, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](70, "div", 34)(71, "div", 20)(72, "div", 48)(73, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](74, "input", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](75, "label", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](76, "i", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](77, "Configuraci\u00F3n Activa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](78, "div", 48)(79, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](80, "input", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](81, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](82, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](83, "Modificable por Usuario ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](84, "div", 48)(85, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](86, "input", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](87, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](88, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](89, "Requiere Aprobaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](90, SystemConfigurationModalComponent_div_0_form_7_div_90_Template, 6, 2, "div", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](91, "div", 59)(92, "div", 60)(93, "div", 61)(94, "small", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](95, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](96, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](97, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](98, " Campos obligatorios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](99, "div", 64)(100, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_div_0_form_7_Template_button_click_100_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](101, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](102, "Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](103, "button", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](104, SystemConfigurationModalComponent_div_0_form_7_span_104_Template, 1, 0, "span", 68)(105, SystemConfigurationModalComponent_div_0_form_7_i_105_Template, 1, 2, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](106);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx_r1.contentForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](39, _c0, ctx_r1.submitted && ctx_r1.form["clave"].errors))("disabled", ctx_r1.accion === "show" || ctx_r1.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.clavesDisponibles);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["clave"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["clave"].value === "CUSTOM");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](41, _c0, ctx_r1.submitted && ctx_r1.form["categoria"].errors))("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.categorias);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["categoria"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](43, _c0, ctx_r1.submitted && ctx_r1.form["nombre"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["nombre"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](45, _c0, ctx_r1.submitted && ctx_r1.form["descripcion"].errors))("readonly", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](47, _c0, ctx_r1.submitted && ctx_r1.form["tipoValor"].errors))("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.tiposValor);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["tipoValor"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.mostrarUnidadMedida);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "TEXTO");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "NUMERICO");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "NUMERICO");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "BOOLEANO");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "JSON");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](49, _c0, ctx_r1.submitted && ctx_r1.form["aplicaA"].errors))("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.ambitosAplicacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["aplicaA"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.mostrarReferenciaUuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.form["tipoValor"].value === "TEXTO");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading || ctx_r1.contentForm.invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.accion === "edit" ? "Actualizar" : "Guardar", " ");
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "\u00C1mbito:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120)(4, "span", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.getAmbitoAplicacionLabel(ctx_r1.row.aplicaA));
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 131)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Descripci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.descripcion);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor Texto:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.valorTexto);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_36_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("(", ctx_r1.getUnidadMedidaLabel(ctx_r1.row.unidadMedida), ")");
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor Num\u00E9rico:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, SystemConfigurationModalComponent_div_0_div_8_div_36_span_5_Template, 2, 1, "span", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.valorNumerico, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.unidadMedida);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor Boolean:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120)(4, "span", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.valorBoolean ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.valorBoolean ? "Verdadero" : "Falso", " ");
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 131)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor JSON:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120)(4, "pre", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](6, "json");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](6, 1, ctx_r1.row.valorJson));
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor M\u00EDnimo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.valorMinimo);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valor M\u00E1ximo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.valorMaximo);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 131)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Valores Posibles:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120)(4, "pre", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](6, "json");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](6, 1, ctx_r1.row.valoresPosibles));
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 127)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Referencia UUID:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.referenciaUuid);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_76_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "\u00DAltima Modificaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.formatDate(ctx_r1.row.ultimaModificacion));
  }
}
function SystemConfigurationModalComponent_div_0_div_8_div_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 117)(1, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Modificado Por:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.modificadoPor);
  }
}
function SystemConfigurationModalComponent_div_0_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 19)(1, "div", 61)(2, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 114)(5, "h6", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Informaci\u00F3n General");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 116)(8, "div", 117)(9, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Clave:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 117)(14, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "Categor\u00EDa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 120)(17, "span", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, SystemConfigurationModalComponent_div_0_div_8_div_19_Template, 6, 1, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "div", 117)(21, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 120)(24, "span", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](26, SystemConfigurationModalComponent_div_0_div_8_div_26_Template, 5, 1, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](27, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 61)(29, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](30, "i", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "div", 114)(32, "h6", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Valor de Configuraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "div", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, SystemConfigurationModalComponent_div_0_div_8_div_35_Template, 5, 1, "div", 122)(36, SystemConfigurationModalComponent_div_0_div_8_div_36_Template, 6, 2, "div", 122)(37, SystemConfigurationModalComponent_div_0_div_8_div_37_Template, 6, 2, "div", 122)(38, SystemConfigurationModalComponent_div_0_div_8_div_38_Template, 7, 3, "div", 124)(39, SystemConfigurationModalComponent_div_0_div_8_div_39_Template, 5, 1, "div", 122)(40, SystemConfigurationModalComponent_div_0_div_8_div_40_Template, 5, 1, "div", 122)(41, SystemConfigurationModalComponent_div_0_div_8_div_41_Template, 7, 3, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](42, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](43, "div", 61)(44, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](45, "i", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](46, "div", 114)(47, "h6", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](48, "Configuraciones de Control");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](49, "div", 116)(50, "div", 127)(51, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](52, "Modificable por Usuario:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](53, "div", 120)(54, "span", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](56, "div", 127)(57, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](58, "Requiere Aprobaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](59, "div", 120)(60, "span", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](61);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](62, SystemConfigurationModalComponent_div_0_div_8_div_62_Template, 5, 1, "div", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](63, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](64, "div", 61)(65, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](66, "i", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](67, "div", 114)(68, "h6", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](69, "Informaci\u00F3n del Sistema");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](70, "div", 116)(71, "div", 117)(72, "small", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73, "Fecha de Creaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](74, "div", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](75);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](76, SystemConfigurationModalComponent_div_0_div_8_div_76_Template, 5, 1, "div", 122)(77, SystemConfigurationModalComponent_div_0_div_8_div_77_Template, 5, 1, "div", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.clave);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.getCategoriaLabel(ctx_r1.row.categoria));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.aplicaA);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.activo ? "bg-success" : "bg-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.activo ? "Activo" : "Inactivo", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.descripcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorTexto);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorNumerico !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorBoolean !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorJson);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorMinimo !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valorMaximo !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.valoresPosibles);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.modificablePorUsuario ? "bg-info" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.modificablePorUsuario ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx_r1.row.requiereAprobacion ? "bg-warning" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.row.requiereAprobacion ? "S\u00ED" : "No", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.referenciaUuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.formatDate(ctx_r1.row.fechaCreacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.ultimaModificacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.modificadoPor);
  }
}
function SystemConfigurationModalComponent_div_0_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 59)(1, "button", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_div_0_div_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r9);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function SystemConfigurationModalComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SystemConfigurationModalComponent_div_0_div_1_Template, 6, 0, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, SystemConfigurationModalComponent_div_0_h5_3_Template, 3, 0, "h5", 5)(4, SystemConfigurationModalComponent_div_0_h5_4_Template, 3, 0, "h5", 5)(5, SystemConfigurationModalComponent_div_0_h5_5_Template, 3, 0, "h5", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_div_0_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, SystemConfigurationModalComponent_div_0_form_7_Template, 107, 51, "form", 7)(8, SystemConfigurationModalComponent_div_0_div_8_Template, 78, 21, "div", 8)(9, SystemConfigurationModalComponent_div_0_div_9_Template, 4, 0, "div", 9);
    _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"]("ngIf", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.showLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show" && ctx_r1.row);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show");
  }
}
function SystemConfigurationModalComponent_ng_template_1_div_0_span_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " S\u00ED, Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_ng_template_1_div_0_span_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "span", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Eliminando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function SystemConfigurationModalComponent_ng_template_1_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2)(1, "div", 137)(2, "button", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_ng_template_1_div_0_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 19)(4, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "lord-icon", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 141)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "\u00BFEst\u00E1 seguro de eliminar la Configuraci\u00F3n?");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "p", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, " Esta acci\u00F3n eliminar\u00E1 permanentemente la configuraci\u00F3n \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "div", 143)(15, "button", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_ng_template_1_div_0_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](16, "i", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "button", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SystemConfigurationModalComponent_ng_template_1_div_0_Template_button_click_18_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r1.deleteData(ctx_r1.row.uuid));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, SystemConfigurationModalComponent_ng_template_1_div_0_span_19_Template, 3, 0, "span", 72)(20, SystemConfigurationModalComponent_ng_template_1_div_0_span_20_Template, 3, 0, "span", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r1.row.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("\" (", ctx_r1.row.clave, ") del sistema. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function SystemConfigurationModalComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, SystemConfigurationModalComponent_ng_template_1_div_0_Template, 21, 7, "div", 136);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.row.uuid);
  }
}
class SystemConfigurationModalComponent {
  constructor(modalService, configuracionSistemaService, formBuilder) {
    this.modalService = modalService;
    this.configuracionSistemaService = configuracionSistemaService;
    this.formBuilder = formBuilder;
    this.categoriasList = [];
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
    this.submitted = false;
    this.showLoading = false;
    this.categorias = Object.values(src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.CategoriaConfiguracion);
    this.ambitosAplicacion = Object.values(src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.AplicaAConfiguracion);
    this.unidadesMedida = Object.values(src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.UnidadMedida);
    this.tiposValor = Object.values(src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.TipoValorConfiguracion);
    this.clavesDisponibles = Object.values(src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_1__.ClaveConfiguracion);
    this.mostrarUnidadMedida = false;
    this.mostrarReferenciaUuid = false;
  }
  ngOnInit() {
    this.initializeForm();
    this.formDataSet();
    this.setupFormListeners();
  }
  initializeForm() {
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      clave: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]],
      claveCustom: [''],
      categoria: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(200)]],
      descripcion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(500)]],
      tipoValor: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]],
      valorTexto: [''],
      valorNumerico: [null],
      valorBoolean: [false],
      valorJson: [''],
      unidadMedida: [''],
      valorMinimo: [null],
      valorMaximo: [null],
      valoresPosibles: [''],
      modificablePorUsuario: [false],
      requiereAprobacion: [false],
      activo: [true],
      aplicaA: ['global', [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]],
      referenciaUuid: ['']
    });
  }
  setupFormListeners() {
    this.contentForm.get('tipoValor')?.valueChanges.subscribe(value => {
      this.onTipoValorChange();
    });
    this.contentForm.get('aplicaA')?.valueChanges.subscribe(value => {
      this.onAplicaAChange();
    });
    this.contentForm.get('clave')?.valueChanges.subscribe(value => {
      if (value === 'CUSTOM') {
        this.contentForm.get('claveCustom')?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.pattern('^[A-Z][A-Z0-9_]*$')]);
      } else {
        this.contentForm.get('claveCustom')?.clearValidators();
      }
      this.contentForm.get('claveCustom')?.updateValueAndValidity();
    });
  }
  onTipoValorChange() {
    const tipoValor = this.contentForm.get('tipoValor')?.value;
    this.mostrarUnidadMedida = tipoValor === 'NUMERICO';
    this.resetValorFields();
  }
  onAplicaAChange() {
    const aplicaA = this.contentForm.get('aplicaA')?.value;
    this.mostrarReferenciaUuid = aplicaA !== 'global';
    if (!this.mostrarReferenciaUuid) {
      this.contentForm.patchValue({
        referenciaUuid: ''
      });
    }
  }
  resetValorFields() {
    this.contentForm.patchValue({
      valorTexto: '',
      valorNumerico: null,
      valorBoolean: false,
      valorJson: ''
    });
  }
  /**
   * Form data get
   */
  get form() {
    return this.contentForm.controls;
  }
  formDataSet() {
    if (this.accion !== '' && this.row) {
      let tipoValor = 'TEXTO';
      if (this.row.valorNumerico !== null && this.row.valorNumerico !== undefined) {
        tipoValor = 'NUMERICO';
      } else if (this.row.valorBoolean !== null && this.row.valorBoolean !== undefined) {
        tipoValor = 'BOOLEANO';
      } else if (this.row.valorJson) {
        tipoValor = 'JSON';
      }
      this.contentForm.patchValue({
        uuid: this.row.uuid,
        clave: this.row.clave,
        categoria: this.row.categoria,
        nombre: this.row.nombre,
        descripcion: this.row.descripcion || '',
        tipoValor: tipoValor,
        valorTexto: this.row.valorTexto || '',
        valorNumerico: this.row.valorNumerico,
        valorBoolean: this.row.valorBoolean !== null ? this.row.valorBoolean : false,
        valorJson: this.row.valorJson || '',
        unidadMedida: this.row.unidadMedida || '',
        valorMinimo: this.row.valorMinimo,
        valorMaximo: this.row.valorMaximo,
        valoresPosibles: this.row.valoresPosibles || '',
        modificablePorUsuario: this.row.modificablePorUsuario !== undefined ? this.row.modificablePorUsuario : false,
        requiereAprobacion: this.row.requiereAprobacion !== undefined ? this.row.requiereAprobacion : false,
        activo: this.row.activo !== undefined ? this.row.activo : true,
        aplicaA: this.row.aplicaA || 'global',
        referenciaUuid: this.row.referenciaUuid || ''
      });
      this.onTipoValorChange();
      this.onAplicaAChange();
      if (this.accion === 'show') {
        this.contentForm.disable();
      }
    }
  }
  // Métodos de ayuda para mostrar labels en el template
  getCategoriaLabel(categoria) {
    const labels = {
      'PAYMENT': 'Pagos',
      'ANTICIPATION': 'Anticipación',
      'DURATION': 'Duración',
      'SLA': 'SLA',
      'TIMEOUT': 'Timeouts',
      'RECURRENT': 'Recurrentes',
      'RUAT': 'RUAT',
      'LIMITS': 'Límites',
      'NOTIFICATION': 'Notificaciones',
      'FINANCIAL': 'Financiero',
      'SANCTIONS': 'Sanciones',
      'FEATURES': 'Funcionalidades'
    };
    return labels[categoria] || categoria;
  }
  getAmbitoAplicacionLabel(ambito) {
    const labels = {
      'global': 'Global',
      'campo_deportivo': 'Campo Deportivo',
      'complejo': 'Complejo',
      'tarifa': 'Tarifa',
      'usuario': 'Usuario',
      'organizacion': 'Organización'
    };
    return labels[ambito] || ambito;
  }
  getUnidadMedidaLabel(unidad) {
    const labels = {
      'horas': 'Horas',
      'dias': 'Días',
      'minutos': 'Minutos',
      'segundos': 'Segundos',
      'meses': 'Meses',
      'bolivianos': 'Bolivianos',
      'porcentaje': 'Porcentaje',
      'cantidad': 'Cantidad',
      'personas': 'Personas',
      'dia_mes': 'Día del Mes',
      'intentos': 'Intentos'
    };
    return labels[unidad] || unidad;
  }
  getTipoValorLabel(tipo) {
    const labels = {
      'NUMERICO': 'Numérico',
      'TEXTO': 'Texto',
      'BOOLEANO': 'Boolean',
      'JSON': 'JSON'
    };
    return labels[tipo] || tipo;
  }
  /**
   * Save configuration
   */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.showLoading = true;
      const formData = this.contentForm.value;
      const claveFinal = formData.clave === 'CUSTOM' ? formData.claveCustom : formData.clave;
      let datos = {
        clave: claveFinal,
        categoria: formData.categoria,
        nombre: formData.nombre.trim(),
        descripcion: formData.descripcion?.trim() || undefined,
        // tipoValor: formData.tipoValor,
        valorTexto: formData.valorTexto?.trim() || undefined,
        valorNumerico: formData.valorNumerico !== null ? Number(formData.valorNumerico) : undefined,
        valorBoolean: formData.valorBoolean !== null ? Boolean(formData.valorBoolean) : undefined,
        valorJson: formData.valorJson?.trim() || undefined,
        unidadMedida: formData.unidadMedida?.trim() || undefined,
        valorMinimo: formData.valorMinimo !== null ? Number(formData.valorMinimo) : undefined,
        valorMaximo: formData.valorMaximo !== null ? Number(formData.valorMaximo) : undefined,
        valoresPosibles: formData.valoresPosibles?.trim() || undefined,
        modificablePorUsuario: formData.modificablePorUsuario,
        requiereAprobacion: formData.requiereAprobacion,
        activo: formData.activo,
        aplicaA: formData.aplicaA,
        referenciaUuid: formData.referenciaUuid?.trim() || undefined
      };
      if (formData.uuid) {
        datos.uuid = formData.uuid;
        this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Por favor, complete todos los campos requeridos correctamente', 'error');
      this.markFormGroupTouched();
    }
  }
  markFormGroupTouched() {
    Object.keys(this.contentForm.controls).forEach(key => {
      this.contentForm.get(key)?.markAsTouched();
    });
  }
  /* API Requests */
  addData(datos) {
    this.configuracionSistemaService.save(datos).subscribe({
      next: data => {
        this.showLoading = false;
        this.submitted = false;
        this.notify('Configuración registrada exitosamente', 'success');
        this.closeModal();
        this.emitList.emit();
      },
      error: error => {
        this.showLoading = false;
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al registrar la configuración: ${errorMessage}`, 'error');
      }
    });
  }
  updateData(datos) {
    this.configuracionSistemaService.update(datos).subscribe({
      next: data => {
        this.showLoading = false;
        this.submitted = false;
        this.notify('Configuración actualizada exitosamente', 'success');
        this.closeModal();
        this.emitList.emit();
      },
      error: error => {
        this.showLoading = false;
        this.submitted = false;
        const errorMessage = error?.error?.message || error.message || 'Error desconocido';
        this.notify(`Error al actualizar la configuración: ${errorMessage}`, 'error');
      }
    });
  }
  deleteData(uuid) {
    this.configuracionSistemaService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'success');
          this.modalService.dismissAll();
          this.emitList.emit();
          this.closeModal();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  closeModal() {
    this.submitted = false;
    this.showLoading = false;
    this.contentForm.enable();
    this.contentForm.reset();
    this.modalService.dismissAll();
  }
  notify(message, type) {
    const config = {
      success: {
        icon: 'success',
        timer: 3000
      },
      error: {
        icon: 'error',
        timer: 5000
      },
      warning: {
        icon: 'warning',
        timer: 4000
      },
      info: {
        icon: 'info',
        timer: 3000
      }
    };
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      text: message,
      icon: config[type].icon,
      timer: config[type].timer,
      timerProgressBar: true,
      showConfirmButton: false,
      toast: true,
      position: 'top-end'
    });
  }
  formatDate(date) {
    if (!date) return 'N/A';
    const dateObj = new Date(date);
    return dateObj.toLocaleDateString('es-BO', {
      day: '2-digit',
      month: '2-digit',
      year: 'numeric',
      hour: '2-digit',
      minute: '2-digit'
    });
  }
  static {
    this.ɵfac = function SystemConfigurationModalComponent_Factory(t) {
      return new (t || SystemConfigurationModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionSistemaService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
      type: SystemConfigurationModalComponent,
      selectors: [["app-configuracion-sistema-modal"]],
      inputs: {
        accion: "accion",
        row: "row",
        categoriasList: "categoriasList"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵStandaloneFeature"]],
      decls: 3,
      vars: 2,
      consts: [["deleteModel", ""], ["class", "modal-content", 4, "ngIf", "ngIfElse"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["class", "tablelist-form", "autocomplete", "off", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["class", "modal-body", 4, "ngIf"], ["class", "modal-footer bg-light py-2", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-settings-3-line", "me-2"], [1, "ri-settings-2-line", "me-2"], [1, "ri-eye-line", "me-2"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], [1, "row", "g-3"], [1, "col-lg-6"], ["for", "clave-field", 1, "form-label", "mb-0"], [1, "ri-key-2-line", "me-2"], [1, "text-danger"], ["id", "clave-field", "formControlName", "clave", 1, "form-select", 3, "ngClass", "disabled"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], ["value", "CUSTOM"], ["class", "invalid-feedback", 4, "ngIf"], ["class", "col-lg-6", 4, "ngIf"], ["for", "categoria-field", 1, "form-label", "mb-0"], [1, "ri-folder-2-line", "me-2"], ["id", "categoria-field", "formControlName", "categoria", 1, "form-select", 3, "ngClass", "disabled"], [1, "col-lg-12"], ["for", "nombre-field", 1, "form-label", "mb-0"], [1, "ri-text", "me-2"], ["type", "text", "id", "nombre-field", "formControlName", "nombre", "placeholder", "Nombre descriptivo de la configuraci\u00F3n", 1, "form-control", 3, "ngClass", "readonly"], ["for", "descripcion-field", 1, "form-label", "mb-0"], [1, "ri-file-text-line", "me-2"], ["id", "descripcion-field", "formControlName", "descripcion", "placeholder", "Descripci\u00F3n detallada de la configuraci\u00F3n y su prop\u00F3sito...", "rows", "2", 1, "form-control", 3, "ngClass", "readonly"], ["for", "tipoValor-field", 1, "form-label", "mb-0"], [1, "ri-database-2-line", "me-2"], ["id", "tipoValor-field", "formControlName", "tipoValor", 1, "form-select", 3, "change", "ngClass", "disabled"], ["class", "col-lg-12", 4, "ngIf"], ["for", "aplicaA-field", 1, "form-label", "mb-0"], [1, "ri-global-line", "me-2"], ["id", "aplicaA-field", "formControlName", "aplicaA", 1, "form-select", 3, "change", "ngClass", "disabled"], [1, "col-lg-4"], [1, "form-check", "form-switch"], ["type", "checkbox", "role", "switch", "id", "activo-field", "formControlName", "activo", 1, "form-check-input", 3, "disabled"], ["for", "activo-field", 1, "form-check-label", "fw-medium"], [1, "ri-checkbox-circle-line", "me-2"], ["type", "checkbox", "role", "switch", "id", "modificablePorUsuario-field", "formControlName", "modificablePorUsuario", 1, "form-check-input", 3, "disabled"], ["for", "modificablePorUsuario-field", 1, "form-check-label", "fw-medium"], [1, "ri-user-settings-line", "me-2"], ["type", "checkbox", "role", "switch", "id", "requiereAprobacion-field", "formControlName", "requiereAprobacion", 1, "form-check-input", 3, "disabled"], ["for", "requiereAprobacion-field", 1, "form-check-label", "fw-medium"], [1, "ri-shield-check-line", "me-2"], [1, "modal-footer", "bg-light", "py-2"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "text-muted"], [1, "ri-information-line", "me-1"], [1, "hstack", "gap-2"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], [1, "ri-close-line", "me-1"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-success", 3, "disabled"], ["class", "spinner-border spinner-border-sm me-2", "role", "status", 4, "ngIf"], [3, "class", 4, "ngIf"], [3, "value"], [1, "invalid-feedback"], [4, "ngIf"], [1, "ri-error-warning-line", "me-1"], ["for", "claveCustom-field", 1, "form-label", "mb-0"], [1, "ri-edit-2-line", "me-2"], ["type", "text", "id", "claveCustom-field", "formControlName", "claveCustom", "placeholder", "Ej: MI_CONFIGURACION_PERSONAL", "pattern", "^[A-Z][A-Z0-9_]*$", 1, "form-control", 3, "ngClass"], ["for", "unidadMedida-field", 1, "form-label", "mb-0"], [1, "ri-ruler-line", "me-2"], ["id", "unidadMedida-field", "formControlName", "unidadMedida", 1, "form-select", 3, "disabled"], ["value", ""], ["for", "valorTexto-field", 1, "form-label", "mb-0"], [1, "ri-input-field", "me-2"], ["type", "text", "id", "valorTexto-field", "formControlName", "valorTexto", "placeholder", "Ingrese el valor en texto", 1, "form-control", 3, "readonly"], ["for", "valorNumerico-field", 1, "form-label", "mb-0"], [1, "ri-number-1", "me-2"], ["type", "number", "id", "valorNumerico-field", "formControlName", "valorNumerico", "placeholder", "Ingrese el valor num\u00E9rico", "step", "0.01", 1, "form-control", 3, "readonly"], [1, "row", "g-2"], [1, "col-6"], ["for", "valorMinimo-field", 1, "form-label", "mb-0"], [1, "ri-arrow-down-line", "me-2"], ["type", "number", "id", "valorMinimo-field", "formControlName", "valorMinimo", "placeholder", "M\u00EDnimo", "step", "0.01", 1, "form-control", 3, "readonly"], ["for", "valorMaximo-field", 1, "form-label", "mb-0"], [1, "ri-arrow-up-line", "me-2"], ["type", "number", "id", "valorMaximo-field", "formControlName", "valorMaximo", "placeholder", "M\u00E1ximo", "step", "0.01", 1, "form-control", 3, "readonly"], [1, "form-label", "mb-0", "d-block"], [1, "ri-toggle-line", "me-2"], [1, "form-check", "form-switch", "mt-2"], ["type", "checkbox", "role", "switch", "id", "valorBoolean-field", "formControlName", "valorBoolean", 1, "form-check-input", 3, "readonly"], ["for", "valorBoolean-field", 1, "form-check-label", "fw-medium"], ["for", "valorJson-field", 1, "form-label", "mb-0"], [1, "ri-braces-line", "me-2"], ["id", "valorJson-field", "formControlName", "valorJson", "placeholder", "{\"key\": \"value\", \"array\": [1, 2, 3]}", "rows", "4", 1, "form-control", 3, "readonly"], [1, "form-text", "text-muted"], ["for", "referenciaUuid-field", 1, "form-label", "mb-0"], [1, "ri-link", "me-2"], ["type", "text", "id", "referenciaUuid-field", "formControlName", "referenciaUuid", "placeholder", "UUID del elemento espec\u00EDfico", 1, "form-control", 3, "readonly"], ["class", "form-text text-muted", 4, "ngIf"], ["for", "valoresPosibles-field", 1, "form-label", "mb-0"], [1, "ri-list-check", "me-2"], ["id", "valoresPosibles-field", "formControlName", "valoresPosibles", "placeholder", "[\"valor1\", \"valor2\", \"valor3\"]", "rows", "2", 1, "form-control", 3, "readonly"], ["role", "status", 1, "spinner-border", "spinner-border-sm", "me-2"], [1, "flex-shrink-0", "me-3"], [1, "ri-information-line", "text-muted", "fs-5"], [1, "flex-grow-1"], [1, "fw-semibold", "mb-1"], [1, "row"], [1, "col-sm-6"], [1, "text-muted", "d-block"], [1, "fw-medium", "font-monospace"], [1, "fw-medium"], [1, "badge", "bg-primary"], ["class", "col-sm-6", 4, "ngIf"], [1, "badge", 3, "ngClass"], ["class", "col-12", 4, "ngIf"], [1, "ri-database-2-line", "text-muted", "fs-5"], [1, "ri-settings-3-line", "text-muted", "fs-5"], [1, "col-sm-4"], ["class", "col-sm-4", 4, "ngIf"], [1, "ri-history-line", "text-muted", "fs-5"], [1, "badge", "bg-info"], [1, "col-12"], ["class", "text-muted", 4, "ngIf"], [1, "bg-light", "p-2", "rounded", "border"], [1, "fw-medium", "font-monospace", "small"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], ["class", "modal-content", 4, "ngIf"], [1, "modal-header"], ["type", "button", 1, "btn-close", 3, "click", "disabled"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], [1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", 1, "btn", "w-sm", "btn-danger", 3, "click", "disabled"], [1, "ri-delete-bin-line", "me-1", "align-middle"], [1, "spinner-border", "spinner-border-sm", "me-2"]],
      template: function SystemConfigurationModalComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, SystemConfigurationModalComponent_div_0_Template, 10, 8, "div", 1)(1, SystemConfigurationModalComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          const deleteModel_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.accion !== "delete")("ngIfElse", deleteModel_r11);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.LowerCasePipe, _angular_common__WEBPACK_IMPORTED_MODULE_6__.JsonPipe, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 46540:
/*!*************************************************************************!*\
  !*** ./src/app/pages/modals/modal-taxpayer/modal-taxpayer.component.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalTaxpayerComponent: () => (/* binding */ ModalTaxpayerComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var emailjs_com__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! emailjs-com */ 4133);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/UserData */ 55007);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var src_app_public_account_auth_pass_create_must_match__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/public/account/auth/pass-create/must-match */ 84477);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/configuracionSistema.service */ 93866);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);
/* harmony import */ var src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/api/estudianteEscuela.service */ 10399);
























const _c0 = a0 => ({
  "active": a0
});
const _c1 = a0 => ({
  "is-invalid": a0
});
const _c2 = (a0, a1, a2, a3) => ({
  "bg-success": a0,
  "bg-warning": a1,
  "bg-danger": a2,
  "bg-secondary": a3
});
function ModalTaxpayerComponent_div_0_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 10)(1, "div", 11)(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "p", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.searchingRuat ? "Buscando en RUAT..." : "Procesando...");
  }
}
function ModalTaxpayerComponent_div_0_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Agregar Contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_h5_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Editar Datos de Contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_h5_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Ver Contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_h5_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "h5", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Aplicar Sanci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_div_8_option_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r4.type);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r4.description);
  }
}
function ModalTaxpayerComponent_div_0_div_8_option_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r5.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r5.value);
  }
}
function ModalTaxpayerComponent_div_0_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 19)(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Paso 1:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Busque al contribuyente en el sistema RUAT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "form", 22)(7, "div", 23)(8, "div", 24)(9, "label", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Tipo Documento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "select", 27)(14, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Seleccionar opci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](16, ModalTaxpayerComponent_div_0_div_8_option_16_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "div", 24)(18, "label", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, "Nro Documento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](20, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](22, "input", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](23, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24, "Ej: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](25, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](26, "12345678-1C");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "div", 24)(28, "label", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29, "Expedido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](32, "select", 34)(33, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](34, "Seleccionar opci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](35, ModalTaxpayerComponent_div_0_div_8_option_35_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](36, "div", 35)(37, "button", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_div_8_Template_button_click_37_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.skipRuatSearch());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](38, " Saltar B\u00FAsqueda ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](39, "button", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_div_8_Template_button_click_39_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.searchInRuat());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](40, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](41, "Buscar en RUAT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.searchRuatForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.identityTypes);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.cityAcronym);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.searchingRuat);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.searchingRuat || ctx_r1.searchRuatForm.invalid);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_span_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.estudiantesTemporales.length, " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_span_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.organizacionesTemporales.length, " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Nombre es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Primer Apellido es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 N\u00FAmero de Documento es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Ya existe un usuario con este documento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Email es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Este Email ya est\u00E1 registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Tel\u00E9fono es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "\u2022 Fecha de Nacimiento es requerida");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " \u2022 Deportista Elite requiere Registro \u00DAnico Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 70)(1, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Errores en el formulario");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "ul", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_5_Template, 2, 0, "li", 56)(6, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_6_Template, 2, 0, "li", 56)(7, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_7_Template, 2, 0, "li", 56)(8, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_8_Template, 2, 0, "li", 56)(9, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_9_Template, 2, 0, "li", 56)(10, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_10_Template, 2, 0, "li", 56)(11, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_11_Template, 2, 0, "li", 56)(12, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_12_Template, 2, 0, "li", 56)(13, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_li_13_Template, 2, 0, "li", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["nombre"].errors == null ? null : ctx_r1.form["nombre"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["primerApellido"].errors == null ? null : ctx_r1.form["primerApellido"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["numeroDocumento"].errors == null ? null : ctx_r1.form["numeroDocumento"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["numeroDocumento"].errors == null ? null : ctx_r1.form["numeroDocumento"].errors["itExist"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors == null ? null : ctx_r1.form["email"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors == null ? null : ctx_r1.form["email"].errors["emailTaken"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["telefono"].errors == null ? null : ctx_r1.form["telefono"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["fechaNacimiento"].errors == null ? null : ctx_r1.form["fechaNacimiento"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["esDeportistaElite"].value && (ctx_r1.form["registroUnicoDeportivo"].errors == null ? null : ctx_r1.form["registroUnicoDeportivo"].errors["required"]));
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Contribuyente verificado en RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "span", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    let tmp_6_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("(C\u00F3digo: ", (tmp_6_0 = ctx_r1.editForm.get("codigoContribuyente")) == null ? null : tmp_6_0.value, ")");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r8.type);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r8.description);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Campo requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Ya existe");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_span_1_Template, 2, 0, "span", 56)(2, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_span_2_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["numeroDocumento"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["numeroDocumento"].errors["itExist"]);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r9.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r9.value);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r10.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r10.description);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_75_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r11.type);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r11.description);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_button_97_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_button_97_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r12);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.sendVerificationEmail());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, " Verificar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Email requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Formato inv\u00E1lido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Email ya registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_1_Template, 2, 0, "span", 56)(2, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_2_Template, 2, 0, "span", 56)(3, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_span_3_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors["required"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors["email"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["email"].errors["emailTaken"]);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_99_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 88)(1, "div", 20)(2, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Verificaci\u00F3n de Email");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "p", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6, "Se ha enviado un c\u00F3digo de 4 d\u00EDgitos a su correo electr\u00F3nico");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "form", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngSubmit", function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_99_Template_form_ngSubmit_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r13);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.verifyEmailCode());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](9, "input", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "button", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "i", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, " Verificar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "button", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_99_Template_button_click_13_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r13);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.sendVerificationEmail());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, " Reenviar c\u00F3digo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.verificationForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.verificationForm.invalid);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_1_Template, 6, 1, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "div", 75)(3, "div", 76)(4, "label", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, "Tipo Contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "select", 78)(9, "option", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Natural");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "option", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Jur\u00EDdica");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "div", 76)(14, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Tipo Documento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](17, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "select", 82)(19, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](20, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](21, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_21_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "div", 76)(23, "label", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24, "Nro Documento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](25, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](26, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](27, "input", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](28, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_28_Template, 3, 2, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "div", 76)(30, "label", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31, "Expedido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](32, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](33, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](34, "select", 87)(35, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](36, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](37, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_37_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](38, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](39, "hr", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](40, "div", 24)(41, "label", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](42, "Nombre(s) ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](43, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](44, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](45, "input", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](46, "div", 24)(47, "label", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](48, "Primer Apellido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](49, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](50, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](51, "input", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](52, "div", 24)(53, "label", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](54, "Segundo Apellido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](55, "input", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](56, "div", 24)(57, "label", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](58, "Fecha Nacimiento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](59, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](60, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](61, "input", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](62, "div", 24)(63, "label", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](64, "G\u00E9nero");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](65, "select", 99)(66, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](67, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](68, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_68_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](69, "div", 24)(70, "label", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](71, "Estado Civil");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](72, "select", 101)(73, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](74, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](75, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_option_75_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](76, "div", 102)(77, "label", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](78, "NIT");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](79, "input", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](80, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](81, "hr", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](82, "div", 102)(83, "label", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](84, "Tel\u00E9fono ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](85, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](86, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](87, "input", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](88, "div", 102)(89, "label", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](90, " Email ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](91, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](92, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](93, "small", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](94, "Aseg\u00FArese de tener acceso al correo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](95, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](96, "input", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](97, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_button_97_Template, 3, 0, "button", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](98, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_98_Template, 4, 3, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](99, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_div_99_Template, 15, 2, "div", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](100, "div", 88)(101, "label", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](102, "Direcci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](103, "textarea", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](104, "div", 88)(105, "label", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](106, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](107, "textarea", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    let tmp_5_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (tmp_5_0 = ctx_r1.editForm.get("verificadoRuat")) == null ? null : tmp_5_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](18, _c1, (ctx_r1.form["tipoContribuyente"].touched || ctx_r1.submitted) && ctx_r1.form["tipoContribuyente"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](20, _c1, (ctx_r1.form["tipoDocumento"].touched || ctx_r1.submitted) && ctx_r1.form["tipoDocumento"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.identityTypes);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](22, _c1, (ctx_r1.form["numeroDocumento"].touched || ctx_r1.submitted) && ctx_r1.form["numeroDocumento"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (ctx_r1.form["numeroDocumento"].touched || ctx_r1.submitted) && ctx_r1.form["numeroDocumento"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](24, _c1, (ctx_r1.form["expedido"].touched || ctx_r1.submitted) && ctx_r1.form["expedido"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.cityAcronym);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](26, _c1, ctx_r1.submitted && ctx_r1.form["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](28, _c1, ctx_r1.submitted && ctx_r1.form["primerApellido"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](30, _c1, ctx_r1.submitted && ctx_r1.form["fechaNacimiento"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.userSex);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.civilStatus);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](32, _c1, ctx_r1.submitted && ctx_r1.form["telefono"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](34, _c1, ctx_r1.submitted && ctx_r1.form["email"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "" && !ctx_r1.verificationCodeSent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.form["email"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.showVerificationCode && ctx_r1.accion === "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_button_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_button_7_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r14);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.toggleEstudianteForm());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Agregar Estudiante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_option_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", item_r16.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](item_r16.description);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 138)(1, "div", 139)(2, "h6", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "form", 141)(5, "div", 75)(6, "div", 102)(7, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Nombre Completo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "input", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 102)(13, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Matr\u00EDcula ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](17, "input", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "div", 24)(19, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](20, "Fecha Nacimiento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](22, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](23, "input", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "div", 24)(25, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](26, "G\u00E9nero");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "select", 146)(28, "option", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](30, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_option_30_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](31, "div", 24)(32, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](33, "CI/Documento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](34, "input", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](35, "div", 102)(36, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](37, "Tel\u00E9fono");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](38, "input", 149);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](39, "div", 102)(40, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](41, "Email");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](42, "input", 150);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](43, "div", 102)(44, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](45, "Fecha Inscripci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](46, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](47, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](48, "input", 151);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](49, "div", 102)(50, "div", 152);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](51, "input", 153);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](52, "label", 154);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](53, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](54, "div", 155)(55, "button", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_Template_button_click_55_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r15);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.addOrUpdateEstudiante());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](56, "i", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](58, "button", 158);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_Template_button_click_58_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r15);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.toggleEstudianteForm());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](59, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.editingEstudianteIndex >= 0 ? "Editar" : "Nuevo", " Estudiante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.estudianteForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](7, _c1, ctx_r1.estudiante["nombreCompleto"].touched && ctx_r1.estudiante["nombreCompleto"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](9, _c1, ctx_r1.estudiante["matricula"].touched && ctx_r1.estudiante["matricula"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](11, _c1, ctx_r1.estudiante["fechaNacimiento"].touched && ctx_r1.estudiante["fechaNacimiento"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.userSex);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.editingEstudianteIndex >= 0 ? "Actualizar" : "Agregar", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_tr_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](7, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "td")(9, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "td")(12, "button", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_tr_18_Template_button_click_12_listener() {
      const i_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r17).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.editEstudiante(i_r18));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "i", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "button", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_tr_18_Template_button_click_14_listener() {
      const i_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r17).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.removeEstudiante(i_r18));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](15, "i", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const est_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r19.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r19.matricula);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](7, 5, est_r19.fechaNacimiento, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", est_r19.activo ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", est_r19.activo ? "Activo" : "Inactivo", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "h6", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 159)(4, "table", 160)(5, "thead", 161)(6, "tr")(7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Matr\u00EDcula");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Fecha Nac.");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "th", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Acciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](18, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_tr_18_Template, 16, 8, "tr", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Estudiantes Registrados (", ctx_r1.estudiantesTemporales.length, ")");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.estudiantesTemporales);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "No hay estudiantes registrados");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Estudiantes a cargo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Si este contribuyente es tutor/padre de estudiantes en escuelas municipales, agr\u00E9galos aqu\u00ED. Los contribuyentes con estudiantes pueden realizar reservas gratuitas. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](7, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_button_7_Template, 3, 0, "button", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](8, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_8_Template, 60, 13, "div", 134)(9, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_9_Template, 19, 2, "div", 56)(10, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_div_10_Template, 4, 0, "div", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.showEstudianteForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.showEstudianteForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.estudiantesTemporales.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.estudiantesTemporales.length === 0 && !ctx_r1.showEstudianteForm);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_button_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_button_7_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r20);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.toggleOrganizacionForm());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Agregar Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_option_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r22 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", tipo_r22);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.getTipoOrganizacionLabel(tipo_r22), " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 88)(1, "div", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Las escuelas municipales requieren informaci\u00F3n adicional ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 24)(1, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "C\u00F3digo Escuela ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "input", 186);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](1, _c1, ctx_r1.organizacion["codigoEscuela"].touched && ctx_r1.organizacion["codigoEscuela"].errors));
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 24)(1, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Disciplina ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "input", 187);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](1, _c1, ctx_r1.organizacion["disciplina"].touched && ctx_r1.organizacion["disciplina"].errors));
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 24)(1, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Entrenador");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "input", 188);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 24)(1, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Tarifa Mensual (Bs)");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "input", 189);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 24)(1, "div", 180);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "input", 190);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "label", 191);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Requiere Pago Mensual");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 138)(1, "div", 139)(2, "h6", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "form", 141)(5, "div", 75)(6, "div", 102)(7, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Nombre ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "input", 172);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 102)(13, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Tipo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "select", 173);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](18, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_option_18_Template, 2, 2, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "div", 102)(20, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21, "Personer\u00EDa Jur\u00EDdica");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](22, "input", 174);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](23, "div", 102)(24, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](25, "NIT");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](26, "input", 175);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "div", 102)(28, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29, "Tel\u00E9fono");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](30, "input", 176);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](31, "div", 102)(32, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](33, "Email");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](34, "input", 177);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](35, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_35_Template, 4, 0, "div", 113)(36, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_36_Template, 6, 3, "div", 178)(37, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_37_Template, 6, 3, "div", 178)(38, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_38_Template, 4, 0, "div", 178)(39, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_39_Template, 4, 0, "div", 178);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](40, "div", 88)(41, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](42, "Direcci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](43, "textarea", 179);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](44, "div", 24)(45, "div", 180);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](46, "input", 181);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](47, "label", 182);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](48, "Organizaci\u00F3n Activa");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](49, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_div_49_Template, 5, 0, "div", 178);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](50, "div", 24)(51, "div", 180);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](52, "input", 183);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](53, "label", 184);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](54, "Reservas Gratuitas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](55, "div", 155)(56, "button", 156);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_Template_button_click_56_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r21);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.addOrUpdateOrganizacion());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](57, "i", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](58);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](59, "button", 158);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_Template_button_click_59_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r21);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.toggleOrganizacionForm());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](60, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    let tmp_11_0;
    let tmp_12_0;
    let tmp_13_0;
    let tmp_14_0;
    let tmp_15_0;
    let tmp_16_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.editingOrganizacionIndex >= 0 ? "Editar" : "Nueva", " Organizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.organizacionForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](12, _c1, ctx_r1.organizacion["nombre"].touched && ctx_r1.organizacion["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](14, _c1, ctx_r1.organizacion["tipoOrganizacion"].touched && ctx_r1.organizacion["tipoOrganizacion"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.tiposOrganizacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_11_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_11_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_12_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_12_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_13_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_13_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_14_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_14_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_15_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_15_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ((tmp_16_0 = ctx_r1.organizacionForm.get("tipoOrganizacion")) == null ? null : tmp_16_0.value) === "ESCUELA_MUNICIPAL");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.editingOrganizacionIndex >= 0 ? "Actualizar" : "Agregar", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_tr_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "td")(4, "span", 192);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "td")(9, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "td")(12, "button", 165);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_tr_18_Template_button_click_12_listener() {
      const i_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r23).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.editOrganizacion(i_r24));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "i", 166);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "button", 167);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_tr_18_Template_button_click_14_listener() {
      const i_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r23).index;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.removeOrganizacion(i_r24));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](15, "i", 168);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const org_r25 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r25.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getTipoOrganizacionLabel(org_r25.tipoOrganizacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r25.disciplina || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", org_r25.activo ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", org_r25.activo ? "Activa" : "Inactiva", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "h6", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 159)(4, "table", 160)(5, "thead", 161)(6, "tr")(7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Disciplina");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "th", 162);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Acciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](18, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_tr_18_Template, 16, 5, "tr", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Organizaciones Registradas (", ctx_r1.organizacionesTemporales.length, ")");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.organizacionesTemporales);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 193);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "No hay organizaciones registradas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Organizaciones representadas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Si este contribuyente representa o es encargado de organizaciones deportivas, reg\u00EDstrelas aqu\u00ED. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](7, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_button_7_Template, 3, 0, "button", 171);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](8, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_8_Template, 61, 16, "div", 134)(9, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_9_Template, 19, 2, "div", 56)(10, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_div_10_Template, 4, 0, "div", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.showOrganizacionForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.showOrganizacionForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.organizacionesTemporales.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.organizacionesTemporales.length === 0 && !ctx_r1.showOrganizacionForm);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_div_13_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " El registro \u00FAnico es requerido para deportistas elite ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_div_13_span_1_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["registroUnicoDeportivo"].errors["required"]);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 88)(1, "div", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Atenci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Deportista Elite requiere Registro \u00DAnico Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "label", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "Registro \u00DAnico Deportivo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](10, "input", 202);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Ingrese el n\u00FAmero de registro emitido por la autoridad deportiva");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](13, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_div_13_Template, 2, 1, "div", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](2, _c1, ctx_r1.form["registroUnicoDeportivo"].touched && ctx_r1.form["registroUnicoDeportivo"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.form["registroUnicoDeportivo"].touched && ctx_r1.form["registroUnicoDeportivo"].errors);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Deportista Elite ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" Tutor de ", ctx_r1.estudiantesTemporales.length, " estudiante(s) ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " No aplica ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_li_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li")(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "\u00DAltimo Uso Gratuito:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](4, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    let tmp_6_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](4, 1, (tmp_6_0 = ctx_r1.editForm.get("fechaUltimoUsoGratuito")) == null ? null : tmp_6_0.value, "dd/MM/yyyy"), " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_div_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Informaci\u00F3n Deportiva:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Configure si el contribuyente es deportista elite o tiene privilegios deportivos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 75)(7, "div", 88)(8, "div", 194)(9, "div", 139)(10, "div", 195);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "input", 196);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "label", 197);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "i", 198);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, " Deportista Elite ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "p", 199);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, " Los deportistas elite obtienen acceso gratuito a las instalaciones deportivas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](17, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_div_17_Template, 14, 4, "div", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "div", 88)(19, "div", 200)(20, "div", 139)(21, "h6", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](22, "Resumen de Beneficios");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](23, "ul", 73)(24, "li", 126)(25, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](26, "Puede Reservar Gratis:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "span", 201);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "li", 126)(30, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31, "Raz\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](32, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_32_Template, 2, 0, "span", 56)(33, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_33_Template, 2, 1, "span", 56)(34, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_span_34_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](35, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_li_35_Template, 5, 4, "li", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    let tmp_5_0;
    let tmp_6_0;
    let tmp_7_0;
    let tmp_8_0;
    let tmp_9_0;
    let tmp_10_0;
    let tmp_11_0;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (tmp_5_0 = ctx_r1.editForm.get("esDeportistaElite")) == null ? null : tmp_5_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", ((tmp_6_0 = ctx_r1.editForm.get("puedeReservarGratis")) == null ? null : tmp_6_0.value) ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ((tmp_7_0 = ctx_r1.editForm.get("puedeReservarGratis")) == null ? null : tmp_7_0.value) ? "S\u00CD" : "NO", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (tmp_8_0 = ctx_r1.editForm.get("esDeportistaElite")) == null ? null : tmp_8_0.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !((tmp_9_0 = ctx_r1.editForm.get("esDeportistaElite")) == null ? null : tmp_9_0.value) && ctx_r1.estudiantesTemporales.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !((tmp_10_0 = ctx_r1.editForm.get("esDeportistaElite")) == null ? null : tmp_10_0.value) && ctx_r1.estudiantesTemporales.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (tmp_11_0 = ctx_r1.editForm.get("fechaUltimoUsoGratuito")) == null ? null : tmp_11_0.value);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 19)(1, "ul", 45)(2, "li", 46)(3, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_Template_a_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("basic"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](4, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, " Informaci\u00F3n B\u00E1sica ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "li", 46)(7, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_Template_a_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("estudiantes"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](8, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, " Estudiantes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](10, ModalTaxpayerComponent_div_0_form_9_div_1_span_10_Template, 2, 1, "span", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "li", 46)(12, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_Template_a_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("organizaciones"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "i", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, " Organizaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](15, ModalTaxpayerComponent_div_0_form_9_div_1_span_15_Template, 2, 1, "span", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "li", 46)(17, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_1_Template_a_click_17_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("deportivo"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](18, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, " Info Deportiva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](20, ModalTaxpayerComponent_div_0_form_9_div_1_div_20_Template, 14, 9, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](22, ModalTaxpayerComponent_div_0_form_9_div_1_div_22_Template, 108, 36, "div", 56)(23, ModalTaxpayerComponent_div_0_form_9_div_1_div_23_Template, 11, 4, "div", 56)(24, ModalTaxpayerComponent_div_0_form_9_div_1_div_24_Template, 11, 4, "div", 56)(25, ModalTaxpayerComponent_div_0_form_9_div_1_div_25_Template, 36, 7, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](26, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](27, "input", 58)(28, "input", 59)(29, "input", 60)(30, "input", 61)(31, "input", 62)(32, "input", 63)(33, "input", 64)(34, "input", 65)(35, "input", 66)(36, "input", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](11, _c0, ctx_r1.activeTab === "basic"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](13, _c0, ctx_r1.activeTab === "estudiantes"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.estudiantesTemporales.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](15, _c0, ctx_r1.activeTab === "organizaciones"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.organizacionesTemporales.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](17, _c0, ctx_r1.activeTab === "deportivo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.editForm.invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "basic");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "estudiantes");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "organizaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "deportivo");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 230)(1, "span", 231);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 232);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Verificado RUAT ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_p_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "p", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" Edad: ", ctx_r1.calculateAge(ctx_r1.row.fechaNacimiento), " a\u00F1os ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_p_87_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "p", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" Registro: ", ctx_r1.row.registroUnicoDeportivo, " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_p_97_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "p", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](2, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" \u00DAltimo uso: ", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](2, 1, ctx_r1.row.fechaUltimoUsoGratuito, "dd/MM/yyyy"), " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const est_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r26.email);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const est_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r26.telefono);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "tr")(1, "td")(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_div_4_Template, 2, 1, "div", 216)(5, ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_div_5_Template, 2, 1, "div", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](10, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](17, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "td")(19, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const est_r26 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r26.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", est_r26.email);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", est_r26.telefono);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r26.matricula);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](10, 10, est_r26.fechaNacimiento, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getGenderText(est_r26.genero));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](est_r26.numeroDocumento || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](17, 13, est_r26.fechaInscripcion, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", est_r26.activo ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", est_r26.activo ? "Activo" : "Inactivo", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_101_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "div", 159)(2, "table", 234)(3, "thead", 161)(4, "tr")(5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6, "Nombre Completo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Matr\u00EDcula");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Fecha Nacimiento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "G\u00E9nero");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Documento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Fecha Inscripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](18, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](20, ModalTaxpayerComponent_div_0_form_9_div_2_div_101_tr_20_Template, 21, 16, "tr", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "div", 235)(22, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.row.estudianteEnEscuelas);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Total de estudiantes: ", ctx_r1.row.estudianteEnEscuelas.length, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_102_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 170);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "No tiene estudiantes a cargo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" Personer\u00EDa: ", org_r27.personeriaJuridica, " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 233);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("NIT: ", org_r27.nroNit, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 238);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r27.telefono);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 241);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r27.email);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 241);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r27.direccion);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 238);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Entrenador: ", org_r27.entrenador, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 238);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("C\u00F3digo: ", org_r27.codigoEscuela, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 238);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const org_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Tarifa: Bs. ", org_r27.tarifaMensual, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_span_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 242);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Pago Mensual");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_span_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 243);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Reservas Gratis");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "tr")(1, "td")(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_4_Template, 2, 1, "div", 216)(5, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_5_Template, 2, 1, "div", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "td")(7, "span", 192);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](12, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_12_Template, 2, 1, "div", 236)(13, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_13_Template, 2, 1, "div", 237)(14, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_14_Template, 2, 1, "div", 237);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](16, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_16_Template, 2, 1, "div", 236)(17, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_17_Template, 2, 1, "div", 236)(18, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_div_18_Template, 2, 1, "div", 236);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "div", 238);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](20, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_span_20_Template, 2, 0, "span", 239)(21, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_span_21_Template, 2, 0, "span", 240);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "td")(23, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const org_r27 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r27.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.personeriaJuridica);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.nroNit);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getTipoOrganizacionLabel(org_r27.tipoOrganizacion));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](org_r27.disciplina || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.telefono);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.email);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.direccion);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.entrenador);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.codigoEscuela);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27 == null ? null : org_r27.tarifaMensual);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.requierePagoMensualidad);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", org_r27.permiteReservasGratuitas);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", org_r27.activo ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", org_r27.activo ? "Activa" : "Inactiva", " ");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_107_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div")(1, "div", 159)(2, "table", 234)(3, "thead", 161)(4, "tr")(5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Disciplina");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Contacto");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Informaci\u00F3n Adicional");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](18, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_tr_18_Template, 25, 15, "tr", 163);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "div", 235)(20, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx_r1.row.organizacionesRepresentadas);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("Total de organizaciones: ", ctx_r1.row.organizacionesRepresentadas.length, "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_108_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 169);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 193);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "No representa organizaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_109_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "h6", 244);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 245);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Sanci\u00F3n Activa");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "div", 70)(6, "div", 23)(7, "div", 203)(8, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, "Motivo de la Sanci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "p", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 24)(13, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Detalles");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "p", 246)(16, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](17, "Fecha de fin:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](19, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](20, "p", 73)(21, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](22, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](23, "span", 247);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24, "SANCIONADO");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.motivoSancion);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](19, 2, ctx_r1.row.fechaFinSancion, "dd/MM/yyyy"), "");
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_div_110_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "h6", 248);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 249);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Observaciones Municipales");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "div", 250)(6, "div", 139)(7, "p", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.observacionesMunicipales);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 19)(1, "div", 23)(2, "div", 203)(3, "h6", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "p", 204);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "p", 205);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](8, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "div", 206)(11, "span", 207);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](13, ModalTaxpayerComponent_div_0_form_9_div_2_div_13_Template, 4, 0, "div", 208);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](14, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "h6", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](16, "i", 210);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](17, "Informaci\u00F3n Personal");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "div", 211)(19, "div", 212)(20, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "p", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "div", 212)(25, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](26, "Expedido en:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "p", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "div", 212)(30, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31, "NIT");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](32, "p", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](34, "div", 212)(35, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](36, "Fecha de Nacimiento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](37, "p", 215);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](39, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](40, ModalTaxpayerComponent_div_0_form_9_div_2_p_40_Template, 2, 1, "p", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](41, "div", 212)(42, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](43, "G\u00E9nero");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](44, "p", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](46, "div", 212)(47, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](48, "Estado Civil");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](49, "p", 214);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](51, "h6", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](52, "i", 217);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](53, "Informaci\u00F3n de Contacto");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](54, "div", 211)(55, "div", 218)(56, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](57, "i", 219);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](58, "Tel\u00E9fono");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](59, "p", 215);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](60);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](61, "div", 218)(62, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](63, "i", 220);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](64, "Correo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](65, "p", 215);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](66);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](67, "div", 88)(68, "small", 213);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](69, "i", 221);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](70, "Direcci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](71, "p", 215);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](73, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](74, "h6", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](75, "i", 222);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](76, "Informaci\u00F3n Deportiva");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](77, "div", 23)(78, "div", 223)(79, "div", 224)(80, "div", 225);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](81, "i", 226);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](82, "h6", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](83, "Deportista Elite");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](84, "p", 215)(85, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](86);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](87, ModalTaxpayerComponent_div_0_form_9_div_2_p_87_Template, 2, 1, "p", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](88, "div", 223)(89, "div", 224)(90, "div", 225);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](91, "i", 227);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](92, "h6", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](93, "Reservas Gratuitas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](94, "p", 215)(95, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](96);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](97, ModalTaxpayerComponent_div_0_form_9_div_2_p_97_Template, 3, 4, "p", 216);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](98, "h6", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](99, "i", 228);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](100, "Estudiantes a Cargo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](101, ModalTaxpayerComponent_div_0_form_9_div_2_div_101_Template, 24, 2, "div", 56)(102, ModalTaxpayerComponent_div_0_form_9_div_2_div_102_Template, 4, 0, "div", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](103, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](104, "h6", 209);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](105, "i", 229);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](106, "Organizaciones Representadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](107, ModalTaxpayerComponent_div_0_form_9_div_2_div_107_Template, 22, 2, "div", 56)(108, ModalTaxpayerComponent_div_0_form_9_div_2_div_108_Template, 4, 0, "div", 135)(109, ModalTaxpayerComponent_div_0_form_9_div_2_div_109_Template, 25, 5, "div", 56)(110, ModalTaxpayerComponent_div_0_form_9_div_2_div_110_Template, 9, 1, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getTipoContribuyenteText(ctx_r1.row.tipoContribuyente));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("C\u00F3digo: ", ctx_r1.row.codigoContribuyente || "No asignado", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction4"](32, _c2, ctx_r1.row.estadoUsuario === "ACTIVO", ctx_r1.row.estadoUsuario === "PENDIENTE_VERIFICACION", ctx_r1.row.estadoUsuario === "BLOQUEADO" || ctx_r1.row.estadoUsuario === "SANCIONADO", ctx_r1.row.estadoUsuario === "INACTIVO"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.getEstadoUsuarioText(ctx_r1.row.estadoUsuario), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.verificadoRuat);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getTipoDocumentoDescription(ctx_r1.row.tipoDocumento));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.numeroDocumento, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.expedido ? ctx_r1.getExpedidoDescription(ctx_r1.row.expedido) : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nroNit || "No registrado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](39, 29, ctx_r1.row.fechaNacimiento, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.fechaNacimiento);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getGenderText(ctx_r1.row.genero));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.getCivilStatus(ctx_r1.row.estadoCivil) || "No especificado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.telefono || "No registrado", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.email || "No registrado", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.direccion || "No registrada", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", ctx_r1.row.esDeportistaElite ? "bg-warning" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.esDeportistaElite ? "S\u00CD" : "NO", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.registroUnicoDeportivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", ctx_r1.row.puedeReservarGratis ? "bg-success" : "bg-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.puedeReservarGratis ? "PERMITIDO" : "NO PERMITIDO", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.fechaUltimoUsoGratuito);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.estudianteEnEscuelas && ctx_r1.row.estudianteEnEscuelas.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.row.estudianteEnEscuelas || ctx_r1.row.estudianteEnEscuelas.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.organizacionesRepresentadas && ctx_r1.row.organizacionesRepresentadas.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.row.organizacionesRepresentadas || ctx_r1.row.organizacionesRepresentadas.length === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.estaSancionado);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.observacionesMunicipales);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_7_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 253);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_7_button_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r28);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab(ctx_r1.activeTab === "estudiantes" ? "basic" : ctx_r1.activeTab === "organizaciones" ? "estudiantes" : "organizaciones"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 254);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, " Anterior ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_7_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 253);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_7_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r29);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("estudiantes"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Siguiente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 255);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_7_button_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 253);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_7_button_3_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r30);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("organizaciones"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Siguiente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 255);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_7_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 253);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_div_7_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r31);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.setActiveTab("deportivo"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Siguiente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 255);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_9_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 251);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_7_button_1_Template, 3, 1, "button", 252)(2, ModalTaxpayerComponent_div_0_form_9_div_7_button_2_Template, 3, 1, "button", 252)(3, ModalTaxpayerComponent_div_0_form_9_div_7_button_3_Template, 3, 1, "button", 252)(4, ModalTaxpayerComponent_div_0_form_9_div_7_button_4_Template, 3, 1, "button", 252);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab !== "basic");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "basic");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "estudiantes");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.activeTab === "organizaciones");
  }
}
function ModalTaxpayerComponent_div_0_form_9_button_8_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 157);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Guardar Todo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_button_8_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Guardando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_9_button_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 256);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_button_8_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_div_0_form_9_button_8_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "form", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngSubmit", function ModalTaxpayerComponent_div_0_form_9_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_9_div_1_Template, 37, 19, "div", 7)(2, ModalTaxpayerComponent_div_0_form_9_div_2_Template, 111, 37, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 41)(4, "div", 42)(5, "button", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_9_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](7, ModalTaxpayerComponent_div_0_form_9_div_7_Template, 5, 4, "div", 43)(8, ModalTaxpayerComponent_div_0_form_9_button_8_Template, 3, 3, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.editForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show" && ctx_r1.row);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion !== "show");
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 70)(1, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Sanci\u00F3n Activa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "p", 246)(5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6, "Motivo actual:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "p", 246)(9, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Fecha fin:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](12, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "p", 263);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, " Para aplicar una nueva sanci\u00F3n, primero debe levantar la sanci\u00F3n existente. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.motivoSancion, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](12, 2, ctx_r1.row.fechaFinSancion, "dd/MM/yyyy"), "");
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 185);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Atenci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, " Est\u00E1 a punto de aplicar una sanci\u00F3n al contribuyente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, ". Esta acci\u00F3n restringir\u00E1 el acceso del usuario al sistema. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nombreCompleto);
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_4_div_7_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "La fecha de fin de sanci\u00F3n es requerida");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_4_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_10_div_4_div_7_span_1_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.sanction["fechaFinSancion"].errors["required"]);
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_4_div_14_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "El motivo de la sanci\u00F3n es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_4_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_10_div_4_div_14_span_1_Template, 2, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.sanction["motivoSancion"].errors["required"]);
  }
}
function ModalTaxpayerComponent_div_0_form_10_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 23)(1, "div", 88)(2, "label", 264);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Fecha Fin de Sanci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](5, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](6, "input", 265);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](7, ModalTaxpayerComponent_div_0_form_10_div_4_div_7_Template, 2, 1, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 266)(9, "label", 267);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, "Motivo de la Sanci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "span", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "textarea", 268);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](14, ModalTaxpayerComponent_div_0_form_10_div_4_div_14_Template, 2, 1, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("min", ctx_r1.today)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](5, _c1, ctx_r1.submitted && ctx_r1.sanction["fechaFinSancion"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.sanction["fechaFinSancion"].errors);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction1"](7, _c1, ctx_r1.submitted && ctx_r1.sanction["motivoSancion"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted && ctx_r1.sanction["motivoSancion"].errors);
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_9_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 270);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Levantar Sanci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_9_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Levantando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 269);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_10_button_9_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r33);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.removeSanction());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_10_button_9_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_div_0_form_10_button_9_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_10_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 272);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Aplicar Sanci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_10_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Aplicando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_div_0_form_10_button_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 271);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_form_10_button_10_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_div_0_form_10_button_10_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_div_0_form_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "form", 258);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngSubmit", function ModalTaxpayerComponent_div_0_form_10_Template_form_ngSubmit_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r32);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.applySanction());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](1, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](2, ModalTaxpayerComponent_div_0_form_10_div_2_Template, 16, 5, "div", 54)(3, ModalTaxpayerComponent_div_0_form_10_div_3_Template, 8, 1, "div", 259)(4, ModalTaxpayerComponent_div_0_form_10_div_4_Template, 15, 9, "div", 260);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "div", 41)(6, "div", 42)(7, "button", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_form_10_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r32);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](9, ModalTaxpayerComponent_div_0_form_10_button_9_Template, 3, 3, "button", 261)(10, ModalTaxpayerComponent_div_0_form_10_button_10_Template, 3, 3, "button", 262);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r1.sanctionForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.estaSancionado);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.row.estaSancionado);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.row.estaSancionado);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.estaSancionado);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.row.estaSancionado);
  }
}
function ModalTaxpayerComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_div_0_div_1_Template, 6, 1, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](3, ModalTaxpayerComponent_div_0_h5_3_Template, 3, 0, "h5", 5)(4, ModalTaxpayerComponent_div_0_h5_4_Template, 3, 0, "h5", 5)(5, ModalTaxpayerComponent_div_0_h5_5_Template, 3, 0, "h5", 5)(6, ModalTaxpayerComponent_div_0_h5_6_Template, 3, 0, "h5", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_div_0_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](8, ModalTaxpayerComponent_div_0_div_8_Template, 42, 5, "div", 7)(9, ModalTaxpayerComponent_div_0_form_9_Template, 9, 6, "form", 8)(10, ModalTaxpayerComponent_div_0_form_10_Template, 11, 7, "form", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted || ctx_r1.searchingRuat);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "sanction");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.showRuatSearch && ctx_r1.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", (ctx_r1.accion === "" || ctx_r1.accion === "edit" || ctx_r1.accion === "show") && !ctx_r1.showRuatSearch);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "sanction");
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 284)(1, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "\u00BFEst\u00E1 seguro de Bloquear al Contribuyente?");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "p", 285);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, " El Contribuyente: \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "\" no podr\u00E1 realizar ninguna acci\u00F3n. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nombreCompleto);
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 284)(1, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "\u00BFDesea Desbloquear al Contribuyente?");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "p", 285);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, " El Contribuyente: \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "\" podr\u00E1 volver a realizar acciones en el sistema. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nombreCompleto);
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 284)(1, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "\u00BFDesea Levantar la Sanci\u00F3n?");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "p", 286);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, " El Contribuyente: \"");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "\" ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 287)(9, "h6", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](10, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](11, "Informaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "p", 246)(13, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Estado actual:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "span", 247);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "SANCIONADO");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "p", 246)(18, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, "Motivo sanci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "p", 246)(22, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](23, "Fin sanci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](25, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](26, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "p", 73)(28, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29, "Nuevo estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "span", 164);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r1.row.nombreCompleto);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.motivoSancion, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind2"](25, 5, ctx_r1.row.fechaFinSancion, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", ctx_r1.row.verificadoRuat ? "bg-success" : "bg-warning");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r1.row.verificadoRuat ? "ACTIVO" : "PENDIENTE VERIFICACI\u00D3N", " ");
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_13_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 272);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, " S\u00ED, Bloquear! ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_13_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Bloqueando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 288);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_ng_template_1_div_0_button_13_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r35);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.blockUser());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_ng_template_1_div_0_button_13_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_ng_template_1_div_0_button_13_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_14_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 270);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, " S\u00ED, Desbloquear! ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_14_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Desbloqueando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 289);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_ng_template_1_div_0_button_14_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r36);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.unblockUser());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_ng_template_1_div_0_button_14_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_ng_template_1_div_0_button_14_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_15_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 270);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, " S\u00ED, Levantar Sanci\u00F3n! ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_15_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "span", 257);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Procesando... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_button_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 289);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_ng_template_1_div_0_button_15_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r37);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.removeSanction());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](1, ModalTaxpayerComponent_ng_template_1_div_0_button_15_span_1_Template, 3, 0, "span", 56)(2, ModalTaxpayerComponent_ng_template_1_div_0_button_15_span_2_Template, 3, 0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.submitted);
  }
}
function ModalTaxpayerComponent_ng_template_1_div_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 2)(1, "div", 274)(2, "button", 275);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_ng_template_1_div_0_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r34);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 19)(4, "div", 276);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "lord-icon", 277);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](6, ModalTaxpayerComponent_ng_template_1_div_0_div_6_Template, 8, 1, "div", 278)(7, ModalTaxpayerComponent_ng_template_1_div_0_div_7_Template, 8, 1, "div", 278)(8, ModalTaxpayerComponent_ng_template_1_div_0_div_8_Template, 32, 8, "div", 278);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "div", 279)(10, "button", 280);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ModalTaxpayerComponent_ng_template_1_div_0_Template_button_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r34);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r1.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "i", 281);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](13, ModalTaxpayerComponent_ng_template_1_div_0_button_13_Template, 3, 3, "button", 282)(14, ModalTaxpayerComponent_ng_template_1_div_0_button_14_Template, 3, 3, "button", 283)(15, ModalTaxpayerComponent_ng_template_1_div_0_button_15_Template, 3, 3, "button", 283);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "block");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "unblock");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "removeSanction");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx_r1.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "block");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "unblock");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.accion === "removeSanction");
  }
}
function ModalTaxpayerComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](0, ModalTaxpayerComponent_ng_template_1_div_0_Template, 16, 8, "div", 273);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r1.row.uuid);
  }
}
class ModalTaxpayerComponent {
  constructor(modalService, formBuilder, ruatService, systemConfigsService, contribuyentesService, organizationService, estudianteEscuelaService) {
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.ruatService = ruatService;
    this.systemConfigsService = systemConfigsService;
    this.contribuyentesService = contribuyentesService;
    this.organizationService = organizationService;
    this.estudianteEscuelaService = estudianteEscuelaService;
    this.clientsList = [];
    this.userPermissions = [];
    this.emitList = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
    this.systemConfigList = [];
    this.organizationsList = [];
    this.estudiantesList = [];
    this.civilStatus = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_4__.UserCivilStatus;
    this.identityTypes = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_4__.UserDocType;
    this.cityAcronym = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_3__.CityAcronym;
    this.userStatus = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_4__.UserStatus;
    this.userSex = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_4__.UserGender;
    this.tiposOrganizacion = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion);
    this.submitted = false;
    this.searchingRuat = false;
    this.ruatDataFound = null;
    this.showRuatSearch = false;
    this.showVerificationCode = false;
    this.verificationCodeSent = false;
    this.passwordField = false;
    this.confirmField = false;
    this.today = new Date().toISOString().split('T')[0];
    this.canSanction = false;
    this.activeTab = 'basic';
    this.estudiantesTemporales = [];
    this.editingEstudianteIndex = -1;
    this.showEstudianteForm = false;
    this.organizacionesTemporales = [];
    this.editingOrganizacionIndex = -1;
    this.showOrganizacionForm = false;
  }
  ngOnInit() {
    this.getConfigsSystem();
    this.getOrganizations();
    this.getEstudiantes();
    this.canSanction = this.userPermissions.includes('SANCIONAR');
    this.initForms();
    this.formDataSet();
    if (this.accion === 'show') {
      setTimeout(() => {
        document.getElementById('form-event')?.classList.add('view-event');
      }, 100);
    }
    if (this.accion === '') {
      this.showRuatSearch = true;
    }
  }
  initForms() {
    this.searchRuatForm = this.formBuilder.group({
      tipoDocumento: ['CI', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      numeroDocumento: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(1), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(20)]],
      expedido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]]
    });
    this.editForm = this.formBuilder.group({
      uuid: [null],
      userName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(6), this.usernameFormatValidator]],
      password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(6)]],
      cpassword: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      estadoUsuario: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION],
      verificationCode: [null],
      tipoContribuyente: ['NA', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      codigoContribuyente: [''],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(1), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(250)]],
      primerApellido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(1), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(100)]],
      segundoApellido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(1), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(100)]],
      apellidoEsposo: [''],
      estadoCivil: [''],
      fechaNacimiento: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      genero: [''],
      tipoDocumento: ['CI', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      numeroDocumento: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required], [this.identityNumberValidator.bind(this)]],
      expedido: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      nroNit: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(20)]],
      telefono: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(20)]],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.email, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(255)], [this.emailValidator.bind(this)]],
      direccion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(250)]],
      estadoRuat: [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO],
      verificadoRuat: [false],
      fechaVerificacionRuat: [''],
      esDeportistaElite: [false],
      registroUnicoDeportivo: [''],
      puedeReservarGratis: [false],
      fechaUltimoUsoGratuito: [''],
      observacionesMunicipales: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(1000)]]
    }, {
      validator: (0,src_app_public_account_auth_pass_create_must_match__WEBPACK_IMPORTED_MODULE_9__.MustMatch)('password', 'cpassword')
    });
    this.editForm.get('esDeportistaElite')?.valueChanges.subscribe(value => {
      const registroControl = this.editForm.get('registroUnicoDeportivo');
      if (value) {
        registroControl?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(50)]);
        this.editForm.patchValue({
          puedeReservarGratis: true
        });
      } else {
        registroControl?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(50)]);
        const canReserveFree = this.estudiantesTemporales.length > 0;
        this.editForm.patchValue({
          puedeReservarGratis: canReserveFree
        });
      }
      registroControl?.updateValueAndValidity();
    });
    this.estudianteForm = this.formBuilder.group({
      uuid: [null],
      nombreCompleto: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(250)]],
      fechaNacimiento: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      genero: [''],
      numeroDocumento: [''],
      telefono: [''],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.email]],
      matricula: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(50)]],
      fechaInscripcion: [new Date().toISOString().split('T')[0], [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      activo: [true]
    });
    this.organizacionForm = this.formBuilder.group({
      uuid: [null],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(250)]],
      tipoOrganizacion: [src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ASOCIACION, [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      personeriaJuridica: [''],
      telefono: [''],
      email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.email]],
      direccion: [''],
      nroNit: [''],
      entrenador: [''],
      disciplina: [''],
      codigoEscuela: [''],
      requierePagoMensualidad: [false],
      tarifaMensual: [0, [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.min(0)]],
      permiteReservasGratuitas: [false],
      activo: [true]
    });
    this.organizacionForm.get('tipoOrganizacion')?.valueChanges.subscribe(tipo => {
      if (tipo === src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ESCUELA_MUNICIPAL) {
        this.organizacionForm.patchValue({
          requierePagoMensualidad: true,
          permiteReservasGratuitas: true
        });
        this.organizacionForm.get('disciplina')?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]);
        this.organizacionForm.get('codigoEscuela')?.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]);
      } else {
        this.organizacionForm.get('disciplina')?.clearValidators();
        this.organizacionForm.get('codigoEscuela')?.clearValidators();
      }
      this.organizacionForm.get('disciplina')?.updateValueAndValidity();
      this.organizacionForm.get('codigoEscuela')?.updateValueAndValidity();
    });
    this.sanctionForm = this.formBuilder.group({
      uuid: [null],
      estaSancionado: [true],
      fechaFinSancion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required]],
      motivoSancion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(5), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(500)]]
    });
    this.verificationForm = this.formBuilder.group({
      code: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.minLength(4), _angular_forms__WEBPACK_IMPORTED_MODULE_16__.Validators.maxLength(4)]]
    });
  }
  formDataSet() {
    if (this.accion !== '' && this.row) {
      const fechaNacimiento = this.row.fechaNacimiento ? new Date(this.row.fechaNacimiento).toISOString().split('T')[0] : '';
      const fechaVerificacionRuat = this.row.fechaVerificacionRuat ? new Date(this.row.fechaVerificacionRuat).toISOString().split('T')[0] : '';
      const fechaUltimoUsoGratuito = this.row.fechaUltimoUsoGratuito ? new Date(this.row.fechaUltimoUsoGratuito).toISOString().split('T')[0] : '';
      this.editForm.patchValue({
        uuid: this.row.uuid,
        userName: this.row.userName,
        password: this.row.password,
        cpassword: this.row.password,
        estadoUsuario: this.row.estadoUsuario,
        tipoContribuyente: this.row.tipoContribuyente,
        codigoContribuyente: this.row.codigoContribuyente,
        nombre: this.row.nombre,
        primerApellido: this.row.primerApellido,
        segundoApellido: this.row.segundoApellido,
        apellidoEsposo: this.row.apellidoEsposo,
        estadoCivil: this.row.estadoCivil,
        fechaNacimiento: fechaNacimiento,
        genero: this.row.genero,
        tipoDocumento: this.row.tipoDocumento,
        numeroDocumento: this.row.numeroDocumento,
        expedido: this.row.expedido,
        nroNit: this.row.nroNit,
        telefono: this.row.telefono,
        email: this.row.email,
        direccion: this.row.direccion,
        estadoRuat: this.row.estadoRuat,
        verificadoRuat: this.row.verificadoRuat,
        fechaVerificacionRuat: fechaVerificacionRuat,
        esDeportistaElite: this.row.esDeportistaElite,
        registroUnicoDeportivo: this.row.registroUnicoDeportivo,
        puedeReservarGratis: this.row.puedeReservarGratis,
        fechaUltimoUsoGratuito: fechaUltimoUsoGratuito,
        observacionesMunicipales: this.row.observacionesMunicipales
      });
      if (this.row.estudianteEnEscuelas && this.row.estudianteEnEscuelas.length > 0) {
        this.estudiantesTemporales = this.row.estudianteEnEscuelas.map(est => ({
          ...est,
          fechaNacimiento: est.fechaNacimiento ? new Date(est.fechaNacimiento).toISOString().split('T')[0] : '',
          fechaInscripcion: est.fechaInscripcion ? new Date(est.fechaInscripcion).toISOString().split('T')[0] : ''
        }));
      }
      if (this.row.organizacionesRepresentadas && this.row.organizacionesRepresentadas.length > 0) {
        this.organizacionesTemporales = [...this.row.organizacionesRepresentadas];
      }
      const fechaFinSancion = this.row.fechaFinSancion ? new Date(this.row.fechaFinSancion).toISOString().split('T')[0] : '';
      this.sanctionForm.patchValue({
        uuid: this.row.uuid,
        estaSancionado: this.row.estaSancionado,
        fechaFinSancion: fechaFinSancion,
        motivoSancion: this.row.motivoSancion
      });
      if (this.accion === 'show') {
        this.editForm.disable();
      }
      if (this.row.verificadoRuat && this.accion === 'edit') {
        this.disableRuatVerifiedFields();
      }
    }
  }
  setActiveTab(tab) {
    this.activeTab = tab;
  }
  toggleEstudianteForm() {
    this.showEstudianteForm = !this.showEstudianteForm;
    if (!this.showEstudianteForm) {
      this.estudianteForm.reset({
        activo: true,
        fechaInscripcion: new Date().toISOString().split('T')[0]
      });
      this.editingEstudianteIndex = -1;
    }
  }
  addOrUpdateEstudiante() {
    if (this.estudianteForm.invalid) {
      this.markAllFieldsAsTouched(this.estudianteForm);
      this.notify('Complete todos los campos requeridos del estudiante', 'warning');
      return;
    }
    const estudianteData = this.estudianteForm.getRawValue();
    if (this.editingEstudianteIndex >= 0) {
      this.estudiantesTemporales[this.editingEstudianteIndex] = estudianteData;
    } else {
      this.estudiantesTemporales.push(estudianteData);
    }
    this.toggleEstudianteForm();
  }
  editEstudiante(index) {
    const estudiante = this.estudiantesTemporales[index];
    this.estudianteForm.patchValue(estudiante);
    this.editingEstudianteIndex = index;
    this.showEstudianteForm = true;
  }
  removeEstudiante(index) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: '¿Eliminar estudiante?',
      text: 'Esta acción no se puede deshacer',
      icon: 'warning',
      showCancelButton: true,
      confirmButtonColor: '#f06548',
      cancelButtonColor: '#6c757d',
      confirmButtonText: 'Sí, eliminar',
      cancelButtonText: 'Cancelar'
    }).then(result => {
      if (result.isConfirmed) {
        this.estudiantesTemporales.splice(index, 1);
        if (this.estudiantesTemporales.length === 0 && !this.editForm.get('esDeportistaElite')?.value) {
          this.editForm.patchValue({
            puedeReservarGratis: false
          });
        }
        this.notify('Estudiante eliminado', 'info');
      }
    });
  }
  toggleOrganizacionForm() {
    this.showOrganizacionForm = !this.showOrganizacionForm;
    if (!this.showOrganizacionForm) {
      this.organizacionForm.reset({
        tipoOrganizacion: src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ASOCIACION,
        requierePagoMensualidad: false,
        tarifaMensual: 0,
        permiteReservasGratuitas: false,
        activo: true
      });
      this.editingOrganizacionIndex = -1;
    }
  }
  addOrUpdateOrganizacion() {
    if (this.organizacionForm.invalid) {
      this.markAllFieldsAsTouched(this.organizacionForm);
      return;
    }
    const orgData = this.organizacionForm.getRawValue();
    if (this.editingOrganizacionIndex >= 0) {
      this.organizacionesTemporales[this.editingOrganizacionIndex] = orgData;
    } else {
      this.organizacionesTemporales.push(orgData);
    }
    this.toggleOrganizacionForm();
  }
  editOrganizacion(index) {
    const org = this.organizacionesTemporales[index];
    this.organizacionForm.patchValue(org);
    this.editingOrganizacionIndex = index;
    this.showOrganizacionForm = true;
  }
  removeOrganizacion(index) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: '¿Eliminar organización?',
      text: 'Esta acción no se puede deshacer',
      icon: 'warning',
      showCancelButton: true,
      confirmButtonColor: '#f06548',
      cancelButtonColor: '#6c757d',
      confirmButtonText: 'Sí, eliminar',
      cancelButtonText: 'Cancelar'
    }).then(result => {
      if (result.isConfirmed) {
        this.organizacionesTemporales.splice(index, 1);
        this.notify('Organización eliminada', 'info');
      }
    });
  }
  getTipoOrganizacionLabel(tipo) {
    const labels = {
      [src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ASOCIACION]: 'Asociación',
      [src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.CLUB]: 'Club',
      [src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ESCUELA_MUNICIPAL]: 'Escuela Municipal',
      [src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.TipoOrganizacion.ORGANIZACION]: 'Organización'
    };
    return labels[tipo] || tipo;
  }
  get form() {
    return this.editForm.controls;
  }
  get organizacion() {
    return this.organizacionForm.controls;
  }
  get estudiante() {
    return this.estudianteForm.controls;
  }
  get sanction() {
    return this.sanctionForm.controls;
  }
  get searchForm() {
    return this.searchRuatForm.controls;
  }
  disableRuatVerifiedFields() {
    this.editForm.get('tipoContribuyente')?.disable();
    this.editForm.get('nombre')?.disable();
    this.editForm.get('primerApellido')?.disable();
    this.editForm.get('segundoApellido')?.disable();
    // this.editForm.get('fechaNacimiento')?.disable();
    // this.editForm.get('genero')?.disable();
    // this.editForm.get('estadoCivil')?.disable();
    this.editForm.get('tipoDocumento')?.disable();
    this.editForm.get('numeroDocumento')?.disable();
    this.editForm.get('expedido')?.disable();
  }
  getInvalidFields() {
    const invalidFields = [];
    Object.keys(this.editForm.controls).forEach(key => {
      const control = this.editForm.get(key);
      if (control?.invalid) {
        invalidFields.push(key);
      }
    });
    return invalidFields;
  }
  getFieldDisplayName(fieldName) {
    const fieldNames = {
      'tipoContribuyente': 'Tipo de Contribuyente',
      'tipoDocumento': 'Tipo de Documento',
      'numeroDocumento': 'Número de Documento',
      'expedido': 'Expedido',
      'nombre': 'Nombre',
      'primerApellido': 'Primer Apellido',
      'fechaNacimiento': 'Fecha de Nacimiento',
      'telefono': 'Teléfono',
      'email': 'Email',
      'userName': 'Usuario',
      'password': 'Contraseña',
      'cpassword': 'Confirmar Contraseña',
      'registroUnicoDeportivo': 'Registro Único Deportivo (requerido para Deportista Elite)'
    };
    return fieldNames[fieldName] || fieldName;
  }
  saveData() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.submitted = true;
      _this.editForm.enable();
      const formData = _this.editForm.getRawValue();
      const userName = formData.userName.trim() || formData.numeroDocumento.trim();
      const password = formData.password.trim() || formData.numeroDocumento.trim();
      _this.editForm.patchValue({
        userName,
        password,
        cpassword: password
      });
      if (_this.accion === '') {
        if (!_this.verificationCodeSent) {
          _this.notify('Debe verificar el email antes de guardar', 'warning');
          _this.submitted = false;
          return;
        }
        if (_this.showVerificationCode) {
          _this.notify('Debe completar la verificación del email', 'warning');
          _this.submitted = false;
          return;
        }
      }
      if (formData.esDeportistaElite && !formData.registroUnicoDeportivo) {
        _this.notify('Deportista Elite requiere Registro Único Deportivo', 'error');
        _this.setActiveTab('deportivo');
        _this.submitted = false;
        return;
      }
      yield _this.waitForAsyncValidation(_this.editForm);
      if (_this.editForm.invalid) {
        _this.markAllFieldsAsTouched(_this.editForm);
        const invalidFields = _this.getInvalidFields();
        let errorMessage = 'Por favor complete los siguientes campos requeridos:';
        invalidFields.forEach(field => {
          errorMessage += `\n• ${_this.getFieldDisplayName(field)}`;
        });
        _this.notify(errorMessage, 'error');
        _this.setActiveTab('basic');
        _this.submitted = false;
        return;
      }
      let estadoFinal = formData.estadoUsuario;
      if (_this.accion === '') {
        if (formData.verificadoRuat && _this.verificationCodeSent) {
          estadoFinal = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
        } else {
          estadoFinal = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION;
        }
      }
      const fechaVerificacionRuat = formData.fechaVerificacionRuat ? _this.formatDateForBackend(formData.fechaVerificacionRuat) : null;
      const fechaUltimoUsoGratuito = formData.fechaUltimoUsoGratuito ? _this.formatDateForBackend(formData.fechaUltimoUsoGratuito) : null;
      const datos = {
        ...formData,
        fechaVerificacionRuat: fechaVerificacionRuat,
        fechaUltimoUsoGratuito: fechaUltimoUsoGratuito,
        fechaCreacion: _this.row?.fechaCreacion || new Date().toISOString(),
        fechaActualizacion: new Date().toISOString(),
        estadoUsuario: estadoFinal,
        nombreCompleto: `${formData.nombre} ${formData.primerApellido} ${formData.segundoApellido || ''}`.trim(),
        puedeReservarGratis: formData.esDeportistaElite || _this.estudiantesTemporales.length > 0,
        estaSancionado: _this.row?.estaSancionado || false,
        fechaFinSancion: _this.row?.fechaFinSancion,
        motivoSancion: _this.row?.motivoSancion,
        estudianteEnEscuelas: _this.estudiantesTemporales.length > 0 ? _this.estudiantesTemporales : undefined,
        organizacionesRepresentadas: _this.organizacionesTemporales.length > 0 ? _this.organizacionesTemporales : undefined
      };
      try {
        if (_this.editForm.get('uuid')?.value) {
          yield _this.updateData(datos);
        } else {
          if (!datos.verificadoRuat) {
            const ruatResponse = yield _this.registerContribuyenteInRuat(datos);
            if (ruatResponse && ruatResponse.continuarFlujo) {
              datos.codigoContribuyente = ruatResponse.codigoContribuyente;
              datos.verificadoRuat = true;
              datos.estadoRuat = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO;
              datos.fechaVerificacionRuat = new Date().toISOString();
              datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
              const savedContribuyente = yield _this.addData(datos);
              if (savedContribuyente) {
                yield _this.sendCredentialsEmail(savedContribuyente, datos.userName, datos.password);
                let message = 'Contribuyente registrado exitosamente en RUAT y sistema local!';
                if (_this.estudiantesTemporales.length > 0) {
                  message += `\n${_this.estudiantesTemporales.length} estudiante(s) registrado(s)`;
                }
                if (_this.organizacionesTemporales.length > 0) {
                  message += `\n${_this.organizacionesTemporales.length} organización(es) registrada(s)`;
                }
                _this.notify(message, 'success');
                _this.closeModal();
                _this.emitList.emit();
              } else {
                _this.notify('No se pudo registrar al Contribuyente en el sistema local', 'error');
              }
            } else {
              _this.notify('No se pudo registrar el contribuyente en RUAT. Operación cancelada.', 'error');
              _this.submitted = false;
              return;
            }
          } else {
            const savedContribuyente = yield _this.addData(datos);
            if (savedContribuyente) {
              yield _this.sendCredentialsEmail(savedContribuyente, datos.userName, datos.password);
              _this.notify('Contribuyente registrado exitosamente!', 'success');
              _this.closeModal();
              _this.emitList.emit();
            }
          }
        }
      } catch (error) {
        _this.notify('Error al procesar la solicitud: ' + error, 'error');
      } finally {
        _this.submitted = false;
      }
    })();
  }
  registerContribuyenteInRuat(datos) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const codigoAlcaldia = _this2.systemConfigList.find(config => config.clave === src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_8__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT)?.valorTexto || '';
        const codigoUsuario = _this2.systemConfigList.find(config => config.clave === src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_8__.ClaveConfiguracion.CODIGO_USUARIO_RUAT)?.valorTexto || '';
        const ruatData = {
          tipoDocumento: datos.tipoDocumento,
          numeroDocumento: datos.numeroDocumento,
          expedido: datos.expedido,
          nombre: datos.nombre,
          primerApellido: datos.primerApellido,
          segundoApellido: datos.segundoApellido,
          fechaNacimiento: datos.fechaNacimiento ? _this2.formatDateForRuat(datos.fechaNacimiento) : '',
          genero: datos.genero,
          estadoCivil: datos.estadoCivil,
          telefono: datos.telefono,
          email: datos.email,
          direccion: datos.direccion,
          nroNit: datos.nroNit
        };
        _this2.notify('Registrando contribuyente en RUAT...', 'info');
        const ruatResp = yield _this2.registerContribuyente(codigoAlcaldia, codigoUsuario, ruatData);
        if (ruatResp && ruatResp.continuarFlujo) {
          _this2.notify('Contribuyente registrado exitosamente en RUAT', 'success');
          return ruatResp;
        } else {
          throw new Error(ruatResp?.mensaje || 'Error desconocido en RUAT');
        }
      } catch (error) {
        throw error;
      }
    })();
  }
  formatDateForBackend(dateString) {
    if (!dateString) return null;
    return `${dateString}T00:00:00`;
  }
  formatDateForRuat(dateString) {
    if (!dateString) return '';
    const date = new Date(dateString);
    const day = date.getDate().toString().padStart(2, '0');
    const month = (date.getMonth() + 1).toString().padStart(2, '0');
    const year = date.getFullYear();
    return `${day}/${month}/${year}`;
  }
  markAllFieldsAsTouched(form) {
    Object.keys(form.controls).forEach(key => {
      const control = form.get(key);
      control?.markAsTouched();
    });
  }
  waitForAsyncValidation(form) {
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise(resolve => {
        if (form.pending) {
          const subscription = form.statusChanges.subscribe(status => {
            if (status !== 'PENDING') {
              subscription.unsubscribe();
              resolve();
            }
          });
        } else {
          resolve();
        }
      });
    })();
  }
  // Validators
  identityNumberValidator(control) {
    return new Promise(resolve => {
      setTimeout(() => {
        if (this.clientsList && this.accion === '') {
          const itExist = this.clientsList.some(user => user.numeroDocumento === control.value && user.uuid !== this.editForm.get('uuid')?.value);
          resolve(itExist ? {
            itExist: true
          } : null);
        } else {
          resolve(null);
        }
      }, 300);
    });
  }
  emailValidator(control) {
    return new Promise(resolve => {
      setTimeout(() => {
        if (this.clientsList && this.accion === '') {
          const isEmailTaken = this.clientsList.some(user => user.email === control.value && user.uuid !== this.editForm.get('uuid')?.value);
          resolve(isEmailTaken ? {
            emailTaken: true
          } : null);
        } else {
          resolve(null);
        }
      }, 300);
    });
  }
  usernameFormatValidator(control) {
    const value = control.value;
    if (!value) return null;
    const lowercaseValue = value.toLowerCase();
    const validFormat = /^[a-z0-9.]+$/.test(lowercaseValue);
    if (!validFormat) {
      return {
        invalidFormat: true
      };
    }
    if (value !== lowercaseValue) {
      control.setValue(lowercaseValue, {
        emitEvent: false
      });
    }
    return null;
  }
  searchInRuat() {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this3.searchRuatForm.invalid) {
        _this3.notify('Complete todos los campos de búsqueda', 'warning');
        return;
      }
      _this3.searchingRuat = true;
      try {
        const codigoAlcaldia = _this3.systemConfigList.find(config => config.clave === src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_8__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT)?.valorTexto || '';
        const ruatResp = yield _this3.searchContribuyenteInRuat(codigoAlcaldia, _this3.searchRuatForm.value);
        if (ruatResp && ruatResp.continuarFlujo) {
          _this3.ruatDataFound = ruatResp;
          _this3.fillFormFromRuat(ruatResp);
          _this3.notify('Datos encontrados en RUAT', 'success');
          _this3.showRuatSearch = false;
        } else {
          _this3.notify(ruatResp?.mensaje || 'No se encontraron datos en RUAT. Puede continuar con registro manual', 'info');
          _this3.fillFormManually();
          _this3.showRuatSearch = false;
        }
      } catch (error) {
        _this3.notify('Error al consultar RUAT. Puede continuar con registro manual', 'warning');
        _this3.fillFormManually();
        _this3.showRuatSearch = false;
      } finally {
        _this3.searchingRuat = false;
      }
    })();
  }
  fillFormFromRuat(ruatData) {
    const client = ruatData.contribuyente;
    let fechaNacimientoValue = '';
    if (client.fechaNacimiento && client.fechaNacimiento.includes('/')) {
      const [day, month, year] = client.fechaNacimiento.split('/').map(Number);
      const date = new Date(year, month - 1, day);
      fechaNacimientoValue = date.toISOString().split('T')[0];
    }
    const tipoDocumentoCode = this.getTipoDocumentoCode(client.tipoDocumento);
    const expedidoCode = this.getExpedidoCode(client.expedido);
    this.editForm.patchValue({
      codigoContribuyente: ruatData.codigoContribuyente,
      estadoRuat: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO,
      verificadoRuat: true,
      fechaVerificacionRuat: new Date().toISOString().split('T')[0],
      estadoUsuario: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO,
      nombre: client.nombre,
      primerApellido: client.primerApellido,
      segundoApellido: client.segundoApellido,
      fechaNacimiento: fechaNacimientoValue,
      genero: this.getUserGender(client.genero),
      estadoCivil: this.getCivilStatusCode(client.estadoCivil),
      tipoDocumento: tipoDocumentoCode,
      numeroDocumento: client.numeroDocumento,
      expedido: expedidoCode,
      userName: client.numeroDocumento,
      password: client.numeroDocumento,
      cpassword: client.numeroDocumento
    });
    this.disableRuatVerifiedFields();
  }
  getTipoDocumentoCode(description) {
    const found = this.identityTypes.find(item => item.description === description);
    return found ? found.type : 'CI';
  }
  getExpedidoCode(value) {
    const found = this.cityAcronym.find(item => item.value === value);
    return found ? found.id.toString() : '3';
  }
  fillFormManually() {
    this.editForm.patchValue({
      tipoDocumento: this.searchRuatForm.value.tipoDocumento,
      numeroDocumento: this.searchRuatForm.value.numeroDocumento,
      expedido: this.searchRuatForm.value.expedido,
      userName: this.searchRuatForm.value.numeroDocumento,
      password: this.searchRuatForm.value.numeroDocumento,
      cpassword: this.searchRuatForm.value.numeroDocumento,
      verificadoRuat: false,
      estadoRuat: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO,
      estadoUsuario: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION
    });
  }
  skipRuatSearch() {
    this.showRuatSearch = false;
    this.editForm.patchValue({
      verificadoRuat: false,
      estadoRuat: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO,
      estadoUsuario: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION
    });
  }
  verifyInRuat() {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this4.submitted = true;
      const formData = _this4.editForm.getRawValue();
      const ruatData = {
        ...formData
      };
      if (ruatData.fechaNacimiento) {
        const date = new Date(ruatData.fechaNacimiento);
        const day = date.getDate().toString().padStart(2, '0');
        const month = (date.getMonth() + 1).toString().padStart(2, '0');
        const year = date.getFullYear();
        ruatData.fechaNacimiento = `${day}/${month}/${year}`;
      }
      try {
        const codigoAlcaldia = _this4.systemConfigList.find(config => config.clave === 'CODIGO_ALCALDIA_RUAT')?.valorTexto || '';
        const codigoUsuario = _this4.systemConfigList.find(config => config.clave === 'CODIGO_USUARIO_RUAT')?.valorTexto || '';
        const ruatResp = yield _this4.registerContribuyente(codigoAlcaldia, codigoUsuario, ruatData);
        if (ruatResp && ruatResp.continuarFlujo) {
          let nuevoEstado = _this4.editForm.get('estadoUsuario')?.value;
          if (nuevoEstado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION) {
            nuevoEstado = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
          }
          _this4.editForm.patchValue({
            codigoContribuyente: ruatResp.codigoContribuyente,
            verificadoRuat: true,
            estadoRuat: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoRuat.ACTIVO,
            fechaVerificacionRuat: new Date(),
            estadoUsuario: nuevoEstado
          });
          yield _this4.updateData(_this4.editForm.getRawValue());
          _this4.notify('Verificación RUAT exitosa', 'success');
        } else {
          _this4.notify(ruatResp?.mensaje || 'No se pudo verificar en RUAT', 'error');
        }
      } catch (error) {
        _this4.notify('Error al verificar en RUAT', 'error');
      } finally {
        _this4.submitted = false;
      }
    })();
  }
  sendVerificationEmail() {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const email = _this5.editForm.get('email')?.value;
      if (!email) {
        _this5.notify('Debe ingresar un email válido', 'warning');
        return;
      }
      const code = _this5.generateCode();
      _this5.editForm.patchValue({
        verificationCode: code
      });
      try {
        yield _this5.sendEmailCode(email, code);
        _this5.verificationCodeSent = true;
        _this5.showVerificationCode = true;
        _this5.notify('Código de verificación enviado al email', 'success');
      } catch (error) {
        _this5.notify('Error al enviar el código de verificación', 'error');
      }
    })();
  }
  verifyEmailCode() {
    const enteredCode = this.verificationForm.get('code')?.value;
    const storedCode = this.editForm.get('verificationCode')?.value;
    if (enteredCode === storedCode) {
      const isVerifiedRuat = this.editForm.get('verificadoRuat')?.value;
      const newStatus = isVerifiedRuat ? src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO : src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION;
      this.editForm.patchValue({
        estadoUsuario: newStatus
      });
      this.showVerificationCode = false;
      this.verificationForm.reset();
      if (isVerifiedRuat) {
        this.notify('Email verificado correctamente. Usuario ACTIVO', 'success');
      } else {
        this.notify('Email verificado. Pendiente verificación RUAT', 'info');
      }
    } else {
      this.notify('Código incorrecto', 'error');
      this.verificationForm.patchValue({
        code: ''
      });
    }
  }
  applySanction() {
    var _this6 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this6.submitted = true;
      const sanctionData = _this6.sanctionForm.getRawValue();
      yield _this6.waitForAsyncValidation(_this6.sanctionForm);
      if (_this6.sanctionForm.invalid) {
        _this6.notify('Por favor complete todos los campos de sanción', 'error');
        _this6.submitted = false;
        _this6.markAllFieldsAsTouched(_this6.sanctionForm);
        return;
      }
      const fechaFinSancion = sanctionData.fechaFinSancion ? new Date(sanctionData.fechaFinSancion + 'T23:59:59') : undefined;
      const datos = {
        ..._this6.row,
        userName: _this6.row.userName,
        password: _this6.row.password,
        estaSancionado: true,
        estadoUsuario: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.SANCIONADO,
        fechaActualizacion: new Date(),
        fechaFinSancion: fechaFinSancion,
        motivoSancion: sanctionData.motivoSancion
      };
      try {
        yield _this6.updateData(datos);
        _this6.notify('Sanción aplicada correctamente', 'success');
        _this6.closeModal();
        _this6.emitList.emit();
      } catch (error) {
        _this6.notify('Error al aplicar la sanción: ' + error, 'error');
      } finally {
        _this6.submitted = false;
      }
    })();
  }
  removeSanction() {
    var _this7 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const result = yield sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
        title: '¿Levantar Sanción?',
        html: `
        <div class="text-start">
          <p><strong>Contribuyente:</strong> ${_this7.row.nombreCompleto}</p>
          <p><strong>Motivo actual:</strong> ${_this7.row.motivoSancion}</p>
          <p><strong>Fecha fin:</strong> ${_this7.row?.fechaFinSancion}</p>
          <hr>
          <p class="text-muted">
            <i class="ri-information-line"></i> 
            El usuario quedará en estado: 
            <strong>${_this7.row.verificadoRuat ? 'ACTIVO' : 'PENDIENTE VERIFICACIÓN'}</strong>
          </p>
        </div>
      `,
        icon: 'question',
        showCancelButton: true,
        confirmButtonColor: '#0ab39c',
        cancelButtonColor: '#6c757d',
        confirmButtonText: '<i class="ri-check-line me-1"></i> Sí, Levantar',
        cancelButtonText: '<i class="ri-close-line me-1"></i> Cancelar'
      });
      if (!result.isConfirmed) return;
      _this7.submitted = true;
      try {
        let nuevoEstado = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
        if (!_this7.row.verificadoRuat) {
          nuevoEstado = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION;
        }
        if (_this7.row.estadoUsuario === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.BLOQUEADO) {
          nuevoEstado = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.BLOQUEADO;
        }
        const datos = {
          ..._this7.row,
          userName: _this7.row.userName,
          password: _this7.row.password,
          estaSancionado: false,
          fechaFinSancion: undefined,
          motivoSancion: '',
          estadoUsuario: nuevoEstado,
          fechaActualizacion: new Date()
        };
        yield _this7.updateData(datos);
        let mensaje = 'Sanción levantada correctamente';
        let icon = 'success';
        if (nuevoEstado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION) {
          mensaje += '<br><small class="text-muted">El usuario debe completar verificación RUAT</small>';
          icon = 'info';
        } else if (nuevoEstado === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.BLOQUEADO) {
          mensaje += '<br><small class="text-muted">El usuario permanece bloqueado</small>';
          icon = 'warning';
        } else {
          mensaje += '<br><small class="text-success">Usuario ACTIVO</small>';
        }
        yield sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Sanción Levantada',
          html: mensaje,
          icon: icon,
          confirmButtonColor: '#0ab39c'
        });
        _this7.closeModal();
        _this7.emitList.emit();
      } catch (error) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          title: 'Error',
          text: 'No se pudo levantar la sanción. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonColor: '#f06548'
        });
      } finally {
        _this7.submitted = false;
      }
    })();
  }
  blockUser() {
    var _this8 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const datos = {
        ..._this8.row
      };
      datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.BLOQUEADO;
      datos.fechaActualizacion = new Date();
      yield _this8.updateData(datos);
    })();
  }
  unblockUser() {
    var _this9 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const datos = {
        ..._this9.row
      };
      if (datos.estaSancionado) {
        datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.SANCIONADO;
      } else if (!datos.verificadoRuat) {
        datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION;
      } else {
        datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
      }
      datos.fechaActualizacion = new Date();
      yield _this9.updateData(datos);
    })();
  }
  inactivateUser() {
    var _this0 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const datos = {
        ..._this0.row
      };
      datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.INACTIVO;
      datos.fechaActualizacion = new Date();
      yield _this0.updateData(datos);
    })();
  }
  activateUser() {
    var _this1 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const datos = {
        ..._this1.row
      };
      if (!datos.verificadoRuat) {
        _this1.notify('No se puede activar. El usuario debe estar verificado en RUAT', 'warning');
        return;
      }
      if (datos.estaSancionado) {
        _this1.notify('No se puede activar. El usuario tiene una sanción activa', 'warning');
        return;
      }
      datos.estadoUsuario = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO;
      datos.fechaActualizacion = new Date();
      yield _this1.updateData(datos);
    })();
  }
  getOrganizations() {
    this.organizationService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.organizationsList = data.payload;
        }
      }
    });
  }
  getEstudiantes() {
    this.estudianteEscuelaService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.estudiantesList = data.payload;
        }
      }
    });
  }
  getConfigsSystem() {
    this.systemConfigsService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.systemConfigList = data.payload;
          // this.authRuat()
        }
      }
    });
  }
  addData(datos) {
    return new Promise((resolve, reject) => {
      this.contribuyentesService.save(datos).subscribe({
        next: data => {
          this.submitted = false;
          if (data['status'] === 'OK') {
            resolve(data.payload);
          } else {
            this.notify(data.payload, 'error');
            resolve(null);
          }
        },
        error: error => {
          this.submitted = false;
          reject(error);
          this.notify('No se pudo guardar los datos! ' + error, 'error');
        }
      });
    });
  }
  updateData(datos) {
    return new Promise((resolve, reject) => {
      this.contribuyentesService.update(datos).subscribe({
        next: data => {
          this.submitted = false;
          this.notify('Datos actualizados exitosamente!', 'success');
          this.closeModal();
          this.emitList.emit();
          resolve(data);
        },
        error: error => {
          this.submitted = false;
          this.notify('No se pudo actualizar los datos! ' + error, 'error');
          reject(error);
        }
      });
    });
  }
  deleteData(uuid) {
    this.contribuyentesService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data.status == 'OK') {
          this.closeModal();
          this.emitList.emit();
          this.notify(data.payload, 'info');
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  searchContribuyenteInRuat(codigoAlcaldia, data) {
    var _this10 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise((resolve, reject) => {
        _this10.ruatService.getContribuyentePorCi(codigoAlcaldia, data.numeroDocumento, data.tipoDocumento, data.expedido).subscribe({
          next: resp => {
            if (resp['status'] === 'OK') {
              resolve(resp.payload);
            } else {
              resolve(null);
            }
          },
          error: error => {
            reject(error);
          }
        });
      });
    })();
  }
  registerContribuyente(codigoAlcaldia, codigoUsuario, data) {
    var _this11 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return new Promise((resolve, reject) => {
        _this11.ruatService.registerContribuyente(codigoAlcaldia, codigoUsuario, data).subscribe({
          next: resp => {
            if (resp['status'] === 'OK') {
              resolve(resp.payload);
            } else {
              _this11.notify(resp.payload, 'error');
              resolve(null);
            }
          },
          error: error => {
            reject(error);
          }
        });
      });
    })();
  }
  sendCredentialsEmail(userData, username, password) {
    const email = userData.email;
    const name = userData.nombre;
    return emailjs_com__WEBPACK_IMPORTED_MODULE_2__["default"].send(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.idService, src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.idTemplate, {
      from_name: "GAMQ-DEPORTES",
      to_name: name,
      message: `USUARIO: ${username}, CONTRASEÑA: ${password}`,
      reply_to: email
    }, src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.publicKey).then(response => {
      this.notify("Un email fue enviado a " + email + " con su USUARIO y CONTRASEÑA", 'success');
    }).catch(error => {
      this.notify("No se pudo enviar el email con las credenciales", 'warning');
    });
  }
  sendEmailCode(email, code) {
    return emailjs_com__WEBPACK_IMPORTED_MODULE_2__["default"].send(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.idService, src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.idTemplate, {
      from_name: "GAMQ-DEPORTES",
      to_name: this.editForm.get('nombre')?.value || 'Usuario',
      message: `Su código de verificación es: ${code}`,
      reply_to: email
    }, src_environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment.EmailJS.publicKey).then(() => {
      // Success
    }).catch(error => {
      throw error;
    });
  }
  generateCode() {
    return Math.floor(1000 + Math.random() * 9000).toString();
  }
  getDepartmentName(id) {
    const found = this.cityAcronym.find(item => '' + item.id === id);
    return found ? found.value : id;
  }
  getCivilStatus(acronym) {
    const found = this.civilStatus.find(item => item.type === acronym);
    return found ? found.description : acronym;
  }
  getCivilStatusCode(description) {
    const found = this.civilStatus.find(item => item.description === description);
    return found ? found.type : '';
  }
  getUserGender(description) {
    const found = this.userSex.find(item => item.description === description);
    return found ? found.id : '';
  }
  getGenderText(genero) {
    return genero === 'F' ? 'FEMENINO' : genero === 'M' ? 'MASCULINO' : 'NO ESPECIFICADO';
  }
  getTipoContribuyenteText(tipo) {
    return tipo === 'NA' ? 'CONTRIBUYENTE NATURAL' : 'CONTRIBUYENTE JURÍDICO';
  }
  getTipoDocumentoDescription(code) {
    const found = this.identityTypes.find(item => item.type === code);
    return found ? found.description : code;
  }
  getExpedidoDescription(id) {
    const found = this.cityAcronym.find(item => item.id.toString() === id);
    return found ? found.value : id;
  }
  calculateAge(fechaNacimiento) {
    if (!fechaNacimiento) return 0;
    const birthDate = new Date(fechaNacimiento);
    const today = new Date();
    let age = today.getFullYear() - birthDate.getFullYear();
    const monthDiff = today.getMonth() - birthDate.getMonth();
    if (monthDiff < 0 || monthDiff === 0 && today.getDate() < birthDate.getDate()) {
      age--;
    }
    return age;
  }
  getEstadoUsuarioText(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.ACTIVO:
        return 'ACTIVO';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.INACTIVO:
        return 'INACTIVO';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.PENDIENTE_VERIFICACION:
        return 'PENDIENTE VERIFICACIÓN';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.SANCIONADO:
        return 'SANCIONADO';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoUsuario.BLOQUEADO:
        return 'BLOQUEADO';
      default:
        return estado;
    }
  }
  togglePasswordField() {
    this.passwordField = !this.passwordField;
  }
  toggleConfirmField() {
    this.confirmField = !this.confirmField;
  }
  closeModal() {
    this.editForm.enable();
    this.sanctionForm.reset();
    this.estudianteForm.reset();
    this.organizacionForm.reset();
    this.modalService.dismissAll();
    this.editForm.reset();
    this.searchRuatForm.reset();
    this.verificationForm.reset();
    this.showRuatSearch = false;
    this.showVerificationCode = false;
    this.verificationCodeSent = false;
    this.ruatDataFound = null;
    this.estudiantesTemporales = [];
    this.organizacionesTemporales = [];
    this.showEstudianteForm = false;
    this.showOrganizacionForm = false;
    this.activeTab = 'basic';
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      text: message,
      icon: type,
      timer: 5000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function ModalTaxpayerComponent_Factory(t) {
      return new (t || ModalTaxpayerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_16__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_10__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_11__.ConfiguracionSistemaService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_12__.ContribuyentesService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_13__.OrganizacionService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_14__.EstudianteEscuelaService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineComponent"]({
      type: ModalTaxpayerComponent,
      selectors: [["app-modal-taxpayer"]],
      inputs: {
        accion: "accion",
        row: "row",
        clientsList: "clientsList",
        userPermissions: "userPermissions"
      },
      outputs: {
        emitList: "emitList"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵStandaloneFeature"]],
      decls: 3,
      vars: 2,
      consts: [["actionModel", ""], ["class", "modal-content", 4, "ngIf", "ngIfElse"], [1, "modal-content"], ["id", "elmLoader", "class", "text-center py-3", 4, "ngIf"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["class", "modal-body", 4, "ngIf"], ["class", "needs-validation", "name", "event-form", "id", "form-event", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["class", "needs-validation", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["id", "elmLoader", 1, "text-center", "py-3"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-account-circle-line", "me-2"], [1, "ri-account-circle-fill", "me-2"], [1, "ri-eye-line", "me-2"], [1, "ri-forbid-line", "me-2"], [1, "modal-body"], [1, "alert", "alert-info"], [1, "ri-information-line", "me-2"], [1, "needs-validation", 3, "formGroup"], [1, "row"], [1, "col-md-4"], ["for", "search-tipoDocumento", 1, "form-label"], [1, "text-danger"], ["id", "search-tipoDocumento", "formControlName", "tipoDocumento", 1, "form-select"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], ["for", "search-numeroDocumento", 1, "form-label"], ["type", "text", "id", "search-numeroDocumento", "placeholder", "Documento de Identificaci\u00F3n", "formControlName", "numeroDocumento", 1, "form-control"], [1, "form-text"], ["for", "search-expedido", 1, "form-label"], ["id", "search-expedido", "formControlName", "expedido", 1, "form-select"], [1, "d-flex", "gap-2", "justify-content-end", "mt-3"], ["type", "button", 1, "btn", "btn-light", 3, "click", "disabled"], ["type", "button", 1, "btn", "btn-primary", 3, "click", "disabled"], [1, "ri-search-line", "me-1"], [3, "value"], ["name", "event-form", "id", "form-event", 1, "needs-validation", 3, "ngSubmit", "formGroup"], [1, "modal-footer"], [1, "hstack", "gap-2", "justify-content-end", "w-100"], ["class", "btn-group", 4, "ngIf"], ["type", "submit", "class", "btn btn-success", "id", "add-btn", 3, "disabled", 4, "ngIf"], ["role", "tablist", 1, "nav", "nav-tabs", "nav-justified", "mb-3"], [1, "nav-item"], ["role", "tab", 1, "nav-link", 3, "click", "ngClass"], [1, "ri-user-line", "me-1"], [1, "ri-parent-line", "me-1"], ["class", "badge bg-primary ms-1", 4, "ngIf"], [1, "ri-building-4-line", "me-1"], ["class", "badge bg-success ms-1", 4, "ngIf"], [1, "ri-trophy-line", "me-1"], ["class", "alert alert-danger", 4, "ngIf"], [1, "tab-content"], [4, "ngIf"], [1, "d-none"], ["type", "text", "formControlName", "userName"], ["type", "password", "formControlName", "password"], ["type", "password", "formControlName", "cpassword"], ["type", "text", "formControlName", "verificationCode"], ["type", "text", "formControlName", "estadoUsuario"], ["type", "text", "formControlName", "estadoRuat"], ["type", "checkbox", "formControlName", "verificadoRuat"], ["type", "date", "formControlName", "fechaVerificacionRuat"], ["type", "checkbox", "formControlName", "puedeReservarGratis"], ["type", "date", "formControlName", "fechaUltimoUsoGratuito"], [1, "badge", "bg-primary", "ms-1"], [1, "badge", "bg-success", "ms-1"], [1, "alert", "alert-danger"], [1, "alert-heading"], [1, "ri-error-warning-line", "me-2"], [1, "mb-0"], ["class", "alert alert-success", 4, "ngIf"], [1, "row", "g-3"], [1, "col-md-3"], ["for", "tipoContribuyente", 1, "form-label", "mb-0"], ["id", "tipoContribuyente", "formControlName", "tipoContribuyente", 1, "form-select", 3, "ngClass"], ["value", "NA"], ["value", "JU"], ["for", "tipoDocumento", 1, "form-label", "mb-0"], ["id", "tipoDocumento", "formControlName", "tipoDocumento", 1, "form-select", 3, "ngClass"], ["for", "numeroDocumento", 1, "form-label", "mb-0"], ["type", "text", "id", "numeroDocumento", "placeholder", "Documento", "formControlName", "numeroDocumento", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "expedido", 1, "form-label", "mb-0"], ["id", "expedido", "formControlName", "expedido", 1, "form-select", 3, "ngClass"], [1, "col-12"], [1, "my-2"], ["for", "nombre", 1, "form-label", "mb-0"], ["type", "text", "id", "nombre", "placeholder", "Nombre", "formControlName", "nombre", 1, "form-control", 3, "ngClass"], ["for", "primerApellido", 1, "form-label", "mb-0"], ["type", "text", "id", "primerApellido", "placeholder", "Primer Apellido", "formControlName", "primerApellido", 1, "form-control", 3, "ngClass"], ["for", "segundoApellido", 1, "form-label", "mb-0"], ["type", "text", "id", "segundoApellido", "placeholder", "Segundo Apellido", "formControlName", "segundoApellido", 1, "form-control"], ["for", "fechaNacimiento", 1, "form-label", "mb-0"], ["type", "date", "id", "fechaNacimiento", "formControlName", "fechaNacimiento", 1, "form-control", 3, "ngClass"], ["for", "genero", 1, "form-label", "mb-0"], ["id", "genero", "formControlName", "genero", 1, "form-select"], ["for", "estadoCivil", 1, "form-label", "mb-0"], ["id", "estadoCivil", "formControlName", "estadoCivil", 1, "form-select"], [1, "col-md-6"], ["for", "nroNit", 1, "form-label", "mb-0"], ["type", "text", "id", "nroNit", "placeholder", "NIT", "formControlName", "nroNit", 1, "form-control"], ["for", "telefono", 1, "form-label", "mb-0"], ["type", "text", "id", "telefono", "placeholder", "Tel\u00E9fono", "formControlName", "telefono", 1, "form-control", 3, "ngClass"], ["for", "email", 1, "form-label", "mb-0"], [1, "text-muted", "ms-2"], [1, "input-group"], ["type", "email", "id", "email", "placeholder", "Email", "formControlName", "email", 1, "form-control", 3, "ngClass"], ["class", "btn btn-outline-secondary", "type", "button", 3, "click", 4, "ngIf"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["class", "col-12", 4, "ngIf"], ["for", "direccion", 1, "form-label", "mb-0"], ["id", "direccion", "placeholder", "Direcci\u00F3n", "formControlName", "direccion", "rows", "2", 1, "form-control"], ["for", "observacionesMunicipales", 1, "form-label", "mb-0"], ["id", "observacionesMunicipales", "placeholder", "Observaciones", "formControlName", "observacionesMunicipales", "rows", "2", 1, "form-control"], [1, "alert", "alert-success"], [1, "ri-checkbox-circle-line", "me-2"], [1, "ms-2"], [1, "invalid-feedback"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click"], [1, "ri-mail-send-line"], [1, "invalid-feedback", "d-block"], [1, "ri-mail-line", "me-2"], [1, "mb-2"], [3, "ngSubmit", "formGroup"], ["type", "text", "placeholder", "C\u00F3digo de 4 d\u00EDgitos", "formControlName", "code", "maxlength", "4", 1, "form-control"], ["type", "submit", 1, "btn", "btn-primary", 3, "disabled"], [1, "ri-check-line"], ["type", "button", 1, "btn", "btn-link", "btn-sm", "mt-2", 3, "click"], [1, "mb-3"], ["type", "button", "class", "btn btn-primary btn-sm", 3, "click", 4, "ngIf"], ["class", "card border mb-3", 4, "ngIf"], ["class", "text-center text-muted py-4", 4, "ngIf"], ["type", "button", 1, "btn", "btn-primary", "btn-sm", 3, "click"], [1, "ri-add-line", "me-1"], [1, "card", "border", "mb-3"], [1, "card-body"], [1, "card-title"], [3, "formGroup"], [1, "form-label"], ["type", "text", "formControlName", "nombreCompleto", "placeholder", "Nombre completo del estudiante", 1, "form-control", 3, "ngClass"], ["type", "text", "formControlName", "matricula", "placeholder", "N\u00FAmero de matr\u00EDcula", 1, "form-control", 3, "ngClass"], ["type", "date", "formControlName", "fechaNacimiento", 1, "form-control", 3, "ngClass"], ["formControlName", "genero", 1, "form-select"], ["value", ""], ["type", "text", "formControlName", "numeroDocumento", "placeholder", "Opcional", 1, "form-control"], ["type", "text", "formControlName", "telefono", "placeholder", "Opcional", 1, "form-control"], ["type", "email", "formControlName", "email", "placeholder", "Opcional", 1, "form-control"], ["type", "date", "formControlName", "fechaInscripcion", 1, "form-control"], [1, "form-check", "mt-4"], ["type", "checkbox", "id", "estudianteActivo", "formControlName", "activo", 1, "form-check-input"], ["for", "estudianteActivo", 1, "form-check-label"], [1, "mt-3", "d-flex", "gap-2"], ["type", "button", 1, "btn", "btn-success", "btn-sm", 3, "click"], [1, "ri-save-line", "me-1"], ["type", "button", 1, "btn", "btn-light", "btn-sm", 3, "click"], [1, "table-responsive"], [1, "table", "table-sm", "table-bordered"], [1, "table-light"], [2, "width", "100px"], [4, "ngFor", "ngForOf"], [1, "badge", 3, "ngClass"], ["type", "button", "title", "Editar", 1, "btn", "btn-sm", "btn-soft-primary", "me-1", 3, "click"], [1, "ri-edit-line"], ["type", "button", "title", "Eliminar", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "ri-delete-bin-line"], [1, "text-center", "text-muted", "py-4"], [1, "ri-user-line", "fs-1"], ["type", "button", "class", "btn btn-success btn-sm", 3, "click", 4, "ngIf"], ["type", "text", "formControlName", "nombre", "placeholder", "Nombre de la organizaci\u00F3n", 1, "form-control", 3, "ngClass"], ["formControlName", "tipoOrganizacion", 1, "form-select", 3, "ngClass"], ["type", "text", "formControlName", "personeriaJuridica", "placeholder", "N\u00FAmero de personer\u00EDa", 1, "form-control"], ["type", "text", "formControlName", "nroNit", "placeholder", "NIT", 1, "form-control"], ["type", "text", "formControlName", "telefono", "placeholder", "Tel\u00E9fono", 1, "form-control"], ["type", "email", "formControlName", "email", "placeholder", "Email", 1, "form-control"], ["class", "col-md-4", 4, "ngIf"], ["formControlName", "direccion", "rows", "2", "placeholder", "Direcci\u00F3n de la organizaci\u00F3n", 1, "form-control"], [1, "form-check", "mt-3"], ["type", "checkbox", "id", "orgActivo", "formControlName", "activo", 1, "form-check-input"], ["for", "orgActivo", 1, "form-check-label"], ["type", "checkbox", "id", "reservasGratis", "formControlName", "permiteReservasGratuitas", 1, "form-check-input"], ["for", "reservasGratis", 1, "form-check-label"], [1, "alert", "alert-warning"], ["type", "text", "formControlName", "codigoEscuela", "placeholder", "C\u00F3digo \u00FAnico", 1, "form-control", 3, "ngClass"], ["type", "text", "formControlName", "disciplina", "placeholder", "F\u00FAtbol, B\u00E1squet, etc.", 1, "form-control", 3, "ngClass"], ["type", "text", "formControlName", "entrenador", "placeholder", "Nombre del entrenador", 1, "form-control"], ["type", "number", "formControlName", "tarifaMensual", "placeholder", "0.00", "min", "0", "step", "0.01", 1, "form-control"], ["type", "checkbox", "id", "requierePago", "formControlName", "requierePagoMensualidad", 1, "form-check-input"], ["for", "requierePago", 1, "form-check-label"], [1, "badge", "bg-primary"], [1, "ri-building-4-line", "fs-1"], [1, "card", "border"], [1, "form-check", "form-switch"], ["type", "checkbox", "id", "esDeportistaElite", "formControlName", "esDeportistaElite", 1, "form-check-input"], ["for", "esDeportistaElite", 1, "form-check-label", "fw-semibold"], [1, "ri-trophy-line", "text-warning", "me-1"], [1, "text-muted", "small", "mb-0", "mt-2"], [1, "card", "bg-light", "border-0"], [1, "badge", "ms-2", 3, "ngClass"], ["type", "text", "formControlName", "registroUnicoDeportivo", "placeholder", "N\u00FAmero de registro \u00FAnico deportivo", 1, "form-control", 3, "ngClass"], [1, "col-md-8"], [1, "text-muted", "mb-0"], [1, "text-muted", "small", "mb-0"], [1, "col-md-4", "text-end"], [1, "badge", "mb-2", 3, "ngClass"], ["class", "mt-1", 4, "ngIf"], [1, "text-primary"], [1, "ri-user-line", "me-2"], [1, "row", "mb-2"], [1, "col-4"], [1, "text-muted", "d-block"], [1, "fw-medium"], [1, "fw-medium", "mb-0"], ["class", "text-muted small", 4, "ngIf"], [1, "ri-contacts-line", "me-2"], [1, "col-6"], [1, "ri-phone-line", "me-2", "text-muted"], [1, "ri-mail-line", "me-2", "text-muted"], [1, "ri-map-pin-line", "me-2", "text-muted"], [1, "ri-trophy-line", "me-2"], [1, "col"], [1, "card", "h-100", "border-0"], [1, "card-body", "text-center"], [1, "ri-award-line", "fs-1", "text-warning"], [1, "ri-gift-line", "fs-1", "text-success"], [1, "ri-parent-line", "me-2"], [1, "ri-building-4-line", "me-2"], [1, "mt-1"], [1, "badge", "bg-info"], [1, "ri-checkbox-circle-line", "me-1"], [1, "text-muted", "small"], [1, "table", "table-sm", "table-hover"], [1, "text-muted", "text-center", "mt-2"], ["class", "small", 4, "ngIf"], ["class", "small text-muted", 4, "ngIf"], [1, "small"], ["class", "badge bg-info me-1", 4, "ngIf"], ["class", "badge bg-success", 4, "ngIf"], [1, "small", "text-muted"], [1, "badge", "bg-info", "me-1"], [1, "badge", "bg-success"], [1, "text-danger", "mb-3"], [1, "ri-alert-line", "me-2"], [1, "mb-1"], [1, "badge", "bg-danger"], [1, "text-primary", "mb-3"], [1, "ri-file-text-line", "me-2"], [1, "card", "border-0", "bg-light"], [1, "btn-group"], ["type", "button", "class", "btn btn-outline-secondary", 3, "disabled", "click", 4, "ngIf"], ["type", "button", 1, "btn", "btn-outline-secondary", 3, "click", "disabled"], [1, "ri-arrow-left-line"], [1, "ri-arrow-right-line"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-success", 3, "disabled"], [1, "spinner-border", "spinner-border-sm", "me-2"], [1, "needs-validation", 3, "ngSubmit", "formGroup"], ["class", "alert alert-warning", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["type", "button", "class", "btn btn-success", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", "class", "btn btn-danger", 3, "disabled", 4, "ngIf"], [1, "mb-0", "text-muted", "small"], ["for", "fechaFinSancion", 1, "form-label", "mb-0"], ["type", "date", "id", "fechaFinSancion", "formControlName", "fechaFinSancion", 1, "form-control", 3, "min", "ngClass"], [1, "col-12", "mt-3"], ["for", "motivoSancion", 1, "form-label", "mb-0"], ["id", "motivoSancion", "placeholder", "Describa el motivo de la sanci\u00F3n...", "formControlName", "motivoSancion", "rows", "4", 1, "form-control", 3, "ngClass"], ["type", "button", 1, "btn", "btn-success", 3, "click", "disabled"], [1, "ri-check-line", "me-1"], ["type", "submit", 1, "btn", "btn-danger", 3, "disabled"], [1, "ri-forbid-line", "me-1"], ["class", "modal-content", 4, "ngIf"], [1, "modal-header"], ["type", "button", 1, "btn-close", 3, "click", "disabled"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], ["class", "mt-4 pt-2 fs-15 mx-4 mx-sm-5", 4, "ngIf"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], [1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click", "disabled"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "class", "btn w-sm btn-danger", 3, "disabled", "click", 4, "ngIf"], ["type", "button", "class", "btn w-sm btn-success", 3, "disabled", "click", 4, "ngIf"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "text-muted", "mx-4", "mb-2"], [1, "alert", "alert-info", "text-start", "mt-3"], ["type", "button", 1, "btn", "w-sm", "btn-danger", 3, "click", "disabled"], ["type", "button", 1, "btn", "w-sm", "btn-success", 3, "click", "disabled"]],
      template: function ModalTaxpayerComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](0, ModalTaxpayerComponent_div_0_Template, 11, 9, "div", 1)(1, ModalTaxpayerComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          const actionModel_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵreference"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.accion !== "block" && ctx.accion !== "unblock" && ctx.accion !== "removeSanction")("ngIfElse", actionModel_r38);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.DatePipe, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_16__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_16__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_16__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.ReactiveFormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.NgbDatepickerModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_19__.TranslateModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 56311:
/*!******************************************************************************!*\
  !*** ./src/app/pages/modules/booking-one-time/booking-one-time.component.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingOneTimeComponent: () => (/* binding */ BookingOneTimeComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reports/ticket/ticket.component */ 89291);
/* harmony import */ var _modals_modal_booking_one_time_modal_booking_one_time_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modals/modal-booking-one-time/modal-booking-one-time.component */ 85840);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/pagination.service */ 54384);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_api_reserva_puntual_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/reserva-puntual.service */ 32451);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);























const _c0 = (a0, a1, a2, a3, a4, a5) => ({
  pageNumber: a0,
  pageSize: a1,
  totalElements: a2,
  totalPages: a3,
  first: a4,
  last: a5
});
const _c1 = (a0, a1, a2, a3, a4) => ({
  show: a0,
  edit: a1,
  validate: a2,
  consult: a3,
  records: true,
  close: a4
});
const _c2 = (a0, a1, a2, a3, a4, a5) => ({
  "badge bg-warning-subtle text-warning": a0,
  "badge bg-success-subtle text-success": a1,
  "badge bg-primary-subtle text-primary": a2,
  "badge bg-danger-subtle text-danger": a3,
  "badge bg-secondary-subtle text-secondary": a4,
  "badge bg-light-subtle text-dark": a5
});
const _c3 = (a0, a1, a2, a3) => ({
  "alert-success": a0,
  "alert-warning": a1,
  "alert-danger": a2,
  "alert-info": a3
});
const _c4 = (a0, a1, a2, a3) => ({
  "ri-checkbox-circle-fill": a0,
  "ri-error-warning-fill": a1,
  "ri-close-circle-fill": a2,
  "ri-information-fill": a3
});
function BookingOneTimeComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 48)(1, "h4", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, "Su cuenta no se encuentra activa, solo puede ver el historial de sus reservas y no realizar reservas nuevas");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "p", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4, " para reactivar su cuenta comuniquese con el administrador");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
}
function BookingOneTimeComponent_option_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", option_r3.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", option_r3.label, " ");
  }
}
function BookingOneTimeComponent_option_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", option_r4.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", option_r4.label, " ");
  }
}
function BookingOneTimeComponent_option_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const category_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", category_r5.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", category_r5.nombre, " ");
  }
}
function BookingOneTimeComponent_i_61_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "i", 52);
  }
}
function BookingOneTimeComponent_i_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "i", 53);
  }
}
function BookingOneTimeComponent_For_71_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "li", 44)(1, "div", 54)(2, "input", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeComponent_For_71_Template_input_ngModelChange_2_listener($event) {
      const column_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r6).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](column_r7.visible, $event) || (column_r7.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "label", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("id", "formCheck" + column_r7.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", column_r7.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("for", "formCheck" + column_r7.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", column_r7.name, " ");
  }
}
function BookingOneTimeComponent_ng_template_74_div_12_div_39_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 96)(1, "div", 99)(2, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](3, "Observaciones:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const result_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.observaciones);
  }
}
function BookingOneTimeComponent_ng_template_74_div_12_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 92)(1, "h6", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](2, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](3, " Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 95)(5, "div", 78)(6, "div", 79)(7, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](8, "Fecha de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](11, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](12, "div", 79)(13, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](14, "Monto Pagado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](15, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](17, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](18, "div", 96)(19, "div", 79)(20, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](21, "Forma de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](22, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](24, "div", 79)(25, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26, "Entidad Financiera:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](27, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](29, "div", 96)(30, "div", 79)(31, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](32, "Folio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](33, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](34);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](35, "div", 79)(36, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](37, "Estado Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](38, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](40, BookingOneTimeComponent_ng_template_74_div_12_div_39_div_40_Template, 6, 1, "div", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const result_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind2"](11, 7, result_r10.pagoData == null ? null : result_r10.pagoData.fechaPago, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind2"](17, 10, result_r10.pagoData == null ? null : result_r10.pagoData.montoPagado, "Bs. "));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.formaPago);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.entidadFinanciera);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.folio);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.pagoData == null ? null : result_r10.pagoData.estadoPago) || "PAGADO");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.pagoData == null ? null : result_r10.pagoData.observaciones);
  }
}
function BookingOneTimeComponent_ng_template_74_div_12_div_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](1, "i", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, " El pago ha sido registrado exitosamente y la reserva ha sido actualizada. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function BookingOneTimeComponent_ng_template_74_div_12_div_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 102)(1, "div", 103)(2, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](3, "i", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](5, "No se encontraron pagos registrados para esta tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
  }
}
function BookingOneTimeComponent_ng_template_74_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 74)(1, "div", 75)(2, "h6", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](3, "i", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4, " Informaci\u00F3n de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](5, "div", 78)(6, "div", 79)(7, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](8, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 79)(12, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](13, "Campo Deportivo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](14, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](16, "div", 81)(17, "div", 79)(18, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](19, "N\u00FAmero de Tasa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](20, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](22, "div", 79)(23, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](24, "Estado Reserva:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](25, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](27, "div", 81)(28, "div", 79)(29, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](30, "Fecha de Uso:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](31, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](32);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](33, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](34, "div", 79)(35, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](36, "Horario:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](37, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](39, BookingOneTimeComponent_ng_template_74_div_12_div_39_Template, 41, 13, "div", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](40, "div", 84)(41, "h6", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](42, "i", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](43, " Respuesta del Sistema ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](44, "div", 87)(45, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](46, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](47, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](48);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](49, BookingOneTimeComponent_ng_template_74_div_12_div_49_Template, 3, 0, "div", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](50, BookingOneTimeComponent_ng_template_74_div_12_div_50_Template, 6, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const result_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.complejoDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.complejoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.numeroTasa) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction6"](17, _c2, (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "PENDIENTE" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "SOLICITADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "PAGADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "EN_CURSO", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "CANCELADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "RECHAZADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "EXPIRADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "NO_SHOW", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "COMPLETADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "BORRADOR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind2"](33, 14, result_r10.item.fechaUso, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate2"]("", result_r10.item.horaInicio, " - ", result_r10.item.horaFin, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction4"](24, _c3, result_r10.type === "success", result_r10.type === "warning", result_r10.type === "error", result_r10.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction4"](29, _c4, result_r10.type === "success", result_r10.type === "warning", result_r10.type === "error", result_r10.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.text);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.type === "success" && result_r10.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !result_r10.hasPayment);
  }
}
function BookingOneTimeComponent_ng_template_74_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 57)(1, "h5", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, "Resultados de Consulta RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingOneTimeComponent_ng_template_74_Template_button_click_3_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 60)(5, "div", 61)(6, "div", 62)(7, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](8, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "h4", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10, "Consulta Realizada Exitosamente");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](12, BookingOneTimeComponent_ng_template_74_div_12_Template, 51, 34, "div", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](13, "div", 68)(14, "div", 69)(15, "small", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](16, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](18, "button", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingOneTimeComponent_ng_template_74_Template_button_click_18_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](19, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](20, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx_r10.consultResults);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", ctx_r10.consultResults.length, " consulta(s) procesada(s) ");
  }
}
class BookingOneTimeComponent {
  get HorasValidacionPago() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HORAS_VALIDACION_PAGO]?.valorNumerico;
  }
  get MinutosGraciaNoShow() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.MINUTOS_GRACIA_NO_SHOW]?.valorNumerico;
  }
  constructor(authService, paginationService, router, modalService, formBuilder, categoriesService, reservaPuntualService, reservaService, ruatService, pagoService) {
    this.authService = authService;
    this.paginationService = paginationService;
    this.router = router;
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.categoriesService = categoriesService;
    this.reservaPuntualService = reservaPuntualService;
    this.reservaService = reservaService;
    this.ruatService = ruatService;
    this.pagoService = pagoService;
    this.title = 'Reservas Puntuales';
    this.itemsList = [];
    this.viewMode = 'table';
    this.serverSidePagination = true;
    this.currentPage = 1;
    this.pageSize = 5;
    this.userRole = 'Contribuyente';
    this.estadoReservaOptions = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.StatusUtils.getEstadoReservaOptions();
    this.estadoValidacionOptions = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.StatusUtils.getEstadoValidacionOptions();
    this.loading = true;
    this.temp = [];
    this.categoryList = [];
    this.selectedItems = [];
    this.consultResults = [];
    this.dateRange = null;
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      estadoValidacion: '',
      categoria: '',
      fromDate: null,
      toDate: null,
      tab: 0
    };
    this.systemConfigList = {};
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.breadCrumbItems = [{
        label: ''
      }, {
        label: _this.title,
        active: true
      }];
      _this.itemsList = [{
        name: 'Contribuyente',
        prop: 'reservaDto.contribuyenteDto.nombreCompleto',
        visible: !_this.contribuyente
      }, {
        name: 'Complejo',
        prop: 'reservaDto.campoDeportivoDto.complejoDto.nombre',
        visible: true
      }, {
        name: 'Campo Deportivo',
        prop: 'reservaDto.campoDeportivoDto.nombre',
        visible: false
      }, {
        name: 'Superficie',
        prop: 'superficie',
        visible: false
      }, {
        name: 'Categoría',
        prop: 'categoria',
        visible: false,
        tag: true
      }, {
        name: 'Fecha Creación',
        prop: 'reservaDto.fechaCreacion',
        date: true,
        visible: false
      }, {
        name: 'Fecha Uso',
        prop: 'fechaUso',
        date: true,
        visible: true
      }, {
        name: 'Hora Inicio',
        prop: 'horaInicio',
        visible: false
      }, {
        name: 'Hora Fin',
        prop: 'horaFin',
        visible: false
      }, {
        name: 'Duración',
        prop: 'duracionHoras',
        visible: false
      }, {
        name: 'Cant. Personas',
        prop: 'cantidadPersonas',
        visible: false
      }, {
        name: 'Tasa',
        prop: 'reservaDto.numeroTasa',
        visible: false
      }, {
        name: 'Estado Validación',
        prop: 'reservaDto.estadoValidacion',
        tag: true,
        visible: _this.canActivate.includes('VALIDAR')
      }, {
        name: 'Estado Reserva',
        prop: 'reservaDto.estadoReserva',
        tag: true,
        visible: true
      }, {
        name: 'Monto Total',
        prop: 'reservaDto.montoTotal',
        visible: false
      }, {
        name: 'Observaciones',
        prop: 'observaciones',
        visible: false
      }];
      const savedViewMode = localStorage.getItem('dataTableViewMode');
      if (savedViewMode === 'table' || savedViewMode === 'cards') {
        _this.viewMode = savedViewMode;
      }
      _this.systemConfigList = _this.authService.getAllConfigs();
      const currentUser = _this.authService.currentUser();
      if (_this.authService.getUserRole() === 'Contribuyente') {
        _this.contribuyente = currentUser;
        if (_this.contribuyente.estadoUsuario !== src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoUsuario.ACTIVO) {
          _this.canActivate = ["VER"];
        }
      } else {
        _this.userData = currentUser.designacion.personaDto;
      }
      if (!_this.authService.isRuatAuthenticated()) {
        yield _this.delay(1000);
      }
      yield _this.getCategories();
      yield _this.getPuntualReservations();
      setInterval(() => _this.getPuntualReservations(), 5 * 60 * 1000);
    })();
  }
  delay(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
  }
  /* UI HANDLERS */
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  onPageChange(page) {
    this.currentPage = page;
    this.getPuntualReservations();
  }
  onPageSizeChange(size) {
    this.pageSize = size;
    this.currentPage = 1;
    this.getPuntualReservations();
  }
  onNavChange(changeEvent) {
    this.filters.tab = changeEvent.nextId;
    this.currentPage = 1;
    this.getPuntualReservations();
  }
  applyFilters() {
    this.currentPage = 1;
    this.getPuntualReservations();
  }
  clearFilters() {
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      estadoValidacion: '',
      categoria: '',
      fromDate: null,
      toDate: null,
      tab: 0
    };
    this.dateRange = null;
    this.currentPage = 1;
    this.getPuntualReservations();
  }
  onDateRangeChange(value) {
    this.dateRange = value;
    if (value) {
      this.filters.fromDate = value.from;
      this.filters.toDate = value.to;
    } else {
      this.filters.fromDate = null;
      this.filters.toDate = null;
    }
    this.applyFilters();
  }
  /* NAVIGATIONS & MODALS */
  showTicket(data) {
    const modalRef = this.modalService.open(_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__.TicketComponent, {
      size: 'lg',
      windowClass: 'ticket-modal'
    });
    modalRef.componentInstance.bookingType = 'puntual';
    modalRef.componentInstance.reservationData = data.reservaDto;
    modalRef.componentInstance.showAsModal = true;
    modalRef.componentInstance.autoLoad = true;
  }
  agregarReserva() {
    this.router.navigate(['/reservations/details'], {
      state: {
        tipoReserva: 'puntual'
      }
    });
  }
  openModal(data, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_booking_one_time_modal_booking_one_time_component__WEBPACK_IMPORTED_MODULE_6__.BookingOneTimeModalComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = data;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.canActivate = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getPuntualReservations();
    });
  }
  consultModal(data, content, size) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this2.selectedItems.length === 0) {
        _this2.selectedItems.push(data);
      }
      _this2.consultResults = [];
      _this2.dataSelected = null;
      _this2.loading = true;
      let shouldRefreshData = false;
      try {
        for (const item of _this2.selectedItems) {
          try {
            const result = yield _this2.consultData(item);
            _this2.consultResults.push(result);
            if (!_this2.dataSelected && result.hasPayment && result.pagoData) {
              _this2.dataSelected = {
                reserva: result.item,
                pago: result.pagoData,
                ruatResponse: result.ruatResponse
              };
            }
            if (result.hasPayment) {
              shouldRefreshData = true;
            }
          } catch (error) {
            _this2.consultResults.push({
              item,
              text: 'Error durante la consulta',
              type: 'error',
              hasPayment: false
            });
          }
        }
      } finally {
        _this2.loading = false;
        if (_this2.consultResults.length > 0) {
          if (_this2.dataSelected) {
            _this2.modalService.open(content, {
              centered: true,
              size: size
            });
          } else {
            _this2.modalService.open(content, {
              centered: true
            });
          }
        }
        _this2.selectedItems = [];
        if (shouldRefreshData) {
          _this2.getPuntualReservations();
        }
      }
    })();
  }
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        complejo: item.reservaDto?.campoDeportivoDto?.complejoDto?.nombre || '-',
        campo: item.reservaDto?.campoDeportivoDto?.nombre || '-',
        superficie: item.superficie || '-',
        categoria: item.categoria || '-',
        fechaUso: item.fechaUso ? new Date(item.fechaUso).toLocaleDateString() : '-',
        horaInicio: item.horaInicio || '-',
        horaFin: item.horaFin || '-',
        duracion: item.duracionHoras ? `${item.duracionHoras} hrs` : '-',
        cantidadPersonas: item.cantidadPersonas || '-',
        // fechaUsoReal: item.fechaUsoReal ? new Date(item.fechaUsoReal).toLocaleDateString() : '-',
        fechaCreacion: item.reservaDto?.fechaCreacion ? new Date(item.reservaDto.fechaCreacion).toLocaleDateString() : '-',
        // fechaActualizacion: item.reservaDto?.fechaActualizacion ? new Date(item.reservaDto.fechaActualizacion).toLocaleDateString() : '-',
        tipoReserva: item.reservaDto?.tipoReserva || '-',
        tipoCobro: item.reservaDto?.tarifaDto?.tipoCobro || '-',
        numeroReserva: item.reservaDto?.numeroReserva || '-',
        tasa: item.reservaDto?.numeroTasa || '-',
        montoTotal: item.reservaDto?.montoTotal || '-',
        estadoValidacion: item.reservaDto?.estadoValidacion || '-',
        estadoReserva: item.reservaDto?.estadoReserva || '-',
        observaciones: item.observaciones || '-',
        fechaAprobacion: item.reservaDto?.fechaAprobacion ? new Date(item.reservaDto.fechaAprobacion).toLocaleDateString() : '-',
        fechaRechazo: item.reservaDto?.fechaRechazo ? new Date(item.reservaDto.fechaRechazo).toLocaleDateString() : '-',
        motivoRechazo: item.reservaDto?.motivoRechazo || '-',
        aprobadoPor: item.reservaDto?.aprobadoPor || '-',
        tipoContribuyente: item.reservaDto?.contribuyenteDto?.tipoContribuyente || '-',
        contribuyente: item.reservaDto?.contribuyenteDto?.nombreCompleto || `${item.reservaDto?.contribuyenteDto?.nombre || ''} ${item.reservaDto?.contribuyenteDto?.primerApellido || ''} ${item.reservaDto?.contribuyenteDto?.segundoApellido || ''}`.trim(),
        carnet: item.reservaDto?.contribuyenteDto?.numeroDocumento || '-',
        esOrganizacion: item.reservaDto?.organizacionDto ? 'SI' : 'NO',
        nombreOrganizacion: item.reservaDto?.organizacionDto?.nombre || '-'
      };
      return [{
        ...baseData
      }];
    });
    const data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Reservas Puntuales',
      useBom: true,
      noDownload: false,
      headers: ["Complejo", "Campo Deportivo", "Superficie", "Categoría", "Fecha Uso", "Hora Inicio", "Hora Fin", "Duración", "Cant. Personas", "Fecha Creación", /* "Fecha Actualización", */"Tipo Reserva", "Tipo Cobro", "Número Reserva", "Número Tasa", "Monto Total", "Estado Validación", "Estado Reserva", "Observaciones", "Fecha Aprobación", "Fecha Rechazo", "Motivo Rechazo", "Aprobado Por", "Tipo Contribuyente", "Contribuyente", "Carnet", "Es Para Organización", "Nombre Organización"]
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, `Reservas_Puntuales_${new Date().toISOString().split('T')[0]}`, data);
  }
  /* BUSINESS LOGIC */
  checkAndUpdateReservationStatuses(list) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const updatePromises = list.map(/*#__PURE__*/function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (reservaPun) {
          if (!reservaPun.reservaDto) return reservaPun;
          const reservaDto = reservaPun.reservaDto;
          const terminalStates = [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA];
          if (terminalStates.includes(reservaDto.estadoReserva)) {
            return reservaPun;
          }
          try {
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE || reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA) {
              if (reservaDto.esReservaGratuita) {
                if (reservaDto.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA) {
                  if (_this3.isTimeCompleted(reservaPun)) {
                    return yield _this3.updateReservationByPR(reservaPun, {
                      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                    });
                  } else if (_this3.isCurrentlyActive(reservaPun)) {
                    return yield _this3.updateReservationByPR(reservaPun, {
                      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                    });
                  }
                  return reservaPun;
                } else if (reservaDto.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.RECHAZADA) {
                  return yield _this3.updateReservationByPR(reservaPun, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA
                  });
                }
                return reservaPun;
              }
              const consultResult = yield _this3.consultData(reservaPun);
              if (consultResult.hasPayment) {
                if (_this3.isTimeCompleted(reservaPun)) {
                  return yield _this3.updateReservationByPR(reservaPun, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                  });
                } else if (_this3.isCurrentlyActive(reservaPun)) {
                  return yield _this3.updateReservationByPR(reservaPun, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                  });
                } else {
                  return yield _this3.updateReservationByPR(reservaPun, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA
                  });
                }
              } else {
                if (_this3.isPeriodExpired(reservaPun)) {
                  return yield _this3.handleExpiredgReservation(reservaPun);
                }
              }
            }
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA || reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO) {
              if (_this3.isTimeCompleted(reservaPun)) {
                return yield _this3.updateReservationByPR(reservaPun, {
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                });
              }
              if (_this3.isCurrentlyActive(reservaPun) && reservaDto.estadoReserva !== src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO) {
                return yield _this3.updateReservationByPR(reservaPun, {
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                });
              }
            }
            return reservaPun;
          } catch (error) {
            return reservaPun;
          }
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
      return yield Promise.all(updatePromises);
    })();
  }
  isCurrentlyActive(reserva) {
    const now = new Date();
    if (reserva.fechaUso && reserva.horaInicio && reserva.horaFin) {
      let startTime;
      let endTime;
      if (reserva.fechaUso instanceof Date) {
        const usoDate = new Date(reserva.fechaUso);
        const [startHours, startMinutes, startSeconds = 0] = reserva.horaInicio.split(':').map(Number);
        startTime = new Date(usoDate);
        startTime.setHours(startHours, startMinutes, startSeconds, 0);
        const [endHours, endMinutes, endSeconds = 0] = reserva.horaFin.split(':').map(Number);
        endTime = new Date(usoDate);
        endTime.setHours(endHours, endMinutes, endSeconds, 0);
      } else {
        const fechaUsoStr = reserva.fechaUso;
        const [year, month, day] = fechaUsoStr.split('-').map(Number);
        const [startHours, startMinutes, startSeconds = 0] = reserva.horaInicio.split(':').map(Number);
        startTime = new Date(year, month - 1, day, startHours, startMinutes, startSeconds);
        const [endHours, endMinutes, endSeconds = 0] = reserva.horaFin.split(':').map(Number);
        endTime = new Date(year, month - 1, day, endHours, endMinutes, endSeconds);
      }
      return now >= startTime && now <= endTime;
    }
    return false;
  }
  isTimeCompleted(reserva) {
    const now = new Date();
    if (reserva.fechaUso && reserva.horaFin) {
      let endTime;
      if (reserva.fechaUso instanceof Date) {
        const usoDate = new Date(reserva.fechaUso);
        const [hours, minutes, seconds = 0] = reserva.horaFin.split(':').map(Number);
        endTime = new Date(usoDate);
        endTime.setHours(hours, minutes, seconds, 0);
      } else {
        const fechaUsoStr = reserva.fechaUso;
        const [year, month, day] = fechaUsoStr.split('-').map(Number);
        const [hours, minutes, seconds = 0] = reserva.horaFin.split(':').map(Number);
        endTime = new Date(year, month - 1, day, hours, minutes, seconds);
      }
      return endTime < now;
    }
    return false;
  }
  isPeriodExpired(reserva) {
    if (!reserva.reservaDto) return false;
    if (reserva.reservaDto.esReservaGratuita) {
      return false;
    }
    const horasValidacion = this.HorasValidacionPago || 24;
    const fechaCreacion = new Date(reserva.reservaDto.fechaCreacion);
    const now = new Date();
    const expirationDate = new Date(fechaCreacion);
    expirationDate.setHours(expirationDate.getHours() + horasValidacion);
    return now > expirationDate;
  }
  parseDate(dateInput) {
    if (dateInput instanceof Date) {
      return dateInput;
    }
    if (typeof dateInput === 'string') {
      if (dateInput.includes('T')) {
        return new Date(dateInput);
      }
      return new Date(dateInput + 'T00:00:00');
    }
    return new Date();
  }
  /* API RUAT Services */
  consultData(item) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const nroTasa = item.reservaDto?.numeroTasa;
        if (!nroTasa) {
          return {
            item,
            text: "No hay número de tasa asociado",
            type: 'warning',
            hasPayment: false
          };
        }
        const codigoAlcaldia = _this4.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
        const resp = yield _this4.ruatService.consultaPagoTasa(codigoAlcaldia, nroTasa).toPromise();
        if (resp['status'] !== 'OK') {
          let errorMessage = 'Error en la consulta al RUAT';
          if (typeof resp.payload === 'string') {
            try {
              const jsonMatch = resp.payload.match(/\{.*\}/);
              if (jsonMatch) {
                const jsonPayload = JSON.parse(jsonMatch[0]);
                errorMessage = jsonPayload.mensaje || errorMessage;
              } else {
                errorMessage = resp.payload || errorMessage;
              }
            } catch (e) {
              errorMessage = resp.payload || errorMessage;
            }
          }
          return {
            item,
            text: errorMessage,
            type: 'error',
            hasPayment: false
          };
        }
        if (!resp.payload.continuarFlujo) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se puede continuar con el flujo",
            type: 'warning',
            hasPayment: false
          };
        }
        const pagoTasa = resp.payload.pagoTasa;
        if (!pagoTasa) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se encontraron datos de pago",
            type: 'info',
            hasPayment: false
          };
        }
        let text = resp.payload.mensaje || resp.payload.observacion || "La tasa se encuentra pagada";
        try {
          const [day, month, year] = pagoTasa.fechaPago.split('/');
          const formattedDate = `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`;
          const existingPayment = item.reservaDto?.pagosDtoList?.find(pago => pago.folio === pagoTasa.folio && pago.numeroTasa === pagoTasa.numeroTasa);
          if (!existingPayment && item.reservaDto) {
            const nuevoPago = {
              numeroTasa: pagoTasa.numeroTasa,
              tipoTasa: "TO",
              folio: pagoTasa.folio,
              formaPago: pagoTasa.formaPago,
              fechaPago: new Date(formattedDate),
              entidadFinanciera: pagoTasa.entidadFinanciera,
              montoPagado: parseFloat(pagoTasa.montoPago) || 0,
              observaciones: pagoTasa.observacion,
              estadoPago: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoPago.PAGADO,
              ultimaConsulta: new Date(),
              respuestaCompletaRuat: JSON.stringify(resp),
              reservaDto: item.reservaDto
            };
            yield _this4.pagoService.save(nuevoPago).toPromise();
          }
          return {
            item,
            text: `${text} - Pago verificado`,
            type: 'success',
            hasPayment: true,
            pagoData: pagoTasa
          };
          // if (item.reservaDto?.estadoReserva === EstadoReserva.PENDIENTE) {
          //   try {
          //     const nuevoPago: Pago = {
          //       numeroTasa: pagoData.numeroTasa,
          //       tipoTasa: "TO",
          //       folio: pagoData.folio,
          //       formaPago: pagoData.formaPago,
          //       fechaPago: new Date(formattedDate),
          //       entidadFinanciera: pagoData.entidadFinanciera,
          //       montoPagado: parseFloat(pagoData.montoPago) || 0,
          //       observaciones: pagoData.observacion,
          //       estadoPago: EstadoPago.PAGADO,
          //       ultimaConsulta: new Date(),
          //       respuestaCompletaRuat: JSON.stringify(resp),
          //       reservaDto: item.reservaDto
          //     };
          //     const pagoResp: any = await this.pagoService.save(nuevoPago).toPromise();
          //     if (pagoResp.status === 'OK') {
          //       item.reservaDto.estadoReserva = EstadoReserva.PAGADA;
          //       const updatedReserva = await this.updateReservation(item.reservaDto);
          //       return { 
          //         item: updatedReserva.reservaPuntualDto, 
          //         text: `${text} - Pago registrado exitosamente`, 
          //         type: 'success',
          //         hasPayment: true,
          //         pagoData: pagoResp.payload
          //       };
          //     } else {
          //       return { 
          //         item, 
          //         text: 'Error al guardar el pago en el sistema', 
          //         type: 'error',
          //         hasPayment: true,
          //         shouldNotUpdate: true
          //       };
          //     }
          //   } catch (error) {
          //     console.error('Error saving pago:', error);
          //     return { 
          //       item, 
          //       text: 'Error al procesar el pago', 
          //       type: 'error',
          //       hasPayment: true,
          //       shouldNotUpdate: true
          //     };
          //   }
          // } else {
          //   return { 
          //     item, 
          //     text: `${text} - Reserva en estado: ${item.reservaDto?.estadoReserva}`, 
          //     type: 'info',
          //     hasPayment: true,
          //     pagoData: pagoData
          //   };
          // }
        } catch (error) {
          return {
            item,
            text: 'Error al guardar el pago',
            type: 'error',
            hasPayment: true
          };
        }
      } catch (error) {
        return {
          item,
          text: 'Error al realizar la consulta al RUAT',
          type: 'error',
          hasPayment: false
        };
      }
    })();
  }
  handleExpiredgReservation(reserva) {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const codigoAlcaldia = _this5.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
      const codigoUsuario = _this5.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
      if (reserva.reservaDto?.numeroTasa) {
        try {
          const requestData = {
            numeroTasa: reserva.reservaDto.numeroTasa,
            motivo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
            observacion: "ANULADO AUTOMATICO, VENCIDO PLAZO DE RESERVA"
          };
          if (!_this5.ruatService.isTokenAvailable()) {
            console.warn('RUAT token not available, skipping tasa cancellation');
          } else {
            yield _this5.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).toPromise();
          }
        } catch (error) {
          console.warn('Failed to cancel tasa in RUAT for expired reservation:', error);
          return reserva;
        }
      }
      return yield _this5.updateReservationByPR(reserva, {
        estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA,
        motivoRechazo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
        fechaRechazo: new Date()
      });
    })();
  }
  /* API Services */
  updateReservationByPR(reserva, updates) {
    var _this6 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!reserva.reservaDto) return reserva;
      const updatedReservaDto = {
        ...reserva.reservaDto,
        ...updates,
        fechaActualizacion: new Date()
      };
      try {
        const response = yield _this6.reservaService.update(updatedReservaDto).toPromise();
        if (response && response.status === 'OK') {
          reserva.reservaDto = response.payload;
        } else {
          console.warn('Failed to update reservation:', response?.payload || 'Unknown error');
        }
        return reserva;
      } catch (error) {
        return reserva;
      }
    })();
  }
  updateReservation(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          reject(error);
        }
      });
    });
  }
  getPuntualReservations() {
    var _this7 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        _this7.loading = true;
        const data = yield _this7.reservaPuntualService.getAll(_this7.currentPage - 1, _this7.pageSize, {
          tab: _this7.filters.tab,
          searchTerm: _this7.filters.searchTerm,
          estadoReserva: _this7.filters.estadoReserva,
          estadoValidacion: _this7.filters.estadoValidacion,
          categoria: _this7.filters.categoria,
          fromDate: _this7.filters.fromDate?.toISOString(),
          toDate: _this7.filters.toDate?.toISOString()
        }).toPromise();
        if (!data || data['status'] !== 'OK') {
          throw new Error(data?.payload || 'Respuesta inválida del servidor');
        }
        let list = [];
        if (data.payload?.content && Array.isArray(data.payload.content)) {
          list = data.payload.content;
        } else if (Array.isArray(data.payload)) {
          list = data.payload;
        }
        const employee = _this7.authService.staff();
        if (employee?.complejoDto) {
          list = list.filter(item => item.reservaDto?.campoDeportivoDto?.complejoDto?.uuid === employee.complejoDto?.uuid);
        }
        if (_this7.contribuyente) {
          list = list.filter(item => item.reservaDto?.contribuyenteDto?.uuid === _this7.contribuyente.uuid);
        }
        const updatedList = yield _this7.checkAndUpdateReservationStatuses(list);
        _this7.notifyAboutExpiredReservations(list, updatedList);
        _this7.reservasList = {
          ...data.payload,
          content: updatedList
        };
        _this7.temp = updatedList;
      } catch (error) {
        _this7.loading = false;
        _this7.handleError(error, 'Error al obtener las reservas');
        _this7.reservasList = {
          content: [],
          totalElements: 0,
          pageable: {
            pageNumber: 0,
            pageSize: 20
          }
        };
        _this7.temp = [];
      } finally {
        _this7.loading = false;
      }
    })();
  }
  getCategories() {
    this.categoriesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
        }
      },
      error: error => {
        this.handleError(error, 'Error al obtener las Categorías');
      }
    });
  }
  /* NOTIFICATIONS */
  notifyAboutExpiredReservations(originalList, updatedList) {
    const newlyExpired = updatedList.filter(item => {
      const originalItem = originalList.find(item => item.reservaDto?.uuid === item.reservaDto?.uuid);
      return originalItem?.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE && item.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA;
    });
    if (newlyExpired.length > 0) {
      const expiredCount = newlyExpired.length;
      const message = expiredCount === 1 ? '1 reserva ha expirado por falta de pago y ha sido cancelada automáticamente' : `${expiredCount} reservas han expirado por falta de pago y han sido canceladas automáticamente`;
      sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
        title: 'Reservas Expiradas',
        html: `
          <p>${message}</p>
          <p class="text-sm text-muted mt-2">
            <i class="fas fa-info-circle me-1"></i>
          </p>
        `,
        icon: 'warning',
        iconColor: '#f8bb86',
        confirmButtonText: 'Entendido',
        confirmButtonColor: '#299cdb',
        timer: 7000,
        timerProgressBar: true,
        showCloseButton: true,
        backdrop: true,
        allowOutsideClick: false
      });
    }
  }
  handleError(error, defaultMessage) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
      text: error?.message || defaultMessage,
      icon: 'error',
      confirmButtonColor: '#299cdb'
    });
  }
  static {
    this.ɵfac = function BookingOneTimeComponent_Factory(t) {
      return new (t || BookingOneTimeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__.PaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_18__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_20__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_puntual_service__WEBPACK_IMPORTED_MODULE_10__.ReservaPuntualService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__.PagoService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdefineComponent"]({
      type: BookingOneTimeComponent,
      selectors: [["app-booking-one-time"]],
      decls: 76,
      vars: 50,
      consts: [["nav", "ngbNav"], ["consultModel", ""], ["title", "Reservas", 3, "breadcrumbItems"], [1, "content"], [3, "createEmitter", "consultEmitter", "exportEmitter", "title", "newShow", "consultShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], ["class", "bg-danger-subtle text-danger rounded-3 justify-content-center align-items-center p-2", 4, "ngIf"], [1, "row", "g-2"], [1, "col-6", "col-sm-3", "col-lg-3"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar reservas ...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], ["type", "text", "mwlFlatpickr", "", "name", "dateRange", "mode", "range", "placeholder", "Fecha Uso", "dateFormat", "Y-m-d", 1, "form-control", 3, "ngModelChange", "convertModelValue", "ngModel", "altInput", "altFormat"], [1, "col-6", "col-sm-3", "col-lg-2"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoValidacion", "id", "idEstadoValidacion", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], [3, "value", 4, "ngFor", "ngForOf"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoReserva", "id", "idEstadoReserva", 1, "form-control", 3, "ngModelChange", "ngModel"], ["data-choices", "", "data-choices-search-false", "", "name", "categoria", "id", "idCategoria", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "col-6", "col-sm-3", "col-lg-1"], ["title", "Limpiar", 1, "btn", "btn-outline-secondary", "w-100", 3, "click"], [1, "ri-refresh-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "All", "py-3"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Solicitadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pendientes", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pagadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Pending"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "EnCurso", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Approved"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Completadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Completed"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Canceladas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Rejected"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "pageChange", "pageSizeChange", "showItemEmitter", "editItemEmitter", "consultItemEmitter", "validateItemEmitter", "closeItemEmitter", "recordsEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "serverSidePagination", "paginationInfo", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "bg-danger-subtle", "text-danger", "rounded-3", "justify-content-center", "align-items-center", "p-2"], [1, "text-danger", "text-center"], [1, "text-center"], [3, "value"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "text-center", "mb-3"], [1, "avatar-lg", "mx-auto", "mb-2"], [1, "avatar-title", "bg-light", "text-success", "display-5", "rounded-circle"], [1, "ri-bubble-chart-line"], [1, "fs-18", "fw-semibold", "text-info"], [1, "consult-results"], ["class", "result-item border rounded p-3 mb-3", 4, "ngFor", "ngForOf"], [1, "modal-footer", "border-top-0"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "text-muted"], [1, "ri-time-line", "me-1"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [1, "ri-close-line", "me-1"], [1, "result-item", "border", "rounded", "p-3", "mb-3"], [1, "reservation-info", "border-bottom", "pb-2", "mb-2"], [1, "fw-semibold", "text-primary", "mb-2"], [1, "ri-information-line", "me-1"], [1, "row"], [1, "col-md-6"], [1, "fw-medium"], [1, "row", "mt-2"], [1, "badge", "ms-1", 3, "ngClass"], ["class", "payment-info", 4, "ngIf"], [1, "response-message", "mt-2"], [1, "fw-semibold", "mb-2"], [1, "ri-message-2-line", "me-1"], [1, "alert", 3, "ngClass"], [1, "d-flex", "align-items-center"], [1, "me-2", 3, "ngClass"], ["class", "mt-1 small", 4, "ngIf"], ["class", "no-payment-info mt-2", 4, "ngIf"], [1, "payment-info"], [1, "fw-semibold", "text-success", "mb-2"], [1, "ri-money-dollar-circle-line", "me-1"], [1, "payment-details", "bg-success-subtle", "p-2", "rounded"], [1, "row", "mt-1"], [1, "badge", "bg-success-subtle", "text-success"], ["class", "row mt-1", 4, "ngIf"], [1, "col-12"], [1, "mt-1", "small"], [1, "ri-check-double-line", "me-1"], [1, "no-payment-info", "mt-2"], [1, "alert", "alert-warning"], [1, "ri-information-line", "me-2"]],
      template: function BookingOneTimeComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](1, "div", 3)(2, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("createEmitter", function BookingOneTimeComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.agregarReserva());
          })("consultEmitter", function BookingOneTimeComponent_Template_app_data_header_consultEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵreference"](75);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.consultModal(undefined, consultModel_r2, "lg"));
          })("exportEmitter", function BookingOneTimeComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "div", 5)(4, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](5, BookingOneTimeComponent_div_5_Template, 5, 0, "div", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](6, "div", 8)(7, "div", 9)(8, "div", 10)(9, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.searchTerm, $event) || (ctx.filters.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingOneTimeComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](10, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 9)(12, "input", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingOneTimeComponent_Template_input_ngModelChange_12_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onDateRangeChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](13, "div", 14)(14, "select", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_14_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.estadoValidacion, $event) || (ctx.filters.estadoValidacion = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_14_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](15, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](16, "Estado Validaci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](17, BookingOneTimeComponent_option_17_Template, 2, 2, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](18, "div", 14)(19, "select", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_19_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.estadoReserva, $event) || (ctx.filters.estadoReserva = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_19_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](20, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](21, "Estado Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](22, BookingOneTimeComponent_option_22_Template, 2, 2, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](23, "div", 14)(24, "select", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_24_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.categoria, $event) || (ctx.filters.categoria = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingOneTimeComponent_Template_select_ngModelChange_24_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](25, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26, "Categor\u00EDa");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](27, BookingOneTimeComponent_option_27_Template, 2, 2, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](28, "div", 20)(29, "button", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingOneTimeComponent_Template_button_click_29_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.clearFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](30, "i", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](31, "div", 23)(32, "div", 8)(33, "div", 24)(34, "ul", 25, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("navChange", function BookingOneTimeComponent_Template_ul_navChange_34_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](36, "li", 26)(37, "a", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](38, " Todas las Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](39, "span", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](40);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](41, "li", 26)(42, "a", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](43, " Solicitadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](44, "li", 26)(45, "a", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](46, " Pendientes de Pago ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](47, "li", 26)(48, "a", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](49, " Pagadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](50, "li", 26)(51, "a", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](52, " En Curso ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](53, "li", 26)(54, "a", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](55, " Completadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](56, "li", 26)(57, "a", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](58, " Canceladas/Rechazadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](59, "div", 35)(60, "button", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingOneTimeComponent_Template_button_click_60_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](61, BookingOneTimeComponent_i_61_Template, 1, 0, "i", 37)(62, BookingOneTimeComponent_i_62_Template, 1, 0, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](63, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](64);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](65, "div", 39)(66, "span", 40)(67, "button", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](68, "i", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](69, "ul", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeaterCreate"](70, BookingOneTimeComponent_For_71_Template, 5, 4, "li", 44, _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](72, "div", 45)(73, "app-data-table", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("pageChange", function BookingOneTimeComponent_Template_app_data_table_pageChange_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onPageChange($event));
          })("pageSizeChange", function BookingOneTimeComponent_Template_app_data_table_pageSizeChange_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onPageSizeChange($event));
          })("showItemEmitter", function BookingOneTimeComponent_Template_app_data_table_showItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function BookingOneTimeComponent_Template_app_data_table_editItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "edit", "md"));
          })("consultItemEmitter", function BookingOneTimeComponent_Template_app_data_table_consultItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵreference"](75);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.consultModal($event, consultModel_r2, "md"));
          })("validateItemEmitter", function BookingOneTimeComponent_Template_app_data_table_validateItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "validarModal", ""));
          })("closeItemEmitter", function BookingOneTimeComponent_Template_app_data_table_closeItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "annularModal", ""));
          })("recordsEmitter", function BookingOneTimeComponent_Template_app_data_table_recordsEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.showTicket($event));
          })("selectedItemEmitter", function BookingOneTimeComponent_Template_app_data_table_selectedItemEmitter_73_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](74, BookingOneTimeComponent_ng_template_74_Template, 21, 2, "ng-template", 47, 1, _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("consultShow", ctx.selectedItems.length > 0)("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.contribuyente && ctx.contribuyente.estadoUsuario !== "ACTIVO");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("convertModelValue", true)("ngModel", ctx.dateRange)("altInput", true)("altFormat", "F j, Y");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.estadoValidacion);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.estadoValidacionOptions);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.estadoReserva);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.estadoReservaOptions);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.categoria);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.categoryList);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("activeId", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](ctx.temp.length || 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.reservasList)("serverSidePagination", true)("paginationInfo", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction6"](37, _c0, ctx.currentPage - 1, ctx.pageSize, ctx.reservasList == null ? null : ctx.reservasList.totalElements, ctx.reservasList == null ? null : ctx.reservasList.totalPages, ctx.reservasList == null ? null : ctx.reservasList.first, ctx.reservasList == null ? null : ctx.reservasList.last))("actions", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction5"](44, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("CAMBIAR-HORARIO"), ctx.canActivate.includes("VALIDAR"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ANULAR") ? "Anular" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_21__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_20__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_20__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavLinkBase, _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, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_22__.FlatpickrDirective, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_14__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_15__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_16__.DataHeaderComponent, _angular_common__WEBPACK_IMPORTED_MODULE_21__.CurrencyPipe, _angular_common__WEBPACK_IMPORTED_MODULE_21__.DatePipe],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9ib29raW5nLW9uZS10aW1lL2Jvb2tpbmctb25lLXRpbWUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSTtJQUVFLGtCQUFBO0lBQ0EsbUJBQUE7RUFBSjtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhIChtYXgtd2lkdGg6IDc2N3B4KSB7XHJcbiAgICAuY2FyZCB7XHJcbiAgICAvLyAgIG1hcmdpbjogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMTVweDtcclxuICAgICAgbWFyZ2luLXJpZ2h0OiAtMTVweDtcclxuICAgIH1cclxuICB9Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 39569:
/*!********************************************************************************!*\
  !*** ./src/app/pages/modules/booking-recurrent/booking-recurrent.component.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingRecurrentComponent: () => (/* binding */ BookingRecurrentComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reports/ticket/ticket.component */ 89291);
/* harmony import */ var _modals_modal_booking_recurrent_modal_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modals/modal-booking-recurrent/modal-booking-recurrent.component */ 38574);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/pagination.service */ 54384);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_api_reserva_recurrente_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/reserva-recurrente.service */ 19699);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);























const _c0 = (a0, a1, a2, a3, a4, a5) => ({
  pageNumber: a0,
  pageSize: a1,
  totalElements: a2,
  totalPages: a3,
  first: a4,
  last: a5
});
const _c1 = (a0, a1, a2, a3, a4) => ({
  show: a0,
  edit: a1,
  validate: a2,
  consult: a3,
  records: true,
  close: a4
});
const _c2 = (a0, a1, a2, a3, a4, a5) => ({
  "badge bg-warning-subtle text-warning": a0,
  "badge bg-success-subtle text-success": a1,
  "badge bg-primary-subtle text-primary": a2,
  "badge bg-danger-subtle text-danger": a3,
  "badge bg-secondary-subtle text-secondary": a4,
  "badge bg-light-subtle text-dark": a5
});
const _c3 = (a0, a1, a2, a3) => ({
  "alert-success": a0,
  "alert-warning": a1,
  "alert-danger": a2,
  "alert-info": a3
});
const _c4 = (a0, a1, a2, a3) => ({
  "ri-checkbox-circle-fill": a0,
  "ri-error-warning-fill": a1,
  "ri-close-circle-fill": a2,
  "ri-information-fill": a3
});
function BookingRecurrentComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 56)(1, "h4", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, "Su cuenta no se encuentra activa, solo puede ver el historial de sus reservas y no realizar reservas nuevas");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "p", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4, " para reactivar su cuenta comuniquese con el administrador");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
}
function BookingRecurrentComponent_option_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", option_r3.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", option_r3.label, " ");
  }
}
function BookingRecurrentComponent_option_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", option_r4.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", option_r4.label, " ");
  }
}
function BookingRecurrentComponent_option_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "option", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const category_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("value", category_r5.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", category_r5.nombre, " ");
  }
}
function BookingRecurrentComponent_i_80_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "i", 60);
  }
}
function BookingRecurrentComponent_i_81_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "i", 61);
  }
}
function BookingRecurrentComponent_For_90_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "li", 52)(1, "div", 62)(2, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_For_90_Template_input_ngModelChange_2_listener($event) {
      const column_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r6).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](column_r7.visible, $event) || (column_r7.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("id", "formCheck" + column_r7.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", column_r7.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("for", "formCheck" + column_r7.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", column_r7.name, " ");
  }
}
function BookingRecurrentComponent_ng_template_93_div_12_div_38_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 105)(1, "div", 108)(2, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](3, "Observaciones:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const result_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.observaciones);
  }
}
function BookingRecurrentComponent_ng_template_93_div_12_div_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 101)(1, "h6", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](2, "i", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](3, " Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 104)(5, "div", 86)(6, "div", 87)(7, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](8, "Fecha de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](11, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](12, "div", 87)(13, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](14, "Monto Pagado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](15, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](17, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](18, "div", 105)(19, "div", 87)(20, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](21, "Forma de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](22, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](24, "div", 87)(25, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26, "Entidad Financiera:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](27, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](29, "div", 105)(30, "div", 87)(31, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](32, "Folio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](33, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](34);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](35, "div", 87)(36, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](37, "Estado Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](38, "span", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](40, BookingRecurrentComponent_ng_template_93_div_12_div_38_div_40_Template, 6, 1, "div", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const result_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind2"](11, 7, result_r10.pagoData == null ? null : result_r10.pagoData.fechaPago, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind2"](17, 10, result_r10.pagoData == null ? null : result_r10.pagoData.montoPagado, "Bs. "));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.formaPago);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.entidadFinanciera);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.pagoData == null ? null : result_r10.pagoData.folio);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.pagoData == null ? null : result_r10.pagoData.estadoPago) || "PAGADO");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.pagoData == null ? null : result_r10.pagoData.observaciones);
  }
}
function BookingRecurrentComponent_ng_template_93_div_12_div_48_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](1, "i", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, " El pago ha sido registrado exitosamente y la reserva ha sido actualizada. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function BookingRecurrentComponent_ng_template_93_div_12_div_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 111)(1, "div", 112)(2, "div", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](3, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](5, "No se encontraron pagos registrados para esta tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
  }
}
function BookingRecurrentComponent_ng_template_93_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 82)(1, "div", 83)(2, "h6", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](3, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4, " Informaci\u00F3n de Reserva Recurrente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](5, "div", 86)(6, "div", 87)(7, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](8, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 87)(12, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](13, "Campo Deportivo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](14, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](16, "div", 89)(17, "div", 87)(18, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](19, "N\u00FAmero de Tasa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](20, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](22, "div", 87)(23, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](24, "Estado Reserva:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](25, "span", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](27, "div", 89)(28, "div", 87)(29, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](30, "Tipo Recurrencia:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](31, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](32);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](33, "div", 87)(34, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](35, "Activo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](36, "span", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](37);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](38, BookingRecurrentComponent_ng_template_93_div_12_div_38_Template, 41, 13, "div", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](39, "div", 93)(40, "h6", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](41, "i", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](42, " Respuesta del Sistema ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](43, "div", 96)(44, "div", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](45, "i", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](46, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](47);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](48, BookingRecurrentComponent_ng_template_93_div_12_div_48_Template, 3, 0, "div", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](49, BookingRecurrentComponent_ng_template_93_div_12_div_49_Template, 6, 0, "div", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const result_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.complejoDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.complejoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.campoDeportivoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"]((result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.numeroTasa) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction6"](14, _c2, (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "PENDIENTE" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "SOLICITADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "PAGADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "EN_CURSO", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "CANCELADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "RECHAZADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "EXPIRADA" || (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "NO_SHOW", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "COMPLETADA", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) === "BORRADOR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", (result_r10.item.reservaDto == null ? null : result_r10.item.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.item.tipoRecurrencia || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", result_r10.item.activo ? "bg-success-subtle text-success" : "bg-danger-subtle text-danger");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", result_r10.item.activo ? "S\u00CD" : "NO", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction4"](21, _c3, result_r10.type === "success", result_r10.type === "warning", result_r10.type === "error", result_r10.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction4"](26, _c4, result_r10.type === "success", result_r10.type === "warning", result_r10.type === "error", result_r10.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](result_r10.text);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", result_r10.type === "success" && result_r10.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !result_r10.hasPayment && result_r10.text !== "Reserva gratuita");
  }
}
function BookingRecurrentComponent_ng_template_93_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 65)(1, "h5", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, "Resultados de Consulta RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "button", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingRecurrentComponent_ng_template_93_Template_button_click_3_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](4, "div", 68)(5, "div", 69)(6, "div", 70)(7, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](8, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](9, "h4", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10, "Consulta Realizada Exitosamente");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](12, BookingRecurrentComponent_ng_template_93_div_12_Template, 50, 31, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](13, "div", 76)(14, "div", 77)(15, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](16, "i", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](18, "button", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingRecurrentComponent_ng_template_93_Template_button_click_18_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](19, "i", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](20, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx_r10.consultResults);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", ctx_r10.consultResults.length, " consulta(s) procesada(s) ");
  }
}
class BookingRecurrentComponent {
  get enableSolicitudRecurrentBooking() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_SOLICITUD_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get enableRecurrentBooking() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HABILITAR_RESERVAS_RECURRENTES]?.valorBoolean ?? false;
  }
  get HorasValidacionPago() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HORAS_VALIDACION_PAGO]?.valorNumerico;
  }
  get HorasSlaAprobacion() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HORAS_SLA_APROBACION]?.valorNumerico;
  }
  get MinutosGraciaNoShow() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.MINUTOS_GRACIA_NO_SHOW]?.valorNumerico;
  }
  get MinutosTimeoutGatewayPago() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.MINUTOS_TIMEOUT_GATEWAY_PAGO]?.valorNumerico;
  }
  constructor(authService, paginationService, router, modalService, formBuilder, categoriesService, reservaRecurrenteService, reservaService, ruatService, pagoService) {
    this.authService = authService;
    this.paginationService = paginationService;
    this.router = router;
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.categoriesService = categoriesService;
    this.reservaRecurrenteService = reservaRecurrenteService;
    this.reservaService = reservaService;
    this.ruatService = ruatService;
    this.pagoService = pagoService;
    this.title = 'Reservas Recurrentes';
    this.itemsList = [];
    this.viewMode = 'table';
    this.serverSidePagination = true;
    this.currentPage = 1;
    this.pageSize = 5;
    this.userRole = 'Contribuyente';
    this.estadoReservaOptions = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.StatusUtils.getEstadoReservaOptions();
    this.estadoValidacionOptions = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.StatusUtils.getEstadoValidacionOptions();
    this.loading = true;
    this.temp = [];
    this.categoryList = [];
    this.selectedItems = [];
    this.consultResults = [];
    this.dateRange = null;
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      estadoValidacion: '',
      categoria: '',
      tipoRecurrencia: '',
      activo: '',
      fromDate: null,
      toDate: null,
      tab: 0
    };
    this.systemConfigList = {};
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.breadCrumbItems = [{
        label: ''
      }, {
        label: _this.title,
        active: true
      }];
      _this.itemsList = [{
        name: 'Contribuyente',
        prop: 'reservaDto.contribuyenteDto.nombreCompleto',
        visible: !_this.contribuyente
      }, {
        name: 'Complejo',
        prop: 'reservaDto.campoDeportivoDto.complejoDto.nombre',
        visible: true
      }, {
        name: 'Campo Deportivo',
        prop: 'reservaDto.campoDeportivoDto.nombre',
        visible: false
      }, {
        name: 'Tablero',
        prop: 'tableroDto.horario',
        visible: false
      }, {
        name: 'Superficie',
        prop: 'superficie',
        visible: false
      }, {
        name: 'Categoría',
        prop: 'categoria',
        visible: false,
        tag: true
      }, {
        name: 'Tipo Recurrencia',
        prop: 'tipoRecurrencia',
        visible: false
      }, {
        name: 'Fecha Inicio',
        prop: 'fechaInicio',
        date: true,
        visible: false
      }, {
        name: 'Fecha Fin',
        prop: 'fechaFin',
        date: true,
        visible: false
      }, {
        name: 'Días Semana',
        prop: 'diasSemana',
        visible: false
      }, {
        name: 'Sesiones',
        prop: 'cantidadSesiones',
        visible: true
      }, {
        name: 'Duración Sesión',
        prop: 'duracionSesionHoras',
        visible: false
      }, {
        name: 'Personas',
        prop: 'cantidadPersonas',
        visible: false
      }, {
        name: 'Tarifa Mensual',
        prop: 'tarifaMensual',
        visible: true
      }, {
        name: 'Activo',
        prop: 'activo',
        tag: true,
        visible: false
      }, {
        name: 'Fecha Creación',
        prop: 'reservaDto.fechaCreacion',
        date: true,
        visible: false
      }, {
        name: 'Tasa',
        prop: 'reservaDto.numeroTasa',
        visible: true
      }, {
        name: 'Estado Validación',
        prop: 'reservaDto.estadoValidacion',
        tag: true,
        visible: _this.canActivate.includes('VALIDAR')
      }, {
        name: 'Estado Reserva',
        prop: 'reservaDto.estadoReserva',
        tag: true,
        visible: true
      }, {
        name: 'Monto Total',
        prop: 'reservaDto.montoTotal',
        visible: false
      }, {
        name: 'Observaciones',
        prop: 'observaciones',
        visible: false
      }];
      const savedViewMode = localStorage.getItem('dataTableViewMode');
      if (savedViewMode === 'table' || savedViewMode === 'cards') {
        _this.viewMode = savedViewMode;
      }
      _this.systemConfigList = _this.authService.getAllConfigs();
      const currentUser = _this.authService.currentUser();
      if (_this.authService.getUserRole() === 'Contribuyente') {
        _this.contribuyente = currentUser;
        if (!_this.enableRecurrentBooking && !_this.enableSolicitudRecurrentBooking) {
          const index = _this.canActivate.indexOf('CREAR');
          if (index > -1) {
            _this.canActivate.splice(index, 1);
          }
        }
        if (_this.contribuyente.estadoUsuario !== src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoUsuario.ACTIVO) {
          _this.canActivate = ["VER"];
        }
      } else {
        _this.userData = currentUser.designacion.personaDto;
      }
      if (!_this.authService.isRuatAuthenticated()) {
        yield _this.delay(1000);
      }
      yield _this.getRecurrentReservations();
      yield _this.getCategories();
      setInterval(() => _this.getRecurrentReservations(), 5 * 60 * 1000);
    })();
  }
  delay(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
  }
  /* UI HANDLERS */
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  onPageChange(page) {
    this.currentPage = page;
    this.getRecurrentReservations();
  }
  onPageSizeChange(size) {
    this.pageSize = size;
    this.currentPage = 1;
    this.getRecurrentReservations();
  }
  onNavChange(changeEvent) {
    this.filters.tab = changeEvent.nextId;
    this.currentPage = 1;
    this.getRecurrentReservations();
  }
  applyFilters() {
    this.currentPage = 1;
    this.getRecurrentReservations();
  }
  clearFilters() {
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      estadoValidacion: '',
      categoria: '',
      tipoRecurrencia: '',
      activo: '',
      fromDate: null,
      toDate: null,
      tab: 0
    };
    this.dateRange = null;
    this.currentPage = 1;
    this.getRecurrentReservations();
  }
  onDateRangeChange(value) {
    this.dateRange = value;
    if (value) {
      this.filters.fromDate = value.from;
      this.filters.toDate = value.to;
    } else {
      this.filters.fromDate = null;
      this.filters.toDate = null;
    }
    this.applyFilters();
  }
  /* NAVIGATIONS & MODALS */
  agregarReserva() {
    this.router.navigate(['/reservations/details'], {
      state: {
        tipoReserva: 'recurrente'
      }
    });
  }
  showTicket(data) {
    const modalRef = this.modalService.open(_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__.TicketComponent, {
      size: 'lg',
      windowClass: 'ticket-modal'
    });
    modalRef.componentInstance.bookingType = 'recurrente';
    modalRef.componentInstance.reservationData = data.reservaDto;
    modalRef.componentInstance.showAsModal = true;
    modalRef.componentInstance.autoLoad = true;
  }
  openModal(data, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_booking_recurrent_modal_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_6__.BookingRecurrentModalComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = data;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.canActivate = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getRecurrentReservations();
    });
  }
  consultModal(data, content, size) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this2.selectedItems.length === 0) {
        _this2.selectedItems.push(data);
      }
      _this2.consultResults = [];
      _this2.dataSelected = null;
      _this2.loading = true;
      let shouldRefreshData = false;
      try {
        for (const item of _this2.selectedItems) {
          try {
            const result = yield _this2.consultData(item);
            _this2.consultResults.push(result);
            if (!_this2.dataSelected && result.hasPayment && result.pagoData) {
              _this2.dataSelected = {
                reserva: result.item,
                pago: result.pagoData,
                ruatResponse: result.ruatResponse
              };
            }
            if (result.hasPayment) {
              shouldRefreshData = true;
            }
          } catch (error) {
            _this2.consultResults.push({
              item,
              text: 'Error durante la consulta',
              type: 'error',
              hasPayment: false
            });
          }
        }
      } finally {
        _this2.loading = false;
        if (_this2.consultResults.length > 0) {
          if (_this2.dataSelected) {
            _this2.modalService.open(content, {
              centered: true,
              size: size
            });
          } else {
            _this2.modalService.open(content, {
              centered: true
            });
          }
        }
        _this2.selectedItems = [];
        if (shouldRefreshData) {
          _this2.getRecurrentReservations();
        }
      }
    })();
  }
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        complejo: item.reservaDto?.campoDeportivoDto?.complejoDto?.nombre || '-',
        campoDeportivo: item.reservaDto?.campoDeportivoDto?.nombre || '-',
        tablero: item.tableroDto?.horario || '-',
        superficie: item.superficie || '-',
        categoria: item.categoria || '-',
        tipoRecurrencia: item.tipoRecurrencia || '-',
        fechaInicio: item.fechaInicio ? new Date(item.fechaInicio).toLocaleDateString() : '-',
        fechaFin: item.fechaFin ? new Date(item.fechaFin).toLocaleDateString() : '-',
        diasSemana: item.diasSemana || '-',
        cantidadSesiones: item.cantidadSesiones || '-',
        duracionSesion: item.duracionSesionHoras ? `${item.duracionSesionHoras} hrs` : '-',
        cantidadPersonas: item.cantidadPersonas || '-',
        tarifaMensual: item.tarifaMensual || '-',
        activo: item.activo ? 'Sí' : 'No',
        fechaCreacion: item.reservaDto?.fechaCreacion ? new Date(item.reservaDto.fechaCreacion).toLocaleDateString() : '-',
        tipoReserva: item.reservaDto?.tipoReserva || '-',
        numeroReserva: item.reservaDto?.numeroReserva || '-',
        tasa: item.reservaDto?.numeroTasa || '-',
        montoTotal: item.reservaDto?.montoTotal || '-',
        estadoValidacion: item.reservaDto?.estadoValidacion || '-',
        estadoReserva: item.reservaDto?.estadoReserva || '-',
        observaciones: item.observaciones || '-',
        tipoContribuyente: item.reservaDto?.contribuyenteDto?.tipoContribuyente || '-',
        contribuyente: item.reservaDto?.contribuyenteDto?.nombreCompleto || `${item.reservaDto?.contribuyenteDto?.nombre || ''} ${item.reservaDto?.contribuyenteDto?.primerApellido || ''} ${item.reservaDto?.contribuyenteDto?.segundoApellido || ''}`.trim(),
        carnet: item.reservaDto?.contribuyenteDto?.numeroDocumento || '-',
        esOrganizacion: item.reservaDto?.organizacionDto ? 'SI' : 'NO',
        nombreOrganizacion: item.reservaDto?.organizacionDto?.nombre || '-'
      };
      return [{
        ...baseData
      }];
    });
    const data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Reservas Recurrentes',
      useBom: true,
      noDownload: false,
      headers: ["Complejo", "Campo Deportivo", "Tablero", "Superficie", "Categoría", "Tipo Recurrencia", "Fecha Inicio", "Fecha Fin", "Días Semana", "Cant. Sesiones", "Duración Sesión", "Cant. Personas", "Tarifa Mensual", "Activo", "Fecha Creación", "Tipo Reserva", "Número Reserva", "Número Tasa", "Monto Total", "Estado Validación", "Estado Reserva", "Observaciones", "Tipo Contribuyente", "Contribuyente", "Carnet", "Es Para Organización", "Nombre Organización"]
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, `Reservas_Recurrentes_${new Date().toISOString().split('T')[0]}`, data);
  }
  /* BUSINESS LOGIC */
  checkAndUpdateReservationsStatuses(list) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const updatePromises = list.map(/*#__PURE__*/function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (reservaRec) {
          if (!reservaRec.reservaDto) return reservaRec;
          const reservaDto = reservaRec.reservaDto;
          const terminalStates = [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA];
          if (terminalStates.includes(reservaDto.estadoReserva)) {
            return reservaRec;
          }
          try {
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE || reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.SOLICITADA) {
              if (reservaDto.esReservaGratuita) {
                if (reservaDto.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.APROBADA) {
                  if (_this3.isPeriodCompleted(reservaRec)) {
                    return yield _this3.updateReservationByRR(reservaRec, {
                      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                    });
                  } else if (_this3.isCurrentlyActive(reservaRec)) {
                    return yield _this3.updateReservationByRR(reservaRec, {
                      estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                    });
                  }
                  return reservaRec;
                } else if (reservaDto.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoValidacion.RECHAZADA) {
                  return yield _this3.updateReservationByRR(reservaRec, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA
                  });
                }
                return reservaRec;
              }
              const consultResult = yield _this3.consultData(reservaRec);
              if (consultResult.hasPayment) {
                if (_this3.isPeriodCompleted(reservaRec)) {
                  return yield _this3.updateReservationByRR(reservaRec, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                  });
                } else if (_this3.isCurrentlyActive(reservaRec)) {
                  return yield _this3.updateReservationByRR(reservaRec, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                  });
                } else {
                  return yield _this3.updateReservationByRR(reservaRec, {
                    estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA
                  });
                }
              } else {
                if (_this3.isPeriodExpired(reservaRec)) {
                  return yield _this3.handleExpiredgReservation(reservaRec);
                }
              }
            }
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA || reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO) {
              if (_this3.isPeriodCompleted(reservaRec)) {
                return yield _this3.updateReservationByRR(reservaRec, {
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA
                });
              }
              if (_this3.isCurrentlyActive(reservaRec) && reservaDto.estadoReserva !== src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO) {
                return yield _this3.updateReservationByRR(reservaRec, {
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EN_CURSO
                });
              }
            }
            return reservaRec;
          } catch (error) {
            return reservaRec;
          }
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
      return yield Promise.all(updatePromises);
    })();
  }
  isCurrentlyActive(reserva) {
    const now = new Date();
    const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
    // // Parse fechaInicio
    // if (reserva.fechaInicio instanceof Date) {
    //   startDate = new Date(reserva.fechaInicio);
    // } else {
    //   const fechaInicioStr = String(reserva.fechaInicio);
    //   const [startYear, startMonth, startDay] = fechaInicioStr.split('-').map(Number);
    //   startDate = new Date(startYear, startMonth - 1, startDay);
    // }
    // // Parse fechaFin
    // if (reserva.fechaFin instanceof Date) {
    //   endDate = new Date(reserva.fechaFin);
    // } else {
    //   const fechaFinStr = String(reserva.fechaFin);
    //   const [endYear, endMonth, endDay] = fechaFinStr.split('-').map(Number);
    //   endDate = new Date(endYear, endMonth - 1, endDay);
    // }
    const startDate = new Date(reserva.fechaInicio);
    startDate.setHours(0, 0, 0, 0);
    const endDate = new Date(reserva.fechaFin);
    endDate.setHours(23, 59, 59, 999);
    const isWithinPeriod = today >= startDate && today <= endDate;
    if (!isWithinPeriod) return false;
    // Check if today is one of the reserved days of the week
    const reservedDays = reserva.diasSemana?.split(',') || [];
    const dayNames = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'];
    const todayDayName = dayNames[now.getDay()];
    return reservedDays.includes(todayDayName);
    // Check if ALL sessions for today have ended
    // const allSessionsCompleted = todaysSessions.every(session => 
    //   currentDate > session.endTime
    // );
    // if (!allSessionsCompleted && todaysSessions.length > 1) {
    //   const sortedSessions = todaysSessions.sort((a, b) => a.startTime.getTime() - b.startTime.getTime());
    //   const currentTime = new Date();
    //   for (let i = 0; i < sortedSessions.length - 1; i++) {
    //     const currentSession = sortedSessions[i];
    //     const nextSession = sortedSessions[i + 1];
    //     if (currentTime > currentSession.endTime && currentTime < nextSession.startTime) {
    //       return true;
    //     }
    //   }
    // }    
    // return allSessionsCompleted;
  }
  isPeriodCompleted(reserva) {
    const now = new Date();
    const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
    const endDate = new Date(reserva.fechaFin);
    endDate.setHours(23, 59, 59, 999);
    return today > endDate;
    // if (reserva.fechaFin instanceof Date) {
    //   endDate = new Date(reserva.fechaFin);
    // } else {
    //   const fechaFinStr = String(reserva.fechaFin);
    //   const [year, month, day] = fechaFinStr.split('-').map(Number);
    //   endDate = new Date(year, month - 1, day);
    // }
  }
  isPeriodExpired(reserva) {
    if (!reserva.reservaDto) return false;
    if (reserva.reservaDto.esReservaGratuita) {
      return false;
    }
    const horasValidacion = this.HorasValidacionPago || 24;
    const fechaCreacion = new Date(reserva.reservaDto.fechaCreacion);
    const fechaExpiracion = new Date(fechaCreacion.getTime() + horasValidacion * 60 * 60 * 1000);
    const now = new Date();
    return now > fechaExpiracion;
  }
  parseDate(dateInput) {
    if (dateInput instanceof Date) {
      return dateInput;
    }
    if (typeof dateInput === 'string') {
      if (dateInput.includes('T')) {
        return new Date(dateInput);
      }
      return new Date(dateInput + 'T00:00:00');
    }
    return new Date();
  }
  /* API RUAT Services */
  consultData(item) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const nroTasa = item.reservaDto?.numeroTasa;
        if (!nroTasa) {
          return {
            item,
            text: "No hay número de tasa asociado",
            type: 'warning',
            hasPayment: false
          };
        }
        const codigoAlcaldia = _this4.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
        const resp = yield _this4.ruatService.consultaPagoTasa(codigoAlcaldia, nroTasa).toPromise();
        if (resp['status'] !== 'OK') {
          let errorMessage = 'Error en la consulta al RUAT';
          if (typeof resp.payload === 'string') {
            try {
              const jsonMatch = resp.payload.match(/\{.*\}/);
              if (jsonMatch) {
                const jsonPayload = JSON.parse(jsonMatch[0]);
                errorMessage = jsonPayload.mensaje || errorMessage;
              } else {
                errorMessage = resp.payload || errorMessage;
              }
            } catch (e) {
              errorMessage = resp.payload || errorMessage;
            }
          }
          return {
            item,
            text: errorMessage,
            type: 'error',
            hasPayment: false
          };
        }
        if (!resp.payload.continuarFlujo) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se puede continuar con el flujo",
            type: 'warning',
            hasPayment: false
          };
        }
        const pagoTasa = resp.payload.pagoTasa;
        if (!pagoTasa) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se encontraron datos de pago",
            type: 'info',
            hasPayment: false
          };
        }
        let text = resp.payload.mensaje || resp.payload.observacion || "La tasa se encuentra pagada";
        try {
          const [day, month, year] = pagoTasa.fechaPago.split('/');
          const formattedDate = `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`;
          const existingPayment = item.reservaDto?.pagosDtoList?.find(pago => pago.folio === pagoTasa.folio && pago.numeroTasa === pagoTasa.numeroTasa);
          if (!existingPayment && item.reservaDto) {
            const nuevoPago = {
              numeroTasa: pagoTasa.numeroTasa,
              tipoTasa: "TO",
              folio: pagoTasa.folio,
              formaPago: pagoTasa.formaPago,
              fechaPago: new Date(formattedDate),
              entidadFinanciera: pagoTasa.entidadFinanciera,
              montoPagado: parseFloat(pagoTasa.montoPago) || 0,
              observaciones: pagoTasa.observacion,
              estadoPago: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoPago.PAGADO,
              ultimaConsulta: new Date(),
              respuestaCompletaRuat: JSON.stringify(resp),
              reservaDto: item.reservaDto
            };
            yield _this4.pagoService.save(nuevoPago).toPromise();
          }
          return {
            item,
            text: `${text} - Pago verificado`,
            type: 'success',
            hasPayment: true,
            pagoData: pagoTasa
          };
          // const pagoResp: any = await this.pagoService.save(nuevoPago).toPromise();
          // if (pagoResp.status === 'OK') {
          //   item.reservaDto.estadoReserva = EstadoReserva.PAGADA;
          //   const updatedReserva = await this.updateReserva(item.reservaDto);
          //   return { 
          //     item: updatedReserva.reservaRecurrenteDto, 
          //     text: `${text} - Pago registrado exitosamente`, 
          //     type: 'success',
          //     hasPayment: true,
          //     pagoData: pagoResp.payload
          //   };
          // } else {
          //   return { 
          //     item, 
          //     text: 'Error al guardar el pago en el sistema', 
          //     type: 'error',
          //     hasPayment: true,
          //   };
          // }
        } catch (error) {
          return {
            item,
            text: 'Error al guardar el pago',
            type: 'error',
            hasPayment: true
          };
        }
      } catch (error) {
        console.error('Error in consultData:', error);
        return {
          item,
          text: 'Error al realizar la consulta al RUAT',
          type: 'error',
          hasPayment: false
        };
      }
    })();
  }
  handleExpiredgReservation(reserva) {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const codigoAlcaldia = _this5.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
      const codigoUsuario = _this5.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
      if (reserva.reservaDto?.numeroTasa) {
        try {
          const requestData = {
            numeroTasa: reserva.reservaDto.numeroTasa,
            motivo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
            observacion: "ANULADO AUTOMATICO, VENCIDO PLAZO DE RESERVA"
          };
          if (!_this5.ruatService.isTokenAvailable()) {
            console.warn('RUAT token not available, skipping tasa cancellation');
          } else {
            yield _this5.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).toPromise();
          }
        } catch (error) {
          console.warn('Failed to cancel tasa in RUAT for expired reservation:', error);
          return reserva;
        }
      }
      return yield _this5.updateReservationByRR(reserva, {
        estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA,
        motivoRechazo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
        fechaRechazo: new Date()
      });
    })();
  }
  /* API Services */
  updateReservationByRR(reserva, updates) {
    var _this6 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!reserva.reservaDto) return reserva;
      const updatedReservaDto = {
        ...reserva.reservaDto,
        ...updates,
        fechaActualizacion: new Date()
      };
      try {
        const response = yield _this6.reservaService.update(updatedReservaDto).toPromise();
        if (response && response.status === 'OK') {
          reserva.reservaDto = response.payload;
        } else {
          console.warn('Failed to update reservation:', response?.payload || 'Unknown error');
        }
        return reserva;
      } catch (error) {
        return reserva;
      }
    })();
  }
  updateReservation(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  getRecurrentReservations() {
    var _this7 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        _this7.loading = true;
        const data = yield _this7.reservaRecurrenteService.getAll(_this7.currentPage - 1, _this7.pageSize, {
          tab: _this7.filters.tab,
          searchTerm: _this7.filters.searchTerm,
          estadoReserva: _this7.filters.estadoReserva,
          estadoValidacion: _this7.filters.estadoValidacion,
          categoria: _this7.filters.categoria,
          tipoRecurrencia: _this7.filters.tipoRecurrencia,
          activo: _this7.filters.activo,
          fromDate: _this7.filters.fromDate?.toISOString(),
          toDate: _this7.filters.toDate?.toISOString()
        }).toPromise();
        if (!data || data['status'] !== 'OK') {
          throw new Error(data?.payload || 'Respuesta inválida del servidor');
        }
        let list = [];
        if (data.payload?.content && Array.isArray(data.payload.content)) {
          list = data.payload.content;
        } else if (Array.isArray(data.payload)) {
          list = data.payload;
        }
        const employee = _this7.authService.staff();
        if (employee?.complejoDto) {
          list = list.filter(item => item.reservaDto?.campoDeportivoDto?.complejoDto?.uuid === employee.complejoDto?.uuid);
        }
        if (_this7.contribuyente) {
          list = list.filter(item => item.reservaDto?.contribuyenteDto?.uuid === _this7.contribuyente.uuid);
        }
        const updatedList = yield _this7.checkAndUpdateReservationsStatuses(list);
        _this7.notifyAboutExpiredReservations(list, updatedList);
        _this7.reservasList = {
          ...data.payload,
          content: updatedList
        };
        _this7.temp = _this7.reservasList;
      } catch (error) {
        _this7.loading = false;
        _this7.handleError(error, 'Error al obtener las reservas');
        _this7.reservasList = {
          content: [],
          totalElements: 0,
          pageable: {
            pageNumber: 0,
            pageSize: 20
          }
        };
        _this7.temp = [];
      } finally {
        _this7.loading = false;
      }
    })();
  }
  getCategories() {
    this.categoriesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
        }
      },
      error: error => {
        this.handleError(error, 'Error al obtener las Categorías');
      }
    });
  }
  /* NOTIFICATIONS */
  notifyAboutExpiredReservations(originalList, updatedList) {
    const newlyExpired = updatedList.filter(item => {
      const originalItem = originalList.find(item => item.reservaDto?.uuid === item.reservaDto?.uuid);
      return originalItem?.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE && item.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA;
    });
    if (newlyExpired.length > 0) {
      const expiredCount = newlyExpired.length;
      const message = expiredCount === 1 ? '1 reserva ha expirado por falta de pago y ha sido cancelada automáticamente' : `${expiredCount} reservas han expirado por falta de pago y han sido canceladas automáticamente`;
      sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
        title: 'Reservas Expiradas',
        html: `
          <p>${message}</p>
          <p class="text-sm text-muted mt-2">
            <i class="fas fa-info-circle me-1"></i>
          </p>
        `,
        icon: 'warning',
        iconColor: '#f8bb86',
        confirmButtonText: 'Entendido',
        confirmButtonColor: '#299cdb',
        timer: 7000,
        timerProgressBar: true,
        showCloseButton: true,
        backdrop: true,
        allowOutsideClick: false
      });
    }
  }
  handleError(error, defaultMessage) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
      text: error?.message || defaultMessage,
      icon: 'error',
      confirmButtonColor: '#299cdb'
    });
  }
  static {
    this.ɵfac = function BookingRecurrentComponent_Factory(t) {
      return new (t || BookingRecurrentComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__.PaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_18__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_20__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_recurrente_service__WEBPACK_IMPORTED_MODULE_10__.ReservaRecurrenteService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__.PagoService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdefineComponent"]({
      type: BookingRecurrentComponent,
      selectors: [["app-booking-recurrent"]],
      decls: 95,
      vars: 52,
      consts: [["nav", "ngbNav"], ["consultModel", ""], ["title", "Reservas", 3, "breadcrumbItems"], [1, "content"], [3, "createEmitter", "consultEmitter", "exportEmitter", "title", "newShow", "consultShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], ["class", "bg-danger-subtle text-danger rounded-3 justify-content-center align-items-center p-2", 4, "ngIf"], [3, "ngSubmit"], [1, "row", "g-2"], [1, "col-6", "col-sm-3", "col-lg-3"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar reservas ...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], ["type", "text", "mwlFlatpickr", "", "name", "dateRange", "mode", "range", "placeholder", "Fecha Inicio - Fecha Fin", "dateFormat", "Y-m-d", 1, "form-control", 3, "ngModelChange", "convertModelValue", "ngModel", "altInput", "altFormat"], [1, "col-6", "col-sm-3", "col-lg-2"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoValidacion", "id", "idEstadoValidacion", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], [3, "value", 4, "ngFor", "ngForOf"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoReserva", "id", "idEstadoReserva", 1, "form-control", 3, "ngModelChange", "ngModel"], ["data-choices", "", "data-choices-search-false", "", "name", "categoria", "id", "idCategoria", 1, "form-control", 3, "ngModelChange", "ngModel"], ["data-choices", "", "data-choices-search-false", "", "name", "tipoRecurrencia", "id", "idTipoRecurrencia", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "mensual"], ["value", "semanal"], ["value", "diaria"], ["data-choices", "", "data-choices-search-false", "", "name", "activo", "id", "idActivo", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "activo"], ["value", "inactivo"], [1, "col-6", "col-sm-3", "col-lg-1"], ["title", "Filtrar", 1, "btn", "btn-outline-secondary", "w-100", 3, "click"], [1, "ri-refresh-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", "mb-3", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "All", "py-3"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Solicitadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pendientes", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pagadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Pending"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "EnCurso", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Approved"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Completadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Completed"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Canceladas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Rejected"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "pageChange", "pageSizeChange", "showItemEmitter", "editItemEmitter", "consultItemEmitter", "validateItemEmitter", "closeItemEmitter", "recordsEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "serverSidePagination", "paginationInfo", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "bg-danger-subtle", "text-danger", "rounded-3", "justify-content-center", "align-items-center", "p-2"], [1, "text-danger", "text-center"], [1, "text-center"], [3, "value"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "text-center", "mb-3"], [1, "avatar-lg", "mx-auto", "mb-2"], [1, "avatar-title", "bg-light", "text-success", "display-5", "rounded-circle"], [1, "ri-bubble-chart-line"], [1, "fs-18", "fw-semibold", "text-info"], [1, "consult-results"], ["class", "result-item border rounded p-3 mb-3", 4, "ngFor", "ngForOf"], [1, "modal-footer", "border-top-0"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "text-muted"], [1, "ri-time-line", "me-1"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [1, "ri-close-line", "me-1"], [1, "result-item", "border", "rounded", "p-3", "mb-3"], [1, "reservation-info", "border-bottom", "pb-2", "mb-2"], [1, "fw-semibold", "text-primary", "mb-2"], [1, "ri-information-line", "me-1"], [1, "row"], [1, "col-md-6"], [1, "fw-medium"], [1, "row", "mt-2"], [1, "badge", "ms-1", 3, "ngClass"], [1, "badge", 3, "ngClass"], ["class", "payment-info", 4, "ngIf"], [1, "response-message", "mt-2"], [1, "fw-semibold", "mb-2"], [1, "ri-message-2-line", "me-1"], [1, "alert", 3, "ngClass"], [1, "d-flex", "align-items-center"], [1, "me-2", 3, "ngClass"], ["class", "mt-1 small", 4, "ngIf"], ["class", "no-payment-info mt-2", 4, "ngIf"], [1, "payment-info"], [1, "fw-semibold", "text-success", "mb-2"], [1, "ri-money-dollar-circle-line", "me-1"], [1, "payment-details", "bg-success-subtle", "p-2", "rounded"], [1, "row", "mt-1"], [1, "badge", "bg-success-subtle", "text-success"], ["class", "row mt-1", 4, "ngIf"], [1, "col-12"], [1, "mt-1", "small"], [1, "ri-check-double-line", "me-1"], [1, "no-payment-info", "mt-2"], [1, "alert", "alert-warning"], [1, "ri-information-line", "me-2"]],
      template: function BookingRecurrentComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](1, "div", 3)(2, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("createEmitter", function BookingRecurrentComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.agregarReserva());
          })("consultEmitter", function BookingRecurrentComponent_Template_app_data_header_consultEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵreference"](94);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.consultModal(undefined, consultModel_r2, "lg"));
          })("exportEmitter", function BookingRecurrentComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "div", 5)(4, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](5, BookingRecurrentComponent_div_5_Template, 5, 0, "div", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](6, "form", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngSubmit", function BookingRecurrentComponent_Template_form_ngSubmit_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](7, "div", 9)(8, "div", 10)(9, "div", 11)(10, "input", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.searchTerm, $event) || (ctx.filters.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](11, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](12, "div", 10)(13, "input", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_input_ngModelChange_13_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onDateRangeChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](14, "div", 15)(15, "select", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_15_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.estadoValidacion, $event) || (ctx.filters.estadoValidacion = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_15_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](16, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](17, "Estado Validaci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](18, BookingRecurrentComponent_option_18_Template, 2, 2, "option", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](19, "div", 15)(20, "select", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_20_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.estadoReserva, $event) || (ctx.filters.estadoReserva = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_20_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](21, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](22, "Estado Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](23, BookingRecurrentComponent_option_23_Template, 2, 2, "option", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](24, "div", 15)(25, "select", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.categoria, $event) || (ctx.filters.categoria = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_25_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](26, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](27, "Categor\u00EDa");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](28, BookingRecurrentComponent_option_28_Template, 2, 2, "option", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](29, "div", 15)(30, "select", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_30_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.tipoRecurrencia, $event) || (ctx.filters.tipoRecurrencia = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_30_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](31, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](32, "Tipo Recurrencia");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](33, "option", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](34, "Mensual");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](35, "option", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](36, "Semanal");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](37, "option", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](38, "Diaria");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](39, "div", 15)(40, "select", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayListener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_40_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayBindingSet"](ctx.filters.activo, $event) || (ctx.filters.activo = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("ngModelChange", function BookingRecurrentComponent_Template_select_ngModelChange_40_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](41, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](42, "Estado Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](43, "option", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](44, "Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](45, "option", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](46, "Inactivo");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](47, "div", 28)(48, "button", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingRecurrentComponent_Template_button_click_48_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.clearFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](49, "i", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](50, "div", 31)(51, "div", 9)(52, "div", 32)(53, "ul", 33, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("navChange", function BookingRecurrentComponent_Template_ul_navChange_53_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](55, "li", 34)(56, "a", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](57, " Todas las Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](58, "span", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](59);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](60, "li", 34)(61, "a", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](62, " Solicitadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](63, "li", 34)(64, "a", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](65, " Pendientes de Pago ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](66, "li", 34)(67, "a", 39);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](68, " Pagadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](69, "li", 34)(70, "a", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](71, " En Curso ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](72, "li", 34)(73, "a", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](74, " Completadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](75, "li", 34)(76, "a", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](77, " Canceladas/Rechazadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](78, "div", 43)(79, "button", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function BookingRecurrentComponent_Template_button_click_79_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](80, BookingRecurrentComponent_i_80_Template, 1, 0, "i", 45)(81, BookingRecurrentComponent_i_81_Template, 1, 0, "i", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](82, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](83);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](84, "div", 47)(85, "span", 48)(86, "button", 49);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](87, "i", 50);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](88, "ul", 51);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeaterCreate"](89, BookingRecurrentComponent_For_90_Template, 5, 4, "li", 52, _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](91, "div", 53)(92, "app-data-table", 54);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("pageChange", function BookingRecurrentComponent_Template_app_data_table_pageChange_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onPageChange($event));
          })("pageSizeChange", function BookingRecurrentComponent_Template_app_data_table_pageSizeChange_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.onPageSizeChange($event));
          })("showItemEmitter", function BookingRecurrentComponent_Template_app_data_table_showItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function BookingRecurrentComponent_Template_app_data_table_editItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "edit", "md"));
          })("consultItemEmitter", function BookingRecurrentComponent_Template_app_data_table_consultItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵreference"](94);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.consultModal($event, consultModel_r2, "lg"));
          })("validateItemEmitter", function BookingRecurrentComponent_Template_app_data_table_validateItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "validarModal", ""));
          })("closeItemEmitter", function BookingRecurrentComponent_Template_app_data_table_closeItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.openModal($event, "annularModal", ""));
          })("recordsEmitter", function BookingRecurrentComponent_Template_app_data_table_recordsEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.showTicket($event));
          })("selectedItemEmitter", function BookingRecurrentComponent_Template_app_data_table_selectedItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](93, BookingRecurrentComponent_ng_template_93_Template, 21, 2, "ng-template", 55, 1, _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("consultShow", ctx.selectedItems.length > 0)("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.contribuyente && ctx.contribuyente.estadoUsuario !== "ACTIVO");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("convertModelValue", true)("ngModel", ctx.dateRange)("altInput", true)("altFormat", "F j, Y");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.estadoValidacion);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.estadoValidacionOptions);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.estadoReserva);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.estadoReservaOptions);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.categoria);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngForOf", ctx.categoryList);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.tipoRecurrencia);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.activo);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("activeId", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](ctx.temp.length || 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngbNavItem", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.reservasList)("serverSidePagination", ctx.serverSidePagination)("paginationInfo", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction6"](39, _c0, ctx.currentPage - 1, ctx.pageSize, ctx.reservasList == null ? null : ctx.reservasList.totalElements, ctx.reservasList == null ? null : ctx.reservasList.totalPages, ctx.reservasList == null ? null : ctx.reservasList.first, ctx.reservasList == null ? null : ctx.reservasList.last))("actions", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction5"](46, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("CAMBIAR-HORARIO"), ctx.canActivate.includes("VALIDAR"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ANULAR") ? "Anular" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_21__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_20__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_20__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_20__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_20__.NgForm, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbNavLinkBase, _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, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_22__.FlatpickrDirective, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_14__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_15__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_16__.DataHeaderComponent, _angular_common__WEBPACK_IMPORTED_MODULE_21__.CurrencyPipe, _angular_common__WEBPACK_IMPORTED_MODULE_21__.DatePipe],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9ib29raW5nLXJlY3VycmVudC9ib29raW5nLXJlY3VycmVudC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJO0lBRUUsa0JBQUE7SUFDQSxtQkFBQTtFQUFKO0FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJAbWVkaWEgKG1heC13aWR0aDogNzY3cHgpIHtcclxuICAgIC5jYXJkIHtcclxuICAgIC8vICAgbWFyZ2luOiAtMTVweDtcclxuICAgICAgbWFyZ2luLWxlZnQ6IC0xNXB4O1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6IC0xNXB4O1xyXG4gICAgfVxyXG4gIH0iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 39486:
/*!****************************************************************************!*\
  !*** ./src/app/pages/modules/booking-schools/booking-periodo.component.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BookingPeriodoComponent: () => (/* binding */ BookingPeriodoComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Configurations */ 44107);
/* harmony import */ var _reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reports/ticket/ticket.component */ 89291);
/* harmony import */ var _modals_modal_booking_school_modal_booking_school_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modals/modal-booking-school/modal-booking-school.component */ 37416);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/pagination.service */ 54384);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_api_reserva_periodo_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/reserva-periodo.service */ 23064);
/* harmony import */ var src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/reserva.service */ 73535);
/* harmony import */ var src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/ruatRequest.service */ 92169);
/* harmony import */ var src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/api/pago.service */ 86248);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);
/* harmony import */ var src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/api/estudianteEscuela.service */ 10399);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
























const _c0 = (a0, a1, a2, a3, a4, a5) => ({
  pageNumber: a0,
  pageSize: a1,
  totalElements: a2,
  totalPages: a3,
  first: a4,
  last: a5
});
const _c1 = (a0, a1, a2, a3, a4) => ({
  show: a0,
  edit: a1,
  validate: a2,
  consult: a3,
  records: true,
  close: a4
});
const _c2 = (a0, a1, a2, a3, a4, a5) => ({
  "badge bg-warning-subtle text-warning": a0,
  "badge bg-success-subtle text-success": a1,
  "badge bg-primary-subtle text-primary": a2,
  "badge bg-danger-subtle text-danger": a3,
  "badge bg-secondary-subtle text-secondary": a4,
  "badge bg-light-subtle text-dark": a5
});
const _c3 = (a0, a1, a2, a3) => ({
  "alert-success": a0,
  "alert-warning": a1,
  "alert-danger": a2,
  "alert-info": a3
});
const _c4 = (a0, a1, a2, a3) => ({
  "ri-checkbox-circle-fill": a0,
  "ri-error-warning-fill": a1,
  "ri-close-circle-fill": a2,
  "ri-information-fill": a3
});
function BookingPeriodoComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 46)(1, "h4", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](2, "Su cuenta no se encuentra activa, solo puede ver el historial de pagos");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](3, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](4, "Para reactivar su cuenta comun\u00EDquese con el administrador");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
  }
}
function BookingPeriodoComponent_option_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const periodo_r3 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("value", periodo_r3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", ctx_r3.getPeriodoDisplay(periodo_r3), " ");
  }
}
function BookingPeriodoComponent_option_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("value", option_r5.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", option_r5.label, " ");
  }
}
function BookingPeriodoComponent_option_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const escuela_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("value", escuela_r6.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", escuela_r6.nombre, " ");
  }
}
function BookingPeriodoComponent_i_56_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](0, "i", 50);
  }
}
function BookingPeriodoComponent_i_57_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](0, "i", 51);
  }
}
function BookingPeriodoComponent_For_66_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "li", 42)(1, "div", 52)(2, "input", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoComponent_For_66_Template_input_ngModelChange_2_listener($event) {
      const column_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r7).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayBindingSet"](column_r8.visible, $event) || (column_r8.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](3, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("id", "formCheck" + column_r8.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayProperty"]("ngModel", column_r8.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("for", "formCheck" + column_r8.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", column_r8.name, " ");
  }
}
function BookingPeriodoComponent_ng_template_70_div_12_div_39_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 94)(1, "div", 97)(2, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](3, "Observaciones:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](4, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const result_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](result_r11.pagoData == null ? null : result_r11.pagoData.observaciones);
  }
}
function BookingPeriodoComponent_ng_template_70_div_12_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 90)(1, "h6", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](2, "i", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](3, " Informaci\u00F3n de Pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](4, "div", 93)(5, "div", 76)(6, "div", 77)(7, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Fecha de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](9, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](11, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](12, "div", 77)(13, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](14, "Monto Pagado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](15, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](17, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](18, "div", 94)(19, "div", 77)(20, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](21, "Forma de Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](22, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](24, "div", 77)(25, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](26, "Entidad Financiera:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](27, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](29, "div", 94)(30, "div", 77)(31, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](32, "Folio:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](33, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](34);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](35, "div", 77)(36, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](37, "Estado Pago:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](38, "span", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](40, BookingPeriodoComponent_ng_template_70_div_12_div_39_div_40_Template, 6, 1, "div", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const result_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind2"](11, 7, result_r11.pagoData == null ? null : result_r11.pagoData.fechaPago, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind2"](17, 10, result_r11.pagoData == null ? null : result_r11.pagoData.montoPagado, "Bs. "));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](result_r11.pagoData == null ? null : result_r11.pagoData.formaPago);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](result_r11.pagoData == null ? null : result_r11.pagoData.entidadFinanciera);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](result_r11.pagoData == null ? null : result_r11.pagoData.folio);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"]((result_r11.pagoData == null ? null : result_r11.pagoData.estadoPago) || "PAGADO");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", result_r11.pagoData == null ? null : result_r11.pagoData.observaciones);
  }
}
function BookingPeriodoComponent_ng_template_70_div_12_div_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](1, "i", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](2, " El pago ha sido registrado exitosamente y la reserva ha sido actualizada. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
}
function BookingPeriodoComponent_ng_template_70_div_12_div_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 100)(1, "div", 101)(2, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](3, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5, "No se encontraron pagos registrados para esta tasa");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
  }
}
function BookingPeriodoComponent_ng_template_70_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 72)(1, "div", 73)(2, "h6", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](3, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](4, " Informaci\u00F3n de Reserva ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](5, "div", 76)(6, "div", 77)(7, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](9, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](11, "div", 77)(12, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](13, "Campo Deportivo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](14, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](16, "div", 79)(17, "div", 77)(18, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](19, "N\u00FAmero de Tasa:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](20, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](22, "div", 77)(23, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](24, "Estado Reserva:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](25, "span", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](27, "div", 79)(28, "div", 77)(29, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](30, "Fecha de Uso:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](31, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](32);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](33, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](34, "div", 77)(35, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](36, "Horario:");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](37, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](39, BookingPeriodoComponent_ng_template_70_div_12_div_39_Template, 41, 13, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](40, "div", 82)(41, "h6", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](42, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](43, " Respuesta del Sistema ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](44, "div", 85)(45, "div", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](46, "i", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](47, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](48);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](49, BookingPeriodoComponent_ng_template_70_div_12_div_49_Template, 3, 0, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](50, BookingPeriodoComponent_ng_template_70_div_12_div_50_Template, 6, 0, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const result_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"]((result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.campoDeportivoDto == null ? null : result_r11.item.reservaDto.campoDeportivoDto.complejoDto == null ? null : result_r11.item.reservaDto.campoDeportivoDto.complejoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"]((result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.campoDeportivoDto == null ? null : result_r11.item.reservaDto.campoDeportivoDto.nombre) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"]((result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.numeroTasa) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction6"](17, _c2, (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "PENDIENTE" || (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "SOLICITADA", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "PAGADA", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "EN_CURSO", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "CANCELADA" || (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "RECHAZADA" || (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "EXPIRADA" || (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "NO_SHOW", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "COMPLETADA", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) === "BORRADOR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", (result_r11.item.reservaDto == null ? null : result_r11.item.reservaDto.estadoReserva) || "N/A", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind2"](33, 14, result_r11.item.fechaUso, "dd/MM/yyyy"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate2"]("", result_r11.item.horaInicio, " - ", result_r11.item.horaFin, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", result_r11.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction4"](24, _c3, result_r11.type === "success", result_r11.type === "warning", result_r11.type === "error", result_r11.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction4"](29, _c4, result_r11.type === "success", result_r11.type === "warning", result_r11.type === "error", result_r11.type === "info"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](result_r11.text);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", result_r11.type === "success" && result_r11.hasPayment);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", !result_r11.hasPayment);
  }
}
function BookingPeriodoComponent_ng_template_70_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 55)(1, "h5", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](2, "Resultados de Consulta RUAT");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](3, "button", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("click", function BookingPeriodoComponent_ng_template_70_Template_button_click_3_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](modal_r10.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](4, "div", 58)(5, "div", 59)(6, "div", 60)(7, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](8, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](9, "h4", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](10, "Consulta Realizada Exitosamente");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](11, "div", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](12, BookingPeriodoComponent_ng_template_70_div_12_Template, 51, 34, "div", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](13, "div", 66)(14, "div", 67)(15, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](16, "i", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](18, "button", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("click", function BookingPeriodoComponent_ng_template_70_Template_button_click_18_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](modal_r10.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](19, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](20, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx_r3.consultResults);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", ctx_r3.consultResults.length, " consulta(s) procesada(s) ");
  }
}
class BookingPeriodoComponent {
  get HorasValidacionPago() {
    return this.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.HORAS_VALIDACION_PAGO]?.valorNumerico;
  }
  constructor(authService, paginationService, router, modalService, formBuilder, categoriesService, reservaPeriodoService, reservaService, ruatService, pagoService, organizacionesService, estuduanteService) {
    this.authService = authService;
    this.paginationService = paginationService;
    this.router = router;
    this.modalService = modalService;
    this.formBuilder = formBuilder;
    this.categoriesService = categoriesService;
    this.reservaPeriodoService = reservaPeriodoService;
    this.reservaService = reservaService;
    this.ruatService = ruatService;
    this.pagoService = pagoService;
    this.organizacionesService = organizacionesService;
    this.estuduanteService = estuduanteService;
    this.title = 'Escuelas Municipales';
    this.itemsList = [];
    this.viewMode = 'table';
    this.serverSidePagination = true;
    this.currentPage = 1;
    this.pageSize = 5;
    this.userRole = 'Contribuyente';
    this.estadoReservaOptions = src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.StatusUtils.getEstadoReservaOptions();
    this.loading = true;
    this.temp = [];
    this.categoryList = [];
    this.escuelasList = [];
    this.estudiantesList = [];
    this.selectedItems = [];
    this.consultResults = [];
    this.periodosDisponibles = [];
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      categoria: '',
      escuelaFiltro: '',
      periodoFiltro: '',
      tab: 0
    };
    this.systemConfigList = {};
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.breadCrumbItems = [{
        label: ''
      }, {
        label: _this.title,
        active: true
      }];
      _this.itemsList = [{
        name: 'Estudiante',
        prop: 'reservaDto.estudianteEscuelaDto.nombreCompleto',
        visible: true,
        fallbackProp: 'nombreCompleto'
      }, {
        name: 'Matrícula',
        prop: 'reservaDto.estudianteEscuelaDto.matricula',
        visible: true,
        fallbackProp: 'matricula'
      }, {
        name: 'Escuela',
        prop: 'reservaDto.organizacionDto.nombre',
        visible: true,
        fallbackProp: 'nombre'
      }, {
        name: 'Período',
        prop: 'periodoDisplay',
        visible: true,
        fallbackProp: 'periodoDisplay'
      }, {
        name: 'Disciplina',
        prop: 'reservaDto.organizacionDto.disciplina',
        visible: true,
        fallbackProp: 'disciplina'
      }, {
        name: 'Entrenador',
        prop: 'reservaDto.organizacionDto.entrenador',
        visible: false,
        fallbackProp: 'entrenador'
      }, {
        name: 'Mes',
        prop: 'mes',
        visible: false,
        fallbackProp: 'mes'
      }, {
        name: 'Año',
        prop: 'año',
        visible: false,
        fallbackProp: 'año'
      }, {
        name: 'Monto',
        prop: 'reservaDto.montoTotal',
        currency: true,
        visible: true,
        fallbackProp: 'montoTotal'
      }, {
        name: 'Estado Validación',
        prop: 'reservaDto.estadoValidacion',
        tag: true,
        visible: false,
        fallbackProp: 'estadoValidacion'
      }, {
        name: 'Estado Reserva',
        prop: 'reservaDto.estadoReserva',
        tag: true,
        visible: true,
        fallbackProp: 'estadoReserva'
      }, {
        name: 'Número Reserva',
        prop: 'reservaDto.numeroReserva',
        visible: false,
        fallbackProp: 'numeroReserva'
      }, {
        name: 'Número Tasa',
        prop: 'reservaDto.numeroTasa',
        visible: false,
        fallbackProp: 'numeroTasa'
      }, {
        name: 'Fecha Creación',
        prop: 'reservaDto.fechaCreacion',
        date: true,
        visible: false,
        fallbackProp: 'fechaCreacion'
      }, {
        name: 'Observaciones',
        prop: 'reservaDto.observaciones',
        visible: false,
        fallbackProp: 'observaciones'
      }];
      const savedViewMode = localStorage.getItem('dataTableViewMode');
      if (savedViewMode === 'table' || savedViewMode === 'cards') {
        _this.viewMode = savedViewMode;
      }
      _this.systemConfigList = _this.authService.getAllConfigs();
      const currentUser = _this.authService.currentUser();
      if (_this.authService.getUserRole() === 'Contribuyente') {
        _this.contribuyente = currentUser;
        if (_this.contribuyente.estadoUsuario !== src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoUsuario.ACTIVO) {
          _this.canActivate = ["VER"];
        }
      } else {
        _this.userData = currentUser.designacion.personaDto;
      }
      if (!_this.authService.isRuatAuthenticated()) {
        yield _this.delay(1000);
      }
      _this.generatePeriodosDisponibles();
      _this.loadEscuelas();
      _this.loadEstudiantes();
      yield _this.getPeriodReservations();
      setInterval(() => _this.getPeriodReservations(), 5 * 60 * 1000);
    })();
  }
  delay(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
  }
  /* UI HANDLERS */
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  onPageChange(page) {
    this.currentPage = page;
    this.getPeriodReservations();
  }
  onPageSizeChange(size) {
    this.pageSize = size;
    this.currentPage = 1;
    this.getPeriodReservations();
  }
  onNavChange(changeEvent) {
    this.filters.tab = changeEvent.nextId;
    this.currentPage = 1;
    this.getPeriodReservations();
  }
  applyFilters() {
    this.currentPage = 1;
    this.getPeriodReservations();
  }
  clearFilters() {
    this.filters = {
      searchTerm: '',
      estadoReserva: '',
      categoria: '',
      escuelaFiltro: '',
      periodoFiltro: '',
      tab: 0
    };
    this.currentPage = 1;
    this.getPeriodReservations();
  }
  generatePeriodosDisponibles() {
    const currentDate = new Date();
    const currentYear = currentDate.getFullYear();
    const currentMonth = currentDate.getMonth() + 1;
    this.periodosDisponibles = [];
    for (let i = -6; i <= 6; i++) {
      const year = currentYear + Math.floor((currentMonth + i - 1) / 12);
      const month = ((currentMonth + i - 1) % 12 + 12) % 12 + 1;
      const periodo = `${year}-${month.toString().padStart(2, '0')}`;
      this.periodosDisponibles.push(periodo);
    }
  }
  getPeriodoDisplay(periodo) {
    const [year, month] = periodo.split('-');
    const monthNames = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];
    return `${monthNames[parseInt(month) - 1]} ${year}`;
  }
  getPeriodoDisplayForReserva(item) {
    const monthNames = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];
    return `${monthNames[item.mes - 1]} ${item.año}`;
  }
  /* NAVIGATIONS & MODALS */
  showTicket(data) {
    const modalRef = this.modalService.open(_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_5__.TicketComponent, {
      size: 'lg',
      windowClass: 'ticket-modal'
    });
    modalRef.componentInstance.bookingType = 'periodo';
    modalRef.componentInstance.reservationData = data.reservaDto;
    modalRef.componentInstance.showAsModal = true;
    modalRef.componentInstance.autoLoad = true;
  }
  generarNuevaMensualidad() {
    if (this.escuelasList.length === 0) {
      sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
        title: 'No hay escuelas disponibles',
        text: 'No se encontraron escuelas municipales registradas en el sistema.',
        icon: 'warning',
        confirmButtonText: 'Entendido'
      });
      return;
    }
    const modalRef = this.modalService.open(_modals_modal_booking_school_modal_booking_school_component__WEBPACK_IMPORTED_MODULE_6__.BookingPeriodoModalComponent, {
      size: 'lg',
      centered: true,
      backdrop: 'static'
    });
    modalRef.componentInstance.accion = '';
    modalRef.componentInstance.estudiantes = this.estudiantesList;
    modalRef.componentInstance.reservaGenerada.subscribe(reserva => {
      this.procesarReservaGenerada(reserva);
    });
  }
  procesarReservaGenerada(reserva) {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        _this2.loading = true;
        const response = yield _this2.reservaService.create(reserva).toPromise();
        if (response.status === 'OK') {
          sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
            title: '¡Mensualidad Generada!',
            text: 'La reserva de período se ha generado exitosamente',
            icon: 'success',
            confirmButtonText: 'Aceptar'
          });
          yield _this2.getPeriodReservations();
        } else {
          throw new Error(response.message || 'Error al guardar la reserva');
        }
      } catch (error) {
        sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
          title: 'Error',
          text: 'No se pudo generar la mensualidad. Por favor, intente nuevamente.',
          icon: 'error',
          confirmButtonText: 'Entendido'
        });
      } finally {
        _this2.loading = false;
      }
    })();
  }
  openModal(data, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_booking_school_modal_booking_school_component__WEBPACK_IMPORTED_MODULE_6__.BookingPeriodoModalComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = data;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.canActivate = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getPeriodReservations();
    });
  }
  consultModal(data, content, size) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this3.selectedItems.length === 0) {
        _this3.selectedItems.push(data);
      }
      _this3.consultResults = [];
      _this3.dataSelected = null;
      _this3.loading = true;
      let shouldRefreshData = false;
      try {
        for (const item of _this3.selectedItems) {
          try {
            const result = yield _this3.consultData(item);
            _this3.consultResults.push(result);
            if (!_this3.dataSelected && result.hasPayment && result.pagoData) {
              _this3.dataSelected = {
                reserva: result.item,
                pago: result.pagoData,
                ruatResponse: result.ruatResponse
              };
            }
            if (result.hasPayment) {
              shouldRefreshData = true;
            }
          } catch (error) {
            _this3.consultResults.push({
              item,
              text: 'Error durante la consulta',
              type: 'error',
              hasPayment: false
            });
          }
        }
      } finally {
        _this3.loading = false;
        if (_this3.consultResults.length > 0) {
          if (_this3.dataSelected) {
            _this3.modalService.open(content, {
              centered: true,
              size: size
            });
          } else {
            _this3.modalService.open(content, {
              centered: true
            });
          }
        }
        _this3.selectedItems = [];
        if (shouldRefreshData) {
          _this3.getPeriodReservations();
        }
      }
    })();
  }
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        estudiante: item.reservaDto?.estudianteEscuelaDto?.nombreCompleto || '-',
        matricula: item.reservaDto?.estudianteEscuelaDto?.matricula || '-',
        escuela: item.reservaDto?.organizacionDto?.nombre || '-',
        periodo: this.getPeriodoDisplayForReserva(item),
        disciplina: item.reservaDto?.organizacionDto?.disciplina || '-',
        entrenador: item.reservaDto?.organizacionDto?.entrenador || '-',
        mes: item.mes || '-',
        año: item.año || '-',
        montoTotal: item.reservaDto?.montoTotal || '-',
        estadoValidacion: item.reservaDto?.estadoValidacion || '-',
        estadoReserva: item.reservaDto?.estadoReserva || '-',
        numeroReserva: item.reservaDto?.numeroReserva || '-',
        numeroTasa: item.reservaDto?.numeroTasa || '-',
        fechaCreacion: item.reservaDto?.fechaCreacion ? new Date(item.reservaDto.fechaCreacion).toLocaleDateString() : '-',
        fechaPago: item.fechaPago ? new Date(item.fechaPago).toLocaleDateString() : '-',
        complejo: item.reservaDto?.campoDeportivoDto?.complejoDto?.nombre || '-',
        campoDeportivo: item.reservaDto?.campoDeportivoDto?.nombre || '-'
      };
      return [{
        ...baseData
      }];
    });
    const data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Mensualidades - Escuelas Municipales',
      useBom: true,
      noDownload: false,
      headers: ["Estudiante", "Matrícula", "Escuela", "Período", "Disciplina", "Entrenador", "Mes", "Año", "Monto Total", "Estado Validación", "Estado Reserva", "Número Reserva", "Número Tasa", "Fecha Creación", "Fecha Pago", "Complejo", "Campo Deportivo"]
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, `Mensualidades_Escuelas_${new Date().toISOString().split('T')[0]}`, data);
  }
  /* BUSINESS LOGIC */
  checkAndUpdateReservationStatuses(list) {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const updatePromises = list.map(/*#__PURE__*/function () {
        var _ref = (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (reservaPer) {
          if (!reservaPer.reservaDto) return reservaPer;
          const reservaDto = reservaPer.reservaDto;
          const terminalStates = [src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.COMPLETADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.NO_SHOW, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA, src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA];
          if (terminalStates.includes(reservaDto.estadoReserva)) {
            return reservaPer;
          }
          try {
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE) {
              const consultResult = yield _this4.consultData(reservaPer);
              if (consultResult.hasPayment) {
                // if (this.isTimeCompleted(reservaPun)) {
                //   return await this.updateReservationByPP(reservaPun, {
                //     estadoReserva: EstadoReserva.COMPLETADA,
                //   });
                // } else if (this.isCurrentlyActive(reservaPun)) {
                //   return await this.updateReservationByPP(reservaPun, {
                //     estadoReserva: EstadoReserva.EN_CURSO,
                //   });
                // } else {
                return yield _this4.updateReservationByRP(reservaPer, {
                  estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA
                });
                // }
              } else {
                if (_this4.isPeriodExpired(reservaPer)) {
                  return yield _this4.handleExpiredReservation(reservaPer);
                }
              }
            }
            if (reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PAGADA && _this4.isUsageDatePassed(reservaPer)) {
              return yield _this4.updateReservationByRP(reservaPer, {
                estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.CANCELADA
              });
            }
            return reservaPer;
          } catch (error) {
            return reservaPer;
          }
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
      return yield Promise.all(updatePromises);
    })();
  }
  isUsageDatePassed(reserva) {
    const currentDate = new Date();
    const currentYear = currentDate.getFullYear();
    const currentMonth = currentDate.getMonth() + 1;
    if (reserva.año < currentYear) {
      return true;
    } else if (reserva.año === currentYear && reserva.mes < currentMonth) {
      return true;
    }
    return false;
  }
  isPeriodExpired(reserva) {
    if (!reserva.reservaDto) return false;
    const horasValidacion = this.HorasValidacionPago || 24;
    if (!reserva.reservaDto?.fechaCreacion) return false;
    const fechaCreacion = new Date(reserva.reservaDto.fechaCreacion);
    const currentDate = new Date();
    const expirationDate = new Date(fechaCreacion);
    expirationDate.setHours(expirationDate.getHours() + horasValidacion);
    return currentDate > expirationDate;
  }
  /* API RUAT Services */
  consultData(item) {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const nroTasa = item.reservaDto?.numeroTasa;
        if (!nroTasa) {
          return {
            item,
            text: "No hay número de tasa asociado",
            type: 'warning',
            hasPayment: false
          };
        }
        const codigoAlcaldia = _this5.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
        const resp = yield _this5.ruatService.consultaPagoTasa(codigoAlcaldia, nroTasa).toPromise();
        if (resp['status'] !== 'OK') {
          let errorMessage = 'Error en la consulta al RUAT';
          if (typeof resp.payload === 'string') {
            try {
              const jsonMatch = resp.payload.match(/\{.*\}/);
              if (jsonMatch) {
                const jsonPayload = JSON.parse(jsonMatch[0]);
                errorMessage = jsonPayload.mensaje || errorMessage;
              } else {
                errorMessage = resp.payload || errorMessage;
              }
            } catch (e) {
              errorMessage = resp.payload || errorMessage;
            }
          }
          return {
            item,
            text: errorMessage,
            type: 'error',
            hasPayment: false
          };
        }
        if (!resp.payload.continuarFlujo) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se puede continuar con el flujo",
            type: 'warning',
            hasPayment: false
          };
        }
        const pagoTasa = resp.payload.pagoTasa;
        if (!pagoTasa) {
          return {
            item,
            text: resp.payload.mensaje || resp.payload.observacion || "No se encontraron datos de pago",
            type: 'info',
            hasPayment: false
          };
        }
        let text = resp.payload.mensaje || resp.payload.observacion || "La tasa se encuentra pagada";
        try {
          const [day, month, year] = pagoTasa.fechaPago.split('/');
          const formattedDate = `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`;
          const existingPayment = item.reservaDto?.pagosDtoList?.find(pago => pago.folio === pagoTasa.folio && pago.numeroTasa === pagoTasa.numeroTasa);
          if (!existingPayment && item.reservaDto) {
            const nuevoPago = {
              numeroTasa: pagoTasa.numeroTasa,
              tipoTasa: "TO",
              folio: pagoTasa.folio,
              formaPago: pagoTasa.formaPago,
              fechaPago: new Date(formattedDate),
              entidadFinanciera: pagoTasa.entidadFinanciera,
              montoPagado: parseFloat(pagoTasa.montoPago) || 0,
              observaciones: pagoTasa.observacion,
              estadoPago: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoPago.PAGADO,
              ultimaConsulta: new Date(),
              respuestaCompletaRuat: JSON.stringify(resp),
              reservaDto: item.reservaDto
            };
            const pagoResp = yield _this5.pagoService.save(nuevoPago).toPromise();
          }
          return {
            item,
            text: `${text} - Pago verificado`,
            type: 'success',
            hasPayment: true,
            pagoData: pagoTasa
          };
          // if (pagoResp.status === 'OK') {
          //   item.reservaDto.estadoReserva = EstadoReserva.PAGADA;
          //   const updatedReserva = await this.updateReserva(item.reservaDto);
          //   item.reservaDto = updatedReserva;
          //   return { 
          //     item: item, 
          //     text: `${text} - Pago registrado exitosamente`, 
          //     type: 'success',
          //     hasPayment: true,
          //     pagoData: pagoResp.payload
          //   };
          // } else {
          //   return { 
          //     item, 
          //     text: 'Error al guardar el pago en el sistema', 
          //     type: 'error',
          //     hasPayment: true,
          //     shouldNotUpdate: true
          //   };
          // }
        } catch (error) {
          return {
            item,
            text: 'Error al procesar el pago',
            type: 'error',
            hasPayment: true
          };
        }
      } catch (error) {
        return {
          item,
          text: 'Error al realizar la consulta al RUAT',
          type: 'error',
          hasPayment: false
        };
      }
    })();
  }
  handleExpiredReservation(reserva) {
    var _this6 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const codigoAlcaldia = _this6.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_ALCALDIA_RUAT]?.valorTexto || 'QUI';
      const codigoUsuario = _this6.systemConfigList[src_app_core_constants_Configurations__WEBPACK_IMPORTED_MODULE_4__.ClaveConfiguracion.CODIGO_USUARIO_RUAT]?.valorTexto || '';
      if (reserva.reservaDto?.numeroTasa) {
        try {
          const requestData = {
            numeroTasa: reserva.reservaDto.numeroTasa,
            motivo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
            observacion: "ANULADO AUTOMATICO, VENCIDO PLAZO DE RESERVA"
          };
          if (!_this6.ruatService.isTokenAvailable()) {
            console.warn('RUAT token not available, skipping tasa cancellation');
          } else {
            yield _this6.ruatService.cancelTasa(codigoAlcaldia, codigoUsuario, requestData).toPromise();
          }
        } catch (error) {
          console.warn('Failed to cancel tasa in RUAT for expired period reservation:', error);
          return reserva;
        }
      }
      return yield _this6.updateReservationByRP(reserva, {
        estadoReserva: src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA,
        motivoRechazo: "NO SE EFECTUO EL PAGO EN EL DIA DE REGISTRO",
        fechaRechazo: new Date()
      });
    })();
  }
  /* API Services */
  updateReservationByRP(reserva, updates) {
    var _this7 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!reserva.reservaDto) return reserva;
      const updatedReservaDto = {
        ...reserva.reservaDto,
        ...updates,
        fechaActualizacion: new Date()
      };
      try {
        const response = yield _this7.reservaService.update(updatedReservaDto).toPromise();
        if (response && response.status === 'OK') {
          reserva.reservaDto = response.payload;
        } else {
          console.warn('Failed to update reservation:', response?.payload || 'Unknown error');
        }
        return reserva;
      } catch (error) {
        return reserva;
      }
    })();
  }
  updateReservation(data) {
    return new Promise((resolve, reject) => {
      this.reservaService.update(data).subscribe({
        next: resp => {
          if (resp['status'] === 'OK') {
            resolve(resp.payload);
          } else {
            reject(resp.payload);
          }
        },
        error: error => {
          console.error("Error updating reserva:", error);
          reject(error);
        }
      });
    });
  }
  getPeriodReservations() {
    var _this8 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        _this8.loading = true;
        const data = yield _this8.reservaPeriodoService.getAll(_this8.currentPage - 1, _this8.pageSize, {
          tab: _this8.filters.tab,
          searchTerm: _this8.filters.searchTerm,
          estadoReserva: _this8.filters.estadoReserva,
          categoria: _this8.filters.categoria,
          escuelaFiltro: _this8.filters.escuelaFiltro,
          periodoFiltro: _this8.filters.periodoFiltro
        }).toPromise();
        if (!data || data['status'] !== 'OK') {
          throw new Error(data?.payload || 'Respuesta inválida del servidor');
        }
        let list = [];
        if (data.payload?.content && Array.isArray(data.payload.content)) {
          list = data.payload.content;
        } else if (Array.isArray(data.payload)) {
          list = data.payload;
        }
        const employee = _this8.authService.staff();
        if (employee) {
          list = list.filter(item => item.reservaDto?.campoDeportivoDto?.complejoDto?.uuid === employee.complejoDto?.uuid);
        }
        if (_this8.contribuyente) {
          list = list.filter(item => item.reservaDto?.contribuyenteDto?.uuid === _this8.contribuyente.uuid);
        }
        const updatedList = yield _this8.checkAndUpdateReservationStatuses(list);
        _this8.notifyAboutExpiredReservations(list, updatedList);
        _this8.reservasList = {
          ...data.payload,
          content: updatedList
        };
        _this8.temp = _this8.reservasList;
      } catch (error) {
        _this8.loading = false;
        _this8.handleError(error, 'Error al obtener las reservas');
        _this8.reservasList = {
          content: [],
          totalElements: 0,
          pageable: {
            pageNumber: 0,
            pageSize: 20
          }
        };
        _this8.temp = [];
      } finally {
        _this8.loading = false;
      }
    })();
  }
  getCategories() {
    this.categoriesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  loadEscuelas() {
    this.organizacionesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.escuelasList = data.payload.content || data.payload;
        }
      },
      error: error => {
        this.loading = false;
        console.error('Error loading organizations:', error);
        sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
          text: 'Error al obtener las organizaciones',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  loadEstudiantes() {
    this.estuduanteService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.estudiantesList = data.payload.content || data.payload;
        }
      },
      error: error => {
        sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  /* NOTIFICATIONS */
  notifyAboutExpiredReservations(originalList, updatedList) {
    const newlyExpired = updatedList.filter(item => {
      const originalItem = originalList.find(item => item.reservaDto?.uuid === item.reservaDto?.uuid);
      return originalItem?.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.PENDIENTE && item.reservaDto?.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_3__.EstadoReserva.EXPIRADA;
    });
    if (newlyExpired.length > 0) {
      const expiredCount = newlyExpired.length;
      const message = expiredCount === 1 ? '1 reserva ha expirado por falta de pago y ha sido cancelada automáticamente' : `${expiredCount} reservas han expirado por falta de pago y han sido canceladas automáticamente`;
      sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
        title: 'Reservas Expiradas',
        html: `
          <p>${message}</p>
          <p class="text-sm text-muted mt-2">
            <i class="fas fa-info-circle me-1"></i>
          </p>
        `,
        icon: 'warning',
        iconColor: '#f8bb86',
        confirmButtonText: 'Entendido',
        confirmButtonColor: '#299cdb',
        timer: 7000,
        timerProgressBar: true,
        showCloseButton: true,
        backdrop: true,
        allowOutsideClick: false
      });
    }
  }
  handleError(error, defaultMessage) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
      text: error?.message || defaultMessage,
      icon: 'error',
      confirmButtonColor: '#299cdb'
    });
  }
  static {
    this.ɵfac = function BookingPeriodoComponent_Factory(t) {
      return new (t || BookingPeriodoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_8__.PaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_20__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_22__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_periodo_service__WEBPACK_IMPORTED_MODULE_10__.ReservaPeriodoService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_reserva_service__WEBPACK_IMPORTED_MODULE_11__.ReservaService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_ruatRequest_service__WEBPACK_IMPORTED_MODULE_12__.RuatRequestsService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_pago_service__WEBPACK_IMPORTED_MODULE_13__.PagoService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_14__.OrganizacionService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_api_estudianteEscuela_service__WEBPACK_IMPORTED_MODULE_15__.EstudianteEscuelaService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineComponent"]({
      type: BookingPeriodoComponent,
      selectors: [["app-booking-periodo"]],
      decls: 72,
      vars: 46,
      consts: [["nav", "ngbNav"], ["consultModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "consultEmitter", "exportEmitter", "title", "newShow", "consultShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], ["class", "bg-danger-subtle text-danger rounded-3 justify-content-center align-items-center p-2", 4, "ngIf"], [1, "row", "g-2"], [1, "col-6", "col-sm-3", "col-lg-3"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar estudiante, matr\u00EDcula, per\u00EDodo...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-6", "col-sm-3", "col-lg-2"], ["data-choices", "", "data-choices-search-false", "", "name", "periodo", "id", "idPeriodo", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], [3, "value", 4, "ngFor", "ngForOf"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoReserva", "id", "idEstadoReserva", 1, "form-control", 3, "ngModelChange", "ngModel"], ["data-choices", "", "data-choices-search-false", "", "name", "escuela", "id", "idEscuela", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "col-6", "col-sm-3", "col-lg-1"], ["title", "Limpiar", 1, "btn", "btn-outline-secondary", "w-100", 3, "click"], [1, "ri-refresh-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "All", "py-3"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pendientes", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Pagadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Pending"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "EnCurso", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Approved"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Completadas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Completed"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Canceladas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-3", "Rejected"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "pageChange", "pageSizeChange", "showItemEmitter", "editItemEmitter", "consultItemEmitter", "validateItemEmitter", "closeItemEmitter", "recordsEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "serverSidePagination", "paginationInfo", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "bg-danger-subtle", "text-danger", "rounded-3", "justify-content-center", "align-items-center", "p-2"], [1, "text-danger", "text-center"], [1, "text-center"], [3, "value"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "id", "btn-close", "data-bs-dismiss", "modal", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "text-center", "mb-3"], [1, "avatar-lg", "mx-auto", "mb-2"], [1, "avatar-title", "bg-light", "text-success", "display-5", "rounded-circle"], [1, "ri-bubble-chart-line"], [1, "fs-18", "fw-semibold", "text-info"], [1, "consult-results"], ["class", "result-item border rounded p-3 mb-3", 4, "ngFor", "ngForOf"], [1, "modal-footer", "border-top-0"], [1, "d-flex", "justify-content-between", "w-100", "align-items-center"], [1, "text-muted"], [1, "ri-time-line", "me-1"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [1, "ri-close-line", "me-1"], [1, "result-item", "border", "rounded", "p-3", "mb-3"], [1, "reservation-info", "border-bottom", "pb-2", "mb-2"], [1, "fw-semibold", "text-primary", "mb-2"], [1, "ri-information-line", "me-1"], [1, "row"], [1, "col-md-6"], [1, "fw-medium"], [1, "row", "mt-2"], [1, "badge", "ms-1", 3, "ngClass"], ["class", "payment-info", 4, "ngIf"], [1, "response-message", "mt-2"], [1, "fw-semibold", "mb-2"], [1, "ri-message-2-line", "me-1"], [1, "alert", 3, "ngClass"], [1, "d-flex", "align-items-center"], [1, "me-2", 3, "ngClass"], ["class", "mt-1 small", 4, "ngIf"], ["class", "no-payment-info mt-2", 4, "ngIf"], [1, "payment-info"], [1, "fw-semibold", "text-success", "mb-2"], [1, "ri-money-dollar-circle-line", "me-1"], [1, "payment-details", "bg-success-subtle", "p-2", "rounded"], [1, "row", "mt-1"], [1, "badge", "bg-success-subtle", "text-success"], ["class", "row mt-1", 4, "ngIf"], [1, "col-12"], [1, "mt-1", "small"], [1, "ri-check-double-line", "me-1"], [1, "no-payment-info", "mt-2"], [1, "alert", "alert-warning"], [1, "ri-information-line", "me-2"]],
      template: function BookingPeriodoComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "div", 3)(2, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("createEmitter", function BookingPeriodoComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.generarNuevaMensualidad());
          })("consultEmitter", function BookingPeriodoComponent_Template_app_data_header_consultEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](71);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.consultModal(undefined, consultModel_r2, "lg"));
          })("exportEmitter", function BookingPeriodoComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](3, "div", 5)(4, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](5, BookingPeriodoComponent_div_5_Template, 5, 0, "div", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div", 8)(7, "div", 9)(8, "div", 10)(9, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayBindingSet"](ctx.filters.searchTerm, $event) || (ctx.filters.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("ngModelChange", function BookingPeriodoComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](10, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](11, "div", 13)(12, "select", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_12_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayBindingSet"](ctx.filters.periodoFiltro, $event) || (ctx.filters.periodoFiltro = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_12_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](13, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](14, "Per\u00EDodo");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](15, BookingPeriodoComponent_option_15_Template, 2, 2, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](16, "div", 13)(17, "select", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_17_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayBindingSet"](ctx.filters.estadoReserva, $event) || (ctx.filters.estadoReserva = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_17_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](18, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](19, "Estado Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](20, BookingPeriodoComponent_option_20_Template, 2, 2, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](21, "div", 13)(22, "select", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayListener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_22_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayBindingSet"](ctx.filters.escuelaFiltro, $event) || (ctx.filters.escuelaFiltro = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("ngModelChange", function BookingPeriodoComponent_Template_select_ngModelChange_22_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](23, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](24, "Escuela");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](25, BookingPeriodoComponent_option_25_Template, 2, 2, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](26, "div", 19)(27, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("click", function BookingPeriodoComponent_Template_button_click_27_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.clearFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](28, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](29, "div", 22)(30, "div", 8)(31, "div", 23)(32, "ul", 24, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("navChange", function BookingPeriodoComponent_Template_ul_navChange_32_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](34, "li", 25)(35, "a", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](36, " Todas las Mensualidades");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](37, "span", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](38);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](39, "li", 25)(40, "a", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](41, " Pendientes de Pago ");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](42, "li", 25)(43, "a", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](44, " Pagadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](45, "li", 25)(46, "a", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](47, " Mes en Curso ");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](48, "li", 25)(49, "a", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](50, " Completadas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](51, "li", 25)(52, "a", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](53, " Canceladas/Expiradas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](54, "div", 33)(55, "button", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("click", function BookingPeriodoComponent_Template_button_click_55_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](56, BookingPeriodoComponent_i_56_Template, 1, 0, "i", 35)(57, BookingPeriodoComponent_i_57_Template, 1, 0, "i", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](58, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](59);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](60, "div", 37)(61, "span", 38)(62, "button", 39);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](63, "i", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](64, "ul", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrepeaterCreate"](65, BookingPeriodoComponent_For_66_Template, 5, 4, "li", 42, _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](67, "div", 43)(68, "div")(69, "app-data-table", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("pageChange", function BookingPeriodoComponent_Template_app_data_table_pageChange_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.onPageChange($event));
          })("pageSizeChange", function BookingPeriodoComponent_Template_app_data_table_pageSizeChange_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.onPageSizeChange($event));
          })("showItemEmitter", function BookingPeriodoComponent_Template_app_data_table_showItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function BookingPeriodoComponent_Template_app_data_table_editItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.openModal($event, "edit", "md"));
          })("consultItemEmitter", function BookingPeriodoComponent_Template_app_data_table_consultItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            const consultModel_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](71);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.consultModal($event, consultModel_r2, "lg"));
          })("validateItemEmitter", function BookingPeriodoComponent_Template_app_data_table_validateItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.openModal($event, "validarModal", ""));
          })("closeItemEmitter", function BookingPeriodoComponent_Template_app_data_table_closeItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.openModal($event, "annularModal", ""));
          })("recordsEmitter", function BookingPeriodoComponent_Template_app_data_table_recordsEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.showTicket($event));
          })("selectedItemEmitter", function BookingPeriodoComponent_Template_app_data_table_selectedItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](70, BookingPeriodoComponent_ng_template_70_Template, 21, 2, "ng-template", 45, 1, _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("title", "Lista de pagos a " + ctx.title)("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("consultShow", ctx.selectedItems.length > 0)("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx.contribuyente && ctx.contribuyente.estadoUsuario !== "ACTIVO");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.periodoFiltro);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx.periodosDisponibles);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.estadoReserva);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx.estadoReservaOptions);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtwoWayProperty"]("ngModel", ctx.filters.escuelaFiltro);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx.escuelasList);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("activeId", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx.temp.length || 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.reservasList)("serverSidePagination", true)("paginationInfo", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction6"](33, _c0, ctx.currentPage - 1, ctx.pageSize, ctx.reservasList == null ? null : ctx.reservasList.totalElements, ctx.reservasList == null ? null : ctx.reservasList.totalPages, ctx.reservasList == null ? null : ctx.reservasList.first, ctx.reservasList == null ? null : ctx.reservasList.last))("actions", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction5"](40, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("VALIDAR"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ANULAR") ? "Anular" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_23__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_23__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_23__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_22__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_22__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_22__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_22__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_22__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_22__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_22__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbDropdownMenu, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_16__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_17__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_18__.DataHeaderComponent, _angular_common__WEBPACK_IMPORTED_MODULE_23__.CurrencyPipe, _angular_common__WEBPACK_IMPORTED_MODULE_23__.DatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 19715:
/*!******************************************************************!*\
  !*** ./src/app/pages/modules/categories/categories.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CategoriesComponent: () => (/* binding */ CategoriesComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/modal-import/modal-import.component */ 2036);
/* harmony import */ var src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/TipoCobro */ 73695);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);

// Sweet Alert














const _c0 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
const _c1 = a0 => ({
  "is-invalid": a0
});
function CategoriesComponent_i_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 25);
  }
}
function CategoriesComponent_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 26);
  }
}
function CategoriesComponent_For_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 21)(1, "div", 27)(2, "input", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function CategoriesComponent_For_23_Template_input_ngModelChange_2_listener($event) {
      const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r3).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](column_r4.visible, $event) || (column_r4.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "label", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("id", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", column_r4.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("for", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", column_r4.name, " ");
  }
}
function CategoriesComponent_ng_template_26_h5_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "h5", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Agregar Categor\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "h5", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Editar Datos de Categor\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "h5", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Categor\u00EDa ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_Conditional_14_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, CategoriesComponent_ng_template_26_Conditional_14_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r6.form["codigo"].errors["required"] ? 1 : -1);
  }
}
function CategoriesComponent_ng_template_26_Conditional_20_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_Conditional_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, CategoriesComponent_ng_template_26_Conditional_20_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r6.form["nombre"].errors["required"] ? 1 : -1);
  }
}
function CategoriesComponent_ng_template_26_option_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "option", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", item_r8.value);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](item_r8.value);
  }
}
function CategoriesComponent_ng_template_26_Conditional_34_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_Conditional_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, CategoriesComponent_ng_template_26_Conditional_34_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r6.form["tipo"].errors["required"] ? 1 : -1);
  }
}
function CategoriesComponent_ng_template_26_button_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Guardar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function CategoriesComponent_ng_template_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, CategoriesComponent_ng_template_26_h5_1_Template, 3, 0, "h5", 31)(2, CategoriesComponent_ng_template_26_h5_2_Template, 3, 0, "h5", 31)(3, CategoriesComponent_ng_template_26_h5_3_Template, 3, 0, "h5", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "button", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_ng_template_26_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "form", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngSubmit", function CategoriesComponent_ng_template_26_Template_form_ngSubmit_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r6.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 36)(9, "div", 37)(10, "div")(11, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](13, "input", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](14, CategoriesComponent_ng_template_26_Conditional_14_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "div", 37)(16, "div")(17, "label", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](18, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](19, "input", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](20, CategoriesComponent_ng_template_26_Conditional_20_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](21, "div", 37)(22, "div")(23, "label", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](24, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](25, "textarea", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "div", 37)(27, "div")(28, "label", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](29, "Tipo de Cobro");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](30, "select", 46)(31, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](32, "Seleccione tipo de Cobro");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](33, CategoriesComponent_ng_template_26_option_33_Template, 2, 2, "option", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](34, CategoriesComponent_ng_template_26_Conditional_34_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](35, "div", 49)(36, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](37, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](38, "label", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](39, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](40, "div", 49)(41, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](42, "input", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](43, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](44, "Para Asociaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](45, "div", 55)(46, "div", 56)(47, "button", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_ng_template_26_Template_button_click_47_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](48, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](49, CategoriesComponent_ng_template_26_button_49_Template, 2, 0, "button", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r6.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r6.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r6.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r6.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r6.contentForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](13, _c1, ctx_r6.submitted && ctx_r6.form["codigo"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](14, ctx_r6.submitted && ctx_r6.form["codigo"].errors ? 14 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](15, _c1, ctx_r6.submitted && ctx_r6.form["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](20, ctx_r6.submitted && ctx_r6.form["nombre"].errors ? 20 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](17, _c1, ctx_r6.submitted && ctx_r6.form["tipo"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r6.typeList);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](34, ctx_r6.submitted && ctx_r6.form["tipo"].errors ? 34 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r6.accion !== "show");
  }
}
function CategoriesComponent_ng_template_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 63)(1, "div", 64)(2, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_ng_template_28_Template_button_click_2_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 34)(4, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](5, "lord-icon", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "div", 68)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, "\u00BFEst\u00E1s seguro de Eliminar el Registro?");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "p", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](10, " Al confirmar la eliminaci\u00F3n se quitar\u00E1 toda informaci\u00F3n de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "div", 70)(12, "button", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_ng_template_28_Template_button_click_12_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](13, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14, " Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "button", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_ng_template_28_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r6.deleteData());
    })("click", function CategoriesComponent_ng_template_28_Template_button_click_15_listener() {
      const modal_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](modal_r10.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](16, "S\u00ED, Eliminar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
  }
}
/**
 * Leads Component
 */
class CategoriesComponent {
  constructor(modalService, authService, translate, categoriesService, formBuilder) {
    this.modalService = modalService;
    this.authService = authService;
    this.translate = translate;
    this.categoriesService = categoriesService;
    this.formBuilder = formBuilder;
    this.title = "Categorias";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.typeList = src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_3__.TipoCobro;
    this.categoryList = [];
    this.submitted = false;
    this.selectedItems = [];
    /**
     * Open modal
     * @param content modal content
     */
    this.accion = '';
    this.headersImport = ['Código', 'Nombre', 'Descripción', 'Tipo Cobro', 'Activo', 'Para Asociación', 'Requiere Aprobacion', 'Max Duración', 'Max Personas'];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Codigo',
      prop: 'codigo',
      visible: false
    }, {
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Descripción',
      prop: 'descripcion',
      visible: true
    }, {
      name: 'Tipo Cobro',
      prop: 'tipo',
      visible: true
    }, {
      name: 'Activo',
      prop: 'activo',
      visible: true,
      tag: true
    }, {
      name: 'Para Asociación',
      prop: 'forAsociacion',
      visible: true,
      tag: true
    }];
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      estado: [''],
      codigo: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      descripcion: [''],
      tipo: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required]],
      activo: [true],
      forAsociacion: [false],
      requiereAprobacion: [false],
      maxDuracionAutoAprobacion: [],
      maxPersonasAutoAprobacion: []
    });
    this.getCategories();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  get form() {
    return this.contentForm.controls;
  }
  formDataSet(row) {
    this.contentForm.patchValue({
      uuid: row.uuid,
      codigo: row.codigo,
      nombre: row.nombre,
      descripcion: row.descripcion || '',
      tipo: row.tipo,
      activo: row.activo,
      forAsociacion: row.forAsociacion || false,
      requiereAprobacion: row.requiereAprobacion,
      maxDuracionAutoAprobacion: row.maxDuracionAutoAprobacion,
      maxPersonasAutoAprobacion: row.maxPersonasAutoAprobacion
    });
  }
  // Search Data
  performSearch() {
    this.categoryList = this.temp.filter(item => {
      return item.nombre?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.codigo?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.descripcion?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.tipo?.toLowerCase().includes(this.searchTerm.toLowerCase());
    });
  }
  openModal(data, content, accion) {
    this.accion = accion;
    if (data) {
      this.formDataSet(data);
      if (accion === 'show') {
        this.contentForm.disable();
      }
    } else {
      // Reset form for new entry
      this.contentForm.patchValue({
        activo: true,
        forAsociacion: false
      });
    }
    this.modalService.open(content, {
      size: 'md',
      centered: true
    });
  }
  openModalImport() {
    const modalRef = this.modalService.open(src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = this.headersImport.map(header => ({
      prop: header,
      name: header,
      visible: true
    }));
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.lookupData = {
      typeList: src_app_core_constants_TipoCobro__WEBPACK_IMPORTED_MODULE_3__.TipoCobro
    };
    modalRef.componentInstance.checkExistsFn = registro => this.temp.some(item => item.nombre === registro.nombre);
    modalRef.componentInstance.mapRowFn = (row, lookupData) => {
      const value = (row['Tipo Cobro'] || '').trim();
      const normalizedValue = value.toUpperCase().replace(/\s+/g, ' ');
      const type = lookupData.typeList.find(t => {
        const tipoValue = t.value.toUpperCase();
        const tipoLabel = t.label.toUpperCase();
        const normalizedValue = value.toUpperCase().trim();
        return tipoValue === normalizedValue || tipoLabel === normalizedValue || tipoValue.includes(normalizedValue) || tipoLabel.includes(normalizedValue) || normalizedValue.includes(tipoValue.replace('POR_', '')) || normalizedValue.includes(tipoLabel.replace('POR ', '')) || tipoValue.replace('POR_', '') === normalizedValue || tipoLabel.replace('POR ', '') === normalizedValue || tipoValue === 'POR_' + normalizedValue || tipoLabel === 'POR ' + normalizedValue;
      });
      if (!type) {
        const availableOptions = lookupData.typeList.map(t => `${t.label} (${t.value})`).join(', ');
        const missingFields = ['TipoCobro'];
        throw {
          missingFields,
          message: `TipoCobro "${value}" no encontrado. Opciones disponibles: ${availableOptions}`
        };
      }
      return {
        codigo: '' + row['Código'],
        nombre: '' + row['Nombre'],
        descripcion: row['Descripción'] ? '' + row['Descripción'] : '',
        activo: row['Activo'] ? ('' + row['Activo']).toLowerCase() === 'Activo' : true,
        forAsociacion: row['Para Asociación'] ? ('' + row['Para Asociación']).toLowerCase() === 'true' : false,
        tipo: type.value
      };
    };
    modalRef.componentInstance.createRecordFn = record => this.categoriesService.save(record).toPromise();
    modalRef.componentInstance.actionCompleted.subscribe(() => {
      this.getCategories();
    });
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      return {
        code: item.codigo,
        name: item.nombre,
        description: item.descripcion || '',
        type: item.tipo,
        active: item.activo ? 'Sí' : 'No',
        forAssociation: item.forAsociacion ? 'Sí' : 'No'
        // requiereAprobacion: item.requiereAprobacion? 'Sí' : 'No',
        // maxDuracionAutoAprobacion:item.maxDuracionAutoAprobacion,
        // maxPersonasAutoAprobacion:item.maxPersonasAutoAprobacion,
      };
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: this.headersImport
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, this.title, data);
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  /**
  * Save Form
  */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.contentForm.enable();
      let datos = {
        codigo: this.contentForm.value.codigo,
        nombre: this.contentForm.value.nombre,
        descripcion: this.contentForm.value.descripcion,
        tipo: this.contentForm.value.tipo,
        activo: this.contentForm.value.activo,
        forAsociacion: this.contentForm.value.forAsociacion
      };
      if (this.contentForm.get('uuid')?.value) {
        datos.uuid = this.contentForm.value.uuid;
        this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Formulario Inválido!', 'error');
    }
  }
  getCategories() {
    this.categoriesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
          this.temp = this.categoryList;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  addData(datos) {
    this.categoriesService.save(datos).subscribe({
      next: data => {
        this.submitted = false;
        this.notify('Datos Registrados exitosamente!', 'success');
        this.closeModal();
      },
      error: error => {
        this.notify('No se pudo Guardar los datos! ' + error, 'error');
      }
    });
  }
  updateData(datosUnit) {
    this.categoriesService.update(datosUnit).subscribe({
      next: data => {
        this.submitted = false;
        this.closeModal();
        this.notify('Datos Actualizados exitosamente!', 'success');
      },
      error: error => {
        this.notify('No se pudo Actualizar los datos! ' + error, 'error');
      }
    });
  }
  // Delete Data
  deleteData() {
    let uuid = this.deleteId;
    this.categoriesService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'info');
        }
        this.closeModal();
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  /* commun functions */
  closeModal() {
    this.modalService.dismissAll();
    this.contentForm.reset();
    this.contentForm.enable();
    this.getCategories();
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function CategoriesComponent_Factory(t) {
      return new (t || CategoriesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_5__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: CategoriesComponent,
      selectors: [["app-categories"]],
      decls: 30,
      vars: 23,
      consts: [["content", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "pb-1"], [1, "row", "g-2"], [1, "col-7", "col-lg-6"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar por ...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], ["type", "hidden", "name", "uuid", "formControlName", "uuid"], [1, "row", "g-3"], [1, "col-lg-12"], ["for", "codigo-field", 1, "form-label", "mb-0"], ["type", "text", "id", "codigo-field", "placeholder", "Ingrese el c\u00F3digo de la Categor\u00EDa", "required", "", "formControlName", "codigo", 1, "form-control", 3, "ngClass"], ["align", "left", 1, "invalid-feedback"], ["for", "nombre-field", 1, "form-label", "mb-0"], ["type", "text", "id", "nombre-field", "placeholder", "Ingrese el nombre de la Categor\u00EDa", "required", "", "formControlName", "nombre", 1, "form-control", 3, "ngClass"], ["for", "descripcion-field", 1, "form-label", "mb-0"], ["id", "descripcion-field", "rows", "3", "placeholder", "Ingrese una descripci\u00F3n (opcional)", "formControlName", "descripcion", 1, "form-control"], ["for", "tipo-field", 1, "form-label", "mb-0"], ["aria-label", "tipo", "formControlName", "tipo", "required", "", 1, "form-select", 3, "ngClass"], ["selected", "", "disabled", "", "value", "", 1, "text-muted"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-lg-6"], [1, "form-check", "form-switch"], ["type", "checkbox", "id", "activo-field", "formControlName", "activo", 1, "form-check-input"], ["for", "activo-field", 1, "form-check-label"], ["type", "checkbox", "id", "forAsociacion-field", "formControlName", "forAsociacion", 1, "form-check-input"], ["for", "forAsociacion-field", 1, "form-check-label"], [1, "modal-footer"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "button", "data-bs-dismiss", "modal", 1, "btn", "btn-light", 3, "click"], ["type", "submit", "class", "btn btn-primary", "id", "add-btn", 4, "ngIf"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-football-line", "me-2"], [3, "value"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-primary"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function CategoriesComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 3)(3, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("createEmitter", function CategoriesComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal(undefined, content_r2, ""));
          })("importEmitter", function CategoriesComponent_Template_app_data_header_importEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function CategoriesComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8)(8, "div", 9)(9, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function CategoriesComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function CategoriesComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.performSearch());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](10, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "div", 12)(12, "button", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function CategoriesComponent_Template_button_click_12_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](13, CategoriesComponent_i_13_Template, 1, 0, "i", 14)(14, CategoriesComponent_i_14_Template, 1, 0, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](17, "div", 16)(18, "span", 17)(19, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](20, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](21, "ul", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](22, CategoriesComponent_For_23_Template, 5, 4, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "div", 22)(25, "app-data-table", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("showItemEmitter", function CategoriesComponent_Template_app_data_table_showItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, content_r2, "show"));
          })("editItemEmitter", function CategoriesComponent_Template_app_data_table_editItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, content_r2, "edit"));
          })("closeItemEmitter", function CategoriesComponent_Template_app_data_table_closeItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            const deleteModel_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](29);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.deleteModal(deleteModel_r5, $event));
          })("selectedItemEmitter", function CategoriesComponent_Template_app_data_table_selectedItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](26, CategoriesComponent_ng_template_26_Template, 50, 19, "ng-template", 24, 0, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"])(28, CategoriesComponent_ng_template_28_Template, 17, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](1, 17, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.categoryList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction3"](19, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      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_10__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormControlName, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownMenu, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslatePipe],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9jYXRlZ29yaWVzL2NhdGVnb3JpZXMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSTtJQUVFLGtCQUFBO0lBQ0EsbUJBQUE7RUFBSjtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhIChtYXgtd2lkdGg6IDc2N3B4KSB7XHJcbiAgICAuY2FyZCB7XHJcbiAgICAvLyAgIG1hcmdpbjogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMTVweDtcclxuICAgICAgbWFyZ2luLXJpZ2h0OiAtMTVweDtcclxuICAgIH1cclxuICB9Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 99881:
/*!************************************************************************************!*\
  !*** ./src/app/pages/modules/clasificadores-ruat/clasificadores-ruat.component.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClasificadoresRuatComponent: () => (/* binding */ ClasificadoresRuatComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/modal-import/modal-import.component */ 2036);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/clasificadorRuat.service */ 12341);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);














const _c0 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
const _c1 = a0 => ({
  "is-invalid": a0
});
function ClasificadoresRuatComponent_i_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 25);
  }
}
function ClasificadoresRuatComponent_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 26);
  }
}
function ClasificadoresRuatComponent_For_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "li", 21)(1, "div", 27)(2, "input", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function ClasificadoresRuatComponent_For_23_Template_input_ngModelChange_2_listener($event) {
      const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r3).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](column_r4.visible, $event) || (column_r4.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "label", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("id", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", column_r4.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("for", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", column_r4.name, " ");
  }
}
function ClasificadoresRuatComponent_ng_template_26_h5_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Agregar Clasificador Ruat ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Editar Datos de Clasificador Ruat ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Clasificador Ruat ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_14_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ClasificadoresRuatComponent_ng_template_26_Conditional_14_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](1, ctx_r6.form["codigo"].errors["required"] ? 1 : -1);
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_20_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ClasificadoresRuatComponent_ng_template_26_Conditional_20_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](1, ctx_r6.form["nombre"].errors["required"] ? 1 : -1);
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_31_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "El campo es requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_Conditional_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ClasificadoresRuatComponent_ng_template_26_Conditional_31_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](1, ctx_r6.form["tipoArancel"].errors["required"] ? 1 : -1);
  }
}
function ClasificadoresRuatComponent_ng_template_26_button_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "Guardar");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function ClasificadoresRuatComponent_ng_template_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, ClasificadoresRuatComponent_ng_template_26_h5_1_Template, 3, 0, "h5", 31)(2, ClasificadoresRuatComponent_ng_template_26_h5_2_Template, 3, 0, "h5", 31)(3, ClasificadoresRuatComponent_ng_template_26_h5_3_Template, 3, 0, "h5", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "button", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_ng_template_26_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "form", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngSubmit", function ClasificadoresRuatComponent_ng_template_26_Template_form_ngSubmit_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "div", 36)(9, "div", 37)(10, "div")(11, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "input", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](14, ClasificadoresRuatComponent_ng_template_26_Conditional_14_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "div", 37)(16, "div")(17, "label", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](18, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](19, "input", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](20, ClasificadoresRuatComponent_ng_template_26_Conditional_20_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "div", 37)(22, "div")(23, "label", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](24, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](25, "textarea", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](26, "div", 37)(27, "div")(28, "label", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](29, "Tipo de Arancel");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](30, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](31, ClasificadoresRuatComponent_ng_template_26_Conditional_31_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](32, "div", 37)(33, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](34, "input", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](35, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](36, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](37, "div", 50)(38, "div", 51)(39, "button", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_ng_template_26_Template_button_click_39_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](40, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](41, ClasificadoresRuatComponent_ng_template_26_button_41_Template, 2, 0, "button", 53);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r6.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r6.contentForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](12, _c1, ctx_r6.submitted && ctx_r6.form["codigo"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](14, ctx_r6.submitted && ctx_r6.form["codigo"].errors ? 14 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](14, _c1, ctx_r6.submitted && ctx_r6.form["nombre"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](20, ctx_r6.submitted && ctx_r6.form["nombre"].errors ? 20 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](16, _c1, ctx_r6.submitted && ctx_r6.form["tipoArancel"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](31, ctx_r6.submitted && ctx_r6.form["tipoArancel"].errors ? 31 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion !== "show");
  }
}
function ClasificadoresRuatComponent_ng_template_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 57)(1, "div", 58)(2, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_ng_template_28_Template_button_click_2_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 34)(4, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](5, "lord-icon", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 62)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8, "\u00BFEst\u00E1s seguro de Eliminar el Registro?");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](9, "p", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](10, " Al confirmar la eliminaci\u00F3n se quitar\u00E1 toda informaci\u00F3n de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 64)(12, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_ng_template_28_Template_button_click_12_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](14, " Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "button", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_ng_template_28_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.deleteData());
    })("click", function ClasificadoresRuatComponent_ng_template_28_Template_button_click_15_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](16, "S\u00ED, Eliminar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
}
class ClasificadoresRuatComponent {
  constructor(modalService, authService, translate, clasificadoresService, formBuilder) {
    this.modalService = modalService;
    this.authService = authService;
    this.translate = translate;
    this.clasificadoresService = clasificadoresService;
    this.formBuilder = formBuilder;
    this.title = "Clasificadores Ruat";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.clasificadorList = [];
    this.submitted = false;
    this.selectedItems = [];
    /**
     * Open modal
     * @param content modal content
     */
    this.accion = '';
    this.headersImport = ['Código', 'Nombre', 'Descripción', 'Tipo Arancel', 'Activo'];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Código',
      prop: 'codigo',
      visible: true
    }, {
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Descripción',
      prop: 'descripcion',
      visible: false
    }, {
      name: 'Tipo Arancel',
      prop: 'tipoArancel',
      visible: true
    }, {
      name: 'Estado',
      prop: 'activo',
      visible: true,
      tag: true
    }];
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      estado: [''],
      codigo: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]],
      nombre: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]],
      descripcion: [''],
      tipoArancel: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]],
      activo: [true]
    });
    this.getClasificadores();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  get form() {
    return this.contentForm.controls;
  }
  formDataSet(row) {
    this.contentForm.patchValue({
      uuid: row.uuid,
      codigo: row.codigo,
      nombre: row.nombre,
      descripcion: row.descripcion || '',
      tipoArancel: row.tipoArancel,
      activo: row.activo
    });
  }
  performSearch() {
    this.clasificadorList = this.temp.filter(item => {
      return item.nombre?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.codigo?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.descripcion?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.tipoArancel?.toLowerCase().includes(this.searchTerm.toLowerCase());
    });
  }
  openModal(data, content, accion) {
    this.accion = accion;
    if (data) {
      this.formDataSet(data);
      if (accion === 'show') {
        this.contentForm.disable();
      }
    } else {
      this.contentForm.patchValue({
        activo: true
      });
    }
    this.modalService.open(content, {
      size: 'md',
      centered: true
    });
  }
  openModalImport() {
    const modalRef = this.modalService.open(src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = this.headersImport.map(header => ({
      prop: header,
      name: header,
      visible: true
    }));
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.lookupData = {};
    modalRef.componentInstance.checkExistsFn = registro => this.temp.some(item => !item.estado && (item.nombre === registro.nombre || item.codigo === registro.codigo));
    modalRef.componentInstance.mapRowFn = (row, lookupData) => {
      const missingFields = [];
      if (!row['Código']) missingFields.push('Código');
      if (!row['Nombre']) missingFields.push('Nombre');
      if (!row['Tipo Arancel']) missingFields.push('Tipo Arancel');
      if (missingFields.length > 0) {
        throw {
          missingFields
        };
      }
      let codigo = row['Código'];
      if (codigo !== null && codigo !== undefined) {
        // codigo = codigo.toString().trim();
        codigo = codigo.toString().replace(/[^\d]/g, '');
      } else {
        codigo = '';
      }
      let activo = true;
      const activoValue = row['Activo'];
      if (activoValue !== null && activoValue !== undefined) {
        const activoStr = activoValue.toString().toLowerCase().trim();
        activo = activoStr === 'sí' || activoStr === 'si' || activoStr === 'yes' || activoStr === 'true' || activoStr === '1' || activoStr === 'verdadero' || activoStr === 'activo' || activoStr === 's';
      }
      return {
        codigo: codigo,
        nombre: row['Nombre'] ? row['Nombre'].toString().trim() : '',
        descripcion: row['Descripción'] ? row['Descripción'].toString().trim() : '',
        activo: activo,
        tipoArancel: row['Tipo Arancel'] ? row['Tipo Arancel'].toString().trim() : 'DI'
      };
    };
    modalRef.componentInstance.createRecordFn = record => this.clasificadoresService.save(record).toPromise();
    modalRef.componentInstance.actionCompleted.subscribe(() => {
      this.getClasificadores();
    });
  }
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      return {
        code: item.codigo,
        name: item.nombre,
        description: item.descripcion || '',
        tariffType: item.tipoArancel,
        active: item.activo ? 'SI' : 'NO'
      };
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: this.headersImport
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, this.title, data);
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  /**
  * Save Form
  */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.contentForm.enable();
      let datos = {
        codigo: this.contentForm.value.codigo,
        nombre: this.contentForm.value.nombre,
        descripcion: this.contentForm.value.descripcion,
        tipoArancel: this.contentForm.value.tipoArancel,
        activo: this.contentForm.value.activo
      };
      if (this.contentForm.get('uuid')?.value) {
        datos.uuid = this.contentForm.value.uuid;
        this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Formulario Inválido!', 'error');
    }
  }
  getClasificadores() {
    this.clasificadoresService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.clasificadorList = data.payload;
          this.temp = this.clasificadorList;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  addData(datos) {
    this.clasificadoresService.save(datos).subscribe({
      next: data => {
        if (data.status === 'OK') {
          this.submitted = false;
          this.notify('Datos registrados exitosamente!', 'success');
          this.closeModal();
        } else {
          const errorMessage = data.payload || 'Error desconocido al guardar';
          this.notify('No se pudo guardar los datos: ' + errorMessage, 'error');
        }
      },
      error: error => {
        console.error('Error saving data:', error);
        const errorMessage = this.getErrorMessage(error);
        this.notify('No se pudo guardar los datos: ' + errorMessage, 'error');
      }
    });
  }
  updateData(datosUnit) {
    this.clasificadoresService.update(datosUnit).subscribe({
      next: data => {
        if (data.status === 'OK') {
          this.submitted = false;
          this.closeModal();
          this.notify('Datos actualizados exitosamente!', 'success');
        } else {
          const errorMessage = data.payload || 'Error desconocido al actualizar';
          this.notify('No se pudo actualizar los datos: ' + errorMessage, 'error');
        }
      },
      error: error => {
        const errorMessage = this.getErrorMessage(error);
        this.notify('No se pudo actualizar los datos: ' + errorMessage, 'error');
      }
    });
  }
  // Delete Data
  deleteData() {
    let uuid = this.deleteId;
    this.clasificadoresService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'info');
        }
        this.closeModal();
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  /* commun functions */
  closeModal() {
    this.modalService.dismissAll();
    this.contentForm.reset();
    this.contentForm.enable();
    this.getClasificadores();
  }
  getErrorMessage(error) {
    if (error.error && error.error.payload) {
      return error.error.payload;
    } else if (error.error && typeof error.error === 'string') {
      return error.error;
    } else if (error.message) {
      return error.message;
    } else if (error.status === 409) {
      return 'El código ya existe en el sistema';
    } else if (error.status === 404) {
      return 'Registro no encontrado';
    } else if (error.status === 400) {
      return 'Datos inválidos';
    } else {
      return 'Error de conexión con el servidor';
    }
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  static {
    this.ɵfac = function ClasificadoresRuatComponent_Factory(t) {
      return new (t || ClasificadoresRuatComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_clasificadorRuat_service__WEBPACK_IMPORTED_MODULE_4__.ClasificadorRuatService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
      type: ClasificadoresRuatComponent,
      selectors: [["app-clasificadores-ruat"]],
      decls: 30,
      vars: 23,
      consts: [["content", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "pb-1"], [1, "row"], [1, "col-7", "col-lg-6"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar por ...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], ["type", "hidden", "name", "uuid", "formControlName", "uuid"], [1, "row", "g-3"], [1, "col-lg-12"], ["for", "codigo-field", 1, "form-label", "mb-0"], ["type", "text", "id", "codigo-field", "placeholder", "Ingrese el c\u00F3digo del Clasificador", "required", "", "formControlName", "codigo", 1, "form-control", 3, "ngClass"], ["align", "left", 1, "invalid-feedback"], ["for", "nombre-field", 1, "form-label", "mb-0"], ["type", "text", "id", "nombre-field", "placeholder", "Ingrese el nombre del Clasificador", "required", "", "formControlName", "nombre", 1, "form-control", 3, "ngClass"], ["for", "descripcion-field", 1, "form-label", "mb-0"], ["id", "descripcion-field", "rows", "3", "placeholder", "Ingrese una descripci\u00F3n (opcional)", "formControlName", "descripcion", 1, "form-control"], ["for", "tipoArancel-field", 1, "form-label", "mb-0"], ["type", "text", "id", "tipoArancel-field", "placeholder", "Ingrese el tipoArancel del Clasificador", "required", "", "formControlName", "tipoArancel", 1, "form-control", 3, "ngClass"], [1, "form-check", "form-switch"], ["type", "checkbox", "id", "activo-field", "formControlName", "activo", 1, "form-check-input"], ["for", "activo-field", 1, "form-check-label"], [1, "modal-footer"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "button", "data-bs-dismiss", "modal", 1, "btn", "btn-light", 3, "click"], ["type", "submit", "class", "btn btn-primary", "id", "add-btn", 4, "ngIf"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-registered-line", "me-2"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-primary"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function ClasificadoresRuatComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "div", 3)(3, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("createEmitter", function ClasificadoresRuatComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal(undefined, content_r2, ""));
          })("importEmitter", function ClasificadoresRuatComponent_Template_app_data_header_importEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function ClasificadoresRuatComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8)(8, "div", 9)(9, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function ClasificadoresRuatComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngModelChange", function ClasificadoresRuatComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.performSearch());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](10, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 12)(12, "button", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ClasificadoresRuatComponent_Template_button_click_12_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](13, ClasificadoresRuatComponent_i_13_Template, 1, 0, "i", 14)(14, ClasificadoresRuatComponent_i_14_Template, 1, 0, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](17, "div", 16)(18, "span", 17)(19, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](20, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "ul", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterCreate"](22, ClasificadoresRuatComponent_For_23_Template, 5, 4, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "div", 22)(25, "app-data-table", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("showItemEmitter", function ClasificadoresRuatComponent_Template_app_data_table_showItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, content_r2, "show"));
          })("editItemEmitter", function ClasificadoresRuatComponent_Template_app_data_table_editItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, content_r2, "edit"));
          })("closeItemEmitter", function ClasificadoresRuatComponent_Template_app_data_table_closeItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const deleteModel_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](29);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.deleteModal(deleteModel_r5, $event));
          })("selectedItemEmitter", function ClasificadoresRuatComponent_Template_app_data_table_selectedItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](26, ClasificadoresRuatComponent_ng_template_26_Template, 42, 18, "ng-template", 24, 0, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"])(28, ClasificadoresRuatComponent_ng_template_28_Template, 17, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 17, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.clasificadorList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction3"](19, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _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, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 29121:
/*!****************************************************************!*\
  !*** ./src/app/pages/modules/employees/employees.component.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EmployeesComponent: () => (/* binding */ EmployeesComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/UserData */ 55007);
/* harmony import */ var _modals_employee_modal_employee_modal_employee_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modals/employee/modal-employee/modal-employee.component */ 7805);
/* harmony import */ var _modals_employee_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modals/employee/modal-import/modal-import.component */ 77843);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/api-users/users.service */ 81394);
/* harmony import */ var src_app_core_services_api_encargado_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/encargado.service */ 93653);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);

// Csv File Export

// Sweet Alert















const _c0 = ["viewModel"];
const _c1 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
function EmployeesComponent_i_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](0, "i", 27);
  }
}
function EmployeesComponent_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](0, "i", 28);
  }
}
function EmployeesComponent_For_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "li", 22)(1, "div", 29)(2, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayListener"]("ngModelChange", function EmployeesComponent_For_23_Template_input_ngModelChange_2_listener($event) {
      const column_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r2).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayBindingSet"](column_r3.visible, $event) || (column_r3.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("id", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayProperty"]("ngModel", column_r3.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("for", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", column_r3.name, " ");
  }
}
function EmployeesComponent_div_28_tr_56_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "tr")(1, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Fecha Fin:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "td", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r4.formatDate(ctx_r4.funcionarioSelected.fechaFinAsignacion), " ");
  }
}
function EmployeesComponent_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 6)(1, "div", 32)(2, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](3, "img", 34)(4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "h5", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](7, "p", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](9, "ul", 37)(10, "li", 38)(11, "a", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](12, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](13, "li", 38)(14, "a", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](15, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](16, "li", 38)(17, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](18, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](19, "div", 23)(20, "h6", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](21, "Informaci\u00F3n del Cargo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](22, "div", 46)(23, "table", 47)(24, "tbody")(25, "tr")(26, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](27, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](28, "td", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](30, "tr")(31, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](32, "Tel\u00E9fono:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](33, "td", 50)(34, "span", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](36, "tr")(37, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](38, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](39, "td", 52)(40, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](41);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](42, "tr")(43, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](44, "Horario:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](45, "td", 53)(46, "div", 54)(47, "span", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](49, "span", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](51, "tr")(52, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](53, "Fecha Asignaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](54, "td", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](56, EmployeesComponent_div_28_tr_56_Template, 5, 1, "tr", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("src", "assets/icons/users/" + ctx_r4.funcionarioSelected.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"]("contact-active position-absolute rounded-circle " + (ctx_r4.funcionarioSelected.activo ? "bg-success" : "bg-danger"));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r4.funcionarioSelected.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r4.funcionarioSelected.complejoDto == null ? null : ctx_r4.funcionarioSelected.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("href", "https://api.whatsapp.com/send?phone=+591" + ctx_r4.funcionarioSelected.telefono + "&text=MENSAJE DESDE SISTEMA DE DEPORTES", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"]((ctx_r4.funcionarioSelected.complejoDto == null ? null : ctx_r4.funcionarioSelected.complejoDto.nombre) || "No asignado");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx_r4.funcionarioSelected.telefono || "No especificado");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassMap"]("badge " + (ctx_r4.funcionarioSelected.activo ? "bg-success" : "bg-danger"));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r4.funcionarioSelected.activo ? "Activo" : "Inactivo", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"]((ctx_r4.funcionarioSelected.horaEntrada == null ? null : ctx_r4.funcionarioSelected.horaEntrada.slice(0, 5)) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"]((ctx_r4.funcionarioSelected.horaSalida == null ? null : ctx_r4.funcionarioSelected.horaSalida.slice(0, 5)) || "N/A");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r4.formatDate(ctx_r4.funcionarioSelected.fechaAsignacion), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r4.funcionarioSelected.fechaFinAsignacion);
  }
}
function EmployeesComponent_ng_template_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "button", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function EmployeesComponent_ng_template_29_Template_button_click_2_listener() {
      const modal_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r6).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](modal_r7.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "div", 59)(4, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](5, "lord-icon", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "div", 62)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](8, "\u00BFEst\u00E1 seguro de eliminar el registro?");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](9, "p", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](10, " Al confirmar la eliminaci\u00F3n se quitar\u00E1 toda informaci\u00F3n de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](11, "div", 64)(12, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function EmployeesComponent_ng_template_29_Template_button_click_12_listener() {
      const modal_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r6).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](modal_r7.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](13, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](14, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](15, "button", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function EmployeesComponent_ng_template_29_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r6);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r4.deleteData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](16, " S\u00ED, Eliminar! ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
  }
}
class EmployeesComponent {
  constructor(modalService, authService, usersService, employeesService, complejosService, datePipe) {
    this.modalService = modalService;
    this.authService = authService;
    this.usersService = usersService;
    this.employeesService = employeesService;
    this.complejosService = complejosService;
    this.datePipe = datePipe;
    this.title = 'Encargados';
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.submitted = false;
    this.userRol = src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_3__.UserRol;
    this.employeesList = [];
    this.complejosList = [];
    this.selectedItems = [];
    this.loading = true;
    this.headersImport = ['Nombre', 'Telefono', 'Complejo', 'Activo', 'Fecha Asignación', 'Fecha Fin', 'Hora Entrada', 'Hora Salida'];
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Nombre',
      prop: 'nombre',
      avatar: true,
      visible: true
    }, {
      name: 'Complejo',
      prop: 'complejoDto.nombre',
      visible: true
    }, {
      name: 'Telefono',
      prop: 'telefono',
      visible: true
    }, {
      name: 'Activo',
      prop: 'activo',
      visible: true,
      tag: true
    }, {
      name: 'Fecha Asignación',
      prop: 'fechaAsignacion',
      visible: false
    }, {
      name: 'Fecha Fin',
      prop: 'fechaFinAsignacion',
      visible: false
    }, {
      name: 'Hora Entrada',
      prop: 'horaEntrada',
      visible: false
    }, {
      name: 'Hora Salida',
      prop: 'horaSalida',
      visible: false
    }];
    this.loadData();
  }
  loadData() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this.getUsers();
      yield _this.getComplejos();
      yield _this.getEmployees();
    })();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  performSearch() {
    this.employeesList = this.temp.filter(item => {
      const searchTermLower = this.searchTerm.toLowerCase();
      return item.nombre?.toLowerCase().includes(searchTermLower) || item.telefono?.toLowerCase().includes(searchTermLower) || item.complejoDto?.nombre?.toLowerCase().includes(searchTermLower) || item.activo !== undefined && (item.activo ? 'activo' : 'inactivo').includes(searchTermLower);
    });
  }
  /**
   * View Data Get
   */
  viewDataGet(data) {
    this.funcionarioSelected = data;
    const element = this.viewModel.nativeElement;
    const elementTop = element.getBoundingClientRect().top + window.scrollY;
    const middleOffset = elementTop - window.innerHeight / 2 + element.offsetHeight / 2;
    window.scrollTo({
      top: middleOffset,
      behavior: 'smooth'
    });
  }
  /**
   * Open modal
   */
  openModal(row, accion, size) {
    const modalRef = this.modalService.open(_modals_employee_modal_employee_modal_employee_component__WEBPACK_IMPORTED_MODULE_4__.ModalEmployeeComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = row;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.complejosList = this.complejosList;
    modalRef.componentInstance.usersList = this.userList;
    modalRef.componentInstance.itemsList.subscribe(() => {
      this.loadData();
    });
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  openModalImport() {
    const camposImport = [{
      prop: 'userUuid',
      name: 'userUuid'
    }, {
      prop: 'Nombre',
      name: 'Nombre'
    }, {
      prop: 'Telefono',
      name: 'Telefono'
    }, {
      prop: 'Hora Entrada',
      name: 'Hora Entrada'
    }, {
      prop: 'Hora Salida',
      name: 'Hora Salida'
    }, {
      prop: 'Complejo',
      name: 'Complejo'
    }];
    const modalRef = this.modalService.open(_modals_employee_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_5__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = camposImport;
    modalRef.componentInstance.itemsList = this.employeesList;
    modalRef.componentInstance.itemsList.subscribe(() => {
      this.getEmployees();
    });
  }
  // public openModalImport() {
  //   const modalRef = this.modalService.open(ModalImportComponent, {
  //     size: 'lg',
  //     backdrop: 'static'
  //   });
  //   modalRef.componentInstance.titles = this.headersImport.map(header => 
  //     ({ prop: header, name: header, visible: true }));
  //   modalRef.componentInstance.itemsList = this.temp;
  //   modalRef.componentInstance.lookupData = {
  //     complejosList: this.complejosList
  //   };
  //   modalRef.componentInstance.checkExistsFn = (registro: EncargadoComplejo) =>
  //     this.temp.some(item =>
  //       item.nombre === registro.nombre && 
  //       item.complejoDto?.uuid === registro.complejoDto?.uuid
  //     );
  //   modalRef.componentInstance.mapRowFn = (row: any, lookupData: any): EncargadoComplejo => {
  //     const complejoNombre = (row['Complejo'] || '').trim();
  //     const complejo = lookupData.complejosList.find(
  //       (c: any) => c.nombre?.trim() === complejoNombre
  //     );
  //     const missingFields = [];
  //     if (!complejo) missingFields.push('Complejo');
  //     if (missingFields.length > 0) {
  //       throw { missingFields };
  //     }
  //     return {
  //       nombre: '' + row['Nombre'],
  //       avatar:'multi-user.jpg',
  //       telefono: '' + row['Telefono'],
  //       activo: this.parseBoolean(row['Activo']),
  //       fechaAsignacion: row['Fecha Asignación'] ? new Date(row['Fecha Asignación']).toISOString() : new Date().toISOString(),
  //       fechaFinAsignacion: row['Fecha Fin'] ? new Date(row['Fecha Fin']).toISOString() : undefined,
  //       horaEntrada: row['Hora Entrada'] || '08:00:00',
  //       horaSalida: row['Hora Salida'] || '17:00:00',
  //       complejoDto: complejo
  //     };
  //   };
  //   modalRef.componentInstance.createRecordFn = (record: EncargadoComplejo) =>
  //     this.employeesService.save(record).toPromise();
  //   modalRef.componentInstance.actionCompleted.subscribe(() => {
  //     this.getEmployees();
  //   });
  // }
  parseBoolean(value) {
    if (typeof value === 'boolean') return value;
    if (typeof value === 'string') {
      return value.toLowerCase() === 'true' || value.toLowerCase() === 'si' || value.toLowerCase() === 'sí' || value === '1' || value.toLowerCase() === 'activo';
    }
    return true; // Default to active
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const data = {
        nombre: item.nombre,
        telefono: item.telefono,
        activo: item.activo ? 'Activo' : 'Inactivo',
        fechaAsignacion: this.formatDate(item.fechaAsignacion),
        fechaFinAsignacion: this.formatDate(item.fechaFinAsignacion),
        horaEntrada: item.horaEntrada,
        horaSalida: item.horaSalida,
        complejo: item.complejoDto?.nombre,
        userUuid: item.userUuid
      };
      return [{
        ...data
      }];
    });
    var xlsxData = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: ["Nombre", "Telefono", "Activo", "Fecha Asignación", "Fecha Fin", "Hora Entrada", "Hora Salida", "Complejo", "User UUID"]
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, "Lista de " + this.title, xlsxData);
  }
  formatDate(date) {
    if (!date) return '';
    const dateObj = new Date(date);
    return this.datePipe.transform(dateObj, 'yyyy-MM-dd') || '';
  }
  /* API Services */
  getUsers() {
    this.usersService.getAllUsers().subscribe(data => {
      this.userList = data;
    });
  }
  getComplejos() {
    this.complejosService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.complejosList = data.payload;
        }
      }
    });
  }
  getEmployees() {
    this.loading = true;
    this.employeesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data.status === 'OK') {
          this.employeesList = data.payload;
          this.temp = this.employeesList;
          if (this.employeesList.length > 0) {
            this.funcionarioSelected = this.employeesList[0];
          }
        }
      },
      error: () => {
        this.loading = false;
        this.notify('No se pudo recuperar los registros', 'error');
      }
    });
  }
  // Delete Data
  deleteData() {
    let uuid = this.deleteId;
    this.employeesService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data.status == 'OK') {
          this.loadData();
          this.notify(data.payload, 'success');
          this.modalService.dismissAll();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  getAvatar(employee) {
    let avatar = 'default-avatar.png';
    const user = this.userList?.find(user => user.uuid === employee.userUuid);
    const foundItem = this.userRol.find(item => item.tipo === 1);
    if (foundItem) {
      avatar = foundItem.avatarM;
      if (user && user.designacionFuncionarioDto?.personaDto?.sexo === 'F') {
        avatar = foundItem.avatarF;
      }
    }
    return avatar;
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_2___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true
    });
  }
  static {
    this.ɵfac = function EmployeesComponent_Factory(t) {
      return new (t || EmployeesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_users_users_service__WEBPACK_IMPORTED_MODULE_7__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_encargado_service__WEBPACK_IMPORTED_MODULE_8__.EncargadoService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_9__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_15__.DatePipe));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineComponent"]({
      type: EmployeesComponent,
      selectors: [["app-employees"]],
      viewQuery: function EmployeesComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵloadQuery"]()) && (ctx.viewModel = _t.first);
        }
      },
      decls: 31,
      vars: 22,
      consts: [["viewModel", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "row"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "col-lg-8"], [1, "card"], [1, "card-header", "pb-1"], [1, "row", "g-2"], [1, "col-7", "col-lg-6"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar por ...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], [1, "col-lg-4"], ["class", "card", 4, "ngIf"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "card-body", "text-center", "contact-details"], [1, "position-relative", "d-inline-block"], ["alt", "Avatar", 1, "avatar-lg", "rounded-circle", "img-thumbnail", 3, "src"], [1, "mt-2", "mb-1"], [1, "text-muted"], [1, "list-inline", "mb-1"], [1, "list-inline-item", "avatar-xs"], ["href", "javascript:void(0);", 1, "avatar-title", "bg-success-subtle", "text-success", "fs-15", "rounded"], [1, "ri-phone-line"], ["href", "javascript:void(0);", 1, "avatar-title", "bg-danger-subtle", "text-danger", "fs-15", "rounded"], [1, "ri-mail-line"], [1, "avatar-title", "bg-warning-subtle", "text-warning", "fs-15", "rounded", 3, "href"], [1, "lab", "la-whatsapp"], [1, "text-muted", "text-uppercase", "fw-semibold", "mt-0", "mb-4"], [1, "table-responsive", "table-card"], [1, "table", "table-borderless", "mb-0"], [1, "fw-medium", "py-1"], [1, "designation", "py-1"], [1, "tags-list"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "py-1"], [1, "contacted_date", "py-1"], [1, "d-flex", "gap-1"], [4, "ngIf"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function EmployeesComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](1, "div", 3)(2, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("createEmitter", function EmployeesComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.openModal(undefined, "", ""));
          })("importEmitter", function EmployeesComponent_Template_app_data_header_importEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function EmployeesComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "div", 5)(4, "div", 6)(5, "div", 7)(6, "div", 8)(7, "div", 9)(8, "div", 10)(9, "input", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayListener"]("ngModelChange", function EmployeesComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("ngModelChange", function EmployeesComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.performSearch());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](10, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](11, "div", 13)(12, "button", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function EmployeesComponent_Template_button_click_12_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](13, EmployeesComponent_i_13_Template, 1, 0, "i", 15)(14, EmployeesComponent_i_14_Template, 1, 0, "i", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](15, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](17, "div", 17)(18, "span", 18)(19, "button", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](20, "i", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](21, "ul", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeaterCreate"](22, EmployeesComponent_For_23_Template, 5, 4, "li", 22, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](24, "div", 23)(25, "app-data-table", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("showItemEmitter", function EmployeesComponent_Template_app_data_table_showItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.viewDataGet($event));
          })("editItemEmitter", function EmployeesComponent_Template_app_data_table_editItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function EmployeesComponent_Template_app_data_table_closeItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            const deleteModel_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](30);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.deleteModal(deleteModel_r4, $event));
          })("selectedItemEmitter", function EmployeesComponent_Template_app_data_table_selectedItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](26, "div", 25, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](28, EmployeesComponent_div_28_Template, 57, 15, "div", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](29, EmployeesComponent_ng_template_29_Template, 17, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("title", ctx.title)("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.employeesList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpureFunction3"](18, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.funcionarioSelected != undefined);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.NgModel, _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, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_10__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_11__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_12__.DataHeaderComponent],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9lbXBsb3llZXMvZW1wbG95ZWVzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFFO0VBQ0U7SUFFRSxrQkFBQTtJQUNBLG1CQUFBO0VBQUo7QUFDRiIsInNvdXJjZXNDb250ZW50IjpbIiAgQG1lZGlhIChtYXgtd2lkdGg6IDc2N3B4KSB7XHJcbiAgICAuY2FyZCB7XHJcbiAgICAvLyAgIG1hcmdpbjogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMTVweDtcclxuICAgICAgbWFyZ2luLXJpZ2h0OiAtMTVweDtcclxuICAgIH1cclxuICB9Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 13801:
/*!******************************************************************!*\
  !*** ./src/app/pages/modules/facilities/facilities.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FacilitiesComponent: () => (/* binding */ FacilitiesComponent)
/* harmony export */ });
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/modal-import/modal-import.component */ 2036);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_shared_map_leaflet_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/map/leaflet.component */ 79843);
/* harmony import */ var _modals_modal_facility_modal_facility_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../modals/modal-facility/modal-facility.component */ 93126);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/categorias.service */ 21805);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
// Csv File Export



// import { ModalFacilitiesComponent } from '../modal/modal.component';















const _c0 = ["viewModel"];
const _c1 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
function FacilitiesComponent_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](0, "i", 28);
  }
}
function FacilitiesComponent_i_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](0, "i", 29);
  }
}
function FacilitiesComponent_For_24_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "li", 23)(1, "div", 30)(2, "input", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayListener"]("ngModelChange", function FacilitiesComponent_For_24_Template_input_ngModelChange_2_listener($event) {
      const column_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r2).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayBindingSet"](column_r3.visible, $event) || (column_r3.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "label", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("id", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayProperty"]("ngModel", column_r3.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("for", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"](" ", column_r3.name, " ");
  }
}
function FacilitiesComponent_div_29_tr_18_For_5_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "span", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"]("(", item_r6.telefono, ")");
  }
}
function FacilitiesComponent_div_29_tr_18_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](2, FacilitiesComponent_div_29_tr_18_For_5_span_2_Template, 2, 1, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"]("", item_r6.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", item_r6.telefono);
  }
}
function FacilitiesComponent_div_29_tr_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "tr")(1, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](2, "Encargado(s)");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "td", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeaterCreate"](4, FacilitiesComponent_div_29_tr_18_For_5_Template, 3, 2, "p", 60, _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeater"](ctx_r6.dataSelected.encargadosDtoList);
  }
}
function FacilitiesComponent_div_29_span_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "span", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1, "Iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
}
function FacilitiesComponent_div_29_span_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1, "Vestuarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
}
function FacilitiesComponent_div_29_span_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "span", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1, "Gradar\u00EDas");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
}
function FacilitiesComponent_div_29_span_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "span", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](1, "No especificadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
}
function FacilitiesComponent_div_29_tr_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "tr")(1, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](2, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "td", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx_r6.dataSelected.observaciones);
  }
}
function FacilitiesComponent_div_29_tr_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "tr")(1, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](2, "Campos Deportivos");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "td", 49)(4, "span", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"]("", ctx_r6.dataSelected.camposDeportivosDtoList.length, " campos");
  }
}
function FacilitiesComponent_div_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "div", 33)(1, "div", 34)(2, "div", 35)(3, "div", 36)(4, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](5, "img", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](6, "h5", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](8, "p", 40)(9, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](11, "div", 24)(12, "h6", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](13, "Detalles del Complejo");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](14, "div", 42)(15, "div", 43)(16, "table", 44)(17, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](18, FacilitiesComponent_div_29_tr_18_Template, 6, 0, "tr", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](19, "tr")(20, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](21, "Tel\u00E9fono");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](22, "td", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](24, "tr")(25, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](26, "Tipo Estructura");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](27, "td", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](29, "tr")(30, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](31, "Distrito");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](32, "td", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](34, "tr")(35, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](36, "Ubicaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](37, "td", 49)(38, "div", 50)(39, "div", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](40);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](41, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](42, "small", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](43);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](44, "button", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function FacilitiesComponent_div_29_Template_button_click_44_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r5);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r6.openMapModal(ctx_r6.dataSelected));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](45, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](46, "tr")(47, "td", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](48, "Instalaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](49, "td", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](50, FacilitiesComponent_div_29_span_50_Template, 2, 0, "span", 55)(51, FacilitiesComponent_div_29_span_51_Template, 2, 0, "span", 56)(52, FacilitiesComponent_div_29_span_52_Template, 2, 0, "span", 57)(53, FacilitiesComponent_div_29_span_53_Template, 2, 0, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](54, FacilitiesComponent_div_29_tr_54_Template, 5, 1, "tr", 45)(55, FacilitiesComponent_div_29_tr_55_Template, 6, 1, "tr", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx_r6.dataSelected.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵclassMapInterpolate1"]("badge bg-", ctx_r6.getBadgeClass(ctx_r6.dataSelected.estadoActual), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"](" ", ctx_r6.dataSelected.estadoActual, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.encargadosDtoList && ctx_r6.dataSelected.encargadosDtoList.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx_r6.dataSelected.telefonoPrincipal || "No especificado");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx_r6.dataSelected.tipoEstructura);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx_r6.dataSelected.distrito);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate1"](" ", ctx_r6.dataSelected.ubicacion, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate2"](" Lat: ", ctx_r6.dataSelected.latitud, " | Long: ", ctx_r6.dataSelected.longitud, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.tieneVestuarios);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.tieneGraderias);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", !ctx_r6.dataSelected.tieneIluminacion && !ctx_r6.dataSelected.tieneVestuarios && !ctx_r6.dataSelected.tieneGraderias);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.observaciones);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r6.dataSelected.camposDeportivosDtoList && ctx_r6.dataSelected.camposDeportivosDtoList.length > 0);
  }
}
function FacilitiesComponent_ng_template_30_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "div", 66)(1, "div", 67)(2, "button", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function FacilitiesComponent_ng_template_30_Template_button_click_2_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "div", 69)(4, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](5, "lord-icon", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](6, "div", 72)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](8, "Estas seguro de Eliminar el Registro ?");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](9, "p", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](10, " Al Confirmar la eliminacion se quitara toda informacion de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](11, "div", 74)(12, "button", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function FacilitiesComponent_ng_template_30_Template_button_click_12_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](13, "i", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](14, " Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](15, "button", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function FacilitiesComponent_ng_template_30_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r8);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r6.deleteData());
    })("click", function FacilitiesComponent_ng_template_30_Template_button_click_15_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](16, "Si, Elmimar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()();
  }
}
class FacilitiesComponent {
  constructor(modalService, complejosService, categoriasService, authService, datePipe) {
    this.modalService = modalService;
    this.complejosService = complejosService;
    this.categoriasService = categoriasService;
    this.authService = authService;
    this.datePipe = datePipe;
    this.title = "Complejos Deportivos";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.categoryList = [];
    this.facilitiesList = [];
    this.distictList = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.Districts;
    this.tipoEstructuraList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_4__.TipoEstructura);
    this.estadoActualList = Object.values(src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual);
    this.selectedItems = [];
    this.headersImport = ['Nombre', 'Tipo Estructura', 'Estado', 'Teléfono Principal', 'Distrito', 'Ubicación', 'Latitud', 'Longitud', 'Iluminación', 'Vestuarios', 'Gradarías'];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Tipo Estructura',
      prop: 'tipoEstructura',
      visible: true
    }, {
      name: 'Estado',
      prop: 'estadoActual',
      visible: true,
      tag: true
    }, {
      name: 'Teléfono',
      prop: 'telefonoPrincipal',
      visible: false
    }, {
      name: 'Distrito',
      prop: 'distrito',
      visible: false
    }, {
      name: 'Ubicación',
      prop: 'ubicacion',
      visible: false
    }, {
      name: 'Iluminación',
      prop: 'tieneIluminacion',
      visible: false
    }, {
      name: 'Vestuarios',
      prop: 'tieneVestuarios',
      visible: false
    }, {
      name: 'Gradarías',
      prop: 'tieneGraderias',
      visible: false
    }];
    this.getCategories();
    this.getFacilities();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  applyFilters() {
    this.facilitiesList = this.temp.filter(item => {
      return item.nombre?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.tipoEstructura?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.distrito?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.estadoActual?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.telefonoPrincipal?.toLowerCase().includes(this.searchTerm.toLowerCase());
    });
  }
  SearchData() {
    var date = document.getElementById("isDate");
    var dateVal = date.value ? this.datePipe.transform(new Date(date.value), "yyyy-MM-dd") : '';
    if (dateVal != '') {
      this.leads = this.temp.filter(order => {
        return this.datePipe.transform(new Date(order.date), "yyyy-MM-dd") == dateVal;
      });
    } else {
      this.leads = this.categoryList;
    }
  }
  /**
   * View Data Get
   */
  viewDataGet(data) {
    this.dataSelected = data;
    const element = this.viewModel.nativeElement;
    const elementTop = element.getBoundingClientRect().top + window.scrollY;
    const middleOffset = elementTop - window.innerHeight / 2 + element.offsetHeight / 2;
    window.scrollTo({
      top: middleOffset,
      behavior: 'smooth'
    });
  }
  /**
   * Open modal
   * @param content modal content
   */
  openModal(row, action, size) {
    const modalRef = this.modalService.open(_modals_modal_facility_modal_facility_component__WEBPACK_IMPORTED_MODULE_7__.ModalFacilitiesComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = row;
    modalRef.componentInstance.accion = action;
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getFacilities();
    });
  }
  openMapModal(complejo) {
    const modalRef = this.modalService.open(src_app_shared_map_leaflet_component__WEBPACK_IMPORTED_MODULE_6__.LeafletComponent, {
      backdrop: 'static',
      size: 'lg',
      keyboard: false
    });
    modalRef.componentInstance.title = `Ubicación - ${complejo.nombre}`;
    modalRef.componentInstance.form = false;
    modalRef.componentInstance.latitud = complejo.latitud;
    modalRef.componentInstance.longitud = complejo.longitud;
    modalRef.componentInstance.direccion = complejo.ubicacion;
    modalRef.componentInstance.latLngEmitter.subscribe(data => {});
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  openModalImport() {
    const modalRef = this.modalService.open(src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_3__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = this.headersImport.map(header => ({
      prop: header,
      name: header,
      visible: true
    }));
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.lookupData = {
      tipoEstructuraList: this.tipoEstructuraList,
      estadoActualList: this.estadoActualList,
      districtsList: src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.Districts
    };
    modalRef.componentInstance.checkExistsFn = registro => this.temp.some(item => item.nombre === registro.nombre);
    modalRef.componentInstance.mapRowFn = (row, lookupData) => {
      const tipoEstructuraValue = (row['Tipo Estructura'] || '').trim();
      const estadoActualValue = (row['Estado'] || '').trim();
      const distritoValue = (row['Distrito'] || '').trim();
      const tipoEstructura = lookupData.tipoEstructuraList.find(t => t.trim() === tipoEstructuraValue);
      const estadoActual = lookupData.estadoActualList.find(e => e.trim() === estadoActualValue);
      const distrito = lookupData.districtsList.find(r => r.value.trim() === distritoValue);
      const missingFields = [];
      if (!tipoEstructura) missingFields.push('Tipo Estructura');
      if (!estadoActual) missingFields.push('Estado');
      if (!distrito) missingFields.push('Distrito');
      if (missingFields.length > 0) {
        throw {
          missingFields
        };
      }
      return {
        nombre: '' + row['Nombre'],
        tipoEstructura: tipoEstructura,
        estadoActual: estadoActualValue,
        telefonoPrincipal: row['Teléfono Principal'],
        distrito: distrito.value,
        ubicacion: '' + row['Ubicación'],
        latitud: parseFloat(row['Latitud']) || 0,
        longitud: parseFloat(row['Longitud']) || 0,
        tieneIluminacion: this.parseBoolean(row['Iluminación']),
        tieneVestuarios: this.parseBoolean(row['Vestuarios']),
        tieneGraderias: this.parseBoolean(row['Gradarías']),
        observaciones: '' + (row['Observaciones'] || '')
      };
    };
    modalRef.componentInstance.createRecordFn = record => this.complejosService.save(record).toPromise();
    modalRef.componentInstance.actionCompleted.subscribe(() => {
      this.getFacilities();
    });
  }
  parseBoolean(value) {
    if (typeof value === 'boolean') return value;
    if (typeof value === 'string') {
      return value.toLowerCase() === 'true' || value.toLowerCase() === 'si' || value === '1';
    }
    return false;
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        nombre: item.nombre || '',
        tipoEstructura: item.tipoEstructura || '',
        estadoActual: item.estadoActual ? 'ACTIVO' : 'INACTIVO',
        telefonoPrincipal: item.telefonoPrincipal || '',
        distrito: item.distrito || '',
        ubicacion: item.ubicacion || '',
        latitud: item.latitud || '',
        longitud: item.longitud || '',
        tieneIluminacion: item.tieneIluminacion ? 'SI' : 'NO',
        tieneVestuarios: item.tieneVestuarios ? 'SI' : 'NO',
        tieneGraderias: item.tieneGraderias ? 'SI' : 'NO',
        observaciones: item.observaciones || ''
      };
      if (!item.encargadosList || item.encargadosList.length === 0) {
        return [{
          ...baseData,
          encargado: '',
          telefonoEncargado: ''
        }];
      }
      return item.encargadosList.map(encargado => ({
        ...baseData,
        encargado: encargado.nombre || '',
        telefonoEncargado: encargado.telefono || ''
      }));
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: ["Nombre", "Tipo Estructura", "Estado", "Teléfono Principal", "Distrito", "Ubicación", "Latitud", "Longitud", "Iluminación", "Vestuarios", "Gradarías", "Observaciones", "Encargado(Nombre)", "Encargado(Teléfono)"]
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_0__.ngxCsv(lista, this.title, data);
  }
  getFacilities() {
    this.complejosService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.facilitiesList = data.payload;
          this.temp = data.payload;
          if (this.facilitiesList && this.facilitiesList.length > 0) {
            this.dataSelected = this.facilitiesList[0];
          }
        }
      },
      error: error => {
        this.loading = false;
        this.notify('No se pudo recuperar los registros!', 'error');
      }
    });
  }
  getCategories() {
    this.categoriasService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoryList = data.payload;
        }
      }
    });
  }
  deleteData() {
    let uuid = this.deleteId;
    this.complejosService.delete(uuid).subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'info');
          this.getFacilities();
          this.modalService.dismissAll();
        }
      },
      error: err => {
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  getBadgeClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.ACTIVO:
        return 'success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.MANTENIMIENTO:
        return 'warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_5__.EstadoActual.CERRADO:
        return 'danger';
      default:
        return 'secondary';
    }
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function FacilitiesComponent_Factory(t) {
      return new (t || FacilitiesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_8__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_api_categorias_service__WEBPACK_IMPORTED_MODULE_9__.CategoriasService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_16__.DatePipe));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdefineComponent"]({
      type: FacilitiesComponent,
      selectors: [["app-facilities"]],
      viewQuery: function FacilitiesComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵloadQuery"]()) && (ctx.viewModel = _t.first);
        }
      },
      decls: 32,
      vars: 23,
      consts: [["viewModel", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "row", "px-3", "px-md-0"], [1, "col-12", "col-md-8"], [1, "card", "rounded-2"], [1, "card-header", "pb-1"], [1, "row", "g-2"], [1, "col-7", "col-lg-6"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar por ...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "itemsPerPage", "actions", "multiCheck", "viewMode"], [1, "col-12", "col-md-4"], ["class", "card", "id", "content-view-detail", 4, "ngIf"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], ["id", "content-view-detail", 1, "card"], [1, "card-head", "text-center", "company-details"], [1, "position-relative", "d-inline-block", "mt-2"], [1, "avatar-md"], [1, "avatar-title", "bg-light", "rounded-circle"], ["src", "assets/icons/pin-location.png", "alt", "", 1, "avatar-sm", "rounded-circle", "object-fit-cover"], [1, "mt-2"], [1, "text-muted", "mb-0"], [1, "text-muted", "text-uppercase", "text-center", "fw-semibold", "mt-0", "mb-4"], [1, "row", "my-2"], [1, "table-responsive", "table-card"], [1, "table", "table-borderless"], [4, "ngIf"], ["scope", "row", 1, "fw-medium", "py-1"], [1, "name", "py-1"], [1, "direccion", "py-1"], [1, "small", "py-1"], [1, "d-flex", "align-items-center"], [1, "flex-grow-1"], [1, "text-muted"], ["title", "Ver en mapa", 1, "btn", "btn-sm", "btn-outline-primary", "ms-2", 3, "click"], [1, "ri-map-pin-line"], ["class", "badge bg-success me-1", 4, "ngIf"], ["class", "badge bg-info me-1", 4, "ngIf"], ["class", "badge bg-warning me-1", 4, "ngIf"], ["class", "text-muted", 4, "ngIf"], [1, "name"], [1, "mb-1"], [1, "badge", "bg-success", "me-1"], [1, "badge", "bg-info", "me-1"], [1, "badge", "bg-warning", "me-1"], [1, "small", "text-muted", "py-1"], [1, "badge", "bg-primary"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function FacilitiesComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](1, "div", 3)(2, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("createEmitter", function FacilitiesComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.openModal(undefined, "", "md"));
          })("importEmitter", function FacilitiesComponent_Template_app_data_header_importEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function FacilitiesComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "div", 5)(4, "div", 6)(5, "div", 7)(6, "div", 8)(7, "div", 9)(8, "div", 10)(9, "div", 11)(10, "input", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayListener"]("ngModelChange", function FacilitiesComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("ngModelChange", function FacilitiesComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](11, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](12, "div", 14)(13, "button", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function FacilitiesComponent_Template_button_click_13_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](14, FacilitiesComponent_i_14_Template, 1, 0, "i", 16)(15, FacilitiesComponent_i_15_Template, 1, 0, "i", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](16, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](18, "div", 18)(19, "span", 19)(20, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](21, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](22, "ul", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeaterCreate"](23, FacilitiesComponent_For_24_Template, 5, 4, "li", 23, _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](25, "div", 24)(26, "app-data-table", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("showItemEmitter", function FacilitiesComponent_Template_app_data_table_showItemEmitter_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.viewDataGet($event));
          })("editItemEmitter", function FacilitiesComponent_Template_app_data_table_editItemEmitter_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function FacilitiesComponent_Template_app_data_table_closeItemEmitter_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            const deleteModel_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵreference"](31);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.deleteModal(deleteModel_r4, $event));
          })("selectedItemEmitter", function FacilitiesComponent_Template_app_data_table_selectedItemEmitter_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](27, "div", 26, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](29, FacilitiesComponent_div_29_Template, 56, 18, "div", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](30, FacilitiesComponent_ng_template_30_Template, 17, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("title", "Complejos")("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.facilitiesList)("itemsPerPage", 10)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵpureFunction3"](19, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx.dataSelected);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownMenu, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_11__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_12__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_13__.DataHeaderComponent],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9mYWNpbGl0aWVzL2ZhY2lsaXRpZXMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSTtJQUVFLGtCQUFBO0lBQ0EsbUJBQUE7RUFBSjtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhIChtYXgtd2lkdGg6IDc2N3B4KSB7XHJcbiAgICAuY2FyZCB7XHJcbiAgICAvLyAgIG1hcmdpbjogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAtMTVweDtcclxuICAgICAgbWFyZ2luLXJpZ2h0OiAtMTVweDtcclxuICAgIH1cclxuICB9Il0sInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 60525:
/*!**********************************************************!*\
  !*** ./src/app/pages/modules/fields/fields.component.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FieldsComponent: () => (/* binding */ FieldsComponent)
/* harmony export */ });
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _modals_field_modal_field_modal_field_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/field/modal-field/modal-field.component */ 48425);
/* harmony import */ var _modals_field_modal_schedule_modal_schedule_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../modals/field/modal-schedule/modal-schedule.component */ 62837);
/* harmony import */ var _modals_field_modal_tarifa_modal_tarifa_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modals/field/modal-tarifa/modal-tarifa.component */ 56981);
/* harmony import */ var _modals_field_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modals/field/modal-import/modal-import.component */ 31661);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/constants/Features */ 39919);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/api/camposDeportivos.service */ 42951);
/* harmony import */ var src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/api/conplejos.service */ 1754);
/* harmony import */ var src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/api/superficies.service */ 29977);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);



















const _c0 = ["viewModel"];
const _c1 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
function FieldsComponent_option_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const complejo_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", complejo_r2.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", complejo_r2.nombre, " ");
  }
}
function FieldsComponent_option_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const superficie_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", superficie_r3.uuid);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", superficie_r3.descripcion, " ");
  }
}
function FieldsComponent_li_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 25)(1, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const cat_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", cat_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", cat_r4, " ");
  }
}
function FieldsComponent_i_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 44);
  }
}
function FieldsComponent_i_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 45);
  }
}
function FieldsComponent_For_48_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 38)(1, "div", 46)(2, "input", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayListener"]("ngModelChange", function FieldsComponent_For_48_Template_input_ngModelChange_2_listener($event) {
      const column_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r5).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayBindingSet"](column_r6.visible, $event) || (column_r6.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "label", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("id", "formCheck" + column_r6.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayProperty"]("ngModel", column_r6.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("for", "formCheck" + column_r6.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", column_r6.name, " ");
  }
}
function FieldsComponent_div_53_span_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Iluminaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_span_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Acceso Libre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_span_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Acceso Controlado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_span_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "span", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "No especificadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_tr_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "tr")(1, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](2, "Observaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "td", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.observaciones);
  }
}
function FieldsComponent_div_53_button_76_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_div_53_button_76_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r9);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r7.openScheduleModal(ctx_r7.dataSelected, "edit", "lg"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_button_87_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "button", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_div_53_button_87_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r10);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r7.openTarifaModal(ctx_r7.dataSelected, "edit", "lg"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "i", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function FieldsComponent_div_53_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 49)(1, "div", 50)(2, "h5", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "p", 52)(5, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](7, "div", 39)(8, "h6", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, "Detalles de la Cancha");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "div", 54)(11, "div", 55)(12, "table", 56)(13, "tbody")(14, "tr")(15, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "td", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "tr")(20, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21, "Categor\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "td", 59)(23, "span", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](25, "tr")(26, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](27, "Complejo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](28, "td", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "tr")(31, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](32, "Superficie");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](33, "td", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](34);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](35, "tr")(36, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](37, "Dimensiones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](38, "td", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](40, "tr")(41, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](42, "Capacidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](43, "td", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](45, "tr")(46, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](47, "Caracter\u00EDsticas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](48, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](49, FieldsComponent_div_53_span_49_Template, 2, 0, "span", 63)(50, FieldsComponent_div_53_span_50_Template, 2, 0, "span", 64)(51, FieldsComponent_div_53_span_51_Template, 2, 0, "span", 65)(52, FieldsComponent_div_53_span_52_Template, 2, 0, "span", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](53, "tr")(54, "td", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](55, "Config. Aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](56, "td", 62)(57, "div", 67)(58, "small", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](59, "Requiere Aprobaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](60, "small", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](61);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](62, FieldsComponent_div_53_tr_62_Template, 5, 1, "tr", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](63, "div", 71)(64, "div", 72)(65, "div", 73)(66, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](67, "i", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](68, "div", 76)(69, "small", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](70, "Horarios");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](71, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](72);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](73, "div", 79)(74, "button", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_div_53_Template_button_click_74_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r7.openScheduleModal(ctx_r7.dataSelected, "show", "md"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](75, "i", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](76, FieldsComponent_div_53_button_76_Template, 2, 0, "button", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](77, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](78, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](79, "div", 76)(80, "small", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](81, "Tarifas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](82, "small", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](83);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](84, "div", 79)(85, "button", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_div_53_Template_button_click_85_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r7);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r7.openTarifaModal(ctx_r7.dataSelected, "show", "md"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](86, "i", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](87, FieldsComponent_div_53_button_87_Template, 2, 0, "button", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵclassMapInterpolate1"]("badge bg-", ctx_r7.getBadgeClass(ctx_r7.dataSelected.estadoActual), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", ctx_r7.dataSelected.estadoActual, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.codigo || "No especificado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.categoria);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.complejoDto.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.superficieDto.descripcion || "No especificada");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx_r7.dataSelected.dimensiones || "No especificadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("", ctx_r7.dataSelected.capacidadPersonas || "No especificada", " personas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r7.dataSelected.tieneIluminacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r7.dataSelected.accesoLibre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r7.dataSelected.accesoLibre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r7.dataSelected.tieneIluminacion && !ctx_r7.dataSelected.accesoLibre);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate3"](" Min. ", ctx_r7.dataSelected.horasMinimaAprobacion || 0, "h \u00B7 Auto: ", ctx_r7.dataSelected.maxDuracionAutoAprobacion || 0, "h / ", ctx_r7.dataSelected.maxPersonasAutoAprobacion || 0, "p ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r7.dataSelected.observaciones);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate2"](" ", (ctx_r7.dataSelected.horariosFijosDtoList == null ? null : ctx_r7.dataSelected.horariosFijosDtoList.length) || 0, " reg \u00B7 ", (ctx_r7.dataSelected.horariosExcepcionesDtoList == null ? null : ctx_r7.dataSelected.horariosExcepcionesDtoList.length) || 0, " exc ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r7.canActivate.includes("ACTUALIZAR"));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"]("", (ctx_r7.dataSelected.tarifasDtoList == null ? null : ctx_r7.dataSelected.tarifasDtoList.length) || 0, " configuradas");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx_r7.canActivate.includes("ACTUALIZAR"));
  }
}
function FieldsComponent_ng_template_54_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 90)(1, "div", 91)(2, "button", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_ng_template_54_Template_button_click_2_listener() {
      const modal_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r11).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](modal_r12.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 93)(4, "div", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "lord-icon", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 96)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Estas seguro de Eliminar el Registro ?");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "p", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, " Al Confirmar la eliminacion se quitara toda informacion de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 98)(12, "button", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_ng_template_54_Template_button_click_12_listener() {
      const modal_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r11).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](modal_r12.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, " Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "button", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_ng_template_54_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r11);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r7.deleteData());
    })("click", function FieldsComponent_ng_template_54_Template_button_click_15_listener() {
      const modal_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r11).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](modal_r12.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Si, Elmimar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
}
class FieldsComponent {
  constructor(modalService, authService, fieldsService, complejoService, superficieService) {
    this.modalService = modalService;
    this.authService = authService;
    this.fieldsService = fieldsService;
    this.complejoService = complejoService;
    this.superficieService = superficieService;
    this.title = "Campos Deportivos";
    this.viewMode = 'table';
    this.itemsList = [];
    this.temp = [];
    this.fieldsList = [];
    this.submitted = false;
    this.categoryList = Object.values(src_app_core_constants_Features__WEBPACK_IMPORTED_MODULE_7__.CategoriaCampo);
    this.complejosList = [];
    this.superficiesList = [];
    this.selectedComplejo = '';
    this.selectedSuperficie = '';
    this.selectedCategoria = '';
    this.selectedItems = [];
    this.headersImport = ['Complejo', 'Codigo', 'Nombre', 'Categorias', 'Superficie', 'Dimensiones', 'Capacidad', 'Iluminacion', 'Acceso Libre', 'Requiere Aprobacion', 'Estado', 'Clasificador Ruat', 'Tipo Cobro', 'Descripcion Tarifa', 'Costo Base', 'Desde Tarifa', 'Hasta Tarifa', 'Categorias de Tarifa', 'Fecha Inicio', 'Fecha Fin', 'Lista de Tarifas Concepto', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado', 'Domingo', 'Lista de Excepciones'];
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Complejo',
      prop: 'complejoDto.nombre',
      visible: true
    }, {
      name: 'Cancha Codigo',
      prop: 'codigo',
      visible: false
    }, {
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Categoría',
      prop: 'categoria',
      tag: true,
      visible: true
    }, {
      name: 'Superficie',
      prop: 'superficieDto.descripcion',
      visible: true
    }, {
      name: 'Iluminación',
      prop: 'tieneIluminacion',
      tag: true,
      visible: false
    }, {
      name: 'Acceso Libre',
      prop: 'accesoLibre',
      tag: true,
      visible: false
    }, {
      name: 'Requiere Aprobación',
      prop: 'requiereAprobacion',
      tag: true,
      visible: false
    }, {
      name: 'Estado',
      prop: 'estadoActual',
      tag: true,
      visible: false
    }, {
      name: 'Dimensiones',
      prop: 'dimensiones',
      visible: false
    }, {
      name: 'Capacidad',
      prop: 'capacidadPersonas',
      visible: false
    }, {
      name: 'Observaciones',
      prop: 'observaciones',
      visible: false
    }, {
      name: 'Fecha Creación',
      prop: 'fechaCreacion',
      date: true,
      visible: false
    }];
    this.getComplejos();
    this.getSuperficies();
    this.getFields();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  applyFilters() {
    this.fieldsList = this.temp.filter(item => {
      const matchesSearch = !this.searchTerm || item.codigo?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.nombre?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.categoria?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.superficieDto?.descripcion?.toLowerCase().includes(this.searchTerm.toLowerCase()) || item.complejoDto?.nombre?.toLowerCase().includes(this.searchTerm.toLowerCase());
      const matchesComplejo = !this.selectedComplejo || item.complejoDto?.uuid === this.selectedComplejo;
      const matchesSuperficie = !this.selectedSuperficie || item.superficieDto?.uuid === this.selectedSuperficie;
      const matchesCategoria = !this.selectedCategoria || item.categoria === this.selectedCategoria;
      return matchesSearch && matchesComplejo && matchesSuperficie && matchesCategoria;
    });
  }
  onNavChange(newTabId) {
    this.selectedCategoria = newTabId;
    this.applyFilters(); // Apply ALL filters including the new tab
  }
  // Clear all filters
  clearFilters() {
    this.selectedComplejo = '';
    this.selectedSuperficie = '';
    this.selectedCategoria = '';
    this.searchTerm = '';
    this.applyFilters();
  }
  viewDataGet(data) {
    this.dataSelected = data;
    const element = this.viewModel.nativeElement;
    const elementTop = element.getBoundingClientRect().top + window.scrollY;
    const middleOffset = elementTop - window.innerHeight / 2 + element.offsetHeight / 2;
    window.scrollTo({
      top: middleOffset,
      behavior: 'smooth'
    });
  }
  /**
   * Open modal
   * @param content modal content
   */
  openModal(row, accion, size) {
    const modalRef = this.modalService.open(_modals_field_modal_field_modal_field_component__WEBPACK_IMPORTED_MODULE_2__.ModalFieldsComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = row;
    modalRef.componentInstance.categoryList = this.categoryList;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getFields();
    });
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  openScheduleModal(row, accion, size) {
    const modalRef = this.modalService.open(_modals_field_modal_schedule_modal_schedule_component__WEBPACK_IMPORTED_MODULE_3__.ModalScheduleComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = row;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getFields();
    });
  }
  openTarifaModal(row, accion, size) {
    const modalRef = this.modalService.open(_modals_field_modal_tarifa_modal_tarifa_component__WEBPACK_IMPORTED_MODULE_4__.ModalTarifaComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = row;
    modalRef.componentInstance.categoryList = this.categoryList;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getFields();
    });
  }
  openModalImport() {
    const modalRef = this.modalService.open(_modals_field_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_5__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = this.headersImport.map(header => ({
      prop: header,
      name: header,
      visible: true
    }));
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getFields();
    });
  }
  // Csv File Export
  csvFileExport() {
    const daysOrder = ['Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado', 'Domingo'];
    const dayMapping = {
      'lunes_viernes': ['Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes'],
      'lunes': ['Lunes'],
      'martes': ['Martes'],
      'miercoles': ['Miercoles'],
      'jueves': ['Jueves'],
      'viernes': ['Viernes'],
      'sabado': ['Sabado'],
      'domingo': ['Domingo']
    };
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        Complejo: item.complejoDto?.nombre || '',
        Codigo: item.codigo || '',
        Nombre: item.nombre || '',
        Categorias: item.categoria || '',
        Superficie: item.superficieDto?.descripcion || '',
        Dimensiones: item.dimensiones || '',
        Capacidad: item.capacidadPersonas || '',
        Iluminacion: item.tieneIluminacion ? 'SI' : 'NO',
        'Acceso Libre': item.accesoLibre ? 'SI' : 'NO',
        'Requiere Aprobacion': item.requiereAprobacion ? 'SI' : 'NO',
        Estado: item.estadoActual || ''
      };
      const horarios = {};
      daysOrder.forEach(day => {
        horarios[day] = '';
      });
      item.horariosFijosDtoList?.forEach(horario => {
        const targetDays = dayMapping[horario.dia] || [horario.dia];
        const scheduleText = horario.abierto ? `${horario.horaApertura || ''}-${horario.horaCierre || ''}` : 'CERRADO';
        targetDays.forEach(day => {
          if (daysOrder.includes(day)) {
            horarios[day] = scheduleText;
          }
        });
      });
      const excepciones = item.horariosExcepcionesDtoList?.map(ex => `${ex.fecha}: ${ex.tipoExcepcion}${ex.motivo ? ` (${ex.motivo})` : ''}${ex.horaApertura ? ` ${ex.horaApertura}-${ex.horaCierre}` : ''}`).join('; ') || '';
      if (!item.tarifasDtoList || item.tarifasDtoList.length === 0) {
        return [{
          ...baseData,
          'Clasificador Ruat': '',
          'Tipo Cobro': '',
          'Descripcion Tarifa': '',
          'Costo Base': '',
          'Desde Tarifa': '',
          'Hasta Tarifa': '',
          'Categorias de Tarifa': '',
          'Fecha Inicio': '',
          'Fecha Fin': '',
          'Lista de Tarifas Concepto': '',
          ...horarios,
          'Lista de Excepciones': excepciones
        }];
      }
      return item.tarifasDtoList.map(tarifa => {
        const categoriasTarifa = tarifa.categoriasDtoList?.map(cat => cat.categoriaDto?.nombre || '').filter(nombre => nombre !== '').join('; ') || '';
        const conceptos = tarifa.conceptosDtos?.map(concepto => `${concepto.concepto || ''}${concepto.tipo ? ` [${concepto.tipo}]` : ''}${concepto.valor ? `: ${concepto.valor}` : ''}${concepto.desde ? ` (${concepto.desde}-${concepto.hasta || ''})` : ''}`).join('; ') || '';
        return {
          ...baseData,
          'Clasificador Ruat': tarifa.clasificadorRuatDto.nombre,
          'Tipo Cobro': tarifa.tipoCobro || '',
          'Descripcion Tarifa': tarifa.descripcion || '',
          'Costo Base': tarifa.precioBase || '',
          'Desde Tarifa': tarifa.desde || '',
          'Hasta Tarifa': tarifa.hasta || '',
          'Categorias de Tarifa': categoriasTarifa,
          'Fecha Inicio': tarifa.fechaInicio || '',
          'Fecha Fin': tarifa.fechaFin || '',
          'Lista de Tarifas Concepto': conceptos,
          ...horarios,
          'Lista de Excepciones': excepciones
        };
      });
    });
    const data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: this.headersImport
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_0__.ngxCsv(lista, this.title, data);
  }
  /* API Services */
  getComplejos() {
    this.complejoService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.complejosList = data.payload;
        }
      }
    });
  }
  getSuperficies() {
    this.superficieService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.superficiesList = data.payload;
        }
      }
    });
  }
  getFields() {
    this.fieldsService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.fieldsList = data.payload;
          this.temp = data.payload;
          if (this.fieldsList && this.fieldsList.length > 0) {
            this.dataSelected = this.fieldsList[0];
          }
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  deleteData() {
    let uuid = this.deleteId;
    this.fieldsService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'info');
          this.getFields();
          this.modalService.dismissAll();
        }
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  /* commun functions */
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().DismissReason).timer) {}
    });
  }
  getBadgeClass(estado) {
    switch (estado) {
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_6__.EstadoActual.ACTIVO:
        return 'success';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_6__.EstadoActual.MANTENIMIENTO:
        return 'warning';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_6__.EstadoActual.CERRADO:
        return 'danger';
      case src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_6__.EstadoActual.EVENTO_MUNICIPAL:
        return 'info';
      default:
        return 'secondary';
    }
  }
  static {
    this.ɵfac = function FieldsComponent_Factory(t) {
      return new (t || FieldsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_camposDeportivos_service__WEBPACK_IMPORTED_MODULE_9__.CamposDeportivoService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_conplejos_service__WEBPACK_IMPORTED_MODULE_10__.ComplejosService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_11__.SuperficiesService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineComponent"]({
      type: FieldsComponent,
      selectors: [["app-fields"]],
      viewQuery: function FieldsComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵloadQuery"]()) && (ctx.viewModel = _t.first);
        }
      },
      decls: 56,
      vars: 31,
      consts: [["nav", "ngbNav"], ["viewModel", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "row", "px-3", "px-md-0"], [1, "col-md-8"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], [1, "row", "g-2"], [1, "col-6", "col-sm-3", "col-lg-4"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "form-select", 3, "ngModelChange", "ngModel"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-6", "col-sm-3", "col-lg-3"], [1, "col-6", "col-sm-3", "col-lg-1"], ["title", "Limpiar", 1, "btn", "btn-outline-secondary", "w-100", 3, "click"], [1, "ri-refresh-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "activeIdChange", "navChange", "activeId"], [1, "nav-item", "flex-shrink-0", 3, "ngbNavItem"], ["ngbNavLink", "", 1, "nav-link", "py-2"], [1, "badge", "bg-secondary", "ms-1"], ["class", "nav-item flex-shrink-0", 3, "ngbNavItem", 4, "ngFor", "ngForOf"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "itemsPerPage", "actions", "multiCheck", "viewMode"], [1, "col-md-4"], ["class", "card", "id", "content-view-detail", 4, "ngIf"], [3, "value"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], ["id", "content-view-detail", 1, "card"], [1, "card-head", "text-center", "company-details"], [1, "mt-2"], [1, "text-muted", "mb-0"], [1, "text-muted", "text-uppercase", "text-center", "fw-semibold", "mt-0", "mb-4"], [1, "row", "my-2"], [1, "table-responsive", "table-card"], [1, "table", "table-borderless"], ["scope", "row", 1, "fw-medium", "py-1"], [1, "name", "py-1"], [1, "py-1"], [1, "badge", "bg-primary"], [1, "direccion", "py-1"], [1, "small", "py-1"], ["class", "badge bg-success me-1 mb-1", 4, "ngIf"], ["class", "badge bg-info me-1 mb-1", 4, "ngIf"], ["class", "badge bg-warning me-1 mb-1", 4, "ngIf"], ["class", "text-muted", 4, "ngIf"], [1, "bg-warning-subtle", "p-2", "rounded"], [1, "text-warning", "fw-medium", "d-block"], [1, "text-muted"], [4, "ngIf"], [1, "row"], [1, "col-12"], [1, "d-grid", "gap-1"], [1, "d-flex", "align-items-center", "p-2", "bg-light", "rounded"], [1, "ri-time-line", "text-muted", "me-2"], [1, "flex-grow-1"], [1, "fw-medium"], [1, "text-muted", "d-block"], [1, "flex-shrink-0"], ["title", "Ver", 1, "btn", "btn-soft-info", "btn-xs", "me-1", 3, "click"], [1, "ri-eye-line"], ["class", "btn btn-soft-secondary btn-xs", "title", "Editar", 3, "click", 4, "ngIf"], [1, "ri-money-dollar-circle-line", "text-muted", "me-2"], [1, "badge", "bg-success", "me-1", "mb-1"], [1, "badge", "bg-info", "me-1", "mb-1"], [1, "badge", "bg-warning", "me-1", "mb-1"], [1, "small", "text-muted", "py-1"], ["title", "Editar", 1, "btn", "btn-soft-secondary", "btn-xs", 3, "click"], [1, "ri-edit-line"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function FieldsComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "app-breadcrumbs", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](1, "div", 4)(2, "app-data-header", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("createEmitter", function FieldsComponent_Template_app_data_header_createEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.openModal(undefined, "", "lg"));
          })("importEmitter", function FieldsComponent_Template_app_data_header_importEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function FieldsComponent_Template_app_data_header_exportEmitter_2_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "div", 6)(4, "div", 7)(5, "div", 8)(6, "div", 9)(7, "div", 10)(8, "div", 11)(9, "div", 12)(10, "input", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayListener"]("ngModelChange", function FieldsComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngModelChange", function FieldsComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](11, "i", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 11)(13, "select", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayListener"]("ngModelChange", function FieldsComponent_Template_select_ngModelChange_13_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayBindingSet"](ctx.selectedComplejo, $event) || (ctx.selectedComplejo = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngModelChange", function FieldsComponent_Template_select_ngModelChange_13_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Todos los complejos");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](16, FieldsComponent_option_16_Template, 2, 2, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "div", 18)(18, "select", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayListener"]("ngModelChange", function FieldsComponent_Template_select_ngModelChange_18_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayBindingSet"](ctx.selectedSuperficie, $event) || (ctx.selectedSuperficie = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("ngModelChange", function FieldsComponent_Template_select_ngModelChange_18_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](20, "Todas las superficies");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](21, FieldsComponent_option_21_Template, 2, 2, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "div", 19)(23, "button", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_Template_button_click_23_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.clearFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](24, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](25, "div", 22)(26, "div", 10)(27, "div", 23)(28, "ul", 24, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayListener"]("activeIdChange", function FieldsComponent_Template_ul_activeIdChange_28_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayBindingSet"](ctx.selectedCategoria, $event) || (ctx.selectedCategoria = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("navChange", function FieldsComponent_Template_ul_navChange_28_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.onNavChange($event.nextId));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "li", 25)(31, "a", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](32, " Todas las Categor\u00EDas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](33, "span", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](34);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](35, FieldsComponent_li_35_Template, 3, 2, "li", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](36, "div", 29)(37, "button", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function FieldsComponent_Template_button_click_37_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](38, FieldsComponent_i_38_Template, 1, 0, "i", 31)(39, FieldsComponent_i_39_Template, 1, 0, "i", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](40, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](41);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](42, "div", 33)(43, "span", 34)(44, "button", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](45, "i", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](46, "ul", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrepeaterCreate"](47, FieldsComponent_For_48_Template, 5, 4, "li", 38, _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](49, "div", 39)(50, "app-data-table", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("showItemEmitter", function FieldsComponent_Template_app_data_table_showItemEmitter_50_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.viewDataGet($event));
          })("editItemEmitter", function FieldsComponent_Template_app_data_table_editItemEmitter_50_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function FieldsComponent_Template_app_data_table_closeItemEmitter_50_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.openModal($event, "delete", "md"));
          })("selectedItemEmitter", function FieldsComponent_Template_app_data_table_selectedItemEmitter_50_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](51, "div", 41, 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](53, FieldsComponent_div_53_Template, 88, 24, "div", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](54, FieldsComponent_ng_template_54_Template, 17, 0, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("title", ctx.title)("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayProperty"]("ngModel", ctx.selectedComplejo);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx.complejosList);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayProperty"]("ngModel", ctx.selectedSuperficie);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx.superficiesList);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtwoWayProperty"]("activeId", ctx.selectedCategoria);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", "");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx.fieldsList.length);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngForOf", ctx.categoryList);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.fieldsList)("itemsPerPage", 5)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpureFunction3"](27, _c1, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.dataSelected);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_17__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_18__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_18__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownMenu, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_12__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_13__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_14__.DataHeaderComponent],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9maWVsZHMvZmllbGRzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0k7SUFFRSxrQkFBQTtJQUNBLG1CQUFBO0VBQUo7QUFDRiIsInNvdXJjZXNDb250ZW50IjpbIkBtZWRpYSAobWF4LXdpZHRoOiA3NjdweCkge1xyXG4gICAgLmNhcmQge1xyXG4gICAgLy8gICBtYXJnaW46IC0xNXB4O1xyXG4gICAgICBtYXJnaW4tbGVmdDogLTE1cHg7XHJcbiAgICAgIG1hcmdpbi1yaWdodDogLTE1cHg7XHJcbiAgICB9XHJcbiAgfSJdLCJzb3VyY2VSb290IjoiIn0= */"]
    });
  }
}

/***/ }),

/***/ 15249:
/*!************************************************************************!*\
  !*** ./src/app/pages/modules/organizations/organizations.component.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   OrganizationsComponent: () => (/* binding */ OrganizationsComponent)
/* harmony export */ });
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var _modals_modal_organization_modal_organization_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/modal-organization/modal-organization.component */ 75762);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/organizacion.service */ 74701);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 90852);














const _c0 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
function OrganizationsComponent_i_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 48);
  }
}
function OrganizationsComponent_i_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 49);
  }
}
function OrganizationsComponent_For_78_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 45)(1, "div", 50)(2, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_For_78_Template_input_ngModelChange_2_listener($event) {
      const column_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](column_r3.visible, $event) || (column_r3.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "label", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("id", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", column_r3.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("for", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", column_r3.name, " ");
  }
}
class OrganizationsComponent {
  constructor(modalService, authService, organizacionesService, contribuyentesService) {
    this.modalService = modalService;
    this.authService = authService;
    this.organizacionesService = organizacionesService;
    this.contribuyentesService = contribuyentesService;
    this.title = "Organizaciones";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.loading = true;
    this.organizacionesList = [];
    this.contribuyentesList = [];
    this.searchTerm = '';
    this.estado = '';
    this.tipoOrganizacion = '';
    this.tieneNit = '';
    this.tienePersoneriaJuridica = '';
    this.selectedItems = [];
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: ''
    }, {
      label: this.title,
      active: true
    }];
    const currentUser = this.authService.currentUser();
    if (this.authService.getUserRole() === 'Contribuyente') {
      this.contribuyente = currentUser;
    }
    this.itemsList = [{
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Tipo Organización',
      prop: 'tipoOrganizacion',
      visible: true
    }, {
      name: 'Teléfono',
      prop: 'telefono',
      visible: true
    }, {
      name: 'Email',
      prop: 'email',
      visible: false
    }, {
      name: 'Dirección',
      prop: 'direccion',
      visible: false
    }, {
      name: 'Personería Jurídica',
      prop: 'personeriaJuridica',
      visible: false
    }, {
      name: 'NIT',
      prop: 'nroNit',
      visible: false
    }, {
      name: 'Estado',
      prop: 'activo',
      tag: true,
      visible: true
    }, {
      name: 'Representante',
      prop: 'representanteDto.nombreCompleto',
      visible: true
    }, {
      name: 'Documento Representante',
      prop: 'representanteDto.numeroDocumento',
      visible: false
    }, {
      name: 'Email Representante',
      prop: 'representanteDto.email',
      visible: false
    }, {
      name: 'Teléfono Representante',
      prop: 'representanteDto.telefono',
      visible: false
    }, {
      name: 'Fecha Creación',
      prop: 'fechaCreacion',
      visible: false,
      date: true
    }];
    this.getOrganizaciones();
    this.getContribuyentesForRepresentatives();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  applyFilters() {
    if (!this.temp || this.temp.length === 0) return;
    this.organizacionesList = this.temp.filter(item => {
      const searchMatch = !this.searchTerm || this.searchInOrganizacion(item, this.searchTerm);
      const estadoMatch = !this.estado || this.estado === 'ACTIVO' && item.activo || this.estado === 'INACTIVO' && !item.activo;
      const tipoOrganizacionMatch = !this.tipoOrganizacion || item.tipoOrganizacion?.toLowerCase().includes(this.tipoOrganizacion.toLowerCase());
      const tieneNitMatch = !this.tieneNit || this.tieneNit === 'SI' && item.nroNit || this.tieneNit === 'NO' && !item.nroNit;
      const tienePersoneriaMatch = !this.tienePersoneriaJuridica || this.tienePersoneriaJuridica === 'SI' && item.personeriaJuridica || this.tienePersoneriaJuridica === 'NO' && !item.personeriaJuridica;
      return searchMatch && estadoMatch && tipoOrganizacionMatch && tieneNitMatch && tienePersoneriaMatch;
    });
  }
  searchInOrganizacion(item, searchTerm) {
    if (!searchTerm) return true;
    const term = searchTerm.toLowerCase();
    return item.nombre?.toLowerCase().includes(term) || item.tipoOrganizacion?.toLowerCase().includes(term) || item.telefono?.toLowerCase().includes(term) || item.email?.toLowerCase().includes(term) || item.direccion?.toLowerCase().includes(term) || item.personeriaJuridica?.toLowerCase().includes(term) || item.nroNit?.toLowerCase().includes(term) || item.representanteNombre?.toLowerCase().includes(term) || item.representanteDocumento?.toLowerCase().includes(term) || item.representanteEmail?.toLowerCase().includes(term) || item.representanteTelefono?.toLowerCase().includes(term);
  }
  onNavChange(changeEvent) {
    switch (changeEvent.nextId) {
      case 1:
        this.organizacionesList = this.temp;
        break;
      case 2:
        this.organizacionesList = this.temp.filter(item => item.activo === true);
        break;
      case 3:
        this.organizacionesList = this.temp.filter(item => item.activo === false);
        break;
      case 4:
        this.organizacionesList = this.temp.filter(item => item.nroNit && item.nroNit.trim() !== '');
        break;
      case 5:
        this.organizacionesList = this.temp.filter(item => item.personeriaJuridica && item.personeriaJuridica.trim() !== '');
        break;
      case 6:
        this.organizacionesList = this.temp.filter(item => !item.representanteDto || !item.representanteNombre);
        break;
    }
  }
  openModal(content, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_organization_modal_organization_component__WEBPACK_IMPORTED_MODULE_2__.ModalOrganizationComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = content;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.contribuyentesList = this.contribuyentesList;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getOrganizaciones();
    });
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        nombre: item.nombre,
        tipoOrganizacion: item.tipoOrganizacion,
        telefono: item.telefono,
        email: item.email,
        direccion: item.direccion,
        personeriaJuridica: item.personeriaJuridica,
        nroNit: item.nroNit,
        activo: item.activo ? 'Activo' : 'Inactivo',
        representante: item.representanteNombre,
        documentoRepresentante: item.representanteDocumento,
        emailRepresentante: item.representanteEmail,
        telefonoRepresentante: item.representanteTelefono,
        fechaCreacion: item.fechaCreacion
      };
      return [{
        ...baseData
      }];
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Organizaciones',
      useBom: true,
      noDownload: false,
      headers: ["Nombre", "Tipo Organización", "Teléfono", "Email", "Dirección", "Personería Jurídica", "NIT", "Estado", "Representante", "Documento Representante", "Email Representante", "Teléfono Representante", "Fecha Creación"]
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, "organizaciones", data);
  }
  /* API Services */
  getOrganizaciones() {
    this.organizacionesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.organizacionesList = data.payload.content;
          if (this.contribuyente) {
            this.organizacionesList = this.organizacionesList.filter(item => item.representanteDto.uuid === this.contribuyente.uuid);
          }
          this.temp = this.organizacionesList;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'Error al obtener las organizaciones',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  getContribuyentesForRepresentatives() {
    this.contribuyentesService.getAll().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.contribuyentesList = data.payload;
        }
      }
    });
  }
  static {
    this.ɵfac = function OrganizationsComponent_Factory(t) {
      return new (t || OrganizationsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_organizacion_service__WEBPACK_IMPORTED_MODULE_4__.OrganizacionService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_5__.ContribuyentesService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: OrganizationsComponent,
      selectors: [["app-organizations"]],
      decls: 81,
      vars: 33,
      consts: [["nav", "ngbNav"], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "exportEmitter", "title", "newShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], [3, "ngSubmit"], [1, "row", "g-2"], [1, "col-6", "col-sm-6", "col-lg-3"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar ...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-6", "col-sm-6", "col-lg-2"], ["type", "text", "name", "tipoOrganizacion", "placeholder", "Tipo Organizaci\u00F3n", 1, "form-control", 3, "ngModelChange", "ngModel"], ["data-choices", "", "data-choices-search-false", "", "name", "estado", "id", "idEstado", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], ["value", "ACTIVO"], ["value", "INACTIVO"], ["data-choices", "", "data-choices-search-false", "", "name", "tieneNit", "id", "idTieneNit", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "SI"], ["value", "NO"], ["data-choices", "", "data-choices-search-false", "", "name", "tienePersoneriaJuridica", "id", "idTienePersoneria", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "col-6", "col-sm-6", "col-lg-1"], ["title", "Filtrar", "type", "submit", 1, "btn", "btn-primary", "w-100"], [1, "ri-filter-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "py-2"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Activas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Inactivas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "ConNit", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "ConPersoneria", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "SinRepresentante", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"]],
      template: function OrganizationsComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-breadcrumbs", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 2)(3, "app-data-header", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("createEmitter", function OrganizationsComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal(undefined, "", "lg"));
          })("exportEmitter", function OrganizationsComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 4)(5, "div", 5)(6, "form", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngSubmit", function OrganizationsComponent_Template_form_ngSubmit_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function OrganizationsComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](11, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "div", 12)(13, "input", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_Template_input_ngModelChange_13_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.tipoOrganizacion, $event) || (ctx.tipoOrganizacion = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "div", 12)(15, "select", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_Template_select_ngModelChange_15_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.estado, $event) || (ctx.estado = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Estado");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19, "Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](21, "Inactivo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "div", 12)(23, "select", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_Template_select_ngModelChange_23_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.tieneNit, $event) || (ctx.tieneNit = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Tiene NIT");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "option", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](27, "S\u00ED");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](28, "option", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](29, "No");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](30, "div", 12)(31, "select", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function OrganizationsComponent_Template_select_ngModelChange_31_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.tienePersoneriaJuridica, $event) || (ctx.tienePersoneriaJuridica = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](32, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33, "Personer\u00EDa Jur\u00EDdica");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](34, "option", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](35, "S\u00ED");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](36, "option", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](37, "No");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](38, "div", 22)(39, "button", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](40, "i", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](41, "div", 25)(42, "div", 7)(43, "div", 26)(44, "ul", 27, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("navChange", function OrganizationsComponent_Template_ul_navChange_44_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](46, "li", 28)(47, "a", 29);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](48, " Todo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](49, "span", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](50);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](51, "li", 28)(52, "a", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](53, " Activas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](54, "li", 28)(55, "a", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](56, " Inactivas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](57, "li", 28)(58, "a", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](59, " Con NIT ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](60, "li", 28)(61, "a", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](62, " Con Personer\u00EDa Jur\u00EDdica ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](63, "li", 28)(64, "a", 35);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](65, " Sin Representante ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](66, "div", 36)(67, "button", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function OrganizationsComponent_Template_button_click_67_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](68, OrganizationsComponent_i_68_Template, 1, 0, "i", 38)(69, OrganizationsComponent_i_69_Template, 1, 0, "i", 39);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](70, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](71);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](72, "div", 40)(73, "span", 41)(74, "button", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](75, "i", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](76, "ul", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](77, OrganizationsComponent_For_78_Template, 5, 4, "li", 45, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](79, "div", 46)(80, "app-data-table", 47);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("showItemEmitter", function OrganizationsComponent_Template_app_data_table_showItemEmitter_80_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function OrganizationsComponent_Template_app_data_table_editItemEmitter_80_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function OrganizationsComponent_Template_app_data_table_closeItemEmitter_80_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "delete", "md"));
          })("selectedItemEmitter", function OrganizationsComponent_Template_app_data_table_selectedItemEmitter_80_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](1, 27, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.tipoOrganizacion);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.estado);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.tieneNit);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.tienePersoneriaJuridica);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.temp.length);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.organizacionesList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction3"](29, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgForm, _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__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavLinkBase, _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, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 89291:
/*!******************************************************************!*\
  !*** ./src/app/pages/modules/reports/ticket/ticket.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TicketComponent: () => (/* binding */ TicketComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var emailjs_com__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! emailjs-com */ 4133);
/* harmony import */ var src_app_global_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/global-component */ 35461);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ 45312);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var src_app_core_services_api_reportes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/reportes.service */ 3667);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
















const _c0 = ["pdfViewer"];
function TicketComponent_small_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "small", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"](" Tipo: ", ctx_r0.reservationData.tipoReserva, " - Cobro: ", ctx_r0.reservationData.tarifaDto ? ctx_r0.reservationData.tarifaDto.tipoCobro : "", " ");
  }
}
function TicketComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 26)(1, "button", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TicketComponent_div_18_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r2);
      const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r0.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TicketComponent_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.errorMessage, " ");
  }
}
function TicketComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 30)(1, "object", 31, 0)(3, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, " No se puede mostrar el PDF. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TicketComponent_div_21_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r3);
      const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r0.downloadTicket());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6, " Descargar Ticket ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
  }
}
function TicketComponent_div_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 34)(1, "div", 35)(2, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "p", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, "Cargando ticket...");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TicketComponent_div_23_small_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "small")(1, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Tipo Cobro:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.formatTipoCobro(ctx_r0.reservationData.tarifaDto.tipoCobro), " ");
  }
}
function TicketComponent_div_23_div_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 46)(1, "small")(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Organizaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"](" ", ctx_r0.reservationData.organizacionDto.nombre, " (", ctx_r0.reservationData.organizacionDto.nroNit, ")");
  }
}
function TicketComponent_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 38)(1, "h6", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Resumen de la Reserva");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 40)(4, "div", 41)(5, "small")(6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](7, "Contribuyente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](8, "br", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](10, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "small")(12, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](13, "Documento:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](15, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "small")(17, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](18, "Email:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "div", 43)(21, "small")(22, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](23, "Complejo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](24, "br", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](26, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](27, "small")(28, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](29, "Campo:");
    _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__["ɵɵelement"](31, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](32, TicketComponent_div_23_small_32_Template, 4, 1, "small", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](33, TicketComponent_div_23_div_33_Template, 5, 2, "div", 45);
    _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"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.contribuyenteDto.nombreCompleto, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.contribuyenteDto.numeroDocumento, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.contribuyenteDto.email, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.campoDeportivoDto.complejoDto.nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.campoDeportivoDto.nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.reservationData.tarifaDto && ctx_r0.reservationData.tarifaDto.tipoCobro);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.reservationData.organizacionDto);
  }
}
function TicketComponent_div_25_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i", 59);
  }
}
function TicketComponent_div_25_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 60)(1, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Enviando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TicketComponent_div_25_button_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "button", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TicketComponent_div_25_button_26_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r5);
      const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r0.loadTicket());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "span", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Recargar");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TicketComponent_div_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 47)(1, "div", 48)(2, "small", 49)(3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, "Reserva:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](7, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Total:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](12, "div", 50)(13, "button", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TicketComponent_div_25_Template_button_click_13_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r4);
      const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r0.sendTicketByEmail());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](14, TicketComponent_div_25_i_14_Template, 1, 0, "i", 52)(15, TicketComponent_div_25_div_15_Template, 3, 0, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "span", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "button", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TicketComponent_div_25_Template_button_click_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r4);
      const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r0.downloadTicket());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](21, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](22, "span", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](23, "Descargar");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](25, "PDF");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](26, TicketComponent_div_25_button_26_Template, 4, 0, "button", 58);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.numeroReserva, " | ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.reservationData.estadoReserva, " | ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" Bs. ", ctx_r0.reservationData.montoTotal, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx_r0.sendingEmail);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r0.sendingEmail);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.sendingEmail);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.sendingEmail ? "Enviando..." : "Enviar por Email", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r0.sendingEmail ? "..." : "Email", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r0.autoLoad);
  }
}
class TicketComponent {
  constructor(modalService, reportsService, route, authService) {
    this.modalService = modalService;
    this.reportsService = reportsService;
    this.route = route;
    this.authService = authService;
    this.bookingType = 'puntual';
    this.autoLoad = false;
    this.showAsModal = false;
    this.showLoading = false;
    this.errorMessage = '';
    this.sendingEmail = false;
  }
  ngOnInit() {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.currentTime = new Date().toLocaleTimeString();
      if (_this.authService.tokenUser() !== 'CONTRIBUYENTE_SESSION') {
        _this.contribuyente = _this.authService.currentUser();
      } else {
        _this.contribuyente = null;
      }
      if (_this.autoLoad && _this.reservationData?.uuid) {
        _this.loadTicket();
      }
    })();
  }
  ngOnChanges(changes) {
    if (changes['reservationData'] && this.autoLoad && this.reservationData?.uuid) {
      this.loadTicket();
    }
  }
  loadTicket() {
    var _this2 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!_this2.reservationData?.uuid) {
        _this2.errorMessage = 'No hay datos de reserva disponibles para generar el ticket.';
        return;
      }
      _this2.showLoading = true;
      _this2.errorMessage = '';
      try {
        yield _this2.generarReportePDF(_this2.reservationData);
      } catch (error) {
        _this2.errorMessage = 'Error al cargar el ticket. Por favor, intente nuevamente.';
        _this2.showLoading = false;
      }
    })();
  }
  generarReportePDF(reserva) {
    var _this3 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let observable;
      if (reserva.tipoReserva === 'periodo') {
        observable = _this3.reportsService.getTicketByPeriodo(reserva.uuid);
      } else if (reserva.tipoReserva === 'puntual') {
        switch (reserva.tarifaDto?.tipoCobro) {
          case 'por_evento':
            observable = _this3.reportsService.getTicketReservaEvento(reserva.uuid);
            break;
          case 'por_persona':
            observable = _this3.reportsService.getTicketReservaPersona(reserva.uuid);
            break;
          default:
            observable = _this3.reportsService.getTicketReservaPuntual(reserva.uuid);
        }
      } else if (reserva.tipoReserva === 'recurrente') {
        switch (reserva.tarifaDto?.tipoCobro) {
          case 'por_sesion':
            observable = _this3.reportsService.getTicketRecurrenteSesion(reserva.uuid);
            break;
          case 'mensualidad':
            observable = _this3.reportsService.getTicketRecurrenteMensualidad(reserva.uuid);
            break;
          case 'por_persona':
            observable = _this3.reportsService.getTicketRecurrentePersona(reserva.uuid);
            break;
          default:
            observable = _this3.reportsService.getTicketRecurrenteSesion(reserva.uuid);
        }
      } else {
        observable = _this3.reportsService.getTicketReservaPuntual(reserva.uuid);
      }
      observable.subscribe({
        next: data => {
          const blob = new Blob([data], {
            type: 'application/pdf'
          });
          const fileURL = URL.createObjectURL(blob);
          if (_this3.pdfViewer?.nativeElement) {
            _this3.pdfViewer.nativeElement.data = fileURL;
          }
          _this3.showLoading = false;
        },
        error: error => {
          _this3.errorMessage = 'Error al generar el ticket PDF.';
          _this3.showLoading = false;
        }
      });
    })();
  }
  downloadTicket() {
    if (!this.reservationData.uuid) {
      this.errorMessage = 'No hay datos de reserva para descargar.';
      return;
    }
    const filename = `ticket_${this.reservationData.numeroReserva || this.reservationData.uuid}.pdf`;
    let observable;
    if (this.reservationData.tipoReserva === 'puntual' && this.reservationData.uuid) {
      switch (this.reservationData.tarifaDto?.tipoCobro) {
        case 'por_evento':
          observable = this.reportsService.getTicketReservaEvento(this.reservationData.uuid);
          break;
        case 'por_persona':
          observable = this.reportsService.getTicketReservaPersona(this.reservationData.uuid);
          break;
        default:
          observable = this.reportsService.getTicketReservaPuntual(this.reservationData.uuid);
      }
    } else if (this.reservationData.tipoReserva === 'recurrente') {
      switch (this.reservationData.tarifaDto?.tipoCobro) {
        case 'por_sesion':
          observable = this.reportsService.getTicketRecurrenteSesion(this.reservationData.uuid);
          break;
        case 'mensualidad':
          observable = this.reportsService.getTicketRecurrenteMensualidad(this.reservationData.uuid);
          break;
        case 'por_persona':
          observable = this.reportsService.getTicketRecurrentePersona(this.reservationData.uuid);
          break;
        default:
          observable = this.reportsService.getTicketRecurrenteSesion(this.reservationData.uuid);
      }
    } else {
      observable = this.reportsService.getTicketReservaPuntual(this.reservationData.uuid);
    }
    this.reportsService.downloadPdf(observable, filename);
  }
  sendTicketByEmail() {
    var _this4 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this4.sendingEmail = true;
      try {
        const templateParams = yield _this4.prepareEmailData();
        const response = yield emailjs_com__WEBPACK_IMPORTED_MODULE_2__["default"].send(src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.EmailJS.idServiceReservation, src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.EmailJS.idTemplateReservation, templateParams, src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.EmailJS.publicKeyReservation);
        if (response.status === 200) {
          _this4.notify('Ticket enviado por email exitosamente', 'success');
        } else {
          throw new Error(`EmailJS responded with status ${response.status}`);
        }
      } catch (error) {
        _this4.handleEmailError(error);
      } finally {
        _this4.sendingEmail = false;
      }
    })();
  }
  prepareEmailData() {
    var _this5 = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const reserva = _this5.reservationData;
      const contribuyente = reserva.contribuyenteDto;
      const campoDeportivo = reserva.campoDeportivoDto;
      const tarifa = reserva.tarifaDto;
      const organizacion = reserva.organizacionDto;
      const ticketUrl = _this5.generateTicketUrl(reserva);
      const scheduleInfo = _this5.getScheduleInformation(reserva);
      return {
        subject: `Ticket de Reserva - ${campoDeportivo?.nombre}`,
        to_email: contribuyente?.email,
        cc_email: organizacion?.email || '',
        bcc_email: '',
        send_date: _this5.formatDate(new Date()),
        reserva_number: reserva.numeroReserva,
        tasa_number: reserva.numeroTasa,
        estado_reserva: reserva.estadoReserva,
        tipo_reserva: reserva.tipoReserva === 'puntual' ? 'Puntual' : 'Recurrente',
        observaciones: _this5.getObservaciones(reserva),
        requiere_aprobacion: campoDeportivo?.requiereAprobacion ? 'Sí' : 'No',
        is_puntual: reserva.tipoReserva === 'puntual',
        is_recurrente: reserva.tipoReserva === 'recurrente',
        has_organization: !!organizacion,
        contribuyente_name: contribuyente?.nombreCompleto || `${contribuyente?.nombre} ${contribuyente?.primerApellido} ${contribuyente?.segundoApellido}`,
        contribuyente_document: contribuyente?.numeroDocumento,
        contribuyente_phone: contribuyente?.telefono,
        contribuyente_email: contribuyente?.email,
        organizacion_name: organizacion?.nombre || 'N/A',
        organizacion_telefono: organizacion?.telefono || 'N/A',
        organizacion_nit: organizacion?.nroNit || 'N/A',
        complejo_name: campoDeportivo?.complejoDto?.nombre,
        campo_deportivo: campoDeportivo?.nombre,
        superficie: _this5.getSuperficie(reserva),
        categoria: _this5.getCategoria(reserva),
        ...scheduleInfo,
        tipo_cobro: _this5.formatTipoCobro(tarifa?.tipoCobro),
        tarifa_descripcion: tarifa?.descripcion || 'Tarifa estándar',
        monto_total: `Bs. ${reserva.montoTotal}`,
        duracion_total: _this5.getDuracionTotal(reserva),
        phone_contact: src_app_global_component__WEBPACK_IMPORTED_MODULE_3__.GlobalComponent.admin_deportes.phone,
        email_contact: src_app_global_component__WEBPACK_IMPORTED_MODULE_3__.GlobalComponent.admin_deportes.email,
        address_contact: src_app_global_component__WEBPACK_IMPORTED_MODULE_3__.GlobalComponent.admin_deportes.address,
        ticket_url: ticketUrl,
        ticket_download_text: 'Descargar Ticket PDF',
        logo_url: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.assetsUrl}/assets/icons/logos/logo-sm.png`,
        regulations_url: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.assetsUrl}/pages/terms-condition`
      };
    })();
  }
  generateTicketUrl(reserva) {
    const baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.backendUrl;
    let endpoint = '';
    if (reserva.tipoReserva === 'periodo') {
      endpoint = '/reporte/ticket-mensual';
    } else if (reserva.tipoReserva === 'puntual') {
      switch (reserva.tarifaDto?.tipoCobro) {
        case 'por_evento':
          endpoint = '/reporte/ticket-reser-ev';
          break;
        case 'por_persona':
          endpoint = '/reporte/ticket-reser-per';
          break;
        default:
          endpoint = '/reporte/ticket-reservap';
      }
    } else {
      switch (reserva.tarifaDto?.tipoCobro) {
        case 'por_sesion':
          endpoint = '/reporte/ticket-recuses';
          break;
        case 'mensualidad':
          endpoint = '/reporte/ticket-recumes';
          break;
        case 'por_persona':
          endpoint = '/reporte/ticket-recuper';
          break;
        default:
          endpoint = '/reporte/ticket-recuses';
      }
    }
    return `${baseUrl}${endpoint}?uuid=${reserva.uuid}`;
  }
  getScheduleInformation(reserva) {
    if (reserva.tipoReserva === 'puntual') {
      const puntual = reserva.reservaPuntualDto;
      return {
        fecha_uso: this.formatDate(new Date(puntual?.fechaUso)),
        hora_inicio: puntual?.horaInicio,
        hora_fin: puntual?.horaFin,
        duracion_horas: puntual?.duracionHoras,
        cantidad_personas: puntual?.cantidadPersonas
      };
    } else {
      const recurrente = reserva.reservaRecurrenteDto;
      return {
        fecha_inicio: this.formatDate(new Date(recurrente?.fechaInicio)),
        fecha_fin: this.formatDate(new Date(recurrente?.fechaFin)),
        dias_semana: this.formatDiasSemana(recurrente?.diasSemana),
        duracion_sesion: recurrente?.duracionSesionHoras,
        cantidad_sesiones: recurrente?.cantidadSesiones,
        cantidad_personas: recurrente?.cantidadPersonas
      };
    }
  }
  getSuperficie(reserva) {
    if (reserva.tipoReserva === 'puntual') {
      return reserva.reservaPuntualDto?.superficie || 'N/A';
    } else {
      return reserva.reservaRecurrenteDto?.superficie || 'N/A';
    }
  }
  getCategoria(reserva) {
    if (reserva.tipoReserva === 'puntual') {
      return reserva.reservaPuntualDto?.categoria || 'N/A';
    } else {
      return reserva.reservaRecurrenteDto?.categoria || 'N/A';
    }
  }
  getDuracionTotal(reserva) {
    if (reserva.tipoReserva === 'puntual') {
      return `${reserva.reservaPuntualDto?.duracionHoras || 0} horas`;
    } else {
      const recurrente = reserva.reservaRecurrenteDto;
      return `${recurrente?.cantidadSesiones || 0} sesiones de ${recurrente?.duracionSesionHoras || 0} horas cada una`;
    }
  }
  getObservaciones(reserva) {
    if (reserva.tipoReserva === 'puntual') {
      return reserva.reservaPuntualDto?.observaciones || 'Ninguna';
    } else {
      return reserva.reservaRecurrenteDto?.observaciones || 'Ninguna';
    }
  }
  formatDate(date) {
    return date.toLocaleDateString('es-BO', {
      day: '2-digit',
      month: '2-digit',
      year: 'numeric'
    });
  }
  formatDiasSemana(diasSemana) {
    if (!diasSemana) return 'N/A';
    const diasMap = {
      'LUN': 'Lunes',
      'MAR': 'Martes',
      'MIE': 'Miércoles',
      'JUE': 'Jueves',
      'VIE': 'Viernes',
      'SAB': 'Sábado',
      'DOM': 'Domingo'
    };
    return diasSemana.split(',').map(dia => diasMap[dia.trim()] || dia.trim()).join(', ');
  }
  formatTipoCobro(tipoCobro) {
    const mapping = {
      'por_hora': 'Por Hora',
      'por_persona': 'Por Persona',
      'por_evento': 'Por Evento',
      'por_sesion': 'Por Sesión',
      'mensualidad': 'Mensualidad',
      'por_club': 'Por Club'
    };
    return mapping[tipoCobro] || tipoCobro;
  }
  getReservationTypeText() {
    if (!this.reservationData) return '';
    const tipoReserva = this.reservationData.tipoReserva === 'puntual' ? 'Puntual' : 'Recurrente';
    const tipoCobro = this.reservationData.tarifaDto?.tipoCobro || 'No especificado';
    return `${tipoReserva} - ${this.formatTipoCobro(tipoCobro)}`;
  }
  handleEmailError(error) {
    if (error?.status === 429) {
      this.notify('Límite de envíos de email alcanzado. Por favor intente más tarde.', 'error');
    } else if (error?.status === 400) {
      this.notify('Error en la configuración del email. Verifique los datos.', 'error');
    } else {
      this.notify('Error inesperado al enviar el email: ' + error.message, 'error');
    }
  }
  notify(message, type) {
    sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
      title: message,
      icon: type,
      timer: 4000,
      timerProgressBar: true,
      showConfirmButton: false
    });
  }
  closeModal() {
    if (this.showAsModal) {
      this.modalService.dismissAll();
    }
  }
  static {
    this.ɵfac = function TicketComponent_Factory(t) {
      return new (t || TicketComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_api_reportes_service__WEBPACK_IMPORTED_MODULE_5__.ReportsService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_9__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthenticationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
      type: TicketComponent,
      selectors: [["app-ticket"]],
      viewQuery: function TicketComponent_Query(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c0, 5);
        }
        if (rf & 2) {
          let _t;
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.pdfViewer = _t.first);
        }
      },
      inputs: {
        bookingType: "bookingType",
        reservationData: "reservationData",
        autoLoad: "autoLoad",
        showAsModal: "showAsModal"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵNgOnChangesFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵStandaloneFeature"]],
      decls: 26,
      vars: 9,
      consts: [["pdfViewer", ""], [1, "card", "mb-0"], [1, "card-header"], [1, "row", "align-items-center"], [1, "col-auto"], [1, "avatar-sm"], [1, "mini-stat-icon", "avatar-title", "rounded-circle", "text-success", "bg-success-subtle", "fs-4"], ["src", "assets/icons/logos/logo-sm.png", 1, "card-logo", "card-logo-dark", "user-profile-image", "img-fluid", 2, "width", "40px", "height", "40px"], [1, "col-md-6", "col-12"], [1, "mb-0"], ["class", "text-muted", 4, "ngIf"], [1, "col-md-4", "col-12", "mt-2", "mt-md-0"], [1, "d-flex", "align-items-center", "justify-content-end", "flex-wrap", "gap-2"], [1, "d-flex", "align-items-center"], ["for", "numeroTasa", 1, "mb-0", "me-1", "small"], [2, "min-width", "80px"], ["type", "text", "id", "numeroTasa", "readonly", "", 1, "form-control", "form-control-sm", "bg-light", "border-0", 2, "max-width", "100px", 3, "value"], ["class", "flex-shrink-0", 4, "ngIf"], [1, "card-body", "p-2", "p-md-3"], ["class", "alert alert-danger", "role", "alert", 4, "ngIf"], ["style", "height: 60vh; min-height: 300px;", 4, "ngIf"], ["id", "elmLoader", "class", "text-center py-4", 4, "ngIf"], ["class", "mt-3 p-2 p-md-3 bg-light rounded", 4, "ngIf"], [1, "card-footer"], ["class", "d-flex flex-column flex-md-row justify-content-between align-items-start align-items-md-center gap-2", 4, "ngIf"], [1, "text-muted"], [1, "flex-shrink-0"], [1, "btn", "btn-sm", "btn-soft-secondary", "p-1", 3, "click"], [1, "ri-close-line"], ["role", "alert", 1, "alert", "alert-danger"], [2, "height", "60vh", "min-height", "300px"], ["type", "application/pdf", "width", "100%", "height", "100%"], [1, "alert", "alert-info", "m-2"], [1, "btn", "btn-sm", "btn-primary", "ms-2", 3, "click"], ["id", "elmLoader", 1, "text-center", "py-4"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "text-muted", "mt-2"], [1, "mt-3", "p-2", "p-md-3", "bg-light", "rounded"], [1, "fw-semibold", "mb-2"], [1, "row", "g-2"], [1, "col-lg-6", "col-md-12"], [1, "d-sm-none"], [1, "col-lg-6", "col-md-12", "mt-2", "mt-lg-0"], [4, "ngIf"], ["class", "mt-2", 4, "ngIf"], [1, "mt-2"], [1, "d-flex", "flex-column", "flex-md-row", "justify-content-between", "align-items-start", "align-items-md-center", "gap-2"], [1, "reservation-info"], [1, "text-muted", "d-block", "d-md-inline"], [1, "d-flex", "flex-wrap", "gap-2"], [1, "btn", "btn-sm", "btn-success", 3, "click", "disabled"], ["class", "ri-mail-send-line me-1", 4, "ngIf"], ["class", "spinner-border spinner-border-sm me-1", "role", "status", 4, "ngIf"], [1, "d-none", "d-sm-inline"], [1, "d-inline", "d-sm-none"], [1, "btn", "btn-sm", "btn-primary", 3, "click"], [1, "ri-download-line", "me-1"], ["class", "btn btn-sm btn-soft-secondary", 3, "click", 4, "ngIf"], [1, "ri-mail-send-line", "me-1"], ["role", "status", 1, "spinner-border", "spinner-border-sm", "me-1"], [1, "btn", "btn-sm", "btn-soft-secondary", 3, "click"], [1, "ri-refresh-line", "me-1"]],
      template: function TicketComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "div", 4)(4, "div", 5)(5, "span", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "img", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "div", 8)(8, "h6", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](10, TicketComponent_small_10_Template, 2, 2, "small", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "div", 11)(12, "div", 12)(13, "div", 13)(14, "label", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](15, "Tasa No:");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "div", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](17, "input", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, TicketComponent_div_18_Template, 3, 0, "div", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](19, "div", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](20, TicketComponent_div_20_Template, 2, 1, "div", 19)(21, TicketComponent_div_21_Template, 7, 0, "div", 20)(22, TicketComponent_div_22_Template, 6, 0, "div", 21)(23, TicketComponent_div_23_Template, 34, 7, "div", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "div", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](25, TicketComponent_div_25_Template, 27, 9, "div", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](9);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("Ticket Reserva: ", ctx.reservationData.campoDeportivoDto.complejoDto.nombre, "");
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.reservationData);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx.reservationData.numeroTasa);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.showAsModal);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.errorMessage);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.errorMessage);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.showLoading);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.reservationData && !ctx.showLoading);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.showLoading && !ctx.errorMessage);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbDropdownModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslateModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_13__.FlatpickrModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 51343:
/*!**************************************************************!*\
  !*** ./src/app/pages/modules/surfaces/surfaces.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SurfacesComponent: () => (/* binding */ SurfacesComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv */ 6311);
/* harmony import */ var src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/modal-import/modal-import.component */ 2036);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/superficies.service */ 29977);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ngx-translate/core */ 90852);

// Sweet Alert













const _c0 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
const _c1 = a0 => ({
  "is-invalid": a0
});
function SurfacesComponent_i_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 25);
  }
}
function SurfacesComponent_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 26);
  }
}
function SurfacesComponent_For_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "li", 21)(1, "div", 27)(2, "input", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SurfacesComponent_For_23_Template_input_ngModelChange_2_listener($event) {
      const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r3).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](column_r4.visible, $event) || (column_r4.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "label", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("id", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", column_r4.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("for", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", column_r4.name, " ");
  }
}
function SurfacesComponent_ng_template_26_h5_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Agregar Superficie ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SurfacesComponent_ng_template_26_h5_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Editar Datos de Superficie ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SurfacesComponent_ng_template_26_h5_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "h5", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Superficie ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SurfacesComponent_ng_template_26_Conditional_14_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, "El campo es requirido");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SurfacesComponent_ng_template_26_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, SurfacesComponent_ng_template_26_Conditional_14_Conditional_1_Template, 2, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](1, ctx_r6.form["descripcion"].errors["required"] ? 1 : -1);
  }
}
function SurfacesComponent_ng_template_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, SurfacesComponent_ng_template_26_h5_1_Template, 3, 0, "h5", 31)(2, SurfacesComponent_ng_template_26_h5_2_Template, 3, 0, "h5", 31)(3, SurfacesComponent_ng_template_26_h5_3_Template, 3, 0, "h5", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "button", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_ng_template_26_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "form", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngSubmit", function SurfacesComponent_ng_template_26_Template_form_ngSubmit_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.saveData());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "div", 36)(9, "div", 37)(10, "div")(11, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "input", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](14, SurfacesComponent_ng_template_26_Conditional_14_Template, 2, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "div", 41)(16, "div", 42)(17, "button", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_ng_template_26_Template_button_click_17_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](18, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](19, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](20, "Guardar");
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "edit");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r6.accion === "show");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r6.submitted);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r6.contentForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction1"](7, _c1, ctx_r6.submitted && ctx_r6.form["descripcion"].errors));
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](14, ctx_r6.submitted && ctx_r6.form["descripcion"].errors ? 14 : -1);
  }
}
function SurfacesComponent_ng_template_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 47)(1, "div", 48)(2, "button", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_ng_template_28_Template_button_click_2_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.dismiss("Cross click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 34)(4, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](5, "lord-icon", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 52)(7, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8, "Estas seguro de Eliminar el Registro ?");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](9, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](10, " Al Confirmar la eliminacion se quitara toda informacion de nuestra base de datos. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 54)(12, "button", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_ng_template_28_Template_button_click_12_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](13, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](14, " Cancelar");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "button", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_ng_template_28_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r6.deleteData());
    })("click", function SurfacesComponent_ng_template_28_Template_button_click_15_listener() {
      const modal_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](modal_r9.close("Close click"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](16, "Si, Elmimar!");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
  }
}
class SurfacesComponent {
  constructor(modalService, authService, superficiesService, formBuilder) {
    this.modalService = modalService;
    this.authService = authService;
    this.superficiesService = superficiesService;
    this.formBuilder = formBuilder;
    this.title = "Superficies";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.submitted = false;
    this.superficiesList = [];
    this.selectedItems = [];
    /**
     * Open modal
     * @param content modal content
     */
    this.accion = '';
    this.headersImport = ['Descripcion'];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: 'Administración'
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Descripción',
      prop: 'descripcion',
      visible: true
    }];
    this.contentForm = this.formBuilder.group({
      uuid: [''],
      estado: [''],
      descripcion: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.required]]
    });
    this.getSurfaces();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  formDataSet(row) {
    this.contentForm.patchValue({
      uuid: row.uuid,
      descripcion: row.descripcion
    });
  }
  get form() {
    return this.contentForm.controls;
  }
  performSearch() {
    this.superficiesList = this.temp.filter(item => {
      return item.descripcion.toLowerCase().includes(this.searchTerm.toLowerCase());
    });
  }
  openModal(data, content, accion) {
    this.accion = accion;
    if (data) {
      this.formDataSet(data);
      if (accion === 'show') {
        this.contentForm.disable();
      }
    }
    this.modalService.open(content, {
      size: 'md',
      centered: true
    });
  }
  deleteModal(content, data) {
    this.deleteId = data.uuid;
    this.modalService.open(content, {
      centered: true
    });
  }
  openModalImport() {
    const modalRef = this.modalService.open(src_app_shared_modal_import_modal_import_component__WEBPACK_IMPORTED_MODULE_2__.ModalImportComponent, {
      size: 'lg',
      backdrop: 'static'
    });
    modalRef.componentInstance.titles = this.headersImport.map(header => ({
      prop: header,
      name: header,
      visible: true
    }));
    modalRef.componentInstance.itemsList = this.temp;
    modalRef.componentInstance.checkExistsFn = registro => this.temp.some(item => item.descripcion === registro.descripcion);
    modalRef.componentInstance.mapRowFn = (row, lookupData) => {
      return {
        descripcion: '' + row['Descripcion']
      };
    };
    modalRef.componentInstance.createRecordFn = record => this.superficiesService.save(record).toPromise();
    modalRef.componentInstance.actionCompleted.subscribe(() => {
      this.getSurfaces();
    });
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      return {
        value: item.descripcion
      };
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de ' + this.title,
      useBom: true,
      noDownload: false,
      headers: this.headersImport
    };
    new ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, this.title, data);
  }
  /**
  * Save
  */
  saveData() {
    this.submitted = true;
    if (this.contentForm.valid) {
      this.contentForm.enable();
      let datos = {
        descripcion: this.contentForm.value.descripcion
      };
      if (this.contentForm.get('uuid')?.value) {
        datos.uuid = this.contentForm.value.uuid, this.updateData(datos);
      } else {
        this.addData(datos);
      }
    } else {
      this.notify('Formulario Invalido!', 'error');
    }
  }
  getSurfaces() {
    this.superficiesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.superficiesList = data.payload;
          this.temp = this.superficiesList;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'No se pudo recuperar los registros',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  addData(datos) {
    this.superficiesService.save(datos).subscribe({
      next: data => {
        this.submitted = false;
        this.notify('Datos Registrados exitosamente!', 'success');
        this.closeModal();
        this.getSurfaces();
      },
      error: error => {
        this.notify('No se pudo Guardar los datos! ' + error, 'error');
      }
    });
  }
  updateData(datosUnit) {
    this.superficiesService.update(datosUnit).subscribe({
      next: data => {
        this.submitted = false;
        this.closeModal();
        this.getSurfaces();
        // this.itemsList.emit();
        this.notify('Datos Actualizados exitosamente!', 'success');
      },
      error: error => {
        this.notify('No se pudo Actualizar los datos! ' + error, 'error');
      }
    });
  }
  // Delete Data
  deleteData() {
    let uuid = this.deleteId;
    this.superficiesService.delete(uuid).subscribe({
      next: data => {
        this.submitted = false;
        if (data['status'] === 'OK') {
          this.notify(data.payload, 'info');
          this.getSurfaces();
        }
        this.closeModal();
      },
      error: err => {
        this.submitted = false;
        this.notify('No se pudo eliminar el registro!', 'error');
      }
    });
  }
  /* common functions */
  closeModal() {
    this.modalService.dismissAll();
    this.contentForm.reset();
    this.contentForm.enable();
  }
  notify(message, type) {
    let timerInterval;
    sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
      title: message,
      icon: type,
      timer: 3000,
      timerProgressBar: true,
      willClose: () => {
        clearInterval(timerInterval);
      }
    }).then(result => {
      if (result.dismiss === (sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().DismissReason).timer) {}
    });
  }
  static {
    this.ɵfac = function SurfacesComponent_Factory(t) {
      return new (t || SurfacesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_superficies_service__WEBPACK_IMPORTED_MODULE_4__.SuperficiesService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.UntypedFormBuilder));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
      type: SurfacesComponent,
      selectors: [["app-surfaces"]],
      decls: 30,
      vars: 23,
      consts: [["content", ""], ["deleteModel", ""], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "importEmitter", "exportEmitter", "title", "headersImport", "newShow", "importShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "pb-1"], [1, "row", "g-2"], [1, "col-7", "col-lg-6"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar por ...", 1, "form-control", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], ["role", "document"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"], [1, "modal-header", "bg-info-subtle", "p-2"], ["class", "modal-title", "ngbAutofocus", "", 4, "ngIf"], ["type", "button", "data-dismiss", "modal", "aria-label", "Cerrar", 1, "btn-close", 3, "click", "disabled"], ["autocomplete", "off", 1, "tablelist-form", 3, "ngSubmit", "formGroup"], [1, "modal-body"], ["type", "hidden", "name", "uuid", "formControlName", "uuid"], [1, "row", "g-3"], [1, "col-lg-12"], ["for", "descripcion-field", 1, "form-label", "mb-0"], ["type", "text", "id", "descripcion-field", "placeholder", "Ingresan el descripcion del Deporte", "required", "", "formControlName", "descripcion", 1, "form-control", 3, "ngClass"], ["align", "left", 1, "invalid-feedback"], [1, "modal-footer"], [1, "hstack", "gap-2", "justify-content-end"], ["type", "button", "data-bs-dismiss", "modal", 1, "btn", "btn-light", 3, "click"], ["type", "submit", "id", "add-btn", 1, "btn", "btn-primary"], ["ngbAutofocus", "", 1, "modal-title"], [1, "ri-home-6-line", "me-2"], [1, "modal-content"], [1, "modal-header"], ["type", "button", "data-bs-dismiss", "modal", "aria-label", "Close", "id", "btn-close", 1, "btn-close", 3, "click"], [1, "mt-2", "text-center"], ["src", "https://cdn.lordicon.com/gsqxdxog.json", "trigger", "loop", "colors", "primary:#405189,secondary:#f06548", 2, "width", "90px", "height", "90px"], [1, "mt-4", "pt-2", "fs-15", "mx-4", "mx-sm-5"], [1, "text-muted", "mx-4", "mb-0"], [1, "d-flex", "gap-2", "justify-content-center", "mt-4", "mb-2"], ["data-bs-dismiss", "modal", "id", "deleteRecord-close", 1, "btn", "btn-link", "link-success", "fw-medium", "text-decoration-none", 3, "click"], [1, "ri-close-line", "me-1", "align-middle"], ["type", "button", "id", "delete-product", 1, "btn", "w-sm", "btn-danger", 3, "click"]],
      template: function SurfacesComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "app-breadcrumbs", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "div", 3)(3, "app-data-header", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("createEmitter", function SurfacesComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal(undefined, content_r2, ""));
          })("importEmitter", function SurfacesComponent_Template_app_data_header_importEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModalImport());
          })("exportEmitter", function SurfacesComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8)(8, "div", 9)(9, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SurfacesComponent_Template_input_ngModelChange_9_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngModelChange", function SurfacesComponent_Template_input_ngModelChange_9_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.performSearch());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](10, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 12)(12, "button", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SurfacesComponent_Template_button_click_12_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](13, SurfacesComponent_i_13_Template, 1, 0, "i", 14)(14, SurfacesComponent_i_14_Template, 1, 0, "i", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](17, "div", 16)(18, "span", 17)(19, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](20, "i", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "ul", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterCreate"](22, SurfacesComponent_For_23_Template, 5, 4, "li", 21, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "div", 22)(25, "app-data-table", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("showItemEmitter", function SurfacesComponent_Template_app_data_table_showItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, content_r2, "show"));
          })("editItemEmitter", function SurfacesComponent_Template_app_data_table_editItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const content_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](27);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, content_r2, "edit"));
          })("closeItemEmitter", function SurfacesComponent_Template_app_data_table_closeItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            const deleteModel_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](29);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.deleteModal(deleteModel_r5, $event));
          })("selectedItemEmitter", function SurfacesComponent_Template_app_data_table_selectedItemEmitter_25_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](26, SurfacesComponent_ng_template_26_Template, 21, 9, "ng-template", 24, 0, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"])(28, SurfacesComponent_ng_template_28_Template, 17, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 17, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", ctx.title)("headersImport", ctx.headersImport)("newShow", ctx.canActivate.includes("CREAR"))("importShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.superficiesList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction3"](19, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _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__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _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, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslatePipe],
      styles: ["@media (max-width: 767px) {\n  .card[_ngcontent-%COMP%] {\n    margin-left: -15px;\n    margin-right: -15px;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcGFnZXMvbW9kdWxlcy9zdXJmYWNlcy9zdXJmYWNlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJO0lBRUUsa0JBQUE7SUFDQSxtQkFBQTtFQUFKO0FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJAbWVkaWEgKG1heC13aWR0aDogNzY3cHgpIHtcclxuICAgIC5jYXJkIHtcclxuICAgIC8vICAgbWFyZ2luOiAtMTVweDtcclxuICAgICAgbWFyZ2luLWxlZnQ6IC0xNXB4O1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6IC0xNXB4O1xyXG4gICAgfVxyXG4gIH0iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

/***/ 61513:
/*!****************************************************************************************!*\
  !*** ./src/app/pages/modules/system-configurations/system-configurations.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SystemConfigurationsComponent: () => (/* binding */ SystemConfigurationsComponent)
/* harmony export */ });
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var _modals_modal_system_configuration_modal_system_configuration_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/modal-system-configuration/modal-system-configuration.component */ 97464);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/api/configuracionSistema.service */ 93866);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ngx-translate/core */ 90852);













const _c0 = (a0, a1, a2) => ({
  show: a0,
  edit: a1,
  close: a2
});
function SystemConfigurationsComponent_option_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cat_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", cat_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](cat_r2);
  }
}
function SystemConfigurationsComponent_i_57_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 48);
  }
}
function SystemConfigurationsComponent_i_58_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "i", 49);
  }
}
function SystemConfigurationsComponent_For_67_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "li", 44)(1, "div", 50)(2, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SystemConfigurationsComponent_For_67_Template_input_ngModelChange_2_listener($event) {
      const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r3).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](column_r4.visible, $event) || (column_r4.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "label", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("id", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", column_r4.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("for", "formCheck" + column_r4.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", column_r4.name, " ");
  }
}
class SystemConfigurationsComponent {
  constructor(modalService, authService, configuracionSistemaService) {
    this.modalService = modalService;
    this.authService = authService;
    this.configuracionSistemaService = configuracionSistemaService;
    this.title = "Configuraciones de Sistema";
    this.itemsList = [];
    this.viewMode = 'table';
    this.configuracionesList = [];
    this.temp = [];
    this.categoriasList = [];
    // Search filters
    this.searchTerm = '';
    this.estado = '';
    this.categoria = '';
    this.modificable = '';
    this.selectedItems = [];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: ''
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Clave',
      prop: 'clave',
      visible: true
    }, {
      name: 'Nombre',
      prop: 'nombre',
      visible: true
    }, {
      name: 'Categoría',
      prop: 'categoria',
      visible: true
    }, {
      name: 'Valor',
      prop: 'valorTexto',
      visible: true
    }, {
      name: 'Valor Numérico',
      prop: 'valorNumerico',
      visible: false
    }, {
      name: 'Valor Boolean',
      prop: 'valorBoolean',
      visible: false
    }, {
      name: 'Unidad',
      prop: 'unidadMedida',
      visible: false
    }, {
      name: 'Estado',
      prop: 'activo',
      tag: true,
      visible: true
    }, {
      name: 'Modificable',
      prop: 'modificablePorUsuario',
      tag: true,
      visible: false
    }, {
      name: 'Requiere Aprobación',
      prop: 'requiereAprobacion',
      tag: true,
      visible: false
    }, {
      name: 'Aplica A',
      prop: 'aplicaA',
      visible: false
    }, {
      name: 'Fecha Creación',
      prop: 'fechaCreacion',
      visible: false,
      date: true
    }];
    this.getConfiguraciones();
    this.getCategorias();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  applyFilters() {
    if (!this.temp || this.temp.length === 0) return;
    this.configuracionesList = this.temp.filter(item => {
      const searchMatch = !this.searchTerm || this.searchInConfiguracion(item, this.searchTerm);
      const estadoMatch = !this.estado || this.estado === 'ACTIVO' && item.activo || this.estado === 'INACTIVO' && !item.activo;
      const categoriaMatch = !this.categoria || item.categoria === this.categoria;
      const modificableMatch = !this.modificable || this.modificable === 'SI' && item.modificablePorUsuario || this.modificable === 'NO' && !item.modificablePorUsuario;
      return searchMatch && estadoMatch && categoriaMatch && modificableMatch;
    });
  }
  searchInConfiguracion(item, searchTerm) {
    if (!searchTerm) return true;
    const term = searchTerm.toLowerCase();
    return item.clave?.toLowerCase().includes(term) || item.nombre?.toLowerCase().includes(term) || item.categoria?.toLowerCase().includes(term) || item.valorTexto?.toLowerCase().includes(term) || item.descripcion?.toLowerCase().includes(term) || item.unidadMedida?.toLowerCase().includes(term) || item.aplicaA?.toLowerCase().includes(term);
  }
  onNavChange(changeEvent) {
    switch (changeEvent.nextId) {
      case 1:
        this.configuracionesList = this.temp;
        break;
      case 2:
        this.configuracionesList = this.temp.filter(item => item.activo === true);
        break;
      case 3:
        this.configuracionesList = this.temp.filter(item => item.modificablePorUsuario === true);
        break;
      case 4:
        this.configuracionesList = this.temp.filter(item => item.aplicaA === 'global');
        break;
    }
  }
  openModal(content, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_system_configuration_modal_system_configuration_component__WEBPACK_IMPORTED_MODULE_2__.SystemConfigurationModalComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = content;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.categoriasList = this.categoriasList;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getConfiguraciones();
      this.getCategorias();
    });
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const baseData = {
        clave: item.clave,
        nombre: item.nombre,
        categoria: item.categoria,
        valorTexto: item.valorTexto,
        valorNumerico: item.valorNumerico,
        valorBoolean: item.valorBoolean ? 'Sí' : 'No',
        unidadMedida: item.unidadMedida,
        descripcion: item.descripcion,
        modificablePorUsuario: item.modificablePorUsuario ? 'Sí' : 'No',
        requiereAprobacion: item.requiereAprobacion ? 'Sí' : 'No',
        activo: item.activo ? 'Activo' : 'Inactivo',
        aplicaA: item.aplicaA,
        referenciaUuid: item.referenciaUuid,
        fechaCreacion: item.fechaCreacion
      };
      return [{
        ...baseData
      }];
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Configuraciones del Sistema',
      useBom: true,
      noDownload: false,
      headers: ["Clave", "Nombre", "Categoría", "Valor Texto", "Valor Numérico", "Valor Boolean", "Unidad Medida", "Descripción", "Modificable por Usuario", "Requiere Aprobación", "Estado", "Aplica A", "Referencia UUID", "Fecha Creación"]
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, "configuraciones_sistema", data);
  }
  getConfiguraciones() {
    this.configuracionSistemaService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.configuracionesList = data.payload;
          this.temp = this.configuracionesList;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'Error al obtener las configuraciones',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  getCategorias() {
    this.configuracionSistemaService.getCategorias().subscribe({
      next: data => {
        if (data['status'] === 'OK') {
          this.categoriasList = data.payload;
        }
      }
    });
  }
  static {
    this.ɵfac = function SystemConfigurationsComponent_Factory(t) {
      return new (t || SystemConfigurationsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_api_configuracionSistema_service__WEBPACK_IMPORTED_MODULE_4__.ConfiguracionSistemaService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
      type: SystemConfigurationsComponent,
      selectors: [["app-system-configurations"]],
      decls: 70,
      vars: 31,
      consts: [["nav", "ngbNav"], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "exportEmitter", "title", "newShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], [3, "ngSubmit"], [1, "row", "g-2"], [1, "col-12", "col-sm-6", "col-lg-4"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar configuraciones ...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-12", "col-sm-6", "col-lg-3"], ["data-choices", "", "data-choices-search-false", "", "name", "categoria", "id", "idCategoria", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-6", "col-sm-6", "col-lg-2"], ["data-choices", "", "data-choices-search-false", "", "name", "estado", "id", "idEstado", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "ACTIVO"], ["value", "INACTIVO"], ["data-choices", "", "data-choices-search-false", "", "name", "modificable", "id", "idModificable", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "SI"], ["value", "NO"], [1, "col-12", "col-sm-6", "col-lg-1"], ["type", "submit", "title", "Filtrar", 1, "btn", "btn-primary", "w-100"], [1, "ri-filter-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "py-2"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Activas", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Modificables", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Pending"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Globales", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Approved"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], [3, "value"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"]],
      template: function SystemConfigurationsComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](0, "app-breadcrumbs", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "div", 2)(3, "app-data-header", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("createEmitter", function SystemConfigurationsComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal(undefined, "", "lg"));
          })("exportEmitter", function SystemConfigurationsComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 4)(5, "div", 5)(6, "form", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngSubmit", function SystemConfigurationsComponent_Template_form_ngSubmit_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SystemConfigurationsComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("ngModelChange", function SystemConfigurationsComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](11, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "div", 12)(13, "select", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SystemConfigurationsComponent_Template_select_ngModelChange_13_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.categoria, $event) || (ctx.categoria = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](14, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](15, "Todas las Categor\u00EDas");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](16, SystemConfigurationsComponent_option_16_Template, 2, 2, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](17, "div", 16)(18, "select", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SystemConfigurationsComponent_Template_select_ngModelChange_18_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.estado, $event) || (ctx.estado = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](19, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](20, "Estado");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "option", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](22, "Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](23, "option", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](24, "Inactivo");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](25, "div", 16)(26, "select", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayListener"]("ngModelChange", function SystemConfigurationsComponent_Template_select_ngModelChange_26_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayBindingSet"](ctx.modificable, $event) || (ctx.modificable = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](27, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](28, "Modificable");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](29, "option", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](30, "S\u00ED");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](31, "option", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](32, "No");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](33, "div", 23)(34, "button", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](35, "i", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](36, "div", 26)(37, "div", 7)(38, "div", 27)(39, "ul", 28, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("navChange", function SystemConfigurationsComponent_Template_ul_navChange_39_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](41, "li", 29)(42, "a", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](43, " Todas las Configuraciones");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](44, "span", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](45);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](46, "li", 29)(47, "a", 32);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](48, " Configuraciones Activas ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](49, "li", 29)(50, "a", 33);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](51, " Modificables por Usuario ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](52, "li", 29)(53, "a", 34);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](54, " Configuraciones Globales ");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](55, "div", 35)(56, "button", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SystemConfigurationsComponent_Template_button_click_56_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](57, SystemConfigurationsComponent_i_57_Template, 1, 0, "i", 37)(58, SystemConfigurationsComponent_i_58_Template, 1, 0, "i", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](59, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](60);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](61, "div", 39)(62, "span", 40)(63, "button", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](64, "i", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](65, "ul", 43);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterCreate"](66, SystemConfigurationsComponent_For_67_Template, 5, 4, "li", 44, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](68, "div", 45)(69, "app-data-table", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("showItemEmitter", function SystemConfigurationsComponent_Template_app_data_table_showItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function SystemConfigurationsComponent_Template_app_data_table_editItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function SystemConfigurationsComponent_Template_app_data_table_closeItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.openModal($event, "delete", "md"));
          })("selectedItemEmitter", function SystemConfigurationsComponent_Template_app_data_table_selectedItemEmitter_69_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 25, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.categoria);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx.categoriasList);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.estado);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtwoWayProperty"]("ngModel", ctx.modificable);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx.temp.length);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.configuracionesList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction3"](27, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("ELIMINAR") ? "Eliminar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.CheckboxControlValueAccessor, _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__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgForm, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdownMenu, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_5__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_6__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_7__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_12__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 33769:
/*!****************************************************************!*\
  !*** ./src/app/pages/modules/taxpayers/taxpayers.component.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TaxpayersComponent: () => (/* binding */ TaxpayersComponent)
/* harmony export */ });
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-csv/ngx-csv */ 6311);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var _modals_modal_taxpayer_modal_taxpayer_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../modals/modal-taxpayer/modal-taxpayer.component */ 46540);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/auth.service */ 68010);
/* harmony import */ var src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/api/contribuyentes.service */ 68081);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/data-table/data-table.component */ 54252);
/* harmony import */ var _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/data-header/data-header.component */ 50576);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 90852);














const _c0 = (a0, a1, a2, a3, a4) => ({
  show: a0,
  edit: a1,
  close: a2,
  check: a3,
  process: a4
});
function TaxpayersComponent_i_80_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 55);
  }
}
function TaxpayersComponent_i_81_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 56);
  }
}
function TaxpayersComponent_For_90_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 52)(1, "div", 57)(2, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_For_90_Template_input_ngModelChange_2_listener($event) {
      const column_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r2).$implicit;
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](column_r3.visible, $event) || (column_r3.visible = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "label", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const column_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("id", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", column_r3.visible);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("for", "formCheck" + column_r3.prop);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", column_r3.name, " ");
  }
}
class TaxpayersComponent {
  constructor(modalService, authService, contribuyentesService) {
    this.modalService = modalService;
    this.authService = authService;
    this.contribuyentesService = contribuyentesService;
    this.title = "Contribuyentes";
    this.itemsList = [];
    this.temp = [];
    this.viewMode = 'table';
    this.contribuyentesList = [];
    this.searchTerm = '';
    this.estadoUsuario = '';
    this.estadoRuat = '';
    this.tipoContribuyente = '';
    this.puedeReservarGratis = '';
    this.esDeportistaElite = '';
    this.selectedItems = [];
    /* API Services */
    this.loading = true;
    this.canActivate = this.authService.hasPermission(this.title);
  }
  ngOnInit() {
    const savedViewMode = localStorage.getItem('dataTableViewMode');
    if (savedViewMode === 'table' || savedViewMode === 'cards') {
      this.viewMode = savedViewMode;
    }
    this.breadCrumbItems = [{
      label: ''
    }, {
      label: this.title,
      active: true
    }];
    this.itemsList = [{
      name: 'Nombre Completo',
      prop: 'nombreCompleto',
      visible: true
    }, {
      name: 'Nombre',
      prop: 'nombre',
      visible: false
    }, {
      name: 'Primer Apellido',
      prop: 'primerApellido',
      visible: false
    }, {
      name: 'Segundo Apellido',
      prop: 'segundoApellido',
      visible: false
    }, {
      name: 'Apellido Esposo',
      prop: 'apellidoEsposo',
      visible: false
    }, {
      name: 'Tipo Contribuyente',
      prop: 'tipoContribuyente',
      visible: false
    }, {
      name: 'Nro Documento',
      prop: 'numeroDocumento',
      visible: true
    }, {
      name: 'Expedido',
      prop: 'expedido',
      visible: false
    }, {
      name: 'NIT',
      prop: 'nroNit',
      visible: false
    }, {
      name: 'Genero',
      prop: 'genero',
      visible: false
    }, {
      name: 'Estado Civil',
      prop: 'estadoCivil',
      visible: false
    }, {
      name: 'Fecha Nacimiento',
      prop: 'fechaNacimiento',
      visible: false
    }, {
      name: 'Teléfono',
      prop: 'telefono',
      visible: true
    }, {
      name: 'Email',
      prop: 'email',
      visible: false
    }, {
      name: 'Dirección',
      prop: 'direccion',
      visible: false
    }, {
      name: 'Estado Usuario',
      prop: 'estadoUsuario',
      tag: true,
      visible: true
    }, {
      name: 'Estado Ruat',
      prop: 'estadoRuat',
      visible: false,
      tag: true
    }, {
      name: 'Es Deportista Elite',
      prop: 'esDeportistaElite',
      visible: false,
      tag: true
    }, {
      name: 'Puede Reservar Gratis',
      prop: 'puedeReservarGratis',
      visible: false,
      tag: true
    }, {
      name: 'Pertenece Escuela Municipal',
      prop: 'perteneceEscuelaMunicipal',
      visible: false,
      tag: true
    }, {
      name: 'Registro Único Deportivo',
      prop: 'registroUnicoDeportivo',
      visible: false
    }, {
      name: 'Fecha Último Uso Gratuito',
      prop: 'fechaUltimoUsoGratuito',
      visible: false,
      date: true
    }, {
      name: 'Observaciones Municipales',
      prop: 'observacionesMunicipales',
      visible: false
    }, {
      name: 'Descuento Aplicable',
      prop: 'descuentoAplicable',
      visible: false
    }, {
      name: 'Fecha Creacion',
      prop: 'fechaCreacion',
      visible: false,
      date: true
    }, {
      name: 'Fecha Actualización',
      prop: 'fechaActualizacion',
      visible: false,
      date: true
    }, {
      name: 'Estado Sancionado',
      prop: 'estaSancionado',
      visible: false,
      tag: true
    }, {
      name: 'Fecha fin Sancion',
      prop: 'fechaFinSancion',
      visible: false,
      date: false
    }, {
      name: 'Motivo',
      prop: 'motivoSancion',
      visible: false
    }];
    this.getTaxpayers();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  toggleViewMode() {
    this.viewMode = this.viewMode === 'table' ? 'cards' : 'table';
    localStorage.setItem('dataTableViewMode', this.viewMode);
  }
  applyFilters() {
    if (!this.temp || this.temp.length === 0) return;
    this.contribuyentesList = this.temp.filter(item => {
      const searchMatch = !this.searchTerm || this.searchInContribuyente(item, this.searchTerm);
      const estadoUsuarioMatch = !this.estadoUsuario || item.estadoUsuario === this.estadoUsuario;
      const estadoRuatMatch = !this.estadoRuat || item.estadoRuat === this.estadoRuat;
      const tipoContribuyenteMatch = !this.tipoContribuyente || item.tipoContribuyente === this.tipoContribuyente;
      const puedeReservarGratisMatch = !this.puedeReservarGratis || this.puedeReservarGratis === 'SI' && item.puedeReservarGratis || this.puedeReservarGratis === 'NO' && !item.puedeReservarGratis;
      const esDeportistaEliteMatch = !this.esDeportistaElite || this.esDeportistaElite === 'SI' && item.esDeportistaElite || this.esDeportistaElite === 'NO' && !item.esDeportistaElite;
      return searchMatch && estadoUsuarioMatch && estadoRuatMatch && tipoContribuyenteMatch && puedeReservarGratisMatch && esDeportistaEliteMatch;
    });
  }
  searchInContribuyente(item, searchTerm) {
    if (!searchTerm) return true;
    const term = searchTerm.toLowerCase();
    return item.nombreCompleto?.toLowerCase().includes(term) || item.nombre?.toLowerCase().includes(term) || item.primerApellido?.toLowerCase().includes(term) || item.segundoApellido?.toLowerCase().includes(term) || item.apellidoEsposo?.toLowerCase().includes(term) || item.numeroDocumento?.toLowerCase().includes(term) || item.nroNit?.toLowerCase().includes(term) || item.telefono?.toLowerCase().includes(term) || item.email?.toLowerCase().includes(term) || item.direccion?.toLowerCase().includes(term) || item.registroUnicoDeportivo?.toLowerCase().includes(term) || item.observacionesMunicipales?.toLowerCase().includes(term) || item.motivoSancion?.toLowerCase().includes(term) || item.estadoUsuario?.toLowerCase().includes(term) || item.estadoRuat?.toLowerCase().includes(term) || item.tipoContribuyente?.toLowerCase().includes(term);
  }
  onNavChange(changeEvent) {
    switch (changeEvent.nextId) {
      case 1:
        this.contribuyentesList = this.temp;
        break;
      case 2:
        this.contribuyentesList = this.temp.filter(item => item.tipoContribuyente === 'NA');
        break;
      case 3:
        this.contribuyentesList = this.temp.filter(item => item.tipoContribuyente === 'JU');
        break;
      case 4:
        this.contribuyentesList = this.temp.filter(item => item.puedeReservarGratis === true);
        break;
      case 5:
        this.contribuyentesList = this.temp.filter(item => item.esDeportistaElite === true);
        break;
      case 6:
        this.contribuyentesList = this.temp.filter(item => item.estaSancionado === true);
        break;
    }
  }
  openModal(content, accion, size) {
    const modalRef = this.modalService.open(_modals_modal_taxpayer_modal_taxpayer_component__WEBPACK_IMPORTED_MODULE_3__.ModalTaxpayerComponent, {
      backdrop: 'static',
      size: size
    });
    modalRef.componentInstance.row = content;
    modalRef.componentInstance.accion = accion;
    modalRef.componentInstance.clientsList = this.contribuyentesList;
    modalRef.componentInstance.userPermissions = this.canActivate;
    modalRef.componentInstance.emitList.subscribe(() => {
      this.getTaxpayers();
    });
  }
  // Csv File Export
  csvFileExport() {
    const lista = this.selectedItems.flatMap(item => {
      const city = src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_2__.CityAcronym.find(city => city.id === item.expedido);
      const baseData = {
        nombreCompleto: item.nombreCompleto,
        tipoContribuyente: item.tipoContribuyente,
        numeroDocumento: item.numeroDocumento,
        expedido: city ? city.value : item.expedido,
        nroNit: item.nroNit,
        telefono: item.telefono,
        email: item.email,
        direccion: item.direccion,
        estadoUsuario: item.estadoUsuario,
        estadoRuat: item.estadoRuat,
        puedeReservarGratis: item.puedeReservarGratis ? 'SI' : 'NO',
        esDeportistaElite: item.esDeportistaElite ? 'SI' : 'NO',
        perteneceEscuelaMunicipal: item.perteneceEscuelaMunicipal ? 'SI' : 'NO',
        registroUnicoDeportivo: item.registroUnicoDeportivo,
        descuentoAplicable: item.descuentoAplicable,
        estaSancionado: item.estaSancionado ? 'SI' : 'NO',
        fechaFinSancion: item.fechaFinSancion,
        motivoSancion: item.motivoSancion,
        fechaCreacion: item.fechaCreacion,
        fechaActualizacion: item.fechaActualizacion
      };
      return [{
        ...baseData
      }];
    });
    var data = {
      fieldSeparator: ',',
      quoteStrings: '"',
      decimalseparator: '.',
      showLabels: true,
      showTitle: true,
      title: 'Lista de Contribuyentes',
      useBom: true,
      noDownload: false,
      headers: ["Nombre Completo", "Tipo Contribuyente", "Nro Documento", "Expedido", "NIT", "Teléfono", "Email", "Dirección", "Estado Usuario", "Estado Ruat", "Puede Reservar Gratis", "Es Deportista Elite", "Pertenece Escuela Municipal", "Registro Único Deportivo", "Descuento Aplicable", "Está Sancionado", "Fecha Fin Sanción", "Motivo Sanción", "Fecha Creación", "Fecha Actualización"]
    };
    new ngx_csv_ngx_csv__WEBPACK_IMPORTED_MODULE_1__.ngxCsv(lista, "contribuyentes", data);
  }
  getTaxpayers() {
    this.contribuyentesService.getAll().subscribe({
      next: data => {
        this.loading = false;
        if (data['status'] === 'OK') {
          this.contribuyentesList = data.payload;
          this.temp = data.payload;
        }
      },
      error: error => {
        this.loading = false;
        sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().fire({
          text: 'Error al obtener los contribuyentes',
          icon: 'error',
          confirmButtonColor: '#299cdb'
        });
      }
    });
  }
  static {
    this.ɵfac = function TaxpayersComponent_Factory(t) {
      return new (t || TaxpayersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_api_contribuyentes_service__WEBPACK_IMPORTED_MODULE_5__.ContribuyentesService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
      type: TaxpayersComponent,
      selectors: [["app-taxpayers"]],
      decls: 93,
      vars: 35,
      consts: [["nav", "ngbNav"], [3, "title", "breadcrumbItems"], [1, "content"], [3, "createEmitter", "exportEmitter", "title", "newShow", "exportShow"], [1, "card", "rounded-2"], [1, "card-header", "border", "border-dashed", "border-end-0", "border-start-0"], [3, "ngSubmit"], [1, "row", "g-2"], [1, "col-6", "col-sm-6", "col-lg-3"], [1, "search-box"], ["type", "text", "name", "searchTerm", "placeholder", "Buscar contribuyentes ...", 1, "form-control", "search", 3, "ngModelChange", "ngModel"], [1, "ri-search-line", "search-icon"], [1, "col-6", "col-sm-6", "col-lg-2"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoUsuario", "id", "idEstadoUsuario", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "", "selected", ""], ["value", "Activo"], ["value", "Bloqueado"], ["value", "Pendiente"], ["data-choices", "", "data-choices-search-false", "", "name", "estadoRuat", "id", "idEstadoRuat", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "ACTIVO"], ["value", "INACTIVO"], ["value", "PENDIENTE"], ["value", "BLOQUEADO"], ["data-choices", "", "data-choices-search-false", "", "name", "tipoContribuyente", "id", "idTipoContribuyente", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "NA"], ["value", "JU"], ["data-choices", "", "data-choices-search-false", "", "name", "puedeReservarGratis", "id", "idPuedeReservarGratis", 1, "form-control", 3, "ngModelChange", "ngModel"], ["value", "SI"], ["value", "NO"], [1, "col-6", "col-sm-6", "col-lg-1"], ["title", "Filtrar", "type", "submit", 1, "btn", "btn-primary", "w-100"], [1, "ri-filter-line", "align-bottom"], [1, "card-header", "p-0"], [1, "col-auto", "flex-grow-1"], ["ngbNav", "", "role", "tablist", 1, "nav", "nav-tabs", "nav-tabs-custom", "nav-success", 3, "navChange", "activeId"], [1, "nav-item", 3, "ngbNavItem"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "All", "href", "javascript:void(0);", "role", "tab", "aria-selected", "true", 1, "nav-link", "py-2"], [1, "badge", "bg-danger", "align-middle", "ms-1"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Naturales", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "New"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Juridicos", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Pending"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "ReservaGratis", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Approved"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "DeportistaElite", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Rejected"], ["ngbNavLink", "", "data-bs-toggle", "tab", "id", "Sancionados", "href", "javascript:void(0);", "role", "tab", "aria-selected", "false", 1, "nav-link", "py-2", "Rejected"], [1, "col-auto", "ms-auto", "d-flex", "justify-content-end", "align-items-center", "gap-2"], [1, "btn", "btn-soft-secondary", "btn-sm", "d-flex", "align-items-center", 3, "click"], ["class", "ri-grid-fill me-1", 4, "ngIf"], ["class", "ri-list-check me-1", 4, "ngIf"], [1, "hstack", "ms-auto"], ["ngbDropdown", "", 1, "dropdown", "d-md-inline-block"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "ngbDropdownToggle", "", 1, "btn", "btn-soft-info", "btn-sm", "arrow-none"], [1, "ri-settings-4-line"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", "p-1"], [1, "card-body"], [3, "showItemEmitter", "editItemEmitter", "closeItemEmitter", "checkItemEmitter", "processItemEmitter", "selectedItemEmitter", "loading", "itemsList", "allcontent", "actions", "multiCheck", "viewMode"], [1, "ri-grid-fill", "me-1"], [1, "ri-list-check", "me-1"], [1, "form-check", "form-check-outline", "form-check-primary"], ["type", "checkbox", 1, "form-check-input", 3, "ngModelChange", "id", "ngModel"], [1, "form-check-label", 3, "for"]],
      template: function TaxpayersComponent_Template(rf, ctx) {
        if (rf & 1) {
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-breadcrumbs", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](1, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 2)(3, "app-data-header", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("createEmitter", function TaxpayersComponent_Template_app_data_header_createEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal(undefined, "", "lg"));
          })("exportEmitter", function TaxpayersComponent_Template_app_data_header_exportEmitter_3_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.csvFileExport());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 4)(5, "div", 5)(6, "form", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngSubmit", function TaxpayersComponent_Template_form_ngSubmit_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_Template_input_ngModelChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.searchTerm, $event) || (ctx.searchTerm = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function TaxpayersComponent_Template_input_ngModelChange_10_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.applyFilters());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](11, "i", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "div", 12)(13, "select", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_Template_select_ngModelChange_13_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.estadoUsuario, $event) || (ctx.estadoUsuario = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](15, "Estado Usuario");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "option", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "option", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19, "Bloqueado");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "option", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](21, "Pendiente");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "div", 12)(23, "select", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_Template_select_ngModelChange_23_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.estadoRuat, $event) || (ctx.estadoRuat = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Estado Ruat");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "option", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](27, "Activo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](28, "option", 20);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](29, "Inactivo");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](30, "option", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](31, "Pendiente");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](32, "option", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33, "Bloqueado");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](34, "div", 12)(35, "select", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_Template_select_ngModelChange_35_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.tipoContribuyente, $event) || (ctx.tipoContribuyente = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](36, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](37, "Tipo Contribuyente");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](38, "option", 24);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](39, "Natural");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](40, "option", 25);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](41, "Jur\u00EDdico");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](42, "div", 12)(43, "select", 26);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayListener"]("ngModelChange", function TaxpayersComponent_Template_select_ngModelChange_43_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayBindingSet"](ctx.puedeReservarGratis, $event) || (ctx.puedeReservarGratis = $event);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"]($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](44, "option", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](45, "Reserva Gratis");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](46, "option", 27);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](47, "S\u00ED");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](48, "option", 28);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](49, "No");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](50, "div", 29)(51, "button", 30);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](52, "i", 31);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](53, "div", 32)(54, "div", 7)(55, "div", 33)(56, "ul", 34, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("navChange", function TaxpayersComponent_Template_ul_navChange_56_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.onNavChange($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](58, "li", 35)(59, "a", 36);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](60, " Todos");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](61, "span", 37);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](62);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](63, "li", 35)(64, "a", 38);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](65, " Naturales ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](66, "li", 35)(67, "a", 39);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](68, " Jur\u00EDdicos ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](69, "li", 35)(70, "a", 40);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](71, " Puede Reservar Gratis ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](72, "li", 35)(73, "a", 41);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](74, " Es Deportista Elite ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](75, "li", 35)(76, "a", 42);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](77, " Sancionados ");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](78, "div", 43)(79, "button", 44);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function TaxpayersComponent_Template_button_click_79_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.toggleViewMode());
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](80, TaxpayersComponent_i_80_Template, 1, 0, "i", 45)(81, TaxpayersComponent_i_81_Template, 1, 0, "i", 46);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](82, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](83);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](84, "div", 47)(85, "span", 48)(86, "button", 49);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](87, "i", 50);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](88, "ul", 51);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](89, TaxpayersComponent_For_90_Template, 5, 4, "li", 52, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIdentity"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](91, "div", 53)(92, "app-data-table", 54);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("showItemEmitter", function TaxpayersComponent_Template_app_data_table_showItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "show", "md"));
          })("editItemEmitter", function TaxpayersComponent_Template_app_data_table_editItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "edit", "lg"));
          })("closeItemEmitter", function TaxpayersComponent_Template_app_data_table_closeItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "block", "md"));
          })("checkItemEmitter", function TaxpayersComponent_Template_app_data_table_checkItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "unblock", "md"));
          })("processItemEmitter", function TaxpayersComponent_Template_app_data_table_processItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.openModal($event, "sanction", "md"));
          })("selectedItemEmitter", function TaxpayersComponent_Template_app_data_table_selectedItemEmitter_92_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r1);
            return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx.getSelectedItems($event));
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](1, 27, ctx.title))("breadcrumbItems", ctx.breadCrumbItems);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", ctx.title)("newShow", ctx.canActivate.includes("CREAR"))("exportShow", ctx.canActivate.includes("VER"));
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.searchTerm);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.estadoUsuario);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.estadoRuat);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](12);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.tipoContribuyente);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtwoWayProperty"]("ngModel", ctx.puedeReservarGratis);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](13);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.temp.length);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.viewMode === "cards" ? "Lista" : "Grid");
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx.itemsList);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("loading", ctx.loading)("itemsList", ctx.itemsList)("allcontent", ctx.contribuyentesList)("actions", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction5"](29, _c0, ctx.canActivate.includes("VER"), ctx.canActivate.includes("ACTUALIZAR"), ctx.canActivate.includes("BLOQUEAR") ? "Bloquear" : "", ctx.canActivate.includes("BLOQUEAR") ? "Desbloquear" : "", ctx.canActivate.includes("ACTUALIZAR") ? "Sancionar" : ""))("multiCheck", ctx.canActivate.includes("CREAR"))("viewMode", ctx.viewMode);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgForm, _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__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavLinkBase, _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, _shared_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_6__.BreadcrumbsComponent, _shared_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_7__.DataTableComponent, _shared_data_header_data_header_component__WEBPACK_IMPORTED_MODULE_8__.DataHeaderComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PagesModule: () => (/* binding */ PagesModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! angular-feather */ 54341);
/* harmony import */ var angular_feather_icons__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! angular-feather/icons */ 51474);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ng-apexcharts */ 33117);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @ng-select/ng-select */ 62223);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @asymmetrik/ngx-leaflet */ 88355);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! simplebar-angular */ 67363);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ngx-slick-carousel */ 49953);
/* harmony import */ var ngx_lightbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ngx-lightbox */ 36736);
/* harmony import */ var _lordicon_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lordicon/element */ 59848);
/* harmony import */ var lottie_web__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! lottie-web */ 24335);
/* harmony import */ var lottie_web__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(lottie_web__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @fullcalendar/angular */ 87997);
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/shared.module */ 93887);
/* harmony import */ var _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../shared/widget/widget.module */ 65657);
/* harmony import */ var _account_profile_profile_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./account/profile/profile.component */ 42155);
/* harmony import */ var _account_settings_settings_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./account/settings/settings.component */ 76795);
/* harmony import */ var _account_password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./account/password-reset/pass-reset.component */ 62239);
/* harmony import */ var _modules_system_configurations_system_configurations_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modules/system-configurations/system-configurations.component */ 61513);
/* harmony import */ var _modules_clasificadores_ruat_clasificadores_ruat_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modules/clasificadores-ruat/clasificadores-ruat.component */ 99881);
/* harmony import */ var _modules_facilities_facilities_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modules/facilities/facilities.component */ 13801);
/* harmony import */ var _modules_fields_fields_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modules/fields/fields.component */ 60525);
/* harmony import */ var _modules_categories_categories_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modules/categories/categories.component */ 19715);
/* harmony import */ var _modules_surfaces_surfaces_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./modules/surfaces/surfaces.component */ 51343);
/* harmony import */ var _modules_employees_employees_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./modules/employees/employees.component */ 29121);
/* harmony import */ var _modules_organizations_organizations_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./modules/organizations/organizations.component */ 15249);
/* harmony import */ var _modules_taxpayers_taxpayers_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./modules/taxpayers/taxpayers.component */ 33769);
/* harmony import */ var _modules_booking_one_time_booking_one_time_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./modules/booking-one-time/booking-one-time.component */ 56311);
/* harmony import */ var _modules_booking_recurrent_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./modules/booking-recurrent/booking-recurrent.component */ 39569);
/* harmony import */ var _modules_booking_schools_booking_periodo_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./modules/booking-schools/booking-periodo.component */ 39486);
/* harmony import */ var _modals_booking_booking_details_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./modals/booking/booking-details.component */ 68857);
/* harmony import */ var _modals_booking_complejo_selection_complejo_selection_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./modals/booking/complejo-selection/complejo-selection.component */ 81764);
/* harmony import */ var _modals_booking_campo_selection_campo_selection_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./modals/booking/campo-selection/campo-selection.component */ 47898);
/* harmony import */ var _modals_booking_schedule_recurrent_selection_schedule_recurrent_selection_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./modals/booking/schedule-recurrent-selection/schedule-recurrent-selection.component */ 72074);
/* harmony import */ var _modals_booking_schedule_selection_schedule_selection_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./modals/booking/schedule-selection/schedule-selection.component */ 68632);
/* harmony import */ var _modals_booking_reservation_form_reservation_form_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./modals/booking/reservation-form/reservation-form.component */ 21450);
/* harmony import */ var _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./modules/reports/ticket/ticket.component */ 89291);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/core */ 37580);






// Counter







// Swiper Slider


// Load Icons








//compoments






















;
// import { BookingPeriodoModalComponent } from './booking-schools/modal/modal.component';
class PagesModule {
  constructor() {
    (0,_lordicon_element__WEBPACK_IMPORTED_MODULE_1__.defineElement)((lottie_web__WEBPACK_IMPORTED_MODULE_26___default().loadAnimation));
  }
  static {
    this.ɵfac = function PagesModule_Factory(t) {
      return new (t || PagesModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineNgModule"]({
      type: PagesModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineInjector"]({
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_28__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_29__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_29__.ReactiveFormsModule, ngx_countup__WEBPACK_IMPORTED_MODULE_30__.CountUpModule, _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_31__.LeafletModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_0__.LightboxModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_32__.SimplebarAngularModule, angular_feather__WEBPACK_IMPORTED_MODULE_33__.FeatherModule.pick(angular_feather_icons__WEBPACK_IMPORTED_MODULE_34__.allIcons), _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbProgressbarModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_36__.NgApexchartsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_37__.NgSelectModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbTooltipModule, _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_38__.FullCalendarModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_39__.SlickCarouselModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_40__.FlatpickrModule.forRoot(), _ngx_translate_core__WEBPACK_IMPORTED_MODULE_41__.TranslateModule, _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_3__.WidgetModule, _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbAccordionModule, _modals_booking_complejo_selection_complejo_selection_component__WEBPACK_IMPORTED_MODULE_20__.ComplejoSelectionComponent, _modals_booking_campo_selection_campo_selection_component__WEBPACK_IMPORTED_MODULE_21__.CampoSelectionComponent, _modals_booking_schedule_recurrent_selection_schedule_recurrent_selection_component__WEBPACK_IMPORTED_MODULE_22__.ScheduleRecurrentSelectionComponent, _modals_booking_schedule_selection_schedule_selection_component__WEBPACK_IMPORTED_MODULE_23__.ScheduleSelectionComponent, _modals_booking_reservation_form_reservation_form_component__WEBPACK_IMPORTED_MODULE_24__.ReservationFormComponent, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_25__.TicketComponent]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵsetNgModuleScope"](PagesModule, {
    declarations: [_account_profile_profile_component__WEBPACK_IMPORTED_MODULE_4__.ProfileComponent, _account_settings_settings_component__WEBPACK_IMPORTED_MODULE_5__.SettingsComponent, _account_password_reset_pass_reset_component__WEBPACK_IMPORTED_MODULE_6__.PassResetComponent, _modules_system_configurations_system_configurations_component__WEBPACK_IMPORTED_MODULE_7__.SystemConfigurationsComponent, _modules_clasificadores_ruat_clasificadores_ruat_component__WEBPACK_IMPORTED_MODULE_8__.ClasificadoresRuatComponent, _modules_fields_fields_component__WEBPACK_IMPORTED_MODULE_10__.FieldsComponent, _modules_facilities_facilities_component__WEBPACK_IMPORTED_MODULE_9__.FacilitiesComponent, _modules_categories_categories_component__WEBPACK_IMPORTED_MODULE_11__.CategoriesComponent, _modules_surfaces_surfaces_component__WEBPACK_IMPORTED_MODULE_12__.SurfacesComponent, _modules_employees_employees_component__WEBPACK_IMPORTED_MODULE_13__.EmployeesComponent, _modules_organizations_organizations_component__WEBPACK_IMPORTED_MODULE_14__.OrganizationsComponent, _modules_taxpayers_taxpayers_component__WEBPACK_IMPORTED_MODULE_15__.TaxpayersComponent, _modules_booking_one_time_booking_one_time_component__WEBPACK_IMPORTED_MODULE_16__.BookingOneTimeComponent, _modules_booking_recurrent_booking_recurrent_component__WEBPACK_IMPORTED_MODULE_17__.BookingRecurrentComponent, _modules_booking_schools_booking_periodo_component__WEBPACK_IMPORTED_MODULE_18__.BookingPeriodoComponent, _modals_booking_booking_details_component__WEBPACK_IMPORTED_MODULE_19__.BookingDetailsComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_28__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_29__.FormsModule, _angular_forms__WEBPACK_IMPORTED_MODULE_29__.ReactiveFormsModule, ngx_countup__WEBPACK_IMPORTED_MODULE_30__.CountUpModule, _asymmetrik_ngx_leaflet__WEBPACK_IMPORTED_MODULE_31__.LeafletModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_0__.LightboxModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_32__.SimplebarAngularModule, angular_feather__WEBPACK_IMPORTED_MODULE_33__.FeatherModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbProgressbarModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_36__.NgApexchartsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_37__.NgSelectModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbTooltipModule, _fullcalendar_angular__WEBPACK_IMPORTED_MODULE_38__.FullCalendarModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_39__.SlickCarouselModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_40__.FlatpickrModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_41__.TranslateModule, _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_3__.WidgetModule, _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbToastModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_35__.NgbAccordionModule, _modals_booking_complejo_selection_complejo_selection_component__WEBPACK_IMPORTED_MODULE_20__.ComplejoSelectionComponent, _modals_booking_campo_selection_campo_selection_component__WEBPACK_IMPORTED_MODULE_21__.CampoSelectionComponent, _modals_booking_schedule_recurrent_selection_schedule_recurrent_selection_component__WEBPACK_IMPORTED_MODULE_22__.ScheduleRecurrentSelectionComponent, _modals_booking_schedule_selection_schedule_selection_component__WEBPACK_IMPORTED_MODULE_23__.ScheduleSelectionComponent, _modals_booking_reservation_form_reservation_form_component__WEBPACK_IMPORTED_MODULE_24__.ReservationFormComponent, _modules_reports_ticket_ticket_component__WEBPACK_IMPORTED_MODULE_25__.TicketComponent]
  });
})();

/***/ }),

/***/ 84477:
/*!***************************************************************!*\
  !*** ./src/app/public/account/auth/pass-create/must-match.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MustMatch: () => (/* binding */ MustMatch)
/* harmony export */ });
// Custom validator to check that two fields match
function MustMatch(controlName, matchingControlName) {
  return formGroup => {
    const form = formGroup;
    const control = form.controls[controlName];
    const matchingControl = form.controls[matchingControlName];
    if (matchingControl.errors && !matchingControl.errors['mustMatch']) {
      return null;
    }
    if (control.value !== matchingControl.value) {
      matchingControl.setErrors({
        mustMatch: true
      });
      return {
        mustMatch: true
      };
    } else {
      matchingControl.setErrors(null);
      return null;
    }
  };
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BreadcrumbsComponent: () => (/* binding */ BreadcrumbsComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ngx-translate/core */ 90852);



const _c0 = a0 => ({
  "active": a0
});
function BreadcrumbsComponent_For_8_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "i", 8);
  }
}
function BreadcrumbsComponent_For_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, BreadcrumbsComponent_For_8_i_2_Template, 1, 0, "i", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    let tmp_12_0;
    const item_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c0, item_r1.active == true));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r1.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 3, (tmp_12_0 = item_r1.label) !== null && tmp_12_0 !== undefined ? tmp_12_0 : ""), " ");
  }
}
class BreadcrumbsComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function BreadcrumbsComponent_Factory(t) {
      return new (t || BreadcrumbsComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: BreadcrumbsComponent,
      selectors: [["app-breadcrumbs"]],
      inputs: {
        title: "title",
        breadcrumbItems: "breadcrumbItems"
      },
      decls: 9,
      vars: 1,
      consts: [[1, "row", "d-none", "d-sm-block"], [1, "col-12"], [1, "page-title-box", "d-sm-flex", "align-items-center", "justify-content-between"], [1, "mb-sm-0"], [1, "page-title-right"], [1, "breadcrumb", "m-0"], [1, "breadcrumb-item", 3, "ngClass"], ["class", "ri-home-2-line", 4, "ngIf"], [1, "ri-home-2-line"]],
      template: function BreadcrumbsComponent_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__["ɵɵrepeaterCreate"](7, BreadcrumbsComponent_For_8_Template, 5, 7, "ng-container", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _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__["ɵɵrepeater"](ctx.breadcrumbItems);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_2__.TranslatePipe],
      styles: [".cel-card[_ngcontent-%COMP%] {\n  margin-left: 4px;\n  margin-right: 4px;\n  display: flex;\n  flex-direction: column;\n}\n\n@media (max-width: 767px) {\n  .cel-card[_ngcontent-%COMP%] {\n    margin: -14px;\n    padding: 0;\n  }\n  .card-header[_ngcontent-%COMP%] {\n    padding: 10px 15px;\n  }\n  .card-body[_ngcontent-%COMP%] {\n    flex-grow: 1;\n    padding: 0;\n  }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvc2hhcmVkL2JyZWFkY3J1bWJzL2JyZWFkY3J1bWJzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0ksZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtBQUFKOztBQUVFO0VBQ0U7SUFDRSxhQUFBO0lBQ0EsVUFBQTtFQUNKO0VBRUU7SUFDRSxrQkFBQTtFQUFKO0VBRUU7SUFDRSxZQUFBO0lBQ0EsVUFBQTtFQUFKO0FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuLmNlbC1jYXJkIHtcclxuICAgIG1hcmdpbi1sZWZ0OiA0cHg7XHJcbiAgICBtYXJnaW4tcmlnaHQ6IDRweDtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gIH1cclxuICBAbWVkaWEgKG1heC13aWR0aDogNzY3cHgpIHtcclxuICAgIC5jZWwtY2FyZCB7XHJcbiAgICAgIG1hcmdpbjogLTE0cHg7XHJcbiAgICAgIHBhZGRpbmc6IDA7XHJcbiAgICB9XHJcbiAgICBcclxuICAgIC5jYXJkLWhlYWRlciB7XHJcbiAgICAgIHBhZGRpbmc6IDEwcHggMTVweDtcclxuICAgIH1cclxuICAgIC5jYXJkLWJvZHkge1xyXG4gICAgICBmbGV4LWdyb3c6IDE7XHJcbiAgICAgIHBhZGRpbmc6IDAgO1xyXG4gICAgfVxyXG4gIH0iXSwic291cmNlUm9vdCI6IiJ9 */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DataHeaderComponent: () => (/* binding */ DataHeaderComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xlsx */ 13857);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! file-saver */ 85841);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ 90852);






function DataHeaderComponent_button_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_6_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.openPopup());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Agregar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Agregar"));
  }
}
function DataHeaderComponent_button_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_7_Template_button_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.import($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Importar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Importar"));
  }
}
function DataHeaderComponent_button_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_8_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.downloadExcelTemplate());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Descargar plantilla"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Descargar plantilla"));
  }
}
function DataHeaderComponent_button_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_9_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.consult());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Consultar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Consultar"));
  }
}
function DataHeaderComponent_button_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_10_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.notify());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Notificaci\u00F3n Masiva"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Notificaci\u00F3n Masiva"));
  }
}
function DataHeaderComponent_button_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](1, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataHeaderComponent_button_11_Template_button_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.csvFileExport($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](1, 2, "Exportar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, "Exportar"));
  }
}
class DataHeaderComponent {
  constructor() {
    this.createEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.consultEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.notifyEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.filterEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.importEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.exportEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.headersImport = [];
    this.title = '';
  }
  openPopup() {
    this.createEmitter.emit();
  }
  consult() {
    this.consultEmitter.emit();
  }
  notify() {
    this.notifyEmitter.emit();
  }
  filterList(event) {
    this.filterEmitter.emit(event);
  }
  import(event) {
    this.importEmitter.emit(event);
  }
  csvFileExport(event) {
    this.exportEmitter.emit(event);
  }
  downloadExcelTemplate() {
    const worksheet = xlsx__WEBPACK_IMPORTED_MODULE_2__.utils.aoa_to_sheet([this.headersImport]);
    const workbook = {
      Sheets: {
        'Plantilla Importación': worksheet
      },
      SheetNames: ['Plantilla Importación']
    };
    const excelBuffer = xlsx__WEBPACK_IMPORTED_MODULE_2__.write(workbook, {
      bookType: 'xlsx',
      type: 'array'
    });
    const fileName = `plantilla_importacion_${this.title}.xlsx`;
    const blob = new Blob([excelBuffer], {
      type: 'application/octet-stream'
    });
    file_saver__WEBPACK_IMPORTED_MODULE_0__.saveAs(blob, fileName);
  }
  static {
    this.ɵfac = function DataHeaderComponent_Factory(t) {
      return new (t || DataHeaderComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: DataHeaderComponent,
      selectors: [["app-data-header"]],
      inputs: {
        newShow: "newShow",
        consultShow: "consultShow",
        notifyShow: "notifyShow",
        exportShow: "exportShow",
        importShow: "importShow",
        headersImport: "headersImport",
        title: "title"
      },
      outputs: {
        createEmitter: "createEmitter",
        consultEmitter: "consultEmitter",
        notifyEmitter: "notifyEmitter",
        filterEmitter: "filterEmitter",
        importEmitter: "importEmitter",
        exportEmitter: "exportEmitter"
      },
      decls: 12,
      vars: 9,
      consts: [[1, "card", "rounded-2", "mb-2"], [1, "card-header", "d-flex", "flex-wrap", "align-items-center"], [1, "card-title", "flex-grow-1"], [1, "d-flex", "gap-1", "flex-wrap"], ["class", "btn btn-soft-secondary add-btn", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 3, "title", "click", 4, "ngIf"], ["class", "btn btn-soft-primary", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 3, "title", "click", 4, "ngIf"], ["class", "btn btn-soft-success", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 3, "title", "click", 4, "ngIf"], ["class", "btn btn-soft-success add-btn", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 3, "title", "click", 4, "ngIf"], ["id", "remove-actions", "class", "btn btn-soft-info", "style", "display: none", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 3, "title", "click", 4, "ngIf"], ["data-bs-placement", "top", "data-bs-toggle", "tooltip", 1, "btn", "btn-soft-secondary", "add-btn", 3, "click", "title"], [1, "ri-add-circle-line", "align-middle"], [1, "d-none", "d-md-inline-block", "ms-1"], ["data-bs-placement", "top", "data-bs-toggle", "tooltip", 1, "btn", "btn-soft-primary", 3, "click", "title"], [1, "ri-file-upload-line", "align-bottom"], ["data-bs-placement", "top", "data-bs-toggle", "tooltip", 1, "btn", "btn-soft-success", 3, "click", "title"], [1, "ri-download-2-line", "align-bottom"], [1, "ri-refresh-line", "align-middle"], ["data-bs-placement", "top", "data-bs-toggle", "tooltip", 1, "btn", "btn-soft-success", "add-btn", 3, "click", "title"], [1, "ri-mail-send-fill", "align-middle"], ["id", "remove-actions", "data-bs-placement", "top", "data-bs-toggle", "tooltip", 1, "btn", "btn-soft-info", 2, "display", "none", 3, "click", "title"], [1, "ri-file-download-line", "align-bottom"]],
      template: function DataHeaderComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h5", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "translate");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, DataHeaderComponent_button_6_Template, 6, 6, "button", 4)(7, DataHeaderComponent_button_7_Template, 6, 6, "button", 5)(8, DataHeaderComponent_button_8_Template, 6, 6, "button", 6)(9, DataHeaderComponent_button_9_Template, 6, 6, "button", 5)(10, DataHeaderComponent_button_10_Template, 6, 6, "button", 7)(11, DataHeaderComponent_button_11_Template, 6, 6, "button", 8);
          _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"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 7, "Lista de " + ctx.title));
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.newShow);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.importShow);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.importShow && ctx.headersImport.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.consultShow);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.notifyShow);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.exportShow);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__.TranslatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DataTableComponent: () => (/* binding */ DataTableComponent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _memoize_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./memoize.decorator */ 30721);
/* harmony import */ var src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/constants/UserData */ 55007);
/* harmony import */ var src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/constants/Estados */ 23513);
/* harmony import */ var src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/constants/Places */ 98312);
/* harmony import */ var src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/pagination.service */ 54384);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);











const _forTrack0 = ($index, $item) => $item.prop;
const _c0 = (a0, a1) => [a0, a1];
function DataTableComponent_div_1_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "th", 15)(1, "div", 17)(2, "input", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayListener"]("ngModelChange", function DataTableComponent_div_1_Conditional_4_Template_input_ngModelChange_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayBindingSet"](ctx_r1.masterSelected, $event) || (ctx_r1.masterSelected = $event);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"]($event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function DataTableComponent_div_1_Conditional_4_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.checkUncheckAll($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayProperty"]("ngModel", ctx_r1.masterSelected);
  }
}
function DataTableComponent_div_1_For_6_Conditional_0_i_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i", 24);
  }
}
function DataTableComponent_div_1_For_6_Conditional_0_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i", 25);
  }
}
function DataTableComponent_div_1_For_6_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "th", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function DataTableComponent_div_1_For_6_Conditional_0_Template_th_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r3);
      const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.onSort(column_r4.prop));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, DataTableComponent_div_1_For_6_Conditional_0_i_3_Template, 1, 0, "i", 22)(4, DataTableComponent_div_1_For_6_Conditional_0_i_4_Template, 1, 0, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const column_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("sorted-asc", ctx_r1.currentSortColumn === column_r4.prop && ctx_r1.isSortAscending)("sorted-desc", ctx_r1.currentSortColumn === column_r4.prop && !ctx_r1.isSortAscending);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵattribute"]("aria-sort", ctx_r1.getSortDirection(column_r4.prop));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", column_r4.name, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.currentSortColumn === column_r4.prop && ctx_r1.isSortAscending);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.currentSortColumn === column_r4.prop && !ctx_r1.isSortAscending);
  }
}
function DataTableComponent_div_1_For_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_1_For_6_Conditional_0_Template, 5, 8, "th", 19);
  }
  if (rf & 2) {
    const column_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, column_r4.visible ? 0 : -1);
  }
}
function DataTableComponent_div_1_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, "Acciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function DataTableComponent_div_1_For_10_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td")(1, "div", 17)(2, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function DataTableComponent_div_1_For_10_Conditional_1_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r5);
      const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.onCheckboxChange($event, data_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", ctx_r1.checkedValGet.includes(data_r6));
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction2"](2, _c0, "bg-" + ctx_r1.getBadgeStatus(value_r7) + "-subtle", "text-" + ctx_r1.getBadgeStatus(value_r7)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", value_r7, " ");
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "ngb-highlight", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](1, "date");
  }
  if (rf & 2) {
    const value_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("result", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](1, 2, value_r7, "longDate") || value_r7)("term", ctx_r1.searchTerm);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "span", 30);
  }
  if (rf & 2) {
    const value_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("innerHTML", value_r7, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeHtml"]);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 31);
  }
  if (rf & 2) {
    const value_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", value_r7, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", "");
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_5_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 32);
  }
  if (rf & 2) {
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + data_r6.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_5_Conditional_0_Template, 1, 1, "img", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_5_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r8);
      const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4).$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.showItem(data_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const column_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, column_r9.avatar && data_r6.avatar ? 0 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](value_r7);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_1_Template, 2, 5, "span", 28)(2, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_2_Template, 2, 5)(3, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_3_Template, 1, 1)(4, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_4_Template, 1, 2)(5, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Conditional_5_Template, 3, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const column_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](1, column_r9.tag ? 1 : column_r9.date ? 2 : column_r9.html ? 3 : column_r9.image ? 4 : 5);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i", 34);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", "Movil", " ");
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", "Oficial", " ");
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", "Industrial", " ");
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_0_Template, 2, 1, "span", 35)(1, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_1_Template, 2, 1, "span", 36)(2, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_span_2_Template, 2, 1, "span", 37);
  }
  if (rf & 2) {
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", data_r6.esMovil);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", data_r6.esOficial);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", data_r6.esUnidadIndustrial);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "...");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_0_Template, 1, 0, "i", 34)(1, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_1_Template, 3, 3)(2, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Conditional_2_Template, 2, 0);
  }
  if (rf & 2) {
    const column_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, column_r9.image ? 0 : column_r9.prop === "" ? 1 : 2);
  }
}
function DataTableComponent_div_1_For_10_For_3_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_container_1_Template, 6, 1, "ng-container", 27)(2, DataTableComponent_div_1_For_10_For_3_Conditional_0_ng_template_2_Template, 3, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const emptyValue_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](3);
    const column_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.getPropertyValue(data_r6, column_r9.prop))("ngIfElse", emptyValue_r10);
  }
}
function DataTableComponent_div_1_For_10_For_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_1_For_10_For_3_Conditional_0_Template, 4, 2, "td");
  }
  if (rf & 2) {
    const column_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, column_r9.visible ? 0 : -1);
  }
}
function DataTableComponent_div_1_For_10_Conditional_4_For_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "li", 43)(1, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function DataTableComponent_div_1_For_10_Conditional_4_For_3_Template_a_click_1_listener() {
      const action_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r11).$implicit;
      const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](action_r12.handler(data_r6));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const action_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbTooltip", action_r12.tooltip);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](action_r12.buttonClass);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](action_r12.icon + " align-bottom");
  }
}
function DataTableComponent_div_1_For_10_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td")(1, "ul", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](2, DataTableComponent_div_1_For_10_Conditional_4_For_3_Template, 3, 5, "li", 43, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.showActions(data_r6));
  }
}
function DataTableComponent_div_1_For_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, DataTableComponent_div_1_For_10_Conditional_1_Template, 3, 1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](2, DataTableComponent_div_1_For_10_For_3_Template, 1, 1, null, null, _forTrack0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, DataTableComponent_div_1_For_10_Conditional_4_Template, 4, 0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const data_r6 = ctx.$implicit;
    const $index_r13 = ctx.$index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", data_r6.uuid || $index_r13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](1, ctx_r1.multiCheck ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.itemsList);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](4, ctx_r1.actions ? 4 : -1);
  }
}
function DataTableComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 12)(1, "table", 13)(2, "thead", 14)(3, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, DataTableComponent_div_1_Conditional_4_Template, 3, 1, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](5, DataTableComponent_div_1_For_6_Template, 1, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, DataTableComponent_div_1_Conditional_7_Template, 2, 0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](9, DataTableComponent_div_1_For_10_Template, 5, 3, "tr", 16, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _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"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](4, ctx_r1.multiCheck ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.itemsList);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](7, ctx_r1.actions ? 7 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.content);
  }
}
function DataTableComponent_div_2_For_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 47)(1, "div", 17)(2, "input", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function DataTableComponent_div_2_For_2_Conditional_2_Template_input_change_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r14);
      const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.onCheckboxChange($event, data_r15));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "label", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    const data_r15 = ctx_r15.$implicit;
    const $index_r17 = ctx_r15.$index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "check_" + (data_r15.uuid || $index_r17))("checked", ctx_r1.checkedValGet.includes(data_r15));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("for", "check_" + (data_r15.uuid || $index_r17));
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction2"](2, _c0, "bg-" + ctx_r1.getBadgeStatus(value_r18) + "-subtle", "text-" + ctx_r1.getBadgeStatus(value_r18)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", value_r18, " ");
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](2, 1, value_r18, "dd/MM/yyyy"));
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "div", 30);
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("innerHTML", value_r18, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeHtml"]);
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 55);
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const column_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", value_r18, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"])("alt", column_r19.name);
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", "assets/icons/users/" + data_r15.avatar, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](value_r18);
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](value_r18);
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_1_Template, 2, 5, "span", 28)(2, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_2_Template, 3, 4)(3, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_3_Template, 1, 1)(4, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_4_Template, 1, 2)(5, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_5_Template, 4, 2)(6, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Conditional_6_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const column_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](1, column_r19.tag ? 1 : column_r19.date ? 2 : column_r19.html ? 3 : column_r19.image ? 4 : column_r19.avatar && data_r15.avatar ? 5 : 6);
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Sin datos");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function DataTableComponent_div_2_For_2_For_5_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 52)(1, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_container_3_Template, 7, 1, "ng-container", 27)(4, DataTableComponent_div_2_For_2_For_5_Conditional_0_ng_template_4_Template, 2, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const emptyValue_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](5);
    const column_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](column_r19.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.getPropertyValue(data_r15, column_r19.prop))("ngIfElse", emptyValue_r20);
  }
}
function DataTableComponent_div_2_For_2_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, DataTableComponent_div_2_For_2_For_5_Conditional_0_Template, 6, 3, "div", 52);
  }
  if (rf & 2) {
    const column_r19 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, column_r19.visible && (column_r19.primary || ctx_r1.isMobileColumn(column_r19)) ? 0 : -1);
  }
}
function DataTableComponent_div_2_For_2_Conditional_6_For_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function DataTableComponent_div_2_For_2_Conditional_6_For_3_Template_button_click_0_listener() {
      const action_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r21).$implicit;
      const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](action_r22.handler(data_r15));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const action_r22 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](action_r22.buttonClass || "btn-soft-secondary");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbTooltip", action_r22.tooltip);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](action_r22.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](action_r22.tooltip);
  }
}
function DataTableComponent_div_2_For_2_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 49)(1, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](2, DataTableComponent_div_2_For_2_Conditional_6_For_3_Template, 4, 6, "button", 60, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.showActions(data_r15));
  }
}
function DataTableComponent_div_2_For_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 45)(1, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, DataTableComponent_div_2_For_2_Conditional_2_Template, 5, 3, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](4, DataTableComponent_div_2_For_2_For_5_Template, 1, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, DataTableComponent_div_2_For_2_Conditional_6_Template, 4, 0, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r15 = ctx.$implicit;
    const $index_r17 = ctx.$index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", data_r15.uuid || $index_r17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](2, ctx_r1.multiCheck ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.itemsList);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](6, ctx_r1.actions ? 6 : -1);
  }
}
function DataTableComponent_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](1, DataTableComponent_div_2_For_2_Template, 7, 3, "div", 45, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterTrackByIndex"]);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r1.content);
  }
}
function DataTableComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 63)(1, "div", 64)(2, "span", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
function DataTableComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 66)(1, "div", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "lord-icon", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "h5", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Lo Sentimos! No Se encontr\u00F3 ning\u00FAn Dato ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "p", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "No encontramos datos para mostrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
function DataTableComponent_div_6_option_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const size_r24 = ctx.$implicit;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", size_r24)("selected", size_r24 === ctx_r1.itemsPerPage);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", size_r24, " ");
  }
}
function DataTableComponent_div_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", 70)(1, "div", 71)(2, "div", 72)(3, "select", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function DataTableComponent_div_6_Template_select_change_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r23);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r1.onTableSizeChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, DataTableComponent_div_6_option_4_Template, 2, 3, "option", 74);
    _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"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r1.tableSizes);
  }
}
function DataTableComponent_div_7_span_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "(Paginaci\u00F3n del servidor)");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function DataTableComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 76)(1, "div", 77)(2, "span", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, DataTableComponent_div_7_span_4_Template, 2, 0, "span", 79);
    _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"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r1.content.length, " Registros, de un total de ", ctx_r1.getTotalElements(), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.serverSidePagination);
  }
}
class DataTableComponent {
  constructor(service) {
    this.service = service;
    this.loading = true;
    this.multiCheck = true;
    this.viewMode = 'table';
    this.serverSidePagination = false;
    this.paginationInfo = null;
    this.showItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.editItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.closeItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.checkItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.processItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.recordsEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.notifyItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.consultItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.validateItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.selectedItemEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.pageChange = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.pageSizeChange = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.EventEmitter();
    this.content = [];
    this.totalElements = 0;
    this.masterSelected = false;
    this.searchTerm = '';
    this.checkedValGet = [];
    this.tableSizes = [5, 10, 15, 20];
    this.expandedItems = new Set();
    //#endregion
    //#region Sort & Pagination
    this.currentSortColumn = '';
    this.isSortAscending = true;
    this.itemsPerPage = this.service.pageSize;
  }
  ngOnChanges(changes) {
    if (changes['allcontent'] || changes['serverSidePagination']) {
      this.processContent();
    }
  }
  processContent() {
    if (this.serverSidePagination) {
      this.handleServerSidePagination();
    } else {
      this.handleClientSidePagination();
    }
  }
  //#region Action Handle
  showItem(item) {
    this.showItemEmitter.emit(item);
  }
  editItem(item) {
    this.editItemEmitter.emit(item);
  }
  closeItem(item) {
    this.closeItemEmitter.emit(item);
  }
  checkItem(item) {
    this.checkItemEmitter.emit(item);
  }
  processItem(item) {
    this.processItemEmitter.emit(item);
  }
  recordsItem(item) {
    this.recordsEmitter.emit(item);
  }
  notifyItem(item) {
    this.notifyItemEmitter.emit(item);
  }
  consultItem(item) {
    this.consultItemEmitter.emit(item);
  }
  validateItem(item) {
    this.validateItemEmitter.emit(item);
  }
  sentMessage(item) {
    // https://api.whatsapp.com/send?phone=+59172248669&text=MENSAJE DESDE SISTEMA DE DEPORTES"
  }
  showActions(data) {
    return [...(this.actions.show ? [{
      tooltip: 'Ver',
      icon: 'ri-eye-fill',
      handler: () => this.showItem(data),
      buttonClass: ''
    }] : []), ...(this.actions.records ? [{
      tooltip: 'Historial',
      icon: 'ri-file-list-3-line',
      handler: () => this.recordsItem(data),
      buttonClass: ''
    }] : []), ...(this.actions.consult ? [{
      tooltip: 'Consultar',
      icon: 'ri-restart-fill',
      handler: () => this.consultItem(data),
      buttonClass: 'text-primary d-inline-block edit-item-btn'
    }] : []), ...(this.actions.validate && this.canShow('validate', data) ? [{
      tooltip: 'Validar',
      icon: ' ri-toggle-fill',
      handler: () => this.validateItem(data),
      buttonClass: 'text-primary d-inline-block edit-item-btn'
    }] : []), ...(this.actions.edit && this.canShow('Editar', data) ? [{
      tooltip: 'Editar',
      icon: 'ri-pencil-fill',
      handler: () => this.editItem(data),
      buttonClass: 'text-primary edit-item-btn'
    }] : []), ...(this.actions.close && this.canShow(this.actions.close, data) ? [{
      tooltip: this.actions.close,
      icon: 'ri-close-circle-line',
      handler: () => this.closeItem(data),
      buttonClass: 'text-danger remove-item-btn'
    }] : []), ...(this.actions.check && this.canShow(this.actions.check, data) ? [{
      tooltip: this.actions.check,
      icon: 'ri-checkbox-circle-line',
      handler: () => this.checkItem(data),
      buttonClass: 'text-success'
    }] : []), ...(this.actions.process ? [{
      tooltip: this.actions.process,
      icon: ' ri-auction-line',
      handler: () => this.processItem(data),
      buttonClass: 'text-warning'
    }] : []), ...(this.actions.notify ? [{
      tooltip: 'Notificar',
      icon: 'ri-mail-send-fill',
      handler: () => this.notifyItem(data),
      buttonClass: 'text-success'
    }] : []), ...(this.actions.telf ? [{
      tooltip: 'Telefono',
      icon: 'ri-phone-line',
      handler: () => this.sentMessage(data),
      buttonClass: 'text-success'
    }] : [])];
  }
  canShow(action, data) {
    switch (action) {
      case 'Editar':
        return data.reservaDto ? data.reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE : true;
      case 'validate':
        return data.reservaDto && data.reservaDto.estadoValidacion === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoValidacion.PENDIENTE;
      case 'Anular':
        return data.reservaDto && data.reservaDto.estadoReserva === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoReserva.PENDIENTE;
      case 'Bloquear':
        return data.estadoUsuario === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoUsuario.ACTIVO;
      case 'Desbloquear':
        return data.estadoUsuario === src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.EstadoUsuario.BLOQUEADO;
      default:
        return true;
    }
  }
  //#endregion
  //#region Value handle
  getPropertyValue(obj, prop) {
    if (!prop) return '';
    if (prop.includes('[') && prop.includes(']')) {
      return this.resolveArrayProperty(obj, prop);
    }
    const value = prop.split('.').reduce((o, p) => o?.[p], obj);
    switch (prop) {
      case 'requiereAprobacion':
      case 'accesoLibre':
      case 'tieneIluminacion':
      case 'forAsociacion':
      case 'puedeReservarGratis':
      case 'esDeportistaElite':
      case 'perteneceEscuelaMunicipal':
      case 'estaSancionado':
        return this.formatBoolean(value, 'SI', 'NO');
      case 'esValido':
        return this.formatBoolean(value, 'VALIDO', 'INVALIDO');
      case 'activo':
        return this.formatBoolean(value, 'ACTIVO', 'INACTIVO');
      case 'obligatorio':
        return this.formatBoolean(value, 'OBLIGATORIO', 'OPCIONAL');
      case 'resultado':
        return this.formatBoolean(value, 'APROBADO', 'REPROBADO');
      case 'esDenuncia':
        return this.formatBoolean(value, 'DENUNCIA', 'OBSERVACIÓN');
      case 'expedido':
        return src_app_core_constants_Places__WEBPACK_IMPORTED_MODULE_3__.CityAcronym.find(c => c.id === value)?.value || value;
      case 'tipoDocumento':
        return src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserDocType.find(c => c.type === value)?.description || value;
      case 'genero':
        return src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserGender.find(c => c.id === value)?.description || value;
      case 'estadoCivil':
        return src_app_core_constants_UserData__WEBPACK_IMPORTED_MODULE_1__.UserCivilStatus.find(c => c.type === value)?.description || value;
      case 'x':
        {
          const dimensions = [obj.ancho, obj.largo, obj.profundidad, obj.alto, obj.nroFilas, obj.nroColumnas].filter(v => v != null).map(v => `${v}<strong>X</strong>`);
          return dimensions.length > 0 ? dimensions.join(' ').replace(/<strong>X<\/strong>$/, '') : '';
        }
      default:
        return value === 0 ? '0' : value;
    }
  }
  resolveArrayProperty(obj, prop) {
    try {
      const match = prop.match(/([^\[]+)\[(\d+)\](\..+)?/);
      if (!match) return '';
      const [, arrayProp, indexStr, rest] = match;
      const array = arrayProp.split('.').reduce((o, p) => o?.[p], obj);
      const index = Number(indexStr);
      const value = array?.[index];
      return rest ? rest.slice(1).split('.').reduce((o, p) => o?.[p], value) : value;
    } catch (e) {
      console.warn(`Error resolving property ${prop}`, e);
      return '';
    }
  }
  formatBoolean(val, trueText, falseText) {
    return val === true ? trueText : val === false ? falseText : '';
  }
  getBadgeStatus(value) {
    const customMappings = {
      'ENVIADA': 'success',
      'PROGRAMADA': 'primary',
      'ENTREGADA': 'success',
      'NO_ENTREGADO': 'danger',
      'VALIDO': 'success',
      'INVALIDO': 'danger',
      'SI': 'success',
      'NO': 'danger'
    };
    if (customMappings.hasOwnProperty(value)) {
      return customMappings[value];
    }
    return src_app_core_constants_Estados__WEBPACK_IMPORTED_MODULE_2__.StatusUtils.getStatusColor(value);
  }
  //#endregion
  //#region On selection
  checkUncheckAll(e) {
    const target = e.target;
    this.masterSelected = target.checked;
    if (this.masterSelected) {
      this.content.forEach(item => {
        const exists = this.checkedValGet.some(selected => selected.uuid && item.uuid && selected.uuid === item.uuid || selected === item);
        if (!exists) {
          this.checkedValGet.push(item);
        }
      });
    } else {
      this.checkedValGet = this.checkedValGet.filter(selected => !this.content.some(item => selected.uuid && item.uuid && selected.uuid === item.uuid || selected === item));
    }
    this.updateSelectionState();
  }
  updateSelectionState() {
    this.updateMasterCheckbox();
    this.selectedItemEmitter.emit(this.checkedValGet);
    const removeActions = document.getElementById("remove-actions");
    if (removeActions) {
      removeActions.style.display = this.checkedValGet.length > 0 ? "block" : "none";
    }
  }
  onCheckboxChange(e, item) {
    const target = e.target;
    target.checked ? this.checkedValGet.push(item) : this.checkedValGet = this.checkedValGet.filter(i => i !== item);
    this.updateSelectionState();
  }
  onSort(column) {
    if (this.serverSidePagination) {
      return;
    }
    if (this.currentSortColumn === column) {
      this.isSortAscending = !this.isSortAscending;
    } else {
      this.currentSortColumn = column;
      this.isSortAscending = true;
    }
    this.allcontent = this.service.onSort(column, [...this.allcontent], this.isSortAscending);
    this.service.page = 1;
    this.changePage();
  }
  getSortDirection(column) {
    if (this.serverSidePagination) return 'none';
    if (this.currentSortColumn !== column) return 'none';
    return this.isSortAscending ? 'ascending' : 'descending';
  }
  handleClientSidePagination() {
    if (Array.isArray(this.allcontent)) {
      this.content = this.service.changePage(this.allcontent, this.itemsPerPage);
      this.totalElements = this.allcontent.length;
    } else {
      this.content = [];
      this.totalElements = 0;
    }
  }
  handleServerSidePagination() {
    if (this.allcontent && this.allcontent.content && Array.isArray(this.allcontent.content)) {
      this.content = this.allcontent.content;
      this.totalElements = this.allcontent.totalElements || 0;
      const pageNumber = this.allcontent.number ?? this.allcontent.pageable?.pageNumber ?? 0;
      // const pageSize = this.allcontent.size ?? this.allcontent.pageable?.pageSize ?? this.itemsPerPage;
      this.service.page = pageNumber + 1;
      // this.itemsPerPage = pageSize;
      // this.service.pageSize = this.itemsPerPage;
    } else if (Array.isArray(this.allcontent)) {
      this.content = this.allcontent;
      this.totalElements = this.allcontent.length;
    } else {
      this.content = [];
      this.totalElements = 0;
    }
    this.updateMasterCheckbox();
  }
  updateMasterCheckbox() {
    if (this.content.length === 0) {
      this.masterSelected = false;
      return;
    }
    const allCurrentPageSelected = this.content.every(item => this.checkedValGet.some(selected => selected.uuid && item.uuid && selected.uuid === item.uuid || selected === item));
    this.masterSelected = allCurrentPageSelected && this.content.length > 0;
  }
  onTableSizeChange(event) {
    const size = +event.target.value;
    this.itemsPerPage = size;
    this.service.pageSize = size;
    if (this.serverSidePagination) {
      this.pageSizeChange.emit(size);
    } else {
      this.service.page = 1;
      this.changePage();
    }
  }
  changePage() {
    if (this.serverSidePagination) {
      this.pageChange.emit(this.service.page);
    } else {
      this.content = this.service.changePage(this.allcontent, this.itemsPerPage);
      this.updateMasterCheckbox();
    }
  }
  onPageChange(page) {
    this.service.page = page;
    this.changePage();
  }
  getTotalElements() {
    if (this.serverSidePagination) {
      return this.totalElements;
    }
    return Array.isArray(this.allcontent) ? this.allcontent.length : 0;
  }
  //#endregion
  // UI helpers
  isMobileColumn(column) {
    return column.visible;
  }
  toggleExpand(data, prop) {
    const key = `${data.uuid}_${prop}`;
    this.expandedItems.has(key) ? this.expandedItems.delete(key) : this.expandedItems.add(key);
  }
  isExpanded(data, prop) {
    return this.expandedItems.has(`${data.uuid}_${prop}`);
  }
  toggleColumn(column) {
    column.visible = !column.visible;
  }
  static {
    this.ɵfac = function DataTableComponent_Factory(t) {
      return new (t || DataTableComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_pagination_service__WEBPACK_IMPORTED_MODULE_4__.PaginationService));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
      type: DataTableComponent,
      selectors: [["app-data-table"]],
      inputs: {
        itemsList: "itemsList",
        actions: "actions",
        allcontent: "allcontent",
        loading: "loading",
        multiCheck: "multiCheck",
        itemsPerPage: "itemsPerPage",
        viewMode: "viewMode",
        serverSidePagination: "serverSidePagination",
        paginationInfo: "paginationInfo"
      },
      outputs: {
        showItemEmitter: "showItemEmitter",
        editItemEmitter: "editItemEmitter",
        closeItemEmitter: "closeItemEmitter",
        checkItemEmitter: "checkItemEmitter",
        processItemEmitter: "processItemEmitter",
        recordsEmitter: "recordsEmitter",
        notifyItemEmitter: "notifyItemEmitter",
        consultItemEmitter: "consultItemEmitter",
        validateItemEmitter: "validateItemEmitter",
        selectedItemEmitter: "selectedItemEmitter",
        pageChange: "pageChange",
        pageSizeChange: "pageSizeChange"
      },
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵNgOnChangesFeature"]],
      decls: 11,
      vars: 12,
      consts: [["emptyValue", ""], [1, "responsive-table"], ["class", "table-responsive table-card mb-2 table-nowrap", 4, "ngIf"], ["class", "row g-3", 4, "ngIf"], ["id", "elmLoader", 4, "ngIf"], ["class", "noresult", 4, "ngIf"], [1, "row", "align-items-md-center", "mt-3"], ["class", "col col-xxl-1", 4, "ngIf"], ["class", "col col-xxl-5 d-none d-sm-table", 4, "ngIf"], [1, "col", "col-xxl-6"], [1, "text-sm-right", "float-sm-end", "listjs-pagination"], [3, "pageChange", "collectionSize", "page", "pageSize", "boundaryLinks", "maxSize", "ellipses"], [1, "table-responsive", "table-card", "mb-2", "table-nowrap"], [1, "table"], [1, "table-light"], ["scope", "col", 2, "width", "50px"], [3, "id"], [1, "form-check"], ["type", "checkbox", "id", "checkAll", "value", "checkAll", 1, "form-check-input", 3, "ngModelChange", "change", "ngModel"], [1, "sort", 3, "sorted-asc", "sorted-desc"], [1, "sort", 3, "click"], ["aria-hidden", "true", 1, "sort-indicator"], ["class", "ri-arrow-up-line", 4, "ngIf"], ["class", "ri-arrow-down-line", 4, "ngIf"], [1, "ri-arrow-up-line"], [1, "ri-arrow-down-line"], ["type", "checkbox", 1, "form-check-input", 3, "change", "checked"], [4, "ngIf", "ngIfElse"], [1, "badge", 3, "ngClass"], [3, "result", "term"], [3, "innerHTML"], [1, "avatar-sm", "image_src", 3, "src", "alt"], ["alt", "", 1, "avatar-xs", "rounded-circle", 3, "src"], [3, "click"], [1, "ri-car-fill", "vehicle-icon"], ["class", "badge bg-success-subtle text-success", 4, "ngIf"], ["class", "badge bg-primary-subtle text-primary", 4, "ngIf"], ["class", "badge bg-warning-subtle text-warning", 4, "ngIf"], [1, "badge", "bg-success-subtle", "text-success"], [1, "badge", "bg-primary-subtle", "text-primary"], [1, "badge", "bg-warning-subtle", "text-warning"], [1, "text-muted"], [1, "list-inline", "d-flex", "hstack", "gap-2", "mb-0"], ["placement", "top", 1, "me-2", 3, "ngbTooltip"], [1, "row", "g-3"], [1, "col-12", "col-sm-6", "col-lg-4", "col-xl-3"], [1, "card", "border", "mb-0", "h-100", 3, "id"], [1, "card-header", "bg-light", "py-2"], [1, "card-body", "p-3"], [1, "card-footer", "bg-light", "py-2"], ["type", "checkbox", 1, "form-check-input", 3, "change", "id", "checked"], [1, "form-check-label", "text-muted", "small", 3, "for"], [1, "mb-2"], [1, "text-muted", "small", "mb-1"], [1, "fw-medium"], [1, "avatar-md", "rounded", 2, "object-fit", "cover", 3, "src", "alt"], [1, "d-flex", "align-items-center", "gap-2"], [1, "fw-medium", "text-break"], [1, "text-muted", "fst-italic"], [1, "d-flex", "flex-wrap", "justify-content-center", "gap-1"], ["type", "button", "placement", "top", 1, "btn", "btn-sm", "px-2", 3, "class", "ngbTooltip"], ["type", "button", "placement", "top", 1, "btn", "btn-sm", "px-2", 3, "click", "ngbTooltip"], [1, "d-none", "d-md-inline", "ms-1"], ["id", "elmLoader"], ["role", "status", 1, "spinner-border", "text-primary", "avatar-sm"], [1, "visually-hidden"], [1, "noresult"], [1, "text-center"], ["src", "https://cdn.lordicon.com/msoeawqm.json", "trigger", "loop", "colors", "primary:#405189,secondary:#0ab39c", 2, "width", "75px", "height", "75px"], [1, "mt-2"], [1, "col", "col-xxl-1"], [1, "text-sm-left", "float-start", "listjs-pagination"], [1, "d-flex"], [1, "form-control", "mb-0", 3, "change"], [3, "value", "selected", 4, "ngFor", "ngForOf"], [3, "value", "selected"], [1, "col", "col-xxl-5", "d-none", "d-sm-table"], ["id", "tickets-table_info", "role", "status", "aria-live", "polite", 1, "dataTables_info", "mb-2"], [2, "color", "slategray"], [4, "ngIf"]],
      template: function DataTableComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, DataTableComponent_div_1_Template, 11, 2, "div", 2)(2, DataTableComponent_div_2_Template, 3, 0, "div", 3)(3, DataTableComponent_div_3_Template, 4, 0, "div", 4)(4, DataTableComponent_div_4_Template, 7, 0, "div", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, DataTableComponent_div_6_Template, 5, 1, "div", 7)(7, DataTableComponent_div_7_Template, 5, 3, "div", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 9)(9, "div", 10)(10, "ngb-pagination", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayListener"]("pageChange", function DataTableComponent_Template_ngb_pagination_pageChange_10_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayBindingSet"](ctx.service.page, $event) || (ctx.service.page = $event);
            return $event;
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("pageChange", function DataTableComponent_Template_ngb_pagination_pageChange_10_listener($event) {
            return ctx.onPageChange($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.viewMode === "table");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.viewMode === "cards");
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.loading && ctx.allcontent.length === 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getTotalElements() > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getTotalElements() > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("collectionSize", ctx.getTotalElements());
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtwoWayProperty"]("page", ctx.service.page);
          _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("pageSize", ctx.itemsPerPage)("boundaryLinks", true)("maxSize", 2)("ellipses", true);
        }
      },
      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_7__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbPagination, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbHighlight, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbTooltip, _angular_common__WEBPACK_IMPORTED_MODULE_6__.DatePipe],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}
(0,tslib__WEBPACK_IMPORTED_MODULE_9__.__decorate)([(0,_memoize_decorator__WEBPACK_IMPORTED_MODULE_0__.Memoize)()], DataTableComponent.prototype, "getPropertyValue", null);

/***/ }),

/***/ 30721:
/*!********************************************************!*\
  !*** ./src/app/shared/data-table/memoize.decorator.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Memoize: () => (/* binding */ Memoize)
/* harmony export */ });
function Memoize() {
  return function (target, propertyKey, descriptor) {
    const originalMethod = descriptor.value;
    const cache = new WeakMap();
    descriptor.value = function (...args) {
      const obj = args[0];
      const prop = args[1];
      if (!obj || typeof obj !== 'object') {
        return originalMethod.apply(this, args);
      }
      if (!cache.has(obj)) {
        cache.set(obj, new Map());
      }
      const objCache = cache.get(obj);
      if (objCache.has(prop)) {
        return objCache.get(prop);
      }
      const result = originalMethod.apply(this, args);
      objCache.set(prop, result);
      return result;
    };
    return descriptor;
  };
}

/***/ }),

/***/ 72998:
/*!*******************************************************************************!*\
  !*** ./src/app/shared/extraspages/privacy-policy/privacy-policy.component.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PrivacyPolicyComponent: () => (/* binding */ PrivacyPolicyComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);



class PrivacyPolicyComponent {
  constructor(location) {
    this.location = location;
    this.buttons = true;
  }
  ngOnInit() {}
  goBack() {
    this.location.back();
  }
  static {
    this.ɵfac = function PrivacyPolicyComponent_Factory(t) {
      return new (t || PrivacyPolicyComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.Location));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: PrivacyPolicyComponent,
      selectors: [["app-privacy-policy"]],
      inputs: {
        buttons: "buttons"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵStandaloneFeature"]],
      decls: 107,
      vars: 0,
      consts: [[1, "card-body", "p-4"], [1, "mb-4", "pb-2"], [1, "card-title", "text-decoration-underline", "mb-3"], [1, "d-flex"], [1, "flex-shrink-0", "me-3"], ["xmlns", "http://www.w3.org/2000/svg", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "stroke", "currentColor", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round", 1, "feather", "feather-check-circle", "text-success", "icon-dual-success", "icon-xs"], ["d", "M22 11.08V12a10 10 0 1 1-5.93-9.14"], ["points", "22 4 12 14.01 9 11.01"], [1, "flex-grow-1"], [1, "mb-0", "text-muted"], [1, "text-muted"], [1, "text-muted", "ul-padd"], [1, "text-end"], [1, "btn", "btn-secondary", 3, "click"]],
      template: function PrivacyPolicyComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h5", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Politicas y Privacidad del GAMQ ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3)(5, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "svg", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "path", 6)(8, "polyline", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8)(10, "p", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Ultima Actualizaci\u00F3n: 15 de Julio, 2024");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8)(15, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "1. Introducci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " El GAMQ se compromete a proteger la privacidad de los usuarios de la Aplicaci\u00F3n de Reservas Deportivas. Esta pol\u00EDtica describe c\u00F3mo recolectamos, usamos y protegemos su informaci\u00F3n personal. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "2. Informaci\u00F3n Recolectada");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " Recolectamos la siguiente informaci\u00F3n: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "ul", 11)(24, "li")(25, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Datos de identificaci\u00F3n (nombre, n\u00FAmero de documento)");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "li")(28, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Informaci\u00F3n de contacto (direcci\u00F3n, tel\u00E9fono, correo electr\u00F3nico)");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "li")(31, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Datos de reservas (fechas, campos deportivos seleccionados)");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "li")(34, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Informaci\u00F3n de pago (\u00FAnicamente para procesar las reservas)");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "3. Uso de la Informaci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Utilizamos su informaci\u00F3n para: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "ul", 11)(41, "li")(42, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Gestionar su cuenta y reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "li")(45, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Procesar pagos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "li")(48, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Mejorar nuestros servicios");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "li")(51, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, "Cumplir con obligaciones legales");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "4. Compartir Informaci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56, " No compartimos su informaci\u00F3n personal con terceros, excepto: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "ul", 11)(58, "li")(59, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Con RUAT para la generaci\u00F3n de tasas");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "li")(62, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "Con entidades bancarias para procesar pagos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "li")(65, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Cuando sea requerido por ley");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "5. Protecci\u00F3n de Datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](70, " Implementamos medidas de seguridad t\u00E9cnicas y organizativas para proteger su informaci\u00F3n personal, cumpliendo con las leyes bolivianas de protecci\u00F3n de datos. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "6. Derechos del Usuario");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, " Usted tiene derecho a: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "ul", 11)(76, "li")(77, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, "Acceder a su informaci\u00F3n personal");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "li")(80, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, "Corregir datos inexactos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "li")(83, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "Solicitar la eliminaci\u00F3n de sus datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "li")(86, "p");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Oponerse al procesamiento de sus datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, " Para ejercer estos derechos, cont\u00E1ctenos a trav\u00E9s de los medios proporcionados en la secci\u00F3n de contacto. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "7. Retenci\u00F3n de Datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Conservamos su informaci\u00F3n personal mientras sea necesario para los fines descritos en esta pol\u00EDtica o seg\u00FAn lo requiera la ley. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](95, "8. Cambios en la Pol\u00EDtica de Privacidad");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, " Podemos actualizar esta pol\u00EDtica ocasionalmente. La fecha de la \u00FAltima actualizaci\u00F3n se indicar\u00E1 al principio del documento. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](99, "9. Contacto");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](101, " Si tiene preguntas sobre esta Pol\u00EDtica de Privacidad, cont\u00E1ctenos al (591) 4 4362771-72-73 o por correo electr\u00F3nico a admin@quillacollo.gob.bo. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](102, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](103, "Fecha de \u00FAltima actualizaci\u00F3n: 15 de Julio, 2024 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "div", 12)(105, "button", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PrivacyPolicyComponent_Template_button_click_105_listener() {
            return ctx.goBack();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](106, "Entiendo");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 35840:
/*!***********************************************************************************!*\
  !*** ./src/app/shared/extraspages/terms-conditions/terms-conditions.component.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TermsConditionsComponent: () => (/* binding */ TermsConditionsComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);





function TermsConditionsComponent_div_151_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14)(1, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TermsConditionsComponent_div_151_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r1.goBack());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Entiendo");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
}
class TermsConditionsComponent {
  constructor(location) {
    this.location = location;
    this.buttons = true;
  }
  ngOnInit() {}
  goBack() {
    this.location.back();
  }
  static {
    this.ɵfac = function TermsConditionsComponent_Factory(t) {
      return new (t || TermsConditionsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.Location));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: TermsConditionsComponent,
      selectors: [["app-terms-conditions"]],
      inputs: {
        buttons: "buttons"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵStandaloneFeature"]],
      decls: 152,
      vars: 1,
      consts: [[1, "card-body", "p-4"], [1, "mb-4", "pb-2"], [1, "card-title", "text-decoration-underline", "mb-3"], [1, "d-flex"], [1, "flex-shrink-0", "me-3"], ["xmlns", "http://www.w3.org/2000/svg", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "stroke", "currentColor", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round", 1, "feather", "feather-check-circle", "text-success", "icon-dual-success", "icon-xs"], ["d", "M22 11.08V12a10 10 0 1 1-5.93-9.14"], ["points", "22 4 12 14.01 9 11.01"], [1, "flex-grow-1"], [1, "mb-0", "text-muted"], [1, "text-muted"], [1, "vstack", "gap-2", "ul-padd"], [1, "text-muted", "vstack", "gap-2", "ul-padd"], ["class", "text-end d-flex gap-1 justify-content-end", 4, "ngIf"], [1, "text-end", "d-flex", "gap-1", "justify-content-end"], [1, "btn", "btn-secondary", 3, "click"]],
      template: function TermsConditionsComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h5", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Terminos & Condiciones de Uso ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3)(5, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "svg", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "path", 6)(8, "polyline", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8)(10, "p", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Ultima Actualizaci\u00F3n: 15 de Julio, 2024");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "div", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8)(15, "div")(16, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "1. Introducci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Estos T\u00E9rminos de Uso rigen el acceso y la utilizaci\u00F3n de la aplicaci\u00F3n de Reservas Deportivas del Gobierno Aut\u00F3nomo Municipal de Quillacollo (GAMQ), incluyendo el proceso de reserva de instalaciones deportivas. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "2. Aceptaci\u00F3n de T\u00E9rminos y Condiciones");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " Al utilizar la Aplicaci\u00F3n, usted (en adelante, \"Usuario\") acepta estos T\u00E9rminos de Uso en su totalidad. Nos reservamos el derecho de modificar estos t\u00E9rminos en cualquier momento. La versi\u00F3n actualizada estar\u00E1 siempre disponible en la secci\u00F3n \"T\u00E9rminos y condiciones de uso\" de la Aplicaci\u00F3n. Le recomendamos revisar peri\u00F3dicamente estos t\u00E9rminos. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "3. Servicios de Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " La Aplicaci\u00F3n permite a los Usuarios realizar reservas de campos deportivos en los complejos gestionados por el GAMQ. Los servicios incluyen: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "ul", 11)(29, "li")(30, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "3.1 Realizaci\u00F3n de Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "ul", 11)(33, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Las reservas est\u00E1n sujetas a disponibilidad.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "El GAMQ se reserva el derecho de modificar la disponibilidad sin previo aviso.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "li")(38, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "3.2 Pol\u00EDtica de Cancelaci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "ul", 11)(41, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Las cancelaciones deben realizarse con al menos 4 horas de antelaci\u00F3n a la hora de la reserva.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Cancelaciones fuera de este plazo pueden estar sujetas a cargos seg\u00FAn la tarifa aplicable o anulaci\u00F3n completa de la reserva.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "li")(46, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "3.3 Pol\u00EDtica de Reembolso");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "ul", 11)(49, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "Los reembolsos por cancelaciones oportunas se procesar\u00E1n en un plazo de 5 a 10 d\u00EDas h\u00E1biles.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, "No se realizar\u00E1n reembolsos por cancelaciones fuera del plazo establecido o por no presentarse.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "li")(54, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, "3.4 Reglas de Uso del Campo Deportivo");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "ul", 11)(57, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "Los usuarios deben respetar el horario de su reserva.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Est\u00E1 prohibido el consumo de alcohol y tabaco en las instalaciones.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, "El uso de calzado adecuado es recomendado.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "li")(64, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "3.5 Responsabilidades del Usuario");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "ul", 11)(67, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "Los usuarios son responsables de su seguridad personal durante el uso de las instalaciones.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](70, "Cualquier da\u00F1o a las instalaciones ser\u00E1 responsabilidad del usuario que realiz\u00F3 la reserva.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "Los usuarios deben reportar cualquier desperfecto o problema en las instalaciones antes de su uso.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div")(74, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, "4. Registro y Cuenta de Usuario.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " Para utilizar la Aplicaci\u00F3n, los Usuarios deben registrarse proporcionando informaci\u00F3n precisa y completa. Los Usuarios son responsables de mantener la confidencialidad de su cuenta y contrase\u00F1a. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "div")(79, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "5. Reservas y Pagos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "ul", 12)(82, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "Las tasas generadas deben pagarse a trav\u00E9s de los canales autorizados por el GAMQ. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, "Las reservas no pagadas dentro del plazo establecido ser\u00E1n canceladas autom\u00E1ticamente.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Las tarifas est\u00E1n sujetas a cambios sin previo aviso.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div")(89, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](90, "6. Modificaciones de la Reserva");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "ul", 12)(92, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, "Las modificaciones est\u00E1n sujetas a disponibilidad y pueden incurrir en cargos adicionales.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](95, "Deben solicitarse con al menos 24 horas de antelaci\u00F3n.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "div")(97, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](98, "7. Conducta del Usuario");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](100, " Los usuarios se comprometen a: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "ul", 12)(102, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](103, "Utilizar las instalaciones de manera responsable.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](105, "Respetar a otros usuarios y al personal del GAMQ.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](106, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](107, "Cumplir con todas las normas y reglamentos aplicables.");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "div")(109, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](110, "8. Uso Apropiado de Aplicaci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](111, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](112, " Los Usuarios se comprometen a utilizar la Aplicaci\u00F3n de manera apropiada y legal. Est\u00E1 prohibido: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "ul", 12)(114, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](115, " Utilizar la Aplicaci\u00F3n para fines fraudulentos o ilegales ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](117, " Interferir con el funcionamiento normal de la Aplicaci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](119, " Intentar acceder a \u00E1reas restringidas de la Aplicaci\u00F3n ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](120, "div")(121, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](122, "9. Limitaci\u00F3n de Responsabilidad");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](124, " El GAMQ no se hace responsable por: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "ul", 12)(126, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](127, " Lesiones personales durante el uso de las instalaciones. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](128, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](129, " P\u00E9rdida o da\u00F1o de objetos personales. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "li");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](131, " Interrupciones o cancelaciones del servicio debido a circunstancias fuera de nuestro control. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](132, "div")(133, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](134, "10. Modificaciones de los T\u00E9rminos");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](135, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](136, " El GAMQ se reserva el derecho de modificar estos t\u00E9rminos en cualquier momento. Los cambios ser\u00E1n efectivos inmediatamente despu\u00E9s de su publicaci\u00F3n en la Aplicaci\u00F3n. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](137, "div")(138, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](139, "11. Ley Aplicable y Jurisdicci\u00F3n");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](140, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](141, " Estos T\u00E9rminos de Uso se rigen por las leyes bolivianas. Cualquier disputa se someter\u00E1 a los Juzgados y Tribunales de Bolivia. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](142, "div")(143, "h5");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](144, "12. Contacto");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](145, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](146, " Para cualquier consulta sobre estos T\u00E9rminos de Uso, cont\u00E1ctenos al (591) 4 4362771-72-73 o por correo electr\u00F3nico a admin@quillacollo.gob.bo. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](147, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](148, " Al utilizar nuestra Aplicaci\u00F3n y servicios de reserva, usted acepta cumplir con estos T\u00E9rminos de Uso. ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](149, "p", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](150, " Fecha de \u00FAltima actualizaci\u00F3n: 15 de Julio, 2024");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](151, TermsConditionsComponent_div_151_Template, 3, 0, "div", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](151);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.buttons);
        }
      },
      dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormsModule, _angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbModule],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 79843:
/*!*************************************************!*\
  !*** ./src/app/shared/map/leaflet.component.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LeafletComponent: () => (/* binding */ LeafletComponent)
/* harmony export */ });
/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! leaflet */ 67381);
/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var leaflet_geosearch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! leaflet-geosearch */ 94434);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 43942);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ 46443);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);









function LeafletComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 25)(1, "div", 26)(2, "button", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_8_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.useCurrentLocation());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_8_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.centerOnMarker());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_8_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.resetMapa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "i", 32);
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r1.isLoadingLocation);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r1.isLoadingLocation ? "bi-arrow-repeat spinner" : "bi-crosshair");
  }
}
function LeafletComponent_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_12_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r3);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.errorMessage = "");
    });
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.errorMessage, " ");
  }
}
function LeafletComponent_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 36)(1, "div", 1)(2, "div", 37)(3, "span", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Obteniendo ubicaci\u00F3n actual...");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
  }
}
function LeafletComponent_button_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_button_22_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.copiarCoordenadas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Copiar coordenadas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function LeafletComponent_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 41)(1, "small", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Tip:");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " Puedes hacer clic en el mapa o arrastrar el marcador para seleccionar una ubicaci\u00F3n exacta. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function LeafletComponent_div_35_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 44)(1, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_35_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.guardarUbicacion());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Guardar Ubicaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_35_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.cerrarMapa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " Cancelar ");
    _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__["ɵɵproperty"]("disabled", !ctx_r1.direccion || ctx_r1.direccion.trim() === "");
  }
}
function LeafletComponent_div_36_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 44)(1, "button", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_div_36_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.cerrarMapa());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
class LeafletComponent {
  constructor(http, activeModal) {
    this.http = http;
    this.activeModal = activeModal;
    this.latitud = 0;
    this.longitud = 0;
    this.direccion = '';
    this.latLngEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.form = false;
    this.title = 'Mapa';
    this.isLoadingLocation = false;
    this.errorMessage = '';
    this.searchResults = [];
    this.showSuggestions = false;
    this.icon = leaflet__WEBPACK_IMPORTED_MODULE_0__.icon({
      iconUrl: 'assets/icons/pin-Map_icon.svg',
      iconSize: [28, 41],
      iconAnchor: [12, 41],
      popupAnchor: [1, -34],
      shadowSize: [41, 41]
    });
    this.locationIcon = leaflet__WEBPACK_IMPORTED_MODULE_0__.icon({
      iconUrl: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjNDA3OGZmIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjgiLz48L3N2Zz4=',
      iconSize: [20, 20],
      iconAnchor: [10, 10]
    });
    this.provider = new leaflet_geosearch__WEBPACK_IMPORTED_MODULE_1__.OpenStreetMapProvider();
  }
  ngOnInit() {
    if (!this.latitud || !this.longitud) {
      this.latitud = -17.39753966183384;
      this.longitud = -66.28070536289276;
    }
    this.cargarMapa();
    this.setInitialView();
  }
  ngOnDestroy() {
    if (this.mapa) {
      this.mapa.remove();
    }
  }
  cerrarMapa() {
    this.activeModal.close();
  }
  cargarMapa() {
    this.mapa = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.map)('map', {
      zoomControl: true,
      attributionControl: true
    }).setView([this.latitud, this.longitud], 16);
    this.marcadores = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.featureGroup)();
    let capa = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.tileLayer)('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
      maxZoom: 25,
      attribution: '© OpenStreetMap contributors'
    });
    let marcador = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.marker)([this.latitud, this.longitud], {
      icon: this.icon,
      draggable: this.form,
      autoPan: true
    });
    let searchControl = (0,leaflet_geosearch__WEBPACK_IMPORTED_MODULE_1__.GeoSearchControl)({
      provider: this.provider,
      style: 'bar',
      showMarker: false,
      showPopup: false,
      autoClose: true,
      retainZoomLevel: false,
      animateZoom: true,
      keepResult: false,
      searchLabel: 'Buscar dirección o complejo deportivo...'
    });
    this.marcadores.addTo(this.mapa);
    capa.addTo(this.mapa);
    marcador.addTo(this.mapa);
    this.marcadores.addLayer(marcador);
    this.marcadorActual = marcador;
    if (this.latitud && this.longitud && this.latitud !== -17.39753966183384 && this.longitud !== -66.28070536289276) {
      this.mapa.setView([this.latitud, this.longitud], 18);
    }
    if (this.form) {
      this.mapa.addControl(searchControl);
      this.mapa.on('geosearch/showlocation', event => {
        this.onSearchResult(event.location);
      });
      this.mapa.on('click', e => {
        this.onMapClick(e.latlng);
      });
    }
    this.moverMarcador(marcador, this.mapa);
  }
  onSearchResult(location) {
    this.marcadores.clearLayers();
    const {
      y,
      x
    } = location;
    this.mapa.setView([y, x], 18);
    const nuevoMarcador = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.marker)([y, x], {
      icon: this.icon,
      draggable: true,
      autoPan: true
    }).addTo(this.mapa);
    this.marcadores.addLayer(nuevoMarcador);
    this.marcadorActual = nuevoMarcador;
    this.moverMarcador(nuevoMarcador, this.mapa);
  }
  centerOnMarker() {
    if (this.marcadorActual) {
      const position = this.marcadorActual.getLatLng();
      this.mapa.setView([position.lat, position.lng], 18, {
        animate: true,
        duration: 0.5
      });
    }
  }
  setInitialView() {
    if (this.latitud && this.longitud) {
      const isDefaultLocation = this.latitud === -17.39753966183384 && this.longitud === -66.28070536289276;
      const zoomLevel = isDefaultLocation ? 14 : 18;
      this.mapa.setView([this.latitud, this.longitud], zoomLevel);
    }
  }
  useCurrentLocation() {
    this.isLoadingLocation = true;
    this.errorMessage = '';
    this.getCurrentPosition().subscribe(position => {
      this.isLoadingLocation = false;
      this.onSearchResult({
        y: position.latitude,
        x: position.longitude
      });
      if (this.circuloUbicacion) {
        this.mapa.removeLayer(this.circuloUbicacion);
      }
      this.circuloUbicacion = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.circle)([position.latitude, position.longitude], {
        color: '#4078ff',
        fillColor: '#4078ff',
        fillOpacity: 0.1,
        radius: 100
      }).addTo(this.mapa);
    }, error => {
      this.isLoadingLocation = false;
      this.errorMessage = 'No se pudo obtener la ubicación actual. Verifica los permisos del navegador.';
    });
  }
  onMapClick(latlng) {
    if (!this.form) return;
    this.marcadores.clearLayers();
    const nuevoMarcador = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.marker)([latlng.lat, latlng.lng], {
      icon: this.icon,
      draggable: true,
      autoPan: true
    }).addTo(this.mapa);
    this.marcadores.addLayer(nuevoMarcador);
    this.marcadorActual = nuevoMarcador;
    this.moverMarcador(nuevoMarcador, this.mapa);
  }
  zoomIn() {
    this.mapa.zoomIn();
  }
  zoomOut() {
    this.mapa.zoomOut();
  }
  getCurrentPosition() {
    return new rxjs__WEBPACK_IMPORTED_MODULE_3__.Observable(observer => {
      if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(position => {
          observer.next({
            latitude: position.coords.latitude,
            longitude: position.coords.longitude
          });
          observer.complete();
        }, error => {
          observer.error(error);
        }, {
          enableHighAccuracy: true,
          timeout: 5000,
          maximumAge: 0
        });
      } else {
        observer.error('Geolocation not supported');
      }
    });
  }
  moverMarcador(marcador, mapa) {
    let position = marcador.getLatLng();
    this.setLatLng(position);
    marcador.on('dragstart', () => {
      this.errorMessage = '';
    });
    marcador.on('dragend', e => {
      let position = marcador.getLatLng();
      mapa.panTo(new leaflet__WEBPACK_IMPORTED_MODULE_0__.LatLng(position.lat, position.lng));
      this.setLatLng(position);
    });
  }
  setLatLng({
    lat,
    lng
  }) {
    this.latitud = lat;
    this.longitud = lng;
    this.getAddress(lat, lng);
  }
  getAddress(lat, lng) {
    const url = `https://nominatim.openstreetmap.org/reverse?format=json&lat=${lat}&lon=${lng}&zoom=18&addressdetails=1`;
    this.http.get(url, {
      headers: {
        'Accept-Language': 'es'
      }
    }).subscribe(response => {
      if (response && response.display_name) {
        this.direccion = response.display_name;
      } else {
        this.direccion = `${lat.toFixed(6)}, ${lng.toFixed(6)}`;
      }
    }, error => {
      console.error('Error getting address:', error);
      this.direccion = `${lat.toFixed(6)}, ${lng.toFixed(6)}`;
    });
  }
  copiarCoordenadas() {
    const coords = `${this.latitud}, ${this.longitud}`;
    navigator.clipboard.writeText(coords).then(() => {
      const originalError = this.errorMessage;
      this.errorMessage = '';
      setTimeout(() => {
        this.errorMessage = originalError;
      }, 2000);
    });
  }
  guardarUbicacion() {
    if (!this.direccion || this.direccion.trim() === '') {
      this.errorMessage = 'Por favor, selecciona una ubicación válida en el mapa.';
      return;
    }
    let latLng = {
      lat: this.latitud,
      lng: this.longitud,
      dir: this.direccion
    };
    this.latLngEmitter.emit(latLng);
    this.activeModal.close();
  }
  resetMapa() {
    this.latitud = -17.39753966183384;
    this.longitud = -66.28070536289276;
    this.direccion = '';
    this.errorMessage = '';
    if (this.circuloUbicacion) {
      this.mapa.removeLayer(this.circuloUbicacion);
    }
    this.marcadores.clearLayers();
    this.mapa.setView([this.latitud, this.longitud], 14);
    const marcador = (0,leaflet__WEBPACK_IMPORTED_MODULE_0__.marker)([this.latitud, this.longitud], {
      icon: this.icon,
      draggable: true,
      autoPan: true
    }).addTo(this.mapa);
    this.marcadores.addLayer(marcador);
    this.marcadorActual = marcador;
    this.moverMarcador(marcador, this.mapa);
  }
  static {
    this.ɵfac = function LeafletComponent_Factory(t) {
      return new (t || LeafletComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
      type: LeafletComponent,
      selectors: [["app-leaflet"]],
      inputs: {
        latitud: "latitud",
        longitud: "longitud",
        direccion: "direccion",
        form: "form",
        title: "title"
      },
      outputs: {
        latLngEmitter: "latLngEmitter"
      },
      decls: 37,
      vars: 11,
      consts: [[1, "modal-header", "bg-light"], [1, "d-flex", "align-items-center"], [1, "bi", "bi-geo-alt-fill", "text-primary", "me-2", "fs-4"], ["ngbAutofocus", "", 1, "modal-title", "mb-0"], ["title", "Cerrar", "type", "button", 1, "btn-close", "shadow-none", 3, "click"], [1, "modal-body", "p-0", "position-relative"], ["id", "map", 1, "w-100", 2, "height", "450px", "position", "relative"], ["class", "map-controls-overlay", 4, "ngIf"], [1, "location-info-panel", "border-top"], [1, "p-2"], ["class", "alert alert-warning alert-dismissible fade show mb-3", "role", "alert", 4, "ngIf"], ["class", "alert alert-info mb-2", 4, "ngIf"], [1, "mb-3"], [1, "form-label", "fw-semibold", "text-secondary", "small", "mb-1"], [1, "bi", "bi-pin-map-fill", "me-1"], [1, "d-flex", "align-items-start", "gap-2"], [1, "flex-grow-1"], [1, "mb-0", "text-dark", 2, "line-height", "1.5"], ["class", "btn btn-sm btn-secondary", "title", "Copiar coordenadas", 3, "click", 4, "ngIf"], [1, "row", "g-2"], [1, "col-6"], [1, "bi", "bi-geo", "me-1"], ["type", "text", "readonly", "", 1, "form-control", "form-control-sm", 3, "value"], ["class", "mt-3 p-2 bg-light rounded", 4, "ngIf"], ["class", "modal-footer bg-light", 4, "ngIf"], [1, "map-controls-overlay"], [1, "d-flex", "flex-column", "gap-2"], ["title", "Usar mi ubicaci\u00F3n actual", 1, "btn", "btn-light", "btn-sm", "shadow-sm", "d-flex", "align-items-center", "justify-content-center", 2, "width", "40px", "height", "40px", 3, "click", "disabled"], [1, "bi", 3, "ngClass"], ["title", "Centrar en marcador", 1, "btn", "btn-light", "btn-sm", "shadow-sm", "d-flex", "align-items-center", "justify-content-center", 2, "width", "40px", "height", "40px", 3, "click"], [1, "bi", "bi-bullseye"], ["title", "Restablecer mapa", 1, "btn", "btn-light", "btn-sm", "shadow-sm", "d-flex", "align-items-center", "justify-content-center", 2, "width", "40px", "height", "40px", 3, "click"], [1, "bi", "bi-arrow-clockwise"], ["role", "alert", 1, "alert", "alert-warning", "alert-dismissible", "fade", "show", "mb-3"], [1, "bi", "bi-exclamation-triangle-fill", "me-2"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click"], [1, "alert", "alert-info", "mb-2"], ["role", "status", 1, "spinner-border", "spinner-border-sm", "me-2"], [1, "visually-hidden"], ["title", "Copiar coordenadas", 1, "btn", "btn-sm", "btn-secondary", 3, "click"], [1, "bi", "bi-clipboard"], [1, "mt-3", "p-2", "bg-light", "rounded"], [1, "text-muted", "d-block"], [1, "bi", "bi-info-circle", "me-1"], [1, "modal-footer", "bg-light"], ["type", "button", 1, "btn", "btn-primary", "rounded-3", "px-2", 3, "click", "disabled"], [1, "bi", "bi-check-circle", "me-2"], ["type", "button", 1, "btn", "btn-outline-secondary", "rounded-3", "px-4", 3, "click"], [1, "bi", "bi-x-circle", "me-2"], ["type", "button", 1, "btn", "btn-secondary", "rounded-3", "px-4", 3, "click"]],
      template: function LeafletComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h5", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "button", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LeafletComponent_Template_button_click_5_listener() {
            return ctx.cerrarMapa();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 5)(7, "div", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, LeafletComponent_div_8_Template, 8, 2, "div", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "\nx` ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 8)(11, "div", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, LeafletComponent_div_12_Template, 4, 1, "div", 10)(13, LeafletComponent_div_13_Template, 7, 0, "div", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 12)(15, "label", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "i", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " DIRECCI\u00D3N ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 15)(19, "div", 16)(20, "p", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, LeafletComponent_button_22_Template, 3, 0, "button", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 19)(24, "div", 20)(25, "label", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, " LATITUD ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 20)(30, "label", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "i", 21);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, " LONGITUD ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "input", 22);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](34, LeafletComponent_div_34_Template, 6, 0, "div", 23);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](35, LeafletComponent_div_35_Template, 7, 1, "div", 24)(36, LeafletComponent_div_36_Template, 4, 0, "div", 24);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.form);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.errorMessage);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isLoadingLocation);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.direccion || "Selecciona una ubicaci\u00F3n en el mapa", " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.direccion);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx.latitud.toFixed(8));
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx.longitud.toFixed(8));
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.form);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.form);
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.form);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf],
      styles: ["\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .leaflet-control-geosearch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:before, .leaflet-control-geosearch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:after {\n  box-sizing: border-box;\n}\n\n\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .leaflet-bar-part[_ngcontent-%COMP%] {\n  border-radius: 4px;\n  border-bottom: none;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:before, .leaflet-control-geosearch[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after {\n  position: absolute;\n  display: block;\n  content: '';\n}\n\n\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:before {\n  top: 17px;\n  left: 15px;\n  width: 6px;\n  border-top: 2px solid #555;\n  transform: rotateZ(45deg);\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after {\n  top: 10px;\n  left: 10px;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  border: 2px solid #555;\n}\n\n\n\n.leaflet-control-geosearch.error[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:before, .leaflet-control-geosearch.pending[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:before {\n  display: none;\n}\n\n.leaflet-control-geosearch.pending[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after, .leaflet-control-geosearch.error[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after {\n  left: 50%;\n  top: 50%;\n  width: 18px;\n  height: 18px;\n  margin: -9px 0 0 -9px;\n  border-radius: 50%;\n}\n\n\n\n.leaflet-control-geosearch.pending[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after {\n  content: '';\n  border: 2px solid #555;\n  border-top: 2px solid #f3f3f3;\n  animation: _ngcontent-%COMP%_spin 1s linear infinite;\n}\n\n\n\n.leaflet-control-geosearch.error[_ngcontent-%COMP%]   a.leaflet-bar-part[_ngcontent-%COMP%]:after {\n  content: '!';\n  line-height: initial;\n  font-weight: 600;\n  font-size: 18px;\n  border: none;\n}\n\n\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  display: none;\n  position: absolute;\n  top: 0;\n  left: 30px;\n  border-radius: 0 4px 4px 0;\n  background-color: #fff;\n  background-clip: padding-box;\n  z-index: -1;\n  height: auto;\n  margin: 0;\n  padding: 0 8px;\n  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);\n}\n\n.leaflet-geosearch-button[_ngcontent-%COMP%]   form.open[_ngcontent-%COMP%] {\n  border-radius: 0 4px 4px 4px;\n}\n.leaflet-control-geosearch.active[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  display: block;\n}\n\n.leaflet-geosearch-button.active[_ngcontent-%COMP%]   .leaflet-bar-part[_ngcontent-%COMP%] {\n  border-radius: 4px 0 0 4px;\n  width: 30px;\n}\n\n.leaflet-geosearch-button[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  max-width: 350px;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n  min-width: 200px;\n  width: 100%;\n  outline: none;\n  border: none;\n  margin: 0;\n  padding: 0;\n  font-size: 12px;\n  height: 30px;\n  border: none;\n  border-radius: 0 4px 4px 0;\n  text-indent: 8px;\n}\n\n.leaflet-touch[_ngcontent-%COMP%]   .leaflet-geosearch-bar[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  border: 2px solid rgba(0,0,0,0.2);\n  box-shadow: none;\n}\n\n.leaflet-touch[_ngcontent-%COMP%]   .leaflet-geosearch-bar[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n  height: 30px;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%] {\n  background: #fff;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]    > *[_ngcontent-%COMP%] {\n  line-height: 24px;\n  padding: 0 8px;\n  border: 1px solid transparent;\n\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .results.active[_ngcontent-%COMP%] {\n  padding: 8px 0;\n  border-top: 1px solid #c6c6c6;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]    > .active[_ngcontent-%COMP%], .leaflet-control-geosearch[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]    > [_ngcontent-%COMP%]:hover {\n  background-color: #f8f8f8;\n  border-color: #c6c6c6;\n  cursor: pointer;\n}\n\n\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   .results.active[_ngcontent-%COMP%]:after {\n  content: '';\n  display: block;\n  width: 0;\n  position: absolute;\n  left: -2px;\n  bottom: -2px;\n  top: 30px;\n}\n\n.leaflet-touch[_ngcontent-%COMP%]   .leaflet-control-geosearch[_ngcontent-%COMP%]   .results.active[_ngcontent-%COMP%]:after {\n  border-left: 2px solid rgba(0, 0, 0, .2);\n}\n\n\n\n@keyframes _ngcontent-%COMP%_spin {\n  0% { transform: rotate(0deg); }\n  100% { transform: rotate(360deg); }\n}\n\n.leaflet-top[_ngcontent-%COMP%]   .leaflet-geosearch-bar[_ngcontent-%COMP%], .leaflet-bottom[_ngcontent-%COMP%]   .leaflet-geosearch-bar[_ngcontent-%COMP%] {\n  display: none;\n}\n\n.leaflet-geosearch-bar[_ngcontent-%COMP%] {\n  position: relative;\n  display: block;\n  height: auto;\n  width: 400px;\n  max-width: calc(100% - 120px);\n  margin: 10px auto 0;\n  cursor: auto;\n  z-index: 1000;\n}\n\n.leaflet-geosearch-bar[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  position: relative;\n  top: 0;\n  left: 0;\n  display: block;\n  border-radius: 4px;\n}\n\n.leaflet-geosearch-bar[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n  min-width: 100%;\n  width: 100%;\n}\n\n.leaflet-geosearch-bar[_ngcontent-%COMP%]   .results.active[_ngcontent-%COMP%]:after {\n  opacity: .2;\n}\n\n.leaflet-right[_ngcontent-%COMP%]   .leaflet-control-geosearch[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] {\n  right: 28px;\n  left: initial;\n  border-radius: 4px 0 0 4px;\n  border-left: inherit;\n  border-right: none;\n}\n\n.leaflet-bar-notfound[_ngcontent-%COMP%] {\n  font-style: italic;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   button.reset[_ngcontent-%COMP%] {\n  color: black;\n  font-weight: bold;\n  position: absolute;\n  line-height: 26px;\n  padding: 0 8px;\n  right: 0;\n  top: 0;\n  cursor: pointer;\n  border: none;\n  text-decoration: none;\n  background-color: #fff;\n  border-radius: 0 4px 4px 0;\n}\n\n.leaflet-touch[_ngcontent-%COMP%]   .leaflet-control-geosearch[_ngcontent-%COMP%]   button.reset[_ngcontent-%COMP%] {\n  line-height: 30px;\n}\n\n.leaflet-control-geosearch[_ngcontent-%COMP%]   button.reset[_ngcontent-%COMP%]:hover {\n  background: #f5f5f5;\n}\n\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL25vZGVfbW9kdWxlcy9sZWFmbGV0LWdlb3NlYXJjaC9kaXN0L2dlb3NlYXJjaC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25COzs7RUFHRSxzQkFBc0I7QUFDeEI7O0FBRUEsMkJBQTJCO0FBQzNCO0VBQ0Usa0JBQWtCO0VBQ2xCLG1CQUFtQjtBQUNyQjs7QUFFQTs7RUFFRSxrQkFBa0I7RUFDbEIsY0FBYztFQUNkLFdBQVc7QUFDYjs7QUFFQSxxQkFBcUI7QUFDckI7RUFDRSxTQUFTO0VBQ1QsVUFBVTtFQUNWLFVBQVU7RUFDViwwQkFBMEI7RUFDMUIseUJBQXlCO0FBQzNCOztBQUVBO0VBQ0UsU0FBUztFQUNULFVBQVU7RUFDVixXQUFXO0VBQ1gsVUFBVTtFQUNWLGtCQUFrQjtFQUNsQixzQkFBc0I7QUFDeEI7O0FBRUEsdUNBQXVDO0FBQ3ZDOztFQUVFLGFBQWE7QUFDZjs7QUFFQTs7RUFFRSxTQUFTO0VBQ1QsUUFBUTtFQUNSLFdBQVc7RUFDWCxZQUFZO0VBQ1oscUJBQXFCO0VBQ3JCLGtCQUFrQjtBQUNwQjs7QUFFQSxpQkFBaUI7QUFDakI7RUFDRSxXQUFXO0VBQ1gsc0JBQXNCO0VBQ3RCLDZCQUE2QjtFQUM3QixrQ0FBa0M7QUFDcEM7O0FBRUEsZUFBZTtBQUNmO0VBQ0UsWUFBWTtFQUNaLG9CQUFvQjtFQUNwQixnQkFBZ0I7RUFDaEIsZUFBZTtFQUNmLFlBQVk7QUFDZDs7QUFFQSx3QkFBd0I7QUFDeEI7RUFDRSxhQUFhO0VBQ2Isa0JBQWtCO0VBQ2xCLE1BQU07RUFDTixVQUFVO0VBQ1YsMEJBQTBCO0VBQzFCLHNCQUFzQjtFQUN0Qiw0QkFBNEI7RUFDNUIsV0FBVztFQUNYLFlBQVk7RUFDWixTQUFTO0VBQ1QsY0FBYztFQUNkLHlDQUF5QztBQUMzQzs7QUFFQTtFQUNFLDRCQUE0QjtBQUM5QjtBQUNBO0VBQ0UsY0FBYztBQUNoQjs7QUFFQTtFQUNFLDBCQUEwQjtFQUMxQixXQUFXO0FBQ2I7O0FBRUE7RUFDRSxnQkFBZ0I7QUFDbEI7O0FBRUE7RUFDRSxnQkFBZ0I7RUFDaEIsV0FBVztFQUNYLGFBQWE7RUFDYixZQUFZO0VBQ1osU0FBUztFQUNULFVBQVU7RUFDVixlQUFlO0VBQ2YsWUFBWTtFQUNaLFlBQVk7RUFDWiwwQkFBMEI7RUFDMUIsZ0JBQWdCO0FBQ2xCOztBQUVBO0VBQ0UsaUNBQWlDO0VBQ2pDLGdCQUFnQjtBQUNsQjs7QUFFQTtFQUNFLFlBQVk7QUFDZDs7QUFFQTtFQUNFLGdCQUFnQjtBQUNsQjs7QUFFQTtFQUNFLGlCQUFpQjtFQUNqQixjQUFjO0VBQ2QsNkJBQTZCOztFQUU3QixtQkFBbUI7RUFDbkIsZ0JBQWdCO0VBQ2hCLHVCQUF1QjtBQUN6Qjs7QUFFQTtFQUNFLGNBQWM7RUFDZCw2QkFBNkI7QUFDL0I7O0FBRUE7O0VBRUUseUJBQXlCO0VBQ3pCLHFCQUFxQjtFQUNyQixlQUFlO0FBQ2pCOztBQUVBLCtCQUErQjtBQUMvQjtFQUNFLFdBQVc7RUFDWCxjQUFjO0VBQ2QsUUFBUTtFQUNSLGtCQUFrQjtFQUNsQixVQUFVO0VBQ1YsWUFBWTtFQUNaLFNBQVM7QUFDWDs7QUFFQTtFQUNFLHdDQUF3QztBQUMxQzs7QUFFQSxlQUFlO0FBQ2Y7RUFDRSxLQUFLLHVCQUF1QixFQUFFO0VBQzlCLE9BQU8seUJBQXlCLEVBQUU7QUFDcEM7O0FBRUE7O0VBRUUsYUFBYTtBQUNmOztBQUVBO0VBQ0Usa0JBQWtCO0VBQ2xCLGNBQWM7RUFDZCxZQUFZO0VBQ1osWUFBWTtFQUNaLDZCQUE2QjtFQUM3QixtQkFBbUI7RUFDbkIsWUFBWTtFQUNaLGFBQWE7QUFDZjs7QUFFQTtFQUNFLGtCQUFrQjtFQUNsQixNQUFNO0VBQ04sT0FBTztFQUNQLGNBQWM7RUFDZCxrQkFBa0I7QUFDcEI7O0FBRUE7RUFDRSxlQUFlO0VBQ2YsV0FBVztBQUNiOztBQUVBO0VBQ0UsV0FBVztBQUNiOztBQUVBO0VBQ0UsV0FBVztFQUNYLGFBQWE7RUFDYiwwQkFBMEI7RUFDMUIsb0JBQW9CO0VBQ3BCLGtCQUFrQjtBQUNwQjs7QUFFQTtFQUNFLGtCQUFrQjtBQUNwQjs7QUFFQTtFQUNFLFlBQVk7RUFDWixpQkFBaUI7RUFDakIsa0JBQWtCO0VBQ2xCLGlCQUFpQjtFQUNqQixjQUFjO0VBQ2QsUUFBUTtFQUNSLE1BQU07RUFDTixlQUFlO0VBQ2YsWUFBWTtFQUNaLHFCQUFxQjtFQUNyQixzQkFBc0I7RUFDdEIsMEJBQTBCO0FBQzVCOztBQUVBO0VBQ0UsaUJBQWlCO0FBQ25COztBQUVBO0VBQ0UsbUJBQW1CO0FBQ3JCIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHN0eWxpbmcgKi9cbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoICosXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaCAqOmJlZm9yZSxcbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoICo6YWZ0ZXIge1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xufVxuXG4vKiBsZWFmbGV0IGJ1dHRvbiBzdHlsaW5nICovXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaCAubGVhZmxldC1iYXItcGFydCB7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYm9yZGVyLWJvdHRvbTogbm9uZTtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggYS5sZWFmbGV0LWJhci1wYXJ0OmJlZm9yZSxcbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIGEubGVhZmxldC1iYXItcGFydDphZnRlciB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGNvbnRlbnQ6ICcnO1xufVxuXG4vKiBtYWduaWZ5aW5nIGdsYXNzICovXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaCBhLmxlYWZsZXQtYmFyLXBhcnQ6YmVmb3JlIHtcbiAgdG9wOiAxN3B4O1xuICBsZWZ0OiAxNXB4O1xuICB3aWR0aDogNnB4O1xuICBib3JkZXItdG9wOiAycHggc29saWQgIzU1NTtcbiAgdHJhbnNmb3JtOiByb3RhdGVaKDQ1ZGVnKTtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggYS5sZWFmbGV0LWJhci1wYXJ0OmFmdGVyIHtcbiAgdG9wOiAxMHB4O1xuICBsZWZ0OiAxMHB4O1xuICBoZWlnaHQ6IDhweDtcbiAgd2lkdGg6IDhweDtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBib3JkZXI6IDJweCBzb2xpZCAjNTU1O1xufVxuXG4vKiByZXNldHMgZm9yIHBlbmRpbmcgYW5kIGVycm9yIGljb25zICovXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaC5lcnJvciBhLmxlYWZsZXQtYmFyLXBhcnQ6YmVmb3JlLFxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2gucGVuZGluZyBhLmxlYWZsZXQtYmFyLXBhcnQ6YmVmb3JlIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2gucGVuZGluZyBhLmxlYWZsZXQtYmFyLXBhcnQ6YWZ0ZXIsXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaC5lcnJvciBhLmxlYWZsZXQtYmFyLXBhcnQ6YWZ0ZXIge1xuICBsZWZ0OiA1MCU7XG4gIHRvcDogNTAlO1xuICB3aWR0aDogMThweDtcbiAgaGVpZ2h0OiAxOHB4O1xuICBtYXJnaW46IC05cHggMCAwIC05cHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbn1cblxuLyogcGVuZGluZyBpY29uICovXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaC5wZW5kaW5nIGEubGVhZmxldC1iYXItcGFydDphZnRlciB7XG4gIGNvbnRlbnQ6ICcnO1xuICBib3JkZXI6IDJweCBzb2xpZCAjNTU1O1xuICBib3JkZXItdG9wOiAycHggc29saWQgI2YzZjNmMztcbiAgYW5pbWF0aW9uOiBzcGluIDFzIGxpbmVhciBpbmZpbml0ZTtcbn1cblxuLyogZXJyb3IgaWNvbiAqL1xuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2guZXJyb3IgYS5sZWFmbGV0LWJhci1wYXJ0OmFmdGVyIHtcbiAgY29udGVudDogJyEnO1xuICBsaW5lLWhlaWdodDogaW5pdGlhbDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgZm9udC1zaXplOiAxOHB4O1xuICBib3JkZXI6IG5vbmU7XG59XG5cbi8qIHNlYXJjaCBmb3JtIHN0eWxpbmcgKi9cbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIGZvcm0ge1xuICBkaXNwbGF5OiBub25lO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMDtcbiAgbGVmdDogMzBweDtcbiAgYm9yZGVyLXJhZGl1czogMCA0cHggNHB4IDA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY2xpcDogcGFkZGluZy1ib3g7XG4gIHotaW5kZXg6IC0xO1xuICBoZWlnaHQ6IGF1dG87XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMCA4cHg7XG4gIGJveC1zaGFkb3c6IDAgMXB4IDVweCByZ2JhKDAsIDAsIDAsIDAuNjUpO1xufVxuXG4ubGVhZmxldC1nZW9zZWFyY2gtYnV0dG9uIGZvcm0ub3BlbiB7XG4gIGJvcmRlci1yYWRpdXM6IDAgNHB4IDRweCA0cHg7XG59XG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaC5hY3RpdmUgZm9ybSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuXG4ubGVhZmxldC1nZW9zZWFyY2gtYnV0dG9uLmFjdGl2ZSAubGVhZmxldC1iYXItcGFydCB7XG4gIGJvcmRlci1yYWRpdXM6IDRweCAwIDAgNHB4O1xuICB3aWR0aDogMzBweDtcbn1cblxuLmxlYWZsZXQtZ2Vvc2VhcmNoLWJ1dHRvbiBmb3JtIHtcbiAgbWF4LXdpZHRoOiAzNTBweDtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggZm9ybSBpbnB1dCB7XG4gIG1pbi13aWR0aDogMjAwcHg7XG4gIHdpZHRoOiAxMDAlO1xuICBvdXRsaW5lOiBub25lO1xuICBib3JkZXI6IG5vbmU7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgZm9udC1zaXplOiAxMnB4O1xuICBoZWlnaHQ6IDMwcHg7XG4gIGJvcmRlcjogbm9uZTtcbiAgYm9yZGVyLXJhZGl1czogMCA0cHggNHB4IDA7XG4gIHRleHQtaW5kZW50OiA4cHg7XG59XG5cbi5sZWFmbGV0LXRvdWNoIC5sZWFmbGV0LWdlb3NlYXJjaC1iYXIgZm9ybSB7XG4gIGJvcmRlcjogMnB4IHNvbGlkIHJnYmEoMCwwLDAsMC4yKTtcbiAgYm94LXNoYWRvdzogbm9uZTtcbn1cblxuLmxlYWZsZXQtdG91Y2ggLmxlYWZsZXQtZ2Vvc2VhcmNoLWJhciBmb3JtIGlucHV0IHtcbiAgaGVpZ2h0OiAzMHB4O1xufVxuXG4ubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaCAucmVzdWx0cyB7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG59XG5cbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIC5yZXN1bHRzID4gKiB7XG4gIGxpbmUtaGVpZ2h0OiAyNHB4O1xuICBwYWRkaW5nOiAwIDhweDtcbiAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG5cbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7XG59XG5cbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIC5yZXN1bHRzLmFjdGl2ZSB7XG4gIHBhZGRpbmc6IDhweCAwO1xuICBib3JkZXItdG9wOiAxcHggc29saWQgI2M2YzZjNjtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggLnJlc3VsdHMgPiAuYWN0aXZlLFxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggLnJlc3VsdHMgPiA6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOGY4O1xuICBib3JkZXItY29sb3I6ICNjNmM2YzY7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLyogYWRkIG1pc3NpbmcgYm9yZGVyIHRvIGZvcm0gKi9cbi5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIC5yZXN1bHRzLmFjdGl2ZTphZnRlciB7XG4gIGNvbnRlbnQ6ICcnO1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IDA7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogLTJweDtcbiAgYm90dG9tOiAtMnB4O1xuICB0b3A6IDMwcHg7XG59XG5cbi5sZWFmbGV0LXRvdWNoIC5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIC5yZXN1bHRzLmFjdGl2ZTphZnRlciB7XG4gIGJvcmRlci1sZWZ0OiAycHggc29saWQgcmdiYSgwLCAwLCAwLCAuMik7XG59XG5cbi8qIGFuaW1hdGlvbnMgKi9cbkBrZXlmcmFtZXMgc3BpbiB7XG4gIDAlIHsgdHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7IH1cbiAgMTAwJSB7IHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7IH1cbn1cblxuLmxlYWZsZXQtdG9wIC5sZWFmbGV0LWdlb3NlYXJjaC1iYXIsXG4ubGVhZmxldC1ib3R0b20gLmxlYWZsZXQtZ2Vvc2VhcmNoLWJhciB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5sZWFmbGV0LWdlb3NlYXJjaC1iYXIge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBoZWlnaHQ6IGF1dG87XG4gIHdpZHRoOiA0MDBweDtcbiAgbWF4LXdpZHRoOiBjYWxjKDEwMCUgLSAxMjBweCk7XG4gIG1hcmdpbjogMTBweCBhdXRvIDA7XG4gIGN1cnNvcjogYXV0bztcbiAgei1pbmRleDogMTAwMDtcbn1cblxuLmxlYWZsZXQtZ2Vvc2VhcmNoLWJhciBmb3JtIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG59XG5cbi5sZWFmbGV0LWdlb3NlYXJjaC1iYXIgZm9ybSBpbnB1dCB7XG4gIG1pbi13aWR0aDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbi5sZWFmbGV0LWdlb3NlYXJjaC1iYXIgLnJlc3VsdHMuYWN0aXZlOmFmdGVyIHtcbiAgb3BhY2l0eTogLjI7XG59XG5cbi5sZWFmbGV0LXJpZ2h0IC5sZWFmbGV0LWNvbnRyb2wtZ2Vvc2VhcmNoIGZvcm0ge1xuICByaWdodDogMjhweDtcbiAgbGVmdDogaW5pdGlhbDtcbiAgYm9yZGVyLXJhZGl1czogNHB4IDAgMCA0cHg7XG4gIGJvcmRlci1sZWZ0OiBpbmhlcml0O1xuICBib3JkZXItcmlnaHQ6IG5vbmU7XG59XG5cbi5sZWFmbGV0LWJhci1ub3Rmb3VuZCB7XG4gIGZvbnQtc3R5bGU6IGl0YWxpYztcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggYnV0dG9uLnJlc2V0IHtcbiAgY29sb3I6IGJsYWNrO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsaW5lLWhlaWdodDogMjZweDtcbiAgcGFkZGluZzogMCA4cHg7XG4gIHJpZ2h0OiAwO1xuICB0b3A6IDA7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgYm9yZGVyOiBub25lO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlci1yYWRpdXM6IDAgNHB4IDRweCAwO1xufVxuXG4ubGVhZmxldC10b3VjaCAubGVhZmxldC1jb250cm9sLWdlb3NlYXJjaCBidXR0b24ucmVzZXQge1xuICBsaW5lLWhlaWdodDogMzBweDtcbn1cblxuLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2ggYnV0dG9uLnJlc2V0OmhvdmVyIHtcbiAgYmFja2dyb3VuZDogI2Y1ZjVmNTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */#map[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 400px;\n  position: relative;\n  z-index: 1;\n}\n\n  .leaflet-control-geosearch {\n  position: absolute !important;\n  top: 10px !important;\n  left: 50px !important;\n  z-index: 1000 !important;\n}\n  .leaflet-control-geosearch .reset {\n  display: none;\n}\n  .leaflet-control-geosearch form {\n  display: flex;\n  background: white;\n  border: 2px solid rgba(0, 0, 0, 0.2);\n  border-radius: 4px;\n  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);\n}\n  .leaflet-control-geosearch form input {\n  padding: 8px 12px;\n  border: none;\n  outline: none;\n  font-size: 14px;\n  min-width: 250px;\n  background: transparent;\n}\n  .leaflet-control-geosearch form input:focus {\n  outline: none;\n}\n  .leaflet-control-geosearch form button {\n  background: transparent;\n  border: none;\n  padding: 8px 12px;\n  cursor: pointer;\n}\n  .leaflet-control-geosearch form button:hover {\n  background: rgba(0, 0, 0, 0.05);\n}\n  .leaflet-control-geosearch .results {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  right: 0;\n  background: white;\n  border: 2px solid rgba(0, 0, 0, 0.2);\n  border-top: none;\n  border-radius: 0 0 4px 4px;\n  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);\n  max-height: 300px;\n  overflow-y: auto;\n  margin-top: -2px;\n  z-index: 1001;\n}\n  .leaflet-control-geosearch .results.active {\n  display: block;\n}\n  .leaflet-control-geosearch .results > * {\n  padding: 8px 12px;\n  cursor: pointer;\n  border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n  .leaflet-control-geosearch .results > *:hover,   .leaflet-control-geosearch .results > *.active {\n  background: rgba(0, 123, 255, 0.1);\n}\n  .leaflet-control-geosearch .results > *:last-child {\n  border-bottom: none;\n}\n  .modal-body {\n  overflow: visible !important;\n}\n  .leaflet-control-zoom {\n  border: 2px solid rgba(0, 0, 0, 0.2) !important;\n  border-radius: 4px !important;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvc2hhcmVkL21hcC9sZWFmbGV0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0UsV0FBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7QUFBRjs7QUFJRTtFQUNFLDZCQUFBO0VBQ0Esb0JBQUE7RUFDQSxxQkFBQTtFQUNBLHdCQUFBO0FBREo7QUFHSTtFQUNFLGFBQUE7QUFETjtBQUlJO0VBQ0UsYUFBQTtFQUNBLGlCQUFBO0VBQ0Esb0NBQUE7RUFDQSxrQkFBQTtFQUNBLHdDQUFBO0FBRk47QUFJTTtFQUNFLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSx1QkFBQTtBQUZSO0FBSVE7RUFDRSxhQUFBO0FBRlY7QUFNTTtFQUNFLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQUpSO0FBTVE7RUFDRSwrQkFBQTtBQUpWO0FBU0k7RUFDRSxrQkFBQTtFQUNBLFNBQUE7RUFDQSxPQUFBO0VBQ0EsUUFBQTtFQUNBLGlCQUFBO0VBQ0Esb0NBQUE7RUFDQSxnQkFBQTtFQUNBLDBCQUFBO0VBQ0Esd0NBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxhQUFBO0FBUE47QUFTTTtFQUNFLGNBQUE7QUFQUjtBQVVNO0VBQ0UsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsMkNBQUE7QUFSUjtBQVVRO0VBRUUsa0NBQUE7QUFUVjtBQVlRO0VBQ0UsbUJBQUE7QUFWVjtBQWdCRTtFQUNFLDRCQUFBO0FBZEo7QUFpQkU7RUFDRSwrQ0FBQTtFQUNBLDZCQUFBO0FBZkoiLCJzb3VyY2VzQ29udGVudCI6WyJAaW1wb3J0ICd+bGVhZmxldC1nZW9zZWFyY2gvZGlzdC9nZW9zZWFyY2guY3NzJztcclxuXHJcbiNtYXAge1xyXG4gIHdpZHRoOiAxMDAlO1xyXG4gIGhlaWdodDogNDAwcHg7XHJcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gIHotaW5kZXg6IDE7XHJcbn1cclxuXHJcbjo6bmctZGVlcCB7XHJcbiAgLmxlYWZsZXQtY29udHJvbC1nZW9zZWFyY2gge1xyXG4gICAgcG9zaXRpb246IGFic29sdXRlICFpbXBvcnRhbnQ7XHJcbiAgICB0b3A6IDEwcHggIWltcG9ydGFudDtcclxuICAgIGxlZnQ6IDUwcHggIWltcG9ydGFudDtcclxuICAgIHotaW5kZXg6IDEwMDAgIWltcG9ydGFudDtcclxuICAgIFxyXG4gICAgLnJlc2V0IHtcclxuICAgICAgZGlzcGxheTogbm9uZTtcclxuICAgIH1cclxuICAgIFxyXG4gICAgZm9ybSB7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgIGJhY2tncm91bmQ6IHdoaXRlO1xyXG4gICAgICBib3JkZXI6IDJweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMik7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDRweDtcclxuICAgICAgYm94LXNoYWRvdzogMCAxcHggNXB4IHJnYmEoMCwgMCwgMCwgMC40KTtcclxuICAgICAgXHJcbiAgICAgIGlucHV0IHtcclxuICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcclxuICAgICAgICBib3JkZXI6IG5vbmU7XHJcbiAgICAgICAgb3V0bGluZTogbm9uZTtcclxuICAgICAgICBmb250LXNpemU6IDE0cHg7XHJcbiAgICAgICAgbWluLXdpZHRoOiAyNTBweDtcclxuICAgICAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcclxuICAgICAgICBcclxuICAgICAgICAmOmZvY3VzIHtcclxuICAgICAgICAgIG91dGxpbmU6IG5vbmU7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICBidXR0b24ge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xyXG4gICAgICAgIGJvcmRlcjogbm9uZTtcclxuICAgICAgICBwYWRkaW5nOiA4cHggMTJweDtcclxuICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICAgICAgXHJcbiAgICAgICAgJjpob3ZlciB7XHJcbiAgICAgICAgICBiYWNrZ3JvdW5kOiByZ2JhKDAsIDAsIDAsIDAuMDUpO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICAucmVzdWx0cyB7XHJcbiAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgICAgdG9wOiAxMDAlO1xyXG4gICAgICBsZWZ0OiAwO1xyXG4gICAgICByaWdodDogMDtcclxuICAgICAgYmFja2dyb3VuZDogd2hpdGU7XHJcbiAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4yKTtcclxuICAgICAgYm9yZGVyLXRvcDogbm9uZTtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMCAwIDRweCA0cHg7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDVweCByZ2JhKDAsIDAsIDAsIDAuNCk7XHJcbiAgICAgIG1heC1oZWlnaHQ6IDMwMHB4O1xyXG4gICAgICBvdmVyZmxvdy15OiBhdXRvO1xyXG4gICAgICBtYXJnaW4tdG9wOiAtMnB4O1xyXG4gICAgICB6LWluZGV4OiAxMDAxO1xyXG4gICAgICBcclxuICAgICAgJi5hY3RpdmUge1xyXG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICA+ICoge1xyXG4gICAgICAgIHBhZGRpbmc6IDhweCAxMnB4O1xyXG4gICAgICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgcmdiYSgwLCAwLCAwLCAwLjEpO1xyXG4gICAgICAgIFxyXG4gICAgICAgICY6aG92ZXIsXHJcbiAgICAgICAgJi5hY3RpdmUge1xyXG4gICAgICAgICAgYmFja2dyb3VuZDogcmdiYSgwLCAxMjMsIDI1NSwgMC4xKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgJjpsYXN0LWNoaWxkIHtcclxuICAgICAgICAgIGJvcmRlci1ib3R0b206IG5vbmU7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG4gIFxyXG4gIC5tb2RhbC1ib2R5IHtcclxuICAgIG92ZXJmbG93OiB2aXNpYmxlICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIFxyXG4gIC5sZWFmbGV0LWNvbnRyb2wtem9vbSB7XHJcbiAgICBib3JkZXI6IDJweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMikgIWltcG9ydGFudDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDRweCAhaW1wb3J0YW50O1xyXG4gIH1cclxufSJdLCJzb3VyY2VSb290IjoiIn0= */"]
    });
  }
}

/***/ }),

/***/ 2036:
/*!***************************************************************!*\
  !*** ./src/app/shared/modal-import/modal-import.component.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalImportComponent: () => (/* binding */ ModalImportComponent)
/* harmony export */ });
/* harmony import */ var C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! xlsx */ 13857);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ 37581);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/shared.module */ 93887);
/* harmony import */ var _data_table_data_table_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../data-table/data-table.component */ 54252);












function ModalImportComponent_app_data_table_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "app-data-table", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("selectedItemEmitter", function ModalImportComponent_app_data_table_19_Template_app_data_table_selectedItemEmitter_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r1);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r1.getSelectedItems($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("loading", ctx_r1.loading)("itemsList", ctx_r1.titles)("allcontent", ctx_r1.xlsxData);
  }
}
function ModalImportComponent_span_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "span", 21);
  }
}
class ModalImportComponent {
  constructor(activeModal) {
    this.activeModal = activeModal;
    this.actionCompleted = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.selectedItems = [];
    this.loading = false;
    this.xlsxData = [];
    this.temporaryList = [];
  }
  closeModal() {
    this.activeModal.close();
  }
  getSelectedItems(items) {
    this.selectedItems = items;
  }
  search(event) {
    const val = event.target.value.toLowerCase();
    this.xlsxData = this.temporaryList.filter(row => {
      return this.titles.some(field => {
        const cellValue = row[field.prop];
        return cellValue?.toString().toLowerCase().includes(val);
      }) || !val;
    });
  }
  loadDatafromExcel(event) {
    const file = event.target.files[0];
    if (file) {
      const reader = new FileReader();
      reader.readAsBinaryString(file);
      reader.onload = e => {
        let workBook = (0,xlsx__WEBPACK_IMPORTED_MODULE_5__.read)(reader.result, {
          type: 'binary'
        });
        let sheetNames = workBook.SheetNames;
        const rawData = xlsx__WEBPACK_IMPORTED_MODULE_5__.utils.sheet_to_json(workBook.Sheets[sheetNames[0]]);
        this.xlsxData = this.sanitizeExcelDates(rawData);
        this.temporaryList = [...this.xlsxData];
        if (this.xlsxData.length <= 0) {
          this.loading = false;
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            text: 'El archivo no tiene datos para importar',
            confirmButtonColor: '#299cdb'
          });
        }
      };
    }
  }
  createRegisterfromXlsx(xlsxData) {
    var _this = this;
    return (0,C_deportes87_deportes_fe_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.loading = true;
      for (let i = 0; i < xlsxData.length; i++) {
        const row = xlsxData[i];
        let record;
        try {
          record = _this.mapRowFn ? _this.mapRowFn(row, _this.lookupData) : row;
        } catch (err) {
          const missing = err?.missingFields?.join(', ') || 'Faltan datos de referencia';
          const result = yield sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            icon: 'warning',
            title: `Fila ${i + 1} - Datos no encontrados`,
            text: `No se encontraron: ${missing}`,
            showCancelButton: true,
            confirmButtonText: 'Omitir y continuar',
            cancelButtonText: 'Cancelar',
            confirmButtonColor: '#299cdb',
            cancelButtonColor: '#d33'
          });
          if (result.isConfirmed) continue;else break;
        }
        if (_this.checkExistsFn?.(record)) {
          yield sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            icon: 'info',
            title: `Fila ${i + 1}`,
            timer: 2000,
            text: `El registro ya existe.`,
            confirmButtonColor: '#299cdb'
          });
          continue;
        }
        try {
          yield _this.createRecordFn(record);
          sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            toast: true,
            position: 'top-end',
            icon: 'success',
            title: `Fila ${i + 1} creada exitosamente`,
            showConfirmButton: false,
            timer: 2000,
            timerProgressBar: true,
            background: '#d4edda',
            color: '#155724'
          });
        } catch (error) {
          const retryResult = yield sweetalert2__WEBPACK_IMPORTED_MODULE_1___default().fire({
            icon: 'error',
            title: `Error al crear fila ${i + 1}`,
            text: `No se pudo crear el registro. ¿Desea omitir esta fila y continuar?`,
            showCancelButton: true,
            confirmButtonText: 'Omitir y continuar',
            cancelButtonText: 'Cancelar',
            confirmButtonColor: '#299cdb',
            cancelButtonColor: '#d33'
          });
          if (retryResult.isConfirmed) continue;else break;
        }
      }
      _this.loading = false;
      _this.activeModal.close();
      _this.actionCompleted.emit();
    })();
  }
  sanitizeExcelDates(data) {
    const isExcelSerialDate = val => typeof val === 'number' && val > 25569 && val < 60000; // Excel serial date range
    const convertSerialToDateString = serial => {
      const excelEpoch = new Date(1899, 11, 30);
      const date = new Date(excelEpoch.getTime() + serial * 86400000);
      return `${date.getDate().toString().padStart(2, '0')}/` + `${(date.getMonth() + 1).toString().padStart(2, '0')}/` + `${date.getFullYear()}`;
    };
    return data.map(row => {
      const converted = {};
      for (const key in row) {
        const val = row[key];
        if (isExcelSerialDate(val)) {
          converted[key] = convertSerialToDateString(val);
        } else {
          converted[key] = val;
        }
      }
      return converted;
    });
  }
  static {
    this.ɵfac = function ModalImportComponent_Factory(t) {
      return new (t || ModalImportComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbActiveModal));
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
      type: ModalImportComponent,
      selectors: [["app-categorias-import"]],
      inputs: {
        itemsList: "itemsList",
        titles: "titles",
        createRecordFn: "createRecordFn",
        checkExistsFn: "checkExistsFn",
        lookupData: "lookupData",
        mapRowFn: "mapRowFn"
      },
      outputs: {
        actionCompleted: "actionCompleted"
      },
      standalone: true,
      features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵStandaloneFeature"]],
      decls: 26,
      vars: 7,
      consts: [[1, "modal-header"], ["ngbAutofocus", "", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "btn-close", 3, "click", "disabled"], [1, "modal-body"], [1, "alert-primary", "mb-3"], [1, "blockquote", "custom-blockquote", "blockquote-primary", "rounded", "mb-0"], [1, "text-primary"], [1, "text-body", "mb-2"], [1, "row", "d-flex", "justify-content-center", "mb-3"], [1, "col-12", "col-lg-6", "mb-3"], ["placeholder", "Cargar datos desde Excel", "type", "file", "accept", ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel", 1, "form-control", "shadow-none", "rounded-3", 3, "change", "multiple"], [1, "d-flex", "justify-content-between", "rounded-3", "border", "ps-3"], [1, "d-flex", "align-items-center"], [1, "bi", "bi-search"], ["type", "text", "placeholder", "Buscar ...", 1, "form-control", "rounded-3", "border-0", "shadow-none", 3, "keyup"], [3, "loading", "itemsList", "allcontent", "selectedItemEmitter", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-primary", "rounded-3", 3, "click", "disabled"], ["class", "spinner-border spinner-border-sm", "aria-hidden", "true", 4, "ngIf"], ["type", "button", 1, "btn", "btn-outline-secondary", "rounded-3", 3, "click", "disabled"], [3, "selectedItemEmitter", "loading", "itemsList", "allcontent"], ["aria-hidden", "true", 1, "spinner-border", "spinner-border-sm"]],
      template: function ModalImportComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "h5", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Importar Datos");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "button", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_3_listener() {
            return ctx.closeModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "blockquote", 5)(7, "strong", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8, " Nota: ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "p", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10, "Solo se guardar\u00E1n los registros que no existan, los registros que ya existan no se tomaran en cuenta.");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 8)(12, "div", 9)(13, "input", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("change", function ModalImportComponent_Template_input_change_13_listener($event) {
            return ctx.loadDatafromExcel($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 9)(15, "div", 11)(16, "span", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "i", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "input", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup", function ModalImportComponent_Template_input_keyup_18_listener($event) {
            return ctx.search($event);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](19, ModalImportComponent_app_data_table_19_Template, 1, 3, "app-data-table", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "div", 16)(21, "button", 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_21_listener() {
            return ctx.createRegisterfromXlsx(ctx.selectedItems);
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](22, ModalImportComponent_span_22_Template, 1, 0, "span", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "button", 19);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ModalImportComponent_Template_button_click_24_listener() {
            return ctx.closeModal();
          });
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](25, " Cancelar ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("multiple", false);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.xlsxData.length > 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.xlsxData.length <= 0 || ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.loading);
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.loading ? "Importando..." : "Importar", " ");
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.loading);
        }
      },
      dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule, _angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, _data_table_data_table_component__WEBPACK_IMPORTED_MODULE_3__.DataTableComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SharedModule: () => (/* binding */ SharedModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var angularx_flatpickr__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! angularx-flatpickr */ 51595);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ 62223);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ngx-translate/core */ 90852);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-slick-carousel */ 49953);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var _lordicon_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lordicon/element */ 59848);
/* harmony import */ var lottie_web__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lottie-web */ 24335);
/* harmony import */ var lottie_web__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lottie_web__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./breadcrumbs/breadcrumbs.component */ 26364);
/* harmony import */ var _data_table_data_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data-table/data-table.component */ 54252);
/* harmony import */ var _map_leaflet_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map/leaflet.component */ 79843);
/* harmony import */ var _extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./extraspages/terms-conditions/terms-conditions.component */ 35840);
/* harmony import */ var _extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./extraspages/privacy-policy/privacy-policy.component */ 72998);
/* harmony import */ var _data_header_data_header_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./data-header/data-header.component */ 50576);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 37580);






// Swiper Slider

// Counter






/* extrapages stanalone */




;
class SharedModule {
  constructor() {
    (0,_lordicon_element__WEBPACK_IMPORTED_MODULE_0__.defineElement)((lottie_web__WEBPACK_IMPORTED_MODULE_7___default().loadAnimation));
  }
  static {
    this.ɵfac = function SharedModule_Factory(t) {
      return new (t || SharedModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineNgModule"]({
      type: SharedModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjector"]({
      providers: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.DatePipe],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, ngx_countup__WEBPACK_IMPORTED_MODULE_11__.CountUpModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__.SlickCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbPaginationModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbTypeaheadModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbTooltipModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_14__.FlatpickrModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__.NgSelectModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__.TranslateModule,
      // NgbToastModule,
      // NgbProgressbarModule,
      // FlatpickrModule.forRoot(),
      // NgApexchartsModule,
      // SimplebarAngularModule,
      // LightboxModule,
      // FeatherModule.pick(allIcons),
      _extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_4__.TermsConditionsComponent, _extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_5__.PrivacyPolicyComponent]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵsetNgModuleScope"](SharedModule, {
    declarations: [_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbsComponent,
    // ScrollspyDirective,
    // LandingScrollspyDirective,
    _data_header_data_header_component__WEBPACK_IMPORTED_MODULE_6__.DataHeaderComponent, _data_table_data_table_component__WEBPACK_IMPORTED_MODULE_2__.DataTableComponent, _map_leaflet_component__WEBPACK_IMPORTED_MODULE_3__.LeafletComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule, ngx_countup__WEBPACK_IMPORTED_MODULE_11__.CountUpModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_13__.SlickCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbPaginationModule, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbTypeaheadModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbTooltipModule, angularx_flatpickr__WEBPACK_IMPORTED_MODULE_14__.FlatpickrModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__.NgSelectModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_16__.TranslateModule,
    // NgbToastModule,
    // NgbProgressbarModule,
    // FlatpickrModule.forRoot(),
    // NgApexchartsModule,
    // SimplebarAngularModule,
    // LightboxModule,
    // FeatherModule.pick(allIcons),
    _extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_4__.TermsConditionsComponent, _extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_5__.PrivacyPolicyComponent],
    exports: [_breadcrumbs_breadcrumbs_component__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbsComponent, _data_table_data_table_component__WEBPACK_IMPORTED_MODULE_2__.DataTableComponent, _data_header_data_header_component__WEBPACK_IMPORTED_MODULE_6__.DataHeaderComponent, _extraspages_terms_conditions_terms_conditions_component__WEBPACK_IMPORTED_MODULE_4__.TermsConditionsComponent, _extraspages_privacy_policy_privacy_policy_component__WEBPACK_IMPORTED_MODULE_5__.PrivacyPolicyComponent]
  });
})();

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AnalaticsStatComponent: () => (/* binding */ AnalaticsStatComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-feather */ 54341);




const _c0 = a0 => ({
  "text-danger": a0
});
const _c1 = (a0, a1) => ({
  "ri-arrow-up-line": a0,
  "ri-arrow-down-line": a1
});
function AnalaticsStatComponent_Conditional_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "K");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
function AnalaticsStatComponent_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "sec");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
function AnalaticsStatComponent_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "%");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
function AnalaticsStatComponent_Conditional_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "sec");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
function AnalaticsStatComponent_Conditional_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, " (title == 'Avg. Visit Duration') ");
  }
}
/**
 * Analatics stat Component
 */
class AnalaticsStatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function AnalaticsStatComponent_Factory(t) {
      return new (t || AnalaticsStatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: AnalaticsStatComponent,
      selectors: [["app-analatics-stat"]],
      inputs: {
        title: "title",
        value: "value",
        icon: "icon",
        persantage: "persantage",
        profit: "profit"
      },
      decls: 24,
      vars: 13,
      consts: [[1, "card", "card-animate"], [1, "card-body"], [1, "d-flex", "justify-content-between"], [1, "fw-medium", "text-muted", "mb-0"], [1, "mt-4", "fs-22", "ff-secondary", "fw-semibold"], [1, "counter-value", 3, "countUp", "options"], [1, "mb-0", "text-muted", "text-truncate"], [1, "badge", "bg-light", "text-success", "mb-0", 3, "ngClass"], [1, "align-middle", 3, "ngClass"], [1, "avatar-sm", "flex-shrink-0"], [1, "avatar-title", "bg-info-subtle", "rounded-circle", "fs-2"], [1, "text-info", "feather-icon-align", 3, "name"]],
      template: function AnalaticsStatComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div")(4, "p", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h4", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, AnalaticsStatComponent_Conditional_8_Template, 2, 0, "span")(9, AnalaticsStatComponent_Conditional_9_Template, 2, 0)(10, AnalaticsStatComponent_Conditional_10_Template, 2, 0)(11, AnalaticsStatComponent_Conditional_11_Template, 2, 0)(12, AnalaticsStatComponent_Conditional_12_Template, 1, 0);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "%");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 6)(16, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "i", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " vs. previous month");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div")(21, "div", 9)(22, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "i-feather", 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__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx.value)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](8, ctx.title == "Users" || ctx.title == "Sessions" ? 8 : ctx.title == "Avg. Visit Duration" ? 9 : ctx.title == "Bounce Rate" ? 10 : ctx.title == "Avg. Visit Duration" ? 11 : 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](8, _c0, ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](10, _c1, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.persantage, " % ");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", ctx.icon);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective, angular_feather__WEBPACK_IMPORTED_MODULE_3__.FeatherComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 20994:
/*!**************************************************************************!*\
  !*** ./src/app/shared/widget/analytics/top-pages/top-pages.component.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TopPagesComponent: () => (/* binding */ TopPagesComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

function TopPagesComponent_For_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "a", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.complexName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.total);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r1.totalIncome, " Bs");
  }
}
/**
 * Top Pages Component
 */
class TopPagesComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function TopPagesComponent_Factory(t) {
      return new (t || TopPagesComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: TopPagesComponent,
      selectors: [["app-top-pages"]],
      inputs: {
        List: "List"
      },
      decls: 12,
      vars: 0,
      consts: [[1, "table", "align-middle", "table-borderless", "table-centered", "table-nowrap", "mb-0"], [1, "text-muted", "table-light"], ["scope", "col", 2, "width", "62"], ["scope", "col"], ["href", "javascript:void(0);", 1, "text-body"]],
      template: function TopPagesComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Complejo");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Reservas");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Ingreso");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](10, TopPagesComponent_For_11_Template, 8, 3, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.List);
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 36106:
/*!****************************************************************************!*\
  !*** ./src/app/shared/widget/crm/closing-deals/closing-deals.component.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClosingDealsComponent: () => (/* binding */ ClosingDealsComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

function ClosingDealsComponent_For_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "a", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.userName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.amount, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.date);
  }
}
/**
 * Closing Deals Component
 */
class ClosingDealsComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function ClosingDealsComponent_Factory(t) {
      return new (t || ClosingDealsComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: ClosingDealsComponent,
      selectors: [["app-closing-deals"]],
      inputs: {
        ClosingDeals: "ClosingDeals"
      },
      decls: 14,
      vars: 0,
      consts: [[1, "table", "table-bordered", "table-nowrap", "align-middle", "mb-0"], ["scope", "col", 2, "width", "30%"], ["scope", "col", 2, "width", "20%"], ["alt", "", 1, "avatar-xs", "rounded-circle", "me-2", 3, "src"], ["href", "javascript:void(0);", 1, "text-body", "fw-medium"]],
      template: function ClosingDealsComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead")(2, "tr")(3, "th", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Deal Name");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Sales Rep");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Amount");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Close Date");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](12, ClosingDealsComponent_For_13_Template, 11, 5, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.ClosingDeals);
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CrmStatComponent: () => (/* binding */ CrmStatComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);



const _c0 = (a0, a1) => ({
  "ri-arrow-up-circle-line text-success": a0,
  "ri-arrow-down-circle-line text-danger": a1
});
/**
 * Crm Stat Component
 */
class CrmStatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function CrmStatComponent_Factory(t) {
      return new (t || CrmStatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: CrmStatComponent,
      selectors: [["app-crm-stat"]],
      inputs: {
        title: "title",
        value: "value",
        icon: "icon",
        profit: "profit",
        sign: "sign",
        percentage: "percentage"
      },
      decls: 13,
      vars: 12,
      consts: [[1, "col"], [1, "py-4", "px-3"], [1, "text-muted", "text-uppercase", "fs-13", "mb-3"], [1, "fs-18", "float-end", "align-middle", 3, "ngClass"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0"], [1, "flex-grow-1", "ms-3"], [1, "mb-0"], [1, "counter-value", 3, "countUp", "options"]],
      template: function CrmStatComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h5", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "i", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4)(6, "div", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "i");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "h2", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
          _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"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](9, _c0, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("", ctx.icon, " fs-3 text-muted");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.sign);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx.value)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.percentage, " ");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 80756:
/*!**************************************************************************!*\
  !*** ./src/app/shared/widget/crm/deals-status/deals-status.component.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DealsStatusComponent: () => (/* binding */ DealsStatusComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);


const _c0 = (a0, a1, a2) => ({
  "bg-warning-subtle text-warning": a0,
  "bg-danger-subtle text-danger": a1,
  "bg-info-subtle text-info ": a2
});
function DealsStatusComponent_For_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "img", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "a", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td")(10, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td")(13, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.date);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.userName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](7, _c0, data_r1.status === "Intro Call", data_r1.status === "Stuck", data_r1.status === "New Lead"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.value, "");
  }
}
/**
 * Deals Status Component
 */
class DealsStatusComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function DealsStatusComponent_Factory(t) {
      return new (t || DealsStatusComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: DealsStatusComponent,
      selectors: [["app-deals-status"]],
      inputs: {
        DealsStatus: "DealsStatus"
      },
      decls: 16,
      vars: 0,
      consts: [[1, "table", "table-borderless", "table-hover", "table-nowrap", "align-middle", "mb-0"], [1, "table-light"], [1, "text-muted"], ["scope", "col"], ["scope", "col", 2, "width", "20%"], ["scope", "col", 2, "width", "16%"], ["scope", "col", 2, "width", "12%"], ["alt", "", 1, "avatar-xs", "rounded-circle", "me-2", 3, "src"], ["href", "javascript:void(0);", 1, "text-body", "fw-medium"], [1, "badge", "bg-success-subtle", "text-success", "p-2", 3, "ngClass"], [1, "text-nowrap"]],
      template: function DealsStatusComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr", 2)(3, "th", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Name");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Last Contacted");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Sales Representative");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Status");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Deal Value");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](14, DealsStatusComponent_For_15_Template, 15, 11, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.DealsStatus);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 69706:
/*!****************************************************************************************!*\
  !*** ./src/app/shared/widget/crm/upcoming-activities/upcoming-activities.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UpcomingActivitiesComponent: () => (/* binding */ UpcomingActivitiesComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);


function UpcomingActivitiesComponent_For_1_For_17_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const user_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("ngbTooltip", user_r1.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", user_r1.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  }
}
function UpcomingActivitiesComponent_For_1_For_17_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 15)(1, "div", 16)(2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const user_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("avatar-title rounded-circle ", user_r1.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", user_r1.name == null ? null : user_r1.name.charAt(0), " ");
  }
}
function UpcomingActivitiesComponent_For_1_For_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, UpcomingActivitiesComponent_For_1_For_17_Conditional_1_Template, 2, 2, "a", 13)(2, UpcomingActivitiesComponent_For_1_For_17_Conditional_2_Template, 4, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const user_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](1, user_r1.profile ? 1 : 2);
  }
}
function UpcomingActivitiesComponent_For_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(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, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7)(10, "h5", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10)(15, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](16, UpcomingActivitiesComponent_For_1_For_17_Template, 3, 1, "div", 12, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const data_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _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.day);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.time);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.content);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](data_r2.users);
  }
}
/**
 * Upcoming Activites Component
 */
class UpcomingActivitiesComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function UpcomingActivitiesComponent_Factory(t) {
      return new (t || UpcomingActivitiesComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: UpcomingActivitiesComponent,
      selectors: [["app-upcoming-activities"]],
      inputs: {
        UpcomingActivities: "UpcomingActivities"
      },
      decls: 2,
      vars: 0,
      consts: [[1, "list-group-item", "ps-0"], [1, "row", "align-items-center", "g-3"], [1, "col-auto"], [1, "avatar-sm", "p-1", "py-2", "h-auto", "bg-light", "rounded-3"], [1, "text-center"], [1, "mb-0"], [1, "text-muted"], [1, "col"], [1, "text-muted", "mt-0", "mb-1", "fs-13"], ["href", "javascript:void(0);", 1, "text-body", "fs-14", "mb-0"], [1, "col-sm-auto"], [1, "avatar-group"], [1, "avatar-group-item"], ["href", "javascript: void(0);", "placement", "top", 1, "d-block", 3, "ngbTooltip"], ["alt", "", 1, "rounded-circle", "avatar-xxs", 3, "src"], ["href", "javascript: void(0);", 1, "d-block"], [1, "avatar-xxs"]],
      template: function UpcomingActivitiesComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](0, UpcomingActivitiesComponent_For_1_Template, 18, 4, "li", 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.UpcomingActivities);
        }
      },
      dependencies: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.NgbTooltip],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CryptoStatComponent: () => (/* binding */ CryptoStatComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);



const _c0 = (a0, a1) => ({
  "bg-success-subtle text-success": a0,
  "bg-danger-subtle text-danger": a1
});
const _c1 = (a0, a1) => ({
  "ri-arrow-up-s-fill": a0,
  "ri-arrow-down-s-fill": a1
});
/**
 * Crypto Stat Component
 */
class CryptoStatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function CryptoStatComponent_Factory(t) {
      return new (t || CryptoStatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: CryptoStatComponent,
      selectors: [["app-crypto-stat"]],
      inputs: {
        title: "title",
        value: "value",
        color: "color",
        icon: "icon",
        persantage: "persantage",
        profit: "profit"
      },
      decls: 17,
      vars: 18,
      consts: [[1, "card"], [1, "card-body"], [1, "d-flex", "align-items-center"], [1, "avatar-sm", "flex-shrink-0"], [1, "flex-grow-1", "ms-3"], [1, "text-uppercase", "fw-semibold", "fs-12", "text-muted", "mb-1"], [1, "mb-0"], [1, "counter-value", 3, "countUp", "options"], [1, "flex-shrink-0", "align-self-end"], [1, "badge", 3, "ngClass"], [1, "align-middle", "me-1", 3, "ngClass"]],
      template: function CryptoStatComponent_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, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4)(7, "p", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "h4", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "span", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 8)(13, "span", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "i", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("avatar-title bg-light text-", ctx.color, " rounded-circle fs-3");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("", ctx.icon, " align-middle");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx.value)("options", ctx.option);
          _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, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](15, _c1, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.persantage, " %");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CurrenciesComponent: () => (/* binding */ CurrenciesComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);


const _c0 = (a0, a1) => ({
  "text-success": a0,
  "text-danger": a1
});
const _c1 = (a0, a1) => ({
  "mdi-trending-up": a0,
  "mdi-trending-down": a1
});
function CurrenciesComponent_For_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div", 2)(3, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div")(6, "h6", 5);
    _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")(11, "h6", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "i", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td")(19, "a", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Trade");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.coinName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.price, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](8, _c0, data_r1.profit === "up", data_r1.profit === "down"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](11, _c1, data_r1.profit === "up", data_r1.profit === "down"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.change);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.balance, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.coin);
  }
}
/**
 * Currencies Component
 */
class CurrenciesComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function CurrenciesComponent_Factory(t) {
      return new (t || CurrenciesComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: CurrenciesComponent,
      selectors: [["app-currencies"]],
      inputs: {
        Currencies: "Currencies"
      },
      decls: 18,
      vars: 0,
      consts: [[1, "table", "table-hover", "table-borderless", "table-centered", "align-middle", "table-nowrap", "mb-0"], [1, "text-muted", "bg-light-subtle"], [1, "d-flex", "align-items-center"], [1, "me-2"], ["alt", "", 1, "avatar-xxs", 3, "src"], [1, "fs-14", "mb-0"], [1, "fs-13", "mb-0", 3, "ngClass"], [1, "mdi", "align-middle", "me-1", 3, "ngClass"], ["href", "crypto/buy-sell", 1, "btn", "btn-sm", "btn-soft-secondary"]],
      template: function CurrenciesComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Coin Name");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Price");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "24h Change");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Total Balance");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Total Coin");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Actions");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](16, CurrenciesComponent_For_17_Template, 21, 14, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.Currencies);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 74563:
/*!***********************************************************************!*\
  !*** ./src/app/shared/widget/crypto/news-feed/news-feed.component.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NewsFeedComponent: () => (/* binding */ NewsFeedComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

function NewsFeedComponent_For_1_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, "h6", 4)(5, "a", 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__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "i", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.content);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r1.date, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.time);
  }
}
/**
 * News Feed Component
 */
class NewsFeedComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function NewsFeedComponent_Factory(t) {
      return new (t || NewsFeedComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: NewsFeedComponent,
      selectors: [["app-news-feed"]],
      inputs: {
        NewsFeed: "NewsFeed"
      },
      decls: 2,
      vars: 0,
      consts: [[1, "d-flex", "align-middle"], [1, "flex-shrink-0"], ["alt", "", 1, "rounded", "img-fluid", 2, "height", "60px", 3, "src"], [1, "flex-grow-1", "ms-3"], [1, "mb-1", "lh-base"], ["href", "javascript:void(0);", 1, "text-body"], [1, "text-muted", "fs-12", "mb-0"], [1, "mdi", "mdi-circle-medium", "align-middle", "mx-1"]],
      template: function NewsFeedComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](0, NewsFeedComponent_For_1_Template, 11, 4, "div", 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.NewsFeed);
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 88847:
/*!*********************************************************************************!*\
  !*** ./src/app/shared/widget/crypto/top-performers/top-performers.component.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TopPerformersComponent: () => (/* binding */ TopPerformersComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);


const _c0 = (a0, a1) => ({
  "text-success": a0,
  "text-danger": a1
});
function TopPerformersComponent_For_1_Conditional_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "+");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "+");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
  }
  if (rf & 2) {
    const data_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.balance, "(");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r1.percentage, "%) ");
  }
}
function TopPerformersComponent_For_1_Conditional_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
  }
  if (rf & 2) {
    const data_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.balance, "(");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r1.percentage, "%) ");
  }
}
function TopPerformersComponent_For_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 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, "h6", 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);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "h6", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, TopPerformersComponent_For_1_Conditional_12_Template, 6, 2)(13, TopPerformersComponent_For_1_Conditional_13_Template, 6, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.coinName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.price, " Billions");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.change, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c0, data_r1.profit === "up", data_r1.profit === "down"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](12, data_r1.profit == "up" ? 12 : 13);
  }
}
/**
 * Top Perfomers Component
 */
class TopPerformersComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function TopPerformersComponent_Factory(t) {
      return new (t || TopPerformersComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: TopPerformersComponent,
      selectors: [["app-top-performers"]],
      inputs: {
        TopPerformers: "TopPerformers"
      },
      decls: 2,
      vars: 0,
      consts: [[1, "list-group-item", "d-flex", "align-items-center"], [1, "flex-shrink-0"], ["alt", "", 1, "avatar-xs", 3, "src"], [1, "flex-grow-1", "ms-3"], [1, "fs-14", "mb-1"], [1, "text-muted", "mb-0"], [1, "flex-shrink-0", "text-end"], [1, "fs-12", "mb-0", 3, "ngClass"]],
      template: function TopPerformersComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](0, TopPerformersComponent_For_1_Template, 14, 9, "li", 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.TopPerformers);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 95570:
/*!********************************************************************************!*\
  !*** ./src/app/shared/widget/dashboard/best-selling/best-selling.component.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BestSellingComponent: () => (/* binding */ BestSellingComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

function BestSellingComponent_For_3_Conditional_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 7)(1, "span", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.stock);
  }
}
function BestSellingComponent_For_3_Conditional_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const data_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.stock);
  }
}
function BestSellingComponent_For_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div", 1)(3, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div")(6, "h5", 4)(7, "a", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td")(12, "h5", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Price");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td")(17, "h5", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Orders");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, BestSellingComponent_For_3_Conditional_22_Template, 3, 1, "h5", 7)(23, BestSellingComponent_For_3_Conditional_23_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Stock");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "td")(27, "h5", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Amount");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.pName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.date);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.price, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.orders);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](22, data_r1.stock == "Out of stock" ? 22 : 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.amount, "");
  }
}
class BestSellingComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function BestSellingComponent_Factory(t) {
      return new (t || BestSellingComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: BestSellingComponent,
      selectors: [["app-best-selling"]],
      inputs: {
        BestSelling: "BestSelling"
      },
      decls: 4,
      vars: 0,
      consts: [[1, "table", "table-hover", "table-centered", "align-middle", "table-nowrap", "mb-0"], [1, "d-flex", "align-items-center"], [1, "avatar-sm", "bg-light", "rounded", "p-1", "me-2"], ["alt", "", 1, "img-fluid", "d-block", 3, "src"], [1, "fs-14", "my-1"], ["href", "ecommerce/product-detail/1", 1, "text-body"], [1, "text-muted"], [1, "fs-14", "my-1", "fw-normal"], [1, "badge", "bg-danger-subtle", "text-danger"]],
      template: function BestSellingComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](2, BestSellingComponent_For_3_Template, 31, 7, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _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.BestSelling);
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 81770:
/*!**********************************************************************************!*\
  !*** ./src/app/shared/widget/dashboard/recent-orders/recent-orders.component.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RecentOrdersComponent: () => (/* binding */ RecentOrdersComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);


const _c0 = (a0, a1) => ({
  "bg-warning-subtle text-warning": a0,
  "bg-danger-subtle text-danger": a1
});
function RecentOrdersComponent_For_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "a", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td")(5, "div", 4)(6, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "img", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 7);
    _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")(13, "span", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "td")(18, "span", 9);
    _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, "h5", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.customer);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.product);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.amount, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.vendor);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](10, _c0, data_r1.status === "Pending", data_r1.status === "Unpaid"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.rating);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("(", data_r1.average, " votes)");
  }
}
class RecentOrdersComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function RecentOrdersComponent_Factory(t) {
      return new (t || RecentOrdersComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: RecentOrdersComponent,
      selectors: [["app-recent-orders"]],
      inputs: {
        RecentSelling: "RecentSelling"
      },
      decls: 20,
      vars: 0,
      consts: [[1, "table", "table-borderless", "table-centered", "align-middle", "table-nowrap", "mb-0"], [1, "text-muted", "table-light"], ["scope", "col"], ["href", "ecommerce/order-details", 1, "fw-medium", "text-body"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "me-2"], ["alt", "", 1, "avatar-xs", "rounded-circle", 3, "src"], [1, "flex-grow-1"], [1, "text-primary"], [1, "badge", "bg-success-subtle", "text-success", 3, "ngClass"], [1, "fs-14", "fw-medium", "mb-0"], [1, "text-muted", "fs-11", "ms-1"]],
      template: function RecentOrdersComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Order ID");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Customer");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Product");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Amount");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Vendor");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Status");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Rating");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](18, RecentOrdersComponent_For_19_Template, 25, 13, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.RecentSelling);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__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 */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);



const _c0 = (a0, a1, a2) => ({
  "text-success": a0,
  "text-danger": a1,
  "text-muted": a2
});
const _c1 = (a0, a1) => ({
  "ri-arrow-right-up-line": a0,
  "ri-arrow-right-down-line": a1
});
const _c2 = (a0, a1, a2, a3) => ({
  "bg-secondary-subtle": a0,
  "bg-primary-subtle": a1,
  "bg-success-subtle ": a2,
  "bg-warning-subtle ": a3
});
const _c3 = (a0, a1, a2, a3) => ({
  "text-secondary": a0,
  "text-primary": a1,
  "text-success ": a2,
  "text-warning ": a3
});
function StatComponent_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "+");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r0.persantage, " % ");
  }
}
function StatComponent_Conditional_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r0.persantage, " % ");
  }
}
function StatComponent_Conditional_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "$");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "K");
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx_r0.value)("options", ctx_r0.option);
  }
}
function StatComponent_Conditional_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "M");
    _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"]("countUp", ctx_r0.value)("options", ctx_r0.option);
  }
}
function StatComponent_Conditional_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 16);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx_r0.value);
  }
}
class StatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function StatComponent_Factory(t) {
      return new (t || StatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: StatComponent,
      selectors: [["app-stat"]],
      inputs: {
        title: "title",
        value: "value",
        icon: "icon",
        persantage: "persantage",
        profit: "profit",
        link: "link"
      },
      decls: 23,
      vars: 28,
      consts: [[1, ""], [1, "card", "card-animate"], [1, "card-body"], [1, "d-flex", "align-items-center"], [1, "flex-grow-1", "overflow-hidden"], [1, "text-uppercase", "fw-medium", "text-muted", "text-truncate", "mb-0"], [1, "flex-shrink-0"], [1, "fs-14", "mb-0", 3, "ngClass"], [1, "fs-13", "align-middle", "float-start", 3, "ngClass"], [1, "d-flex", "align-items-end", "justify-content-between", "mt-4"], [1, "fs-20", "fw-semibold", "ff-secondary", "mb-4"], ["href", "javascript:void(0);", 1, "text-decoration-underline"], [1, "avatar-sm", "flex-shrink-0"], [1, "avatar-title", "rounded", "fs-3", 3, "ngClass"], [3, "ngClass"], [1, "counter-value", 3, "countUp", "options"], [1, "counter-value", 3, "countUp"]],
      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, "div", 4)(5, "p", 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, "h5", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "i", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, StatComponent_Conditional_10_Template, 3, 1)(11, StatComponent_Conditional_11_Template, 3, 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9)(13, "div")(14, "h4", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, StatComponent_Conditional_15_Template, 5, 2)(16, StatComponent_Conditional_16_Template, 3, 2)(17, StatComponent_Conditional_17_Template, 1, 1);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "a", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12)(21, "span", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "i", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](11, _c0, ctx.profit === "up", ctx.profit === "down", ctx.profit === "equal"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](15, _c1, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](10, ctx.profit == "up" || ctx.profit == "equal" ? 10 : 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](15, ctx.title == "TOTAL EARNINGS" || ctx.title == "MY BALANCE" ? 15 : ctx.title == "CUSTOMERS" ? 16 : 17);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.link);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction4"](18, _c2, ctx.icon === "bx-dollar-circle", ctx.icon === "bx-shopping-bag", ctx.icon === "bx-user-circle", ctx.icon === "bx-wallet"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("bx ", ctx.icon, "");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction4"](23, _c3, ctx.icon === "bx-dollar-circle", ctx.icon === "bx-shopping-bag", ctx.icon === "bx-user-circle", ctx.icon === "bx-wallet"));
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 39294:
/*!******************************************************************************!*\
  !*** ./src/app/shared/widget/dashboard/top-selling/top-selling.component.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TopSellingComponent: () => (/* binding */ TopSellingComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);

function TopSellingComponent_For_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div", 1)(3, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div")(6, "h5", 4)(7, "a", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td")(12, "span", 6);
    _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, "p", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Stock");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td")(20, "span", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "td")(23, "h5", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "i", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.pName);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.subtitle);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.type);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.stock);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("$", data_r1.amount, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r1.percentage, "%");
  }
}
class TopSellingComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function TopSellingComponent_Factory(t) {
      return new (t || TopSellingComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: TopSellingComponent,
      selectors: [["app-top-selling"]],
      inputs: {
        TopSelling: "TopSelling"
      },
      decls: 4,
      vars: 0,
      consts: [[1, "table", "table-hover", "table-centered", "align-middle", "table-nowrap", "mb-0"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "me-2"], ["alt", "", 1, "avatar-sm", "p-2", 3, "src"], [1, "fs-14", "my-1"], ["href", "ecommerce/seller-details", 1, "text-body"], [1, "text-muted"], [1, "mb-0"], [1, "fs-14", "mb-0"], [1, "ri-bar-chart-fill", "text-success", "fs-16", "align-middle", "mx-2"]],
      template: function TopSellingComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](2, TopSellingComponent_For_3_Template, 26, 7, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _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.TopSelling);
        }
      },
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NftStatComponent: () => (/* binding */ NftStatComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-countup */ 67305);




const _c0 = (a0, a1) => ({
  "ri-arrow-up-line": a0,
  "ri-arrow-down-line": a1
});
/**
 * Nft-Stat Component
 */
class NftStatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function NftStatComponent_Factory(t) {
      return new (t || NftStatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: NftStatComponent,
      selectors: [["app-nft-stat"]],
      inputs: {
        icon: "icon",
        title: "title",
        value: "value",
        persantage: "persantage",
        profit: "profit",
        bg_color: "bg_color"
      },
      decls: 32,
      vars: 15,
      consts: [[1, "card", "card-height-100"], [1, "card-body"], [1, "float-end"], ["ngbDropdown", "", 1, "dropdown", "card-header-dropdown"], ["href", "javascript:void(0);", "data-bs-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "text-body", "dropdown-btn", "arrow-none"], [1, "text-muted", "fs-18"], [1, "mdi", "mdi-dots-vertical", "align-middle"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], ["href", "javascript:void(0);", 1, "dropdown-item"], [1, "d-flex", "align-items-center"], [1, "avatar-sm", "flex-shrink-0"], [1, "avatar-title", "bg-primary-subtle", "rounded", "fs-3"], [1, "flex-grow-1", "ps-3"], [1, "text-muted", "text-uppercase", "fs-13", "mb-0"], [1, "mt-4", "pt-1"], [1, "fs-22", "fw-semibold", "ff-secondary", "mb-0"], [1, "counter-value", 3, "countUp", "options"], [1, "mt-4", "mb-0", "text-muted"], [1, "align-middle", 3, "ngClass"]],
      template: function NftStatComponent_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, "a", 4)(5, "span", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "i", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7)(8, "a", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Today");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "a", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Last Week");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Last Month");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "a", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Current Year");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 9)(17, "div", 10)(18, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "i");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12)(21, "h5", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14)(24, "h4", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "$");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "span", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "p", 17)(28, "span");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "i", 18);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " vs. previous month");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("bx ", ctx.icon, " text-primary");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx.value)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate2"]("badge bg-", ctx.bg_color, "-subtle text-", ctx.bg_color, " mb-0 me-1");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](12, _c0, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.persantage, " % ");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbDropdownMenu, ngx_countup__WEBPACK_IMPORTED_MODULE_3__.CountUpDirective],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 90134:
/*!***********************************************************************************!*\
  !*** ./src/app/shared/widget/projects/active-project/active-project.component.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ActiveProjectComponent: () => (/* binding */ ActiveProjectComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);



const _c0 = (a0, a1, a2) => ({
  "bg-warning-subtle text-warning": a0,
  "bg-danger-subtle text-danger": a1,
  "bg-success-subtle text-success": a2
});
function ActiveProjectComponent_For_17_For_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11)(1, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const user_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", user_r1.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  }
}
function ActiveProjectComponent_For_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "a", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td")(8, "div", 7)(9, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "ngb-progressbar", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td")(13, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](14, ActiveProjectComponent_For_17_For_15_Template, 3, 1, "div", 11, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td")(17, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const data_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.Pname);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r2.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.Uname);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", data_r2.progress, "%");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", data_r2.progress)("striped", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](data_r2.assignee);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](9, _c0, data_r2.status === "Progress", data_r2.status === "Pending", data_r2.status === "Completed"));
    _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__["ɵɵtextInterpolate"](data_r2.date);
  }
}
/**
 * Active Project Component
 */
class ActiveProjectComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function ActiveProjectComponent_Factory(t) {
      return new (t || ActiveProjectComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: ActiveProjectComponent,
      selectors: [["app-active-project"]],
      inputs: {
        ActiveProjects: "ActiveProjects"
      },
      decls: 18,
      vars: 0,
      consts: [[1, "table", "table-nowrap", "table-centered", "align-middle"], [1, "bg-light", "text-muted"], ["scope", "col"], ["scope", "col", 2, "width", "10%"], [1, "fw-medium"], ["alt", "", 1, "avatar-xxs", "rounded-circle", "me-1", 3, "src"], ["href", "javascript: void(0);", 1, "text-body"], [1, "d-flex", "align-items-center"], [1, "flex-shrink-0", "me-1", "text-muted", "fs-13"], [1, "progress", "progress-sm", "flex-grow-1", 2, "height", "6px", 3, "value", "striped"], [1, "avatar-group", "flex-nowrap"], [1, "avatar-group-item"], [1, "badge", 3, "ngClass"], [1, "text-muted"], ["href", "javascript: void(0);", 1, "d-inline-block"], ["alt", "", 1, "rounded-circle", "avatar-xxs", 3, "src"]],
      template: function ActiveProjectComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Project Name");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Project Lead");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Progress");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Assignee");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Status");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Due Date");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](16, ActiveProjectComponent_For_17_Template, 21, 13, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.ActiveProjects);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbProgressbar],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 77388:
/*!*********************************************************************!*\
  !*** ./src/app/shared/widget/projects/my-task/my-task.component.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MyTaskComponent: () => (/* binding */ MyTaskComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);



const _c0 = (a0, a1) => ({
  "bg-warning-subtle text-warning": a0,
  "bg-danger-subtle text-danger": a1
});
function MyTaskComponent_For_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td")(9, "span", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td")(12, "a", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "img", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r1.name, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.dedline);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c0, data_r1.status === "Progress", data_r1.status === "Pending"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r1.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("ngbTooltip", data_r1.assignee.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", data_r1.assignee.profile, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  }
}
/**
 * MyTask Component
 */
class MyTaskComponent {
  constructor() {}
  ngOnInit() {}
  static {
    this.ɵfac = function MyTaskComponent_Factory(t) {
      return new (t || MyTaskComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: MyTaskComponent,
      selectors: [["app-my-task"]],
      inputs: {
        MyTask: "MyTask"
      },
      decls: 14,
      vars: 0,
      consts: [[1, "table", "table-borderless", "table-nowrap", "table-centered", "align-middle", "mb-0"], [1, "table-light", "text-muted"], ["scope", "col"], [1, "form-check"], ["type", "checkbox", "value", "", "id", "checkTask1", 1, "form-check-input", "fs-15"], ["for", "checkTask1", 1, "form-check-label", "ms-1"], [1, "text-muted"], [1, "badge", "bg-success-subtle", "text-success", 3, "ngClass"], ["href", "javascript: void(0);", "data-bs-toggle", "tooltip", "placement", "top", 1, "d-inline-block", 3, "ngbTooltip"], ["alt", "", 1, "rounded-circle", "avatar-xxs", 3, "src"]],
      template: function MyTaskComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Name");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Dedline");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Status");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Assignee");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "tbody");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](12, MyTaskComponent_For_13_Template, 14, 9, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.MyTask);
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbTooltip],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ProjectsStatComponent: () => (/* binding */ ProjectsStatComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-feather */ 54341);




const _c0 = (a0, a1, a2) => ({
  "bg-primary-subtle text-primary": a0,
  "bg-secondary-subtle text-secondary": a1,
  "bg-warning-subtle text-warning": a2
});
const _c1 = (a0, a1, a2) => ({
  "text-primary": a0,
  "text-secondary": a1,
  "text-warning": a2
});
const _c2 = (a0, a1) => ({
  "bg-success-subtle text-success": a0,
  "bg-danger-subtle text-danger": a1
});
const _c3 = (a0, a1) => ({
  "ri-arrow-up-s-line": a0,
  "ri-arrow-down-s-line": a1
});
/**
 * Projects Stat Component
 */
class ProjectsStatComponent {
  constructor() {
    this.num = 0;
    this.option = {
      startVal: this.num,
      useEasing: true,
      duration: 2,
      decimalPlaces: 2
    };
  }
  ngOnInit() {}
  static {
    this.ɵfac = function ProjectsStatComponent_Factory(t) {
      return new (t || ProjectsStatComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
      type: ProjectsStatComponent,
      selectors: [["app-projects-stat"]],
      inputs: {
        title: "title",
        value: "value",
        icon: "icon",
        persantage: "persantage",
        profit: "profit",
        month: "month"
      },
      decls: 17,
      vars: 24,
      consts: [[1, "card", "card-animate"], [1, "card-body"], [1, "d-flex", "align-items-center"], [1, "avatar-sm", "flex-shrink-0"], [1, "avatar-title", "text-primary", "rounded-2", "fs-2", 3, "ngClass"], [1, "feather-icon-align", 3, "name", "ngClass"], [1, "flex-grow-1", "overflow-hidden", "ms-3"], [1, "text-uppercase", "fw-medium", "text-muted", "text-truncate", "mb-3"], [1, "d-flex", "align-items-center", "mb-3"], [1, "flex-grow-1", "mb-0"], [1, "counter-value", 3, "countUp", "options"], [1, "badge", "fs-12", 3, "ngClass"], [1, "fs-13", "align-middle", "me-1", 3, "ngClass"], [1, "text-muted", "text-truncate", "mb-0"]],
      template: function ProjectsStatComponent_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, "span", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i-feather", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 6)(7, "p", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8)(10, "h4", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "span", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "span", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "i", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](10, _c0, ctx.icon === "briefcase", ctx.icon === "award", ctx.icon === "clock"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", ctx.icon);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](14, _c1, ctx.icon === "briefcase", ctx.icon === "award", ctx.icon === "clock"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("countUp", ctx.value)("options", ctx.option);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](18, _c2, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](21, _c3, ctx.profit === "up", ctx.profit === "down"));
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.persantage, " %");
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.month, " this month");
        }
      },
      dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, ngx_countup__WEBPACK_IMPORTED_MODULE_2__.CountUpDirective, angular_feather__WEBPACK_IMPORTED_MODULE_3__.FeatherComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

/***/ 43314:
/*!*************************************************************!*\
  !*** ./src/app/shared/widget/projects/team-members/data.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   status1: () => (/* binding */ status1),
/* harmony export */   status2: () => (/* binding */ status2),
/* harmony export */   status3: () => (/* binding */ status3),
/* harmony export */   status4: () => (/* binding */ status4),
/* harmony export */   status5: () => (/* binding */ status5),
/* harmony export */   status6: () => (/* binding */ status6),
/* harmony export */   status7: () => (/* binding */ status7)
/* harmony export */ });
/**
 *  Status1
 */
const status1 = {
  series: [50],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#7c8dfb"]
};
/**
 *  Status2
 */
const status2 = {
  series: [45],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#7c8dfb"]
};
/**
 *  Status3
 */
const status3 = {
  series: [75],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#7c8dfb"]
};
/**
 *  Status4
 */
const status4 = {
  series: [25],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#f6c164"]
};
/**
 *  Status5
 */
const status5 = {
  series: [60],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#7c8dfb"]
};
/**
 *  Status6
 */
const status6 = {
  series: [85],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#56d597"]
};
/**
 *  Status7
 */
const status7 = {
  series: [70],
  chart: {
    type: 'radialBar',
    width: 36,
    height: 36,
    sparkline: {
      enabled: true
    }
  },
  dataLabels: {
    enabled: false
  },
  plotOptions: {
    radialBar: {
      hollow: {
        margin: 0,
        size: '50%'
      },
      track: {
        margin: 1
      },
      dataLabels: {
        show: false
      }
    }
  },
  colors: ["#7c8dfb"]
};


/***/ }),

/***/ 86368:
/*!*******************************************************************************!*\
  !*** ./src/app/shared/widget/projects/team-members/team-members.component.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TeamMembersComponent: () => (/* binding */ TeamMembersComponent)
/* harmony export */ });
/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data */ 43314);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ng-apexcharts */ 33117);



/**
 * Team Members Component
 */
class TeamMembersComponent {
  constructor() {}
  ngOnInit() {
    /**
     * Fetches the data
     */
    this.fetchData();
  }
  /**
  * Fetches the data
  */
  fetchData() {
    this.status1 = _data__WEBPACK_IMPORTED_MODULE_0__.status1;
    this.status2 = _data__WEBPACK_IMPORTED_MODULE_0__.status2;
    this.status3 = _data__WEBPACK_IMPORTED_MODULE_0__.status3;
    this.status4 = _data__WEBPACK_IMPORTED_MODULE_0__.status4;
    this.status5 = _data__WEBPACK_IMPORTED_MODULE_0__.status5;
    this.status6 = _data__WEBPACK_IMPORTED_MODULE_0__.status6;
    this.status7 = _data__WEBPACK_IMPORTED_MODULE_0__.status7;
  }
  static {
    this.ɵfac = function TeamMembersComponent_Factory(t) {
      return new (t || TeamMembersComponent)();
    };
  }
  static {
    this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
      type: TeamMembersComponent,
      selectors: [["app-team-members"]],
      inputs: {
        TeamMembers: "TeamMembers"
      },
      decls: 131,
      vars: 35,
      consts: [[1, "table", "table-borderless", "table-nowrap", "align-middle", "mb-0"], [1, "table-light", "text-muted"], ["scope", "col"], [1, "d-flex"], ["src", "assets/images/users/avatar-1.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], [1, "fs-13", "mb-0"], [1, "fs-12", "mb-0", "text-muted"], [1, "mb-0"], [1, "text-muted"], [2, "width", "5%"], ["dir", "ltr", "dir", "ltr", 1, "apex-charts", 3, "series", "chart", "dataLabels", "plotOptions", "colors"], ["src", "assets/images/users/avatar-2.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], ["src", "assets/images/users/avatar-7.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], ["src", "assets/images/users/avatar-4.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], ["src", "assets/images/users/avatar-6.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], ["src", "assets/images/users/avatar-5.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"], ["src", "assets/images/users/avatar-3.jpg", "alt", "", 1, "avatar-xs", "rounded-3", "me-2"]],
      template: function TeamMembersComponent_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 0)(1, "thead", 1)(2, "tr")(3, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Member");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Hours");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Tasks");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 2);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Status");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "tbody")(12, "tr")(13, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "img", 4);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div")(16, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Donald Risher");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Product Manager");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "td")(21, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "110h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " 258 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "td", 9);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "tr")(30, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "img", 11);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div")(33, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "Jansh Brown");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "Lead Developer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "td")(38, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "83h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, " 105 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "tr")(47, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](48, "img", 12);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "div")(50, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "Carroll Adams");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "Lead Designer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "td")(55, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, "58h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, " 75 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](62, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "tr")(64, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](65, "img", 13);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div")(67, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, "William Pinto");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](70, "UI/UX Designer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "td")(72, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](73, "96h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](75, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](77, " 85 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](79, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "tr")(81, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](82, "img", 14);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "div")(84, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](85, "Garry Fournier");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, "Web Designer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "td")(89, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](90, "76h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](92, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](94, " 69 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](95, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](96, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](97, "tr")(98, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](99, "img", 15);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](100, "div")(101, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](102, "Susan Denton");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](103, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](104, "Lead Designer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "td")(106, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](107, "123h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](108, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](109, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](110, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](111, " 658 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](112, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](113, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](114, "tr")(115, "td", 3);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](116, "img", 16);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](117, "div")(118, "h5", 5);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](119, "Joseph Jackson");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](120, "p", 6);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](121, "React Developer");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](122, "td")(123, "h6", 7);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](124, "117h : ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](125, "span", 8);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](126, "150h");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](127, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](128, " 125 ");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](129, "td");
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](130, "apx-chart", 10);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
        }
        if (rf & 2) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](28);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status1.series)("chart", ctx.status1.chart)("dataLabels", ctx.status1.dataLabels)("plotOptions", ctx.status1.plotOptions)("colors", ctx.status1.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status2.series)("chart", ctx.status2.chart)("dataLabels", ctx.status2.dataLabels)("plotOptions", ctx.status2.plotOptions)("colors", ctx.status2.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status3.series)("chart", ctx.status3.chart)("dataLabels", ctx.status3.dataLabels)("plotOptions", ctx.status3.plotOptions)("colors", ctx.status3.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status4.series)("chart", ctx.status4.chart)("dataLabels", ctx.status4.dataLabels)("plotOptions", ctx.status4.plotOptions)("colors", ctx.status4.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status5.series)("chart", ctx.status5.chart)("dataLabels", ctx.status5.dataLabels)("plotOptions", ctx.status5.plotOptions)("colors", ctx.status5.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status6.series)("chart", ctx.status6.chart)("dataLabels", ctx.status6.dataLabels)("plotOptions", ctx.status6.plotOptions)("colors", ctx.status6.colors);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("series", ctx.status7.series)("chart", ctx.status7.chart)("dataLabels", ctx.status7.dataLabels)("plotOptions", ctx.status7.plotOptions)("colors", ctx.status7.colors);
        }
      },
      dependencies: [ng_apexcharts__WEBPACK_IMPORTED_MODULE_2__.ChartComponent],
      styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
    });
  }
}

/***/ }),

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

__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_20__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 48418);
/* harmony import */ var ngx_countup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ngx-countup */ 67305);
/* harmony import */ var angular_feather__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! angular-feather */ 54341);
/* harmony import */ var angular_feather_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! angular-feather/icons */ 51474);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ng-apexcharts */ 33117);
/* harmony import */ var _dashboard_best_selling_best_selling_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dashboard/best-selling/best-selling.component */ 95570);
/* harmony import */ var _dashboard_top_selling_top_selling_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dashboard/top-selling/top-selling.component */ 39294);
/* harmony import */ var _dashboard_recent_orders_recent_orders_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dashboard/recent-orders/recent-orders.component */ 81770);
/* harmony import */ var _dashboard_stat_stat_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dashboard/stat/stat.component */ 22188);
/* harmony import */ var _analytics_top_pages_top_pages_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./analytics/top-pages/top-pages.component */ 20994);
/* harmony import */ var _analytics_analatics_stat_analatics_stat_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./analytics/analatics-stat/analatics-stat.component */ 29474);
/* harmony import */ var _crm_crm_stat_crm_stat_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./crm/crm-stat/crm-stat.component */ 38306);
/* harmony import */ var _crm_deals_status_deals_status_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./crm/deals-status/deals-status.component */ 80756);
/* harmony import */ var _crm_upcoming_activities_upcoming_activities_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./crm/upcoming-activities/upcoming-activities.component */ 69706);
/* harmony import */ var _crm_closing_deals_closing_deals_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./crm/closing-deals/closing-deals.component */ 36106);
/* harmony import */ var _crypto_crypto_stat_crypto_stat_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./crypto/crypto-stat/crypto-stat.component */ 39711);
/* harmony import */ var _crypto_currencies_currencies_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./crypto/currencies/currencies.component */ 46975);
/* harmony import */ var _crypto_top_performers_top_performers_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./crypto/top-performers/top-performers.component */ 88847);
/* harmony import */ var _crypto_news_feed_news_feed_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./crypto/news-feed/news-feed.component */ 74563);
/* harmony import */ var _projects_projects_stat_projects_stat_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./projects/projects-stat/projects-stat.component */ 26864);
/* harmony import */ var _projects_active_project_active_project_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./projects/active-project/active-project.component */ 90134);
/* harmony import */ var _projects_my_task_my_task_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./projects/my-task/my-task.component */ 77388);
/* harmony import */ var _projects_team_members_team_members_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./projects/team-members/team-members.component */ 86368);
/* harmony import */ var _nft_nft_stat_nft_stat_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./nft/nft-stat/nft-stat.component */ 64678);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/core */ 37580);


// Counter

// Feather Icon


// Apex Chart Package






















class WidgetModule {
  static {
    this.ɵfac = function WidgetModule_Factory(t) {
      return new (t || WidgetModule)();
    };
  }
  static {
    this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineNgModule"]({
      type: WidgetModule
    });
  }
  static {
    this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineInjector"]({
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.CommonModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbTooltipModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbDropdownModule, ngx_countup__WEBPACK_IMPORTED_MODULE_22__.CountUpModule, angular_feather__WEBPACK_IMPORTED_MODULE_23__.FeatherModule.pick(angular_feather_icons__WEBPACK_IMPORTED_MODULE_24__.allIcons), ng_apexcharts__WEBPACK_IMPORTED_MODULE_25__.NgApexchartsModule]
    });
  }
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵsetNgModuleScope"](WidgetModule, {
    declarations: [_dashboard_best_selling_best_selling_component__WEBPACK_IMPORTED_MODULE_0__.BestSellingComponent, _dashboard_top_selling_top_selling_component__WEBPACK_IMPORTED_MODULE_1__.TopSellingComponent, _dashboard_recent_orders_recent_orders_component__WEBPACK_IMPORTED_MODULE_2__.RecentOrdersComponent, _analytics_top_pages_top_pages_component__WEBPACK_IMPORTED_MODULE_4__.TopPagesComponent, _dashboard_stat_stat_component__WEBPACK_IMPORTED_MODULE_3__.StatComponent, _analytics_analatics_stat_analatics_stat_component__WEBPACK_IMPORTED_MODULE_5__.AnalaticsStatComponent, _crm_crm_stat_crm_stat_component__WEBPACK_IMPORTED_MODULE_6__.CrmStatComponent, _crm_deals_status_deals_status_component__WEBPACK_IMPORTED_MODULE_7__.DealsStatusComponent, _crm_upcoming_activities_upcoming_activities_component__WEBPACK_IMPORTED_MODULE_8__.UpcomingActivitiesComponent, _crm_closing_deals_closing_deals_component__WEBPACK_IMPORTED_MODULE_9__.ClosingDealsComponent, _crypto_crypto_stat_crypto_stat_component__WEBPACK_IMPORTED_MODULE_10__.CryptoStatComponent, _crypto_currencies_currencies_component__WEBPACK_IMPORTED_MODULE_11__.CurrenciesComponent, _crypto_top_performers_top_performers_component__WEBPACK_IMPORTED_MODULE_12__.TopPerformersComponent, _crypto_news_feed_news_feed_component__WEBPACK_IMPORTED_MODULE_13__.NewsFeedComponent, _projects_projects_stat_projects_stat_component__WEBPACK_IMPORTED_MODULE_14__.ProjectsStatComponent, _projects_active_project_active_project_component__WEBPACK_IMPORTED_MODULE_15__.ActiveProjectComponent, _projects_my_task_my_task_component__WEBPACK_IMPORTED_MODULE_16__.MyTaskComponent, _projects_team_members_team_members_component__WEBPACK_IMPORTED_MODULE_17__.TeamMembersComponent, _nft_nft_stat_nft_stat_component__WEBPACK_IMPORTED_MODULE_18__.NftStatComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.CommonModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbTooltipModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbDropdownModule, ngx_countup__WEBPACK_IMPORTED_MODULE_22__.CountUpModule, angular_feather__WEBPACK_IMPORTED_MODULE_23__.FeatherModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_25__.NgApexchartsModule],
    exports: [_dashboard_best_selling_best_selling_component__WEBPACK_IMPORTED_MODULE_0__.BestSellingComponent, _dashboard_top_selling_top_selling_component__WEBPACK_IMPORTED_MODULE_1__.TopSellingComponent, _dashboard_recent_orders_recent_orders_component__WEBPACK_IMPORTED_MODULE_2__.RecentOrdersComponent, _analytics_top_pages_top_pages_component__WEBPACK_IMPORTED_MODULE_4__.TopPagesComponent, _dashboard_stat_stat_component__WEBPACK_IMPORTED_MODULE_3__.StatComponent, _analytics_analatics_stat_analatics_stat_component__WEBPACK_IMPORTED_MODULE_5__.AnalaticsStatComponent, _crm_crm_stat_crm_stat_component__WEBPACK_IMPORTED_MODULE_6__.CrmStatComponent, _crm_deals_status_deals_status_component__WEBPACK_IMPORTED_MODULE_7__.DealsStatusComponent, _crm_upcoming_activities_upcoming_activities_component__WEBPACK_IMPORTED_MODULE_8__.UpcomingActivitiesComponent, _crm_closing_deals_closing_deals_component__WEBPACK_IMPORTED_MODULE_9__.ClosingDealsComponent, _crypto_crypto_stat_crypto_stat_component__WEBPACK_IMPORTED_MODULE_10__.CryptoStatComponent, _crypto_currencies_currencies_component__WEBPACK_IMPORTED_MODULE_11__.CurrenciesComponent, _crypto_top_performers_top_performers_component__WEBPACK_IMPORTED_MODULE_12__.TopPerformersComponent, _crypto_news_feed_news_feed_component__WEBPACK_IMPORTED_MODULE_13__.NewsFeedComponent, _projects_projects_stat_projects_stat_component__WEBPACK_IMPORTED_MODULE_14__.ProjectsStatComponent, _projects_active_project_active_project_component__WEBPACK_IMPORTED_MODULE_15__.ActiveProjectComponent, _projects_my_task_my_task_component__WEBPACK_IMPORTED_MODULE_16__.MyTaskComponent, _projects_team_members_team_members_component__WEBPACK_IMPORTED_MODULE_17__.TeamMembersComponent, _nft_nft_stat_nft_stat_component__WEBPACK_IMPORTED_MODULE_18__.NftStatComponent]
  });
})();

/***/ }),

/***/ 90746:
/*!**********************************************************!*\
  !*** ./src/app/store/File Manager/filemanager_action.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   addFile: () => (/* binding */ addFile),
/* harmony export */   addFileFailure: () => (/* binding */ addFileFailure),
/* harmony export */   addFileSuccess: () => (/* binding */ addFileSuccess),
/* harmony export */   addFolder: () => (/* binding */ addFolder),
/* harmony export */   addFolderFailure: () => (/* binding */ addFolderFailure),
/* harmony export */   addFolderSuccess: () => (/* binding */ addFolderSuccess),
/* harmony export */   deleteFile: () => (/* binding */ deleteFile),
/* harmony export */   deleteFileFailure: () => (/* binding */ deleteFileFailure),
/* harmony export */   deleteFileSuccess: () => (/* binding */ deleteFileSuccess),
/* harmony export */   deleteFolder: () => (/* binding */ deleteFolder),
/* harmony export */   deleteFolderFailure: () => (/* binding */ deleteFolderFailure),
/* harmony export */   deleteFolderSuccess: () => (/* binding */ deleteFolderSuccess),
/* harmony export */   fetchFileData: () => (/* binding */ fetchFileData),
/* harmony export */   fetchFileFailure: () => (/* binding */ fetchFileFailure),
/* harmony export */   fetchFileSuccess: () => (/* binding */ fetchFileSuccess),
/* harmony export */   fetchFolderData: () => (/* binding */ fetchFolderData),
/* harmony export */   fetchFolderFailure: () => (/* binding */ fetchFolderFailure),
/* harmony export */   fetchFolderSuccess: () => (/* binding */ fetchFolderSuccess),
/* harmony export */   updateFile: () => (/* binding */ updateFile),
/* harmony export */   updateFileFailure: () => (/* binding */ updateFileFailure),
/* harmony export */   updateFileSuccess: () => (/* binding */ updateFileSuccess),
/* harmony export */   updateFolder: () => (/* binding */ updateFolder),
/* harmony export */   updateFolderFailure: () => (/* binding */ updateFolderFailure),
/* harmony export */   updateFolderSuccess: () => (/* binding */ updateFolderSuccess)
/* harmony export */ });
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ngrx/store */ 81383);

// Folder
const fetchFolderData = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch Folder');
const fetchFolderSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch Folder Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const fetchFolderFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch Folder Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// File
const fetchFileData = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch File');
const fetchFileSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch File Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const fetchFileFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Fetch File Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Add Folder Data
const addFolder = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add Folder', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const addFolderSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add Folder Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const addFolderFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add Folder Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Update Folder Data
const updateFolder = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update Folder', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const updateFolderSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update Folder Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const updateFolderFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update Folder Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Delete Folder Data
const deleteFolder = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete Folder', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const deleteFolderSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete Folder Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const deleteFolderFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete Folder Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Add File Data
const addFile = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add File', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const addFileSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add File Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const addFileFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Add File Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Update File Data
const updateFile = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update File', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const updateFileSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update File Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const updateFileFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Update File Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
// Delete File Data
const deleteFile = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete File', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const deleteFileSuccess = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete File Success', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const deleteFileFailure = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Data] Delete File Failure', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());

/***/ }),

/***/ 71258:
/*!***********************************************************!*\
  !*** ./src/app/store/File Manager/filemanager_reducer.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FileManagerReducer: () => (/* binding */ FileManagerReducer),
/* harmony export */   initialState: () => (/* binding */ initialState),
/* harmony export */   reducer: () => (/* binding */ reducer)
/* harmony export */ });
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _filemanager_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filemanager_action */ 90746);


const initialState = {
  Folder: [],
  File: [],
  loading: false,
  error: null
};
const FileManagerReducer = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.createReducer)(initialState,
// Folder
(0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFolderData, state => {
  return {
    ...state,
    loading: true,
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFolderSuccess, (state, {
  Folder
}) => {
  return {
    ...state,
    Folder,
    loading: false
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFolderFailure, (state, {
  error
}) => {
  return {
    ...state,
    error,
    loading: false
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.addFolderSuccess, (state, {
  newData
}) => {
  return {
    ...state,
    Folder: [newData, ...state.Folder],
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.updateFolderSuccess, (state, {
  updatedData
}) => {
  return {
    ...state,
    Folder: state.Folder.map(Folders => Folders.id === updatedData.id ? updatedData : Folders),
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.deleteFolderSuccess, (state, {
  id
}) => {
  const updatedFolder = state.Folder.filter(Folder => !id.includes(Folder.id));
  return {
    ...state,
    Folder: updatedFolder,
    error: null
  };
}),
// File
(0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFileData, state => {
  return {
    ...state,
    loading: true,
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFileSuccess, (state, {
  File
}) => {
  return {
    ...state,
    File,
    loading: false
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.fetchFileFailure, (state, {
  error
}) => {
  return {
    ...state,
    error,
    loading: false
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.addFileSuccess, (state, {
  newData
}) => {
  return {
    ...state,
    File: [newData, ...state.File],
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.updateFileSuccess, (state, {
  updatedData
}) => {
  return {
    ...state,
    File: state.File.map(Files => Files.id === updatedData.id ? updatedData : Files),
    error: null
  };
}), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.on)(_filemanager_action__WEBPACK_IMPORTED_MODULE_0__.deleteFileSuccess, (state, {
  id
}) => {
  const updatedFile = state.File.filter(File => !id.includes(File.id));
  return {
    ...state,
    File: updatedFile,
    error: null
  };
}));
// Selector
function reducer(state, action) {
  return FileManagerReducer(state, action);
}

/***/ }),

/***/ 8144:
/*!********************************!*\
  !*** ./src/app/store/index.ts ***!
  \********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   rootReducer: () => (/* binding */ rootReducer)
/* harmony export */ });
/* harmony import */ var _layouts_layout_reducers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layouts/layout-reducers */ 4776);
/* harmony import */ var _File_Manager_filemanager_reducer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./File Manager/filemanager_reducer */ 71258);


const rootReducer = {
  layout: _layouts_layout_reducers__WEBPACK_IMPORTED_MODULE_0__.layoutReducer,
  FileManager: _File_Manager_filemanager_reducer__WEBPACK_IMPORTED_MODULE_1__.FileManagerReducer
  // authentication: authenticationReducer,
};

/***/ }),

/***/ 68951:
/*!************************************************!*\
  !*** ./src/app/store/layouts/layout-action.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   changeBackgrounImage: () => (/* binding */ changeBackgrounImage),
/* harmony export */   changeDataPreloader: () => (/* binding */ changeDataPreloader),
/* harmony export */   changeLayoutPosition: () => (/* binding */ changeLayoutPosition),
/* harmony export */   changeLayoutWidth: () => (/* binding */ changeLayoutWidth),
/* harmony export */   changeMode: () => (/* binding */ changeMode),
/* harmony export */   changeSidebarColor: () => (/* binding */ changeSidebarColor),
/* harmony export */   changeSidebarImage: () => (/* binding */ changeSidebarImage),
/* harmony export */   changeSidebarSize: () => (/* binding */ changeSidebarSize),
/* harmony export */   changeSidebarView: () => (/* binding */ changeSidebarView),
/* harmony export */   changeSidebarVisibility: () => (/* binding */ changeSidebarVisibility),
/* harmony export */   changeTheme: () => (/* binding */ changeTheme),
/* harmony export */   changeThemeColor: () => (/* binding */ changeThemeColor),
/* harmony export */   changeTopbar: () => (/* binding */ changeTopbar),
/* harmony export */   changelayout: () => (/* binding */ changelayout)
/* harmony export */ });
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ngrx/store */ 81383);

const changelayout = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set Layout', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeTheme = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set Theme', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeThemeColor = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set Theme Color', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeMode = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set Mode', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeLayoutWidth = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set LayoutWidth', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeLayoutPosition = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set LayoutPosition', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeTopbar = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set TopbarColor', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeSidebarSize = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set SidebarSize', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeSidebarView = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set SidebarView', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeSidebarColor = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set SidebarColor', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeSidebarImage = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set SidebarImage', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeBackgrounImage = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set backgroundImage', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeSidebarVisibility = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set SidebarVisibility', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());
const changeDataPreloader = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createAction)('[Layout] Set Preloader', (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.props)());

/***/ }),

/***/ 4776:
/*!**************************************************!*\
  !*** ./src/app/store/layouts/layout-reducers.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   initialState: () => (/* binding */ initialState),
/* harmony export */   layoutReducer: () => (/* binding */ layoutReducer),
/* harmony export */   reducer: () => (/* binding */ reducer)
/* harmony export */ });
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ngrx/store */ 81383);
/* harmony import */ var _layout_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout-action */ 68951);
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./layout */ 33808);



// IntialState
const initialState = {
  LAYOUT: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_TYPES.VERTICAL,
  LAYOUT_THEME: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_THEME.MODERN,
  LAYOUT_THEME_COLOR: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_THEME_COLOR.PURPLE,
  LAYOUT_MODE: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_MODE.LIGHTMODE,
  LAYOUT_WIDTH: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_WIDTH_TYPES.FLUID,
  LAYOUT_POSITION: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_POSITION_TYPES.FIXED,
  TOPBAR: _layout__WEBPACK_IMPORTED_MODULE_1__.LAYOUT_TOPBAR_COLOR_TYPES.DARK,
  SIDEBAR_COLOR: _layout__WEBPACK_IMPORTED_MODULE_1__.SIDEBAR_COLOR.GRADIENT,
  SIDEBAR_SIZE: _layout__WEBPACK_IMPORTED_MODULE_1__.SIDEBAR_SIZE.LARGE,
  SIDEBAR_VIEW: _layout__WEBPACK_IMPORTED_MODULE_1__.SIDEBAR_VIEW.DETACHED,
  SIDEBAR_IMAGE: _layout__WEBPACK_IMPORTED_MODULE_1__.SIDEBAR_IMAGE.NONE,
  SIDEBAR_VISIBILITY: _layout__WEBPACK_IMPORTED_MODULE_1__.SIDEBAR_VISIBILITY.SHOW,
  DATA_PRELOADER: _layout__WEBPACK_IMPORTED_MODULE_1__.PERLOADER_TYPES.DISABLE,
  BACKGROUND_IMAGE: _layout__WEBPACK_IMPORTED_MODULE_1__.BACKGROUND_IMAGE.NONE
};
// Reducer
const layoutReducer = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.createReducer)(initialState, (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changelayout, (state, action) => ({
  ...state,
  LAYOUT: action.layout
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeTheme, (state, action) => ({
  ...state,
  LAYOUT_THEME: action.theme
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeThemeColor, (state, action) => ({
  ...state,
  LAYOUT_THEME_COLOR: action.themecolor
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeMode, (state, action) => ({
  ...state,
  LAYOUT_MODE: action.mode
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeLayoutWidth, (state, action) => ({
  ...state,
  LAYOUT_WIDTH: action.layoutWidth
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeLayoutPosition, (state, action) => ({
  ...state,
  LAYOUT_POSITION: action.layoutPosition
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeTopbar, (state, action) => ({
  ...state,
  TOPBAR: action.topbarColor
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeSidebarImage, (state, action) => ({
  ...state,
  SIDEBAR_IMAGE: action.sidebarImage
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeDataPreloader, (state, action) => ({
  ...state,
  DATA_PRELOADER: action.Preloader
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeSidebarColor, (state, action) => ({
  ...state,
  SIDEBAR_COLOR: action.sidebarColor
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeSidebarSize, (state, action) => ({
  ...state,
  SIDEBAR_SIZE: action.sidebarSize
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeSidebarView, (state, action) => ({
  ...state,
  SIDEBAR_VIEW: action.sidebarView
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeBackgrounImage, (state, action) => ({
  ...state,
  BACKGROUND_IMAGE: action.backgroundImage
})), (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.on)(_layout_action__WEBPACK_IMPORTED_MODULE_0__.changeSidebarVisibility, (state, action) => ({
  ...state,
  SIDEBAR_VISIBILITY: action.sidebarvisibility
})));
// Selector
function reducer(state, action) {
  return layoutReducer(state, action);
}

/***/ }),

/***/ 84784:
/*!**************************************************!*\
  !*** ./src/app/store/layouts/layout-selector.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   getBackgroundImage: () => (/* binding */ getBackgroundImage),
/* harmony export */   getLayoutMode: () => (/* binding */ getLayoutMode),
/* harmony export */   getLayoutPosition: () => (/* binding */ getLayoutPosition),
/* harmony export */   getLayoutState: () => (/* binding */ getLayoutState),
/* harmony export */   getLayoutTheme: () => (/* binding */ getLayoutTheme),
/* harmony export */   getLayoutWith: () => (/* binding */ getLayoutWith),
/* harmony export */   getPreloader: () => (/* binding */ getPreloader),
/* harmony export */   getSidebarColor: () => (/* binding */ getSidebarColor),
/* harmony export */   getSidebarImage: () => (/* binding */ getSidebarImage),
/* harmony export */   getSidebarSize: () => (/* binding */ getSidebarSize),
/* harmony export */   getSidebarView: () => (/* binding */ getSidebarView),
/* harmony export */   getSidebarVisibilitye: () => (/* binding */ getSidebarVisibilitye),
/* harmony export */   getTheme: () => (/* binding */ getTheme),
/* harmony export */   getThemeColor: () => (/* binding */ getThemeColor),
/* harmony export */   getTopbarColor: () => (/* binding */ getTopbarColor)
/* harmony export */ });
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ngrx/store */ 81383);

const getLayoutState = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createFeatureSelector)('layout');
const getLayoutTheme = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT);
const getTheme = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT_THEME);
const getThemeColor = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT_THEME_COLOR);
const getLayoutMode = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT_MODE);
const getLayoutWith = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT_WIDTH);
const getLayoutPosition = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.LAYOUT_POSITION);
const getTopbarColor = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.TOPBAR);
const getSidebarSize = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.SIDEBAR_SIZE);
const getSidebarColor = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.SIDEBAR_COLOR);
const getSidebarView = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.SIDEBAR_VIEW);
const getSidebarImage = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.SIDEBAR_IMAGE);
const getBackgroundImage = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.BACKGROUND_IMAGE);
const getSidebarVisibilitye = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.SIDEBAR_VISIBILITY);
const getPreloader = (0,_ngrx_store__WEBPACK_IMPORTED_MODULE_0__.createSelector)(getLayoutState, state => state.DATA_PRELOADER);

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BACKGROUND_IMAGE: () => (/* binding */ BACKGROUND_IMAGE),
/* harmony export */   LAYOUT_MODE: () => (/* binding */ LAYOUT_MODE),
/* harmony export */   LAYOUT_POSITION_TYPES: () => (/* binding */ LAYOUT_POSITION_TYPES),
/* harmony export */   LAYOUT_THEME: () => (/* binding */ LAYOUT_THEME),
/* harmony export */   LAYOUT_THEME_COLOR: () => (/* binding */ LAYOUT_THEME_COLOR),
/* harmony export */   LAYOUT_TOPBAR_COLOR_TYPES: () => (/* binding */ LAYOUT_TOPBAR_COLOR_TYPES),
/* harmony export */   LAYOUT_TYPES: () => (/* binding */ LAYOUT_TYPES),
/* harmony export */   LAYOUT_WIDTH_TYPES: () => (/* binding */ LAYOUT_WIDTH_TYPES),
/* harmony export */   PERLOADER_TYPES: () => (/* binding */ PERLOADER_TYPES),
/* harmony export */   SIDEBAR_COLOR: () => (/* binding */ SIDEBAR_COLOR),
/* harmony export */   SIDEBAR_IMAGE: () => (/* binding */ SIDEBAR_IMAGE),
/* harmony export */   SIDEBAR_SIZE: () => (/* binding */ SIDEBAR_SIZE),
/* harmony export */   SIDEBAR_VIEW: () => (/* binding */ SIDEBAR_VIEW),
/* harmony export */   SIDEBAR_VISIBILITY: () => (/* binding */ SIDEBAR_VISIBILITY)
/* harmony export */ });
const LAYOUT_TYPES = {
  VERTICAL: "vertical",
  HORIZONTAL: "horizontal",
  TWOCOLUMN: "twocolumn",
  SEMIBOX: "semibox"
};
const LAYOUT_THEME = {
  DEFAULT: "default",
  SAAS: "saas",
  CORPORATE: "corporate",
  GALAXY: "galaxy",
  MATERIAL: "material",
  CREATIVE: "creative",
  MINIMAL: "minimal",
  MODERN: "modern",
  INTERACTIVE: "interactive",
  CLASSIC: "classic",
  VINTAGE: "vintage"
};
const LAYOUT_THEME_COLOR = {
  DEFAULT: "default",
  GREEN: "green",
  PURPLE: "purple",
  BLUE: "blue"
};
const LAYOUT_MODE = {
  LIGHTMODE: "light",
  DARKMODE: "dark"
};
const LAYOUT_WIDTH_TYPES = {
  FLUID: "fluid",
  BOXED: "boxed"
};
const LAYOUT_POSITION_TYPES = {
  FIXED: "fixed",
  SCROLLABLE: "scrollable"
};
const LAYOUT_TOPBAR_COLOR_TYPES = {
  LIGHT: "light",
  DARK: "dark"
};
const SIDEBAR_SIZE = {
  LARGE: "lg",
  MEDIUM: "md",
  SMALL: "sm",
  SMALLHOVER: "sm-hover"
};
const SIDEBAR_VIEW = {
  DEFAULT: "default",
  DETACHED: "detached"
};
const SIDEBAR_COLOR = {
  LIGHT: "light",
  DARK: "dark",
  GRADIENT: "gradient",
  GRADIENT2: "gradient-2",
  GRADIENT3: "gradient-3",
  GRADIENT4: "gradient-4"
};
const SIDEBAR_IMAGE = {
  NONE: "none",
  IMAGE1: "image-1",
  IMAGE2: "image-2",
  IMAGE3: "image-3",
  IMAGE4: "image-4"
};
const BACKGROUND_IMAGE = {
  NONE: "none",
  IMG1: "img-1",
  IMG2: "img-2",
  IMG3: "img-3"
};
const SIDEBAR_VISIBILITY = {
  SHOW: "show"
};
const PERLOADER_TYPES = {
  ENABLE: "enable",
  DISABLE: "disable"
};


/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   environment: () => (/* binding */ environment)
/* harmony export */ });
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
const environment = {
  production: false,
  subscriberId: "66acdd389313f20322afd3bb",
  applicationIdentifier: "uo-XSwSEFlyM",
  apiLoginUrl: 'http://181.177.143.185:8080/api',
  backendUrl: "http://181.177.143.187:8085/api",
  //backendUrl: "http://181.177.143.187:8085/api",
  assetsUrl: "http://181.177.143.187:4205",
  EmailJS: {
    idService: 'service_auth',
    idTemplate: 'template_6htavso',
    publicKey: 'X9362U1QpUzthcHGT',
    idServiceReservation: 'service_8fw4clg',
    idTemplateReservation: 'template_cwykhov',
    publicKeyReservation: 'LvRUPzE2ZiLeZy93H'
  }
};

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ 80436);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app/app.module */ 50635);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ 45312);
// / <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));

/***/ })

},
/******/ __webpack_require__ => { // webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
/******/ __webpack_require__.O(0, ["vendor"], () => (__webpack_exec__(50886), __webpack_exec__(1643), __webpack_exec__(84429)));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);
//# sourceMappingURL=main.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit