(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_tabs_readings_readings-history_readings-history_module_ts"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   READINGS_USL_LIST: () => (/* reexport safe */ _readings_usl_list__WEBPACK_IMPORTED_MODULE_0__.READINGS_USL_LIST)
/* harmony export */ });
/* harmony import */ var _readings_usl_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./readings-usl-list */ 98795);


/***/ }),

/***/ 98795:
/*!************************************************!*\
  !*** ./src/app/constants/readings-usl-list.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   READINGS_USL_LIST: () => (/* binding */ READINGS_USL_LIST)
/* harmony export */ });
const READINGS_USL_LIST = {
  gas: ['ГАЗ', 'Газ'],
  heating: ['Отопление', 'ОТОП'],
  electricity: ['Электроснабжение', 'ЭЭ', 'ЭЭ(корр)'],
  cws: ['ХВС', 'ХВС(корр)'],
  hws: ['ГВС']
};

/***/ }),

/***/ 11452:
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/tabs/readings/readings-history/readings-history-routing.module.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReadingsHistoryPageRoutingModule: () => (/* binding */ ReadingsHistoryPageRoutingModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 24398);
/* 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 _readings_history_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./readings-history.page */ 134);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */




const routes = [{
  path: '',
  component: _readings_history_page__WEBPACK_IMPORTED_MODULE_0__.ReadingsHistoryPage
}];
let ReadingsHistoryPageRoutingModule = class ReadingsHistoryPageRoutingModule {};
ReadingsHistoryPageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({
  imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)],
  exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
})], ReadingsHistoryPageRoutingModule);


/***/ }),

/***/ 21501:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/tabs/readings/readings-history/readings-history.module.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReadingsHistoryPageModule: () => (/* binding */ ReadingsHistoryPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ 24398);
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _readings_history_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./readings-history-routing.module */ 11452);
/* harmony import */ var _readings_history_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./readings-history.page */ 134);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 597);
/* harmony import */ var _pipes_counter_number_counter_number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../pipes/counter-number/counter-number */ 72281);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */









let ReadingsHistoryPageModule = class ReadingsHistoryPageModule {};
ReadingsHistoryPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.NgModule)({
  imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormsModule, _ionic_angular__WEBPACK_IMPORTED_MODULE_7__.IonicModule, _readings_history_routing_module__WEBPACK_IMPORTED_MODULE_0__.ReadingsHistoryPageRoutingModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslateModule, _pipes_counter_number_counter_number__WEBPACK_IMPORTED_MODULE_2__.CounterNumberPipe],
  declarations: [_readings_history_page__WEBPACK_IMPORTED_MODULE_1__.ReadingsHistoryPage]
})], ReadingsHistoryPageModule);


/***/ }),

/***/ 134:
/*!*******************************************************************************!*\
  !*** ./src/app/pages/tabs/readings/readings-history/readings-history.page.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReadingsHistoryPage: () => (/* binding */ ReadingsHistoryPage)
/* harmony export */ });
/* harmony import */ var D_progr_mobileappv3_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 tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _readings_history_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./readings-history.page.html?ngResource */ 84790);
/* harmony import */ var _readings_history_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./readings-history.page.scss?ngResource */ 2122);
/* harmony import */ var _readings_history_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_readings_history_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _services_request_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/request.service */ 80931);
/* harmony import */ var _services_helper_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/helper.service */ 54102);
/* harmony import */ var _environments_storage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../environments/storage */ 12960);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 89475);
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../constants */ 35764);

/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */









let ReadingsHistoryPage = class ReadingsHistoryPage {
  constructor(request, helper) {
    this.request = request;
    this.helper = helper;
    this.loading$ = (0,_angular_core__WEBPACK_IMPORTED_MODULE_7__.signal)(false);
    this.historyType = 'pu';
    this.READINGS_USL_LIST = _constants__WEBPACK_IMPORTED_MODULE_6__.READINGS_USL_LIST;
  }
  ngOnInit() {
    this.request.getStorageWithLS(_environments_storage__WEBPACK_IMPORTED_MODULE_5__.READINGS_HISTORY, this.request.readingsHistory).then(() => {});
  }
  ionViewWillEnter() {
    this.timerLoad = setTimeout(() => {
      this.loading$.set(true);
    }, 100);
    this.loadData(true).finally(() => {
      clearTimeout(this.timerLoad);
      this.loading$.set(false);
    });
  }
  doRefresh(_event) {
    this.loadData(_event.target).finally(() => {
      _event.target.complete();
    });
  }
  loadData(refresher) {
    var _this = this;
    return new Promise(resolve => {
      // Выполняем запрос
      this.request.getRequest(this.request.uri.countersValuesGet(), {
        preloader: false,
        forceUpdateCache: refresher,
        cacheDelayType: 'expired'
      }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.finalize)(() => {
        resolve(true);
      })).subscribe(/*#__PURE__*/function () {
        var _ref = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
          // Вызываем функцию коллбэк
          yield _this.request.loadReadingsHistoryCallback()(result);
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    });
  }
  readingsTypeChanged(_event) {
    this.historyType = _event.detail.value;
  }
  static {
    this.ctorParameters = () => [{
      type: _services_request_service__WEBPACK_IMPORTED_MODULE_3__.RequestService
    }, {
      type: _services_helper_service__WEBPACK_IMPORTED_MODULE_4__.HelperService
    }];
  }
};
ReadingsHistoryPage = (0,tslib__WEBPACK_IMPORTED_MODULE_9__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_7__.Component)({
  selector: 'app-readings-history',
  template: _readings_history_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_readings_history_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], ReadingsHistoryPage);


/***/ }),

/***/ 2122:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/tabs/readings/readings-history/readings-history.page.scss?ngResource ***!
  \********************************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// Imports
var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ 53142);
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ 35950);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
// Module
___CSS_LOADER_EXPORT___.push([module.id, `@charset "UTF-8";
/*!
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */
:host {
  --ion-background-color: var(--alternative-color-page);
}

ion-toolbar ion-title {
  padding-left: 24px;
  padding-right: 24px;
}
ion-toolbar ion-segment {
  width: 100%;
  min-height: 48px;
}

.segment {
  padding: 0 24px 0 24px;
  max-width: 562px;
  margin: 0 auto;
  width: 100%;
}

ion-content .content-page .block-card {
  margin-bottom: 15px;
  padding: 0 24px;
  align-items: flex-start;
}
ion-content .content-page .block-card:last-child {
  margin-bottom: 0;
}
ion-content .content-page .block-card .body {
  margin-bottom: 15px;
}
ion-content .content-page .list {
  background: var(--alternative-color-item);
}
ion-content .content-page .list:first-child {
  margin-top: 0;
}
ion-content .content-page .list ion-card {
  padding: 0 24px;
  box-shadow: none;
  margin: 0;
  --background: transparent;
}
ion-content .content-page .list ion-card:last-child .reading-card-header {
  --border-color: transparent;
}
ion-content .content-page .list ion-card .reading-card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1px;
}
ion-content .content-page .list ion-card .reading-card-header .reading-card-icon {
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
ion-content .content-page .list ion-card .reading-card-header .reading-card-icon .icon-block {
  width: 48px !important;
  height: 48px !important;
}
ion-content .content-page .list ion-card .reading-card-header ion-card-header {
  min-height: 48px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 0 8px 16px;
  width: 100%;
}
ion-content .content-page .list ion-card .reading-card-header ion-card-header ion-card-title {
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
ion-content .content-page .list ion-card .reading-card-header ion-card-header ion-card-title p {
  margin: 0;
  padding-left: 12px;
}
ion-content .content-page .list ion-card .reading-card-header ion-card-header ion-card-subtitle {
  font-size: 12px;
}
ion-content .content-page ion-accordion-group ion-accordion {
  margin: 8px 0;
  background: var(--alternative-color-item);
  transition: 0s;
  padding: 0 calc(max((100% - 562px) / 2, 0px) + 24px) !important;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item[slot=header] {
  --background-activated: transparent;
  --background-focused: transparent;
  --background-hover: transparent;
  padding: 0;
  --border-width: 0;
}
ion-content .content-page ion-accordion-group ion-accordion:first-child {
  margin-top: 0;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item ion-card {
  width: 100%;
  margin: 0;
  border-radius: 0;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item ion-card .reading-card-header {
  align-items: flex-start;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item ion-card .reading-card-header .reading-card-icon {
  padding: var(--card-padding) 0;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item ion-card ion-card-header {
  min-height: 48px;
  padding: 0;
  margin: 16px;
}
ion-content .content-page ion-accordion-group ion-accordion ion-item ion-card ion-card-header ion-card-title {
  font-size: 20px;
  font-weight: 500;
}
ion-content .content-page ion-accordion-group ion-accordion .accordion-content {
  padding: 0 0 9px 0;
}
ion-content .content-page ion-accordion-group ion-accordion .accordion-content ion-item div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
ion-content .content-page ion-accordion-group ion-accordion .accordion-content ion-item div p {
  margin: 9px 0 0 0;
}
ion-content .content-page ion-accordion-group ion-accordion .accordion-content ion-item:last-child {
  --inner-border-width: 0;
}`, "",{"version":3,"sources":["webpack://./src/app/pages/tabs/readings/readings-history/readings-history.page.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAAhB;;EAAA;AAIA;EACE,qDAAA;AACF;;AAGE;EACE,kBAAA;EACA,mBAAA;AAAJ;AAGE;EAEE,WAAA;EACA,gBAAA;AAFJ;;AAUA;EACE,sBAAA;EACA,gBAAA;EACA,cAAA;EACA,WAAA;AAPF;;AAiBI;EACE,mBAAA;EACA,eAAA;EACA,uBAAA;AAdN;AAgBM;EACE,gBAAA;AAdR;AAiBM;EACE,mBAAA;AAfR;AAmBI;EACE,yCAAA;AAjBN;AAmBM;EACE,aAAA;AAjBR;AAwBM;EACE,eAAA;EACA,gBAAA;EACA,SAAA;EACA,yBAAA;AAtBR;AAyBU;EACE,2BAAA;AAvBZ;AA0BQ;EACE,aAAA;EACA,uBAAA;EACA,kBAAA;AAxBV;AAyBU;EACE,kBAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;AAvBZ;AA0BY;EACE,sBAAA;EACA,uBAAA;AAxBd;AA2BU;EACE,gBAAA;EACA,UAAA;EACA,aAAA;EACA,sBAAA;EACA,8BAAA;EACA,oBAAA;EACA,WAAA;AAzBZ;AA0BY;EACE,mBAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;AAxBd;AAyBc;EACE,SAAA;EACA,kBAAA;AAvBhB;AA0BY;EACE,eAAA;AAxBd;AAiCM;EACE,aAAA;EACA,yCAAA;EACA,cAAA;EACA,+DAAA;AA/BR;AAiCQ;EACE,mCAAA;EACA,iCAAA;EACA,+BAAA;EACA,UAAA;EACA,iBAAA;AA/BV;AAkCQ;EACE,aAAA;AAhCV;AA0CU;EACE,WAAA;EACA,SAAA;EACA,gBAAA;AAxCZ;AA0CY;EACE,uBAAA;AAxCd;AA0Cc;EACE,8BAAA;AAxChB;AA4CY;EACE,gBAAA;EACA,UAAA;EACA,YAAA;AA1Cd;AA4Cc;EACE,eAAA;EACA,gBAAA;AA1ChB;AAgDQ;EACE,kBAAA;AA9CV;AAgDY;EACE,aAAA;EACA,8BAAA;EACA,WAAA;AA9Cd;AA+Cc;EACE,iBAAA;AA7ChB;AAiDY;EACE,uBAAA;AA/Cd","sourcesContent":["/*!\n * Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n */\n\n:host {\n  --ion-background-color: var(--alternative-color-page);\n}\n\nion-toolbar {\n  ion-title {\n    padding-left: 24px;\n    padding-right: 24px;\n  }\n\n  ion-segment {\n    //--background: var(--segment-background);\n    width: 100%;\n    min-height: 48px;\n\n    //font-size: var(--font-size-subtitle-2);\n    //font-weight: var(--font-weight-subtitle-2);\n    //color: var(--font-color-primary);\n  }\n}\n\n.segment {\n  padding: 0 24px 0 24px;\n  max-width: 562px;\n  margin: 0 auto;\n  width: 100%;\n\n}\n\nion-content {\n\n  //--background: var(--base-color-dark-background);\n  .content-page {\n    //padding: 12px 0 0 0;\n    //background: var(--base-color-light-background);\n    .block-card {\n      margin-bottom: 15px;\n      padding: 0 24px;\n      align-items: flex-start;\n\n      &:last-child {\n        margin-bottom: 0;\n      }\n\n      .body {\n        margin-bottom: 15px;\n      }\n    }\n\n    .list {\n      background: var(--alternative-color-item);\n\n      &:first-child {\n        margin-top: 0;\n      }\n\n      &:last-child {\n        //margin-bottom: 0;\n      }\n\n      ion-card {\n        padding: 0 24px;\n        box-shadow: none;\n        margin: 0;\n        --background: transparent;\n\n        &:last-child {\n          .reading-card-header {\n            --border-color: transparent;\n          }\n        }\n        .reading-card-header {\n          display: flex;\n          align-items: flex-start;\n          margin-bottom: 1px;\n          .reading-card-icon {\n            border-radius: 8px;\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            //background: var(--ion-color-primary-lighten-4);\n            //margin: 16px 0 16px 16px;\n            .icon-block {\n              width: 48px !important;\n              height: 48px !important;\n            }\n          }\n          ion-card-header {\n            min-height: 48px;\n            padding: 0;\n            display: flex;\n            flex-direction: column;\n            justify-content: space-between;\n            margin: 0 0 8px 16px;\n            width: 100%;\n            ion-card-title {\n              font-weight: normal;\n              display: flex;\n              justify-content: space-between;\n              align-items: center;\n              p {\n                margin: 0;\n                padding-left: 12px;\n              }\n            }\n            ion-card-subtitle {\n              font-size: 12px;\n            }\n          }\n        }\n      }\n    }\n\n    ion-accordion-group {\n      //border-top: 16px solid var(--alternative-color-item);\n      ion-accordion {\n        margin: 8px 0;\n        background: var(--alternative-color-item);\n        transition: 0s;\n        padding: 0 calc(max((100% - 562px) / 2, 0px) + 24px) !important;\n\n        ion-item[slot=\"header\"] {\n          --background-activated: transparent;\n          --background-focused: transparent;\n          --background-hover: transparent;\n          padding: 0;\n          --border-width: 0;\n        }\n\n        &:first-child {\n          margin-top: 0;\n        }\n\n        &:last-child {\n          //margin-bottom: 0;\n        }\n\n        ion-item {\n          //--background: var(--ion-background-color);\n\n          ion-card {\n            width: 100%;\n            margin: 0;\n            border-radius: 0;\n\n            .reading-card-header {\n              align-items: flex-start;\n\n              .reading-card-icon {\n                padding: var(--card-padding) 0;\n              }\n            }\n\n            ion-card-header {\n              min-height: 48px;\n              padding: 0;\n              margin: 16px;\n\n              ion-card-title {\n                font-size: 20px;\n                font-weight: 500;\n              }\n            }\n          }\n        }\n\n        .accordion-content {\n          padding: 0 0 9px 0;\n          ion-item {\n            div {\n              display: flex;\n              justify-content: space-between;\n              width: 100%;\n              p {\n                margin: 9px 0 0 0;\n              }\n            }\n\n            &:last-child {\n              --inner-border-width: 0;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 84790:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/tabs/readings/readings-history/readings-history.page.html?ngResource ***!
  \********************************************************************************************/
/***/ ((module) => {

"use strict";
module.exports = "<!--\n  ~ Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n  -->\n\n<ion-header class=\"ion-no-border\">\n    @if (loading$()) {\n        <ion-toolbar>\n            <ion-buttons slot=\"start\">\n                <ion-back-button text=\"\" icon=\"/assets/icons/Chevron_Left.svg\"/>\n            </ion-buttons>\n            <ion-title>\n                <div class=\"header-fullscreen\">\n                    <div class=\"title\">\n                        <ion-spinner/> {{ 'UPDATING' | translate }}\n                    </div>\n                </div>\n            </ion-title>\n        </ion-toolbar>\n    } @else {\n        <ion-toolbar>\n            <ion-buttons slot=\"start\">\n                <ion-back-button text=\"\" icon=\"/assets/icons/Chevron_Left.svg\"/>\n            </ion-buttons>\n            <ion-title>{{ 'READINGS.HISTORY_PAGE.TITLE' | translate }}</ion-title>\n        </ion-toolbar>\n    }\n  <ion-toolbar>\n    <div class=\"segment\">\n      <ion-segment value=\"pu\" (ionChange)=\"readingsTypeChanged($event)\">\n        <ion-segment-button value=\"pu\">\n          <ion-label>{{ 'READINGS.HISTORY_PAGE.GROUP.PU' | translate }}</ion-label>\n        </ion-segment-button>\n        <ion-segment-button value=\"date\">\n          <ion-label>{{ 'READINGS.HISTORY_PAGE.GROUP.DATE' | translate }}</ion-label>\n        </ion-segment-button>\n      </ion-segment>\n    </div>\n  </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n    @if (!loading$()) {\n        <ion-refresher slot=\"fixed\" (ionRefresh)=\"doRefresh($event)\">\n            <ion-refresher-content />\n        </ion-refresher>\n    }\n\n  <div class=\"content-page\">\n      @if (\n            request.readingsHistory.value[request.activeLs.value] &&\n             request.readingsHistory.value[request.activeLs.value].ofPu &&\n             request.readingsHistory.value[request.activeLs.value].ofPu.length <= 0\n          )\n      {\n          <ion-card>\n              <div class=\"reading-card-header\">\n                  <ion-card-header>\n                      <ion-card-title>{{ 'ERROR_STRING.NODATA' | translate }}</ion-card-title>\n                  </ion-card-header>\n              </div>\n          </ion-card>\n      }\n\n      @if (!loading$() && !request.readingsHistory.value[request.activeLs.value]) {\n          <ion-card>\n              <div class=\"reading-card-header\">\n                  <ion-card-header>\n                      <ion-card-title>{{ 'ERROR_STRING.ERROR_LOAD_DATA' | translate }}</ion-card-title>\n                  </ion-card-header>\n              </div>\n          </ion-card>\n      }\n\n      @if (historyType === 'pu' && request.readingsHistory.value[request.activeLs.value]) {\n          <div class=\"list-pointer\">\n              <ion-accordion-group [multiple]=\"true\">\n                  @for (historyOfPu of request.readingsHistory.value[request.activeLs.value].ofPu; track historyOfPu) {\n                      <ion-accordion>\n                          <ion-item slot=\"header\" lines=\"none\">\n                              <ion-card>\n                                  <ion-item class=\"reading-card-header\" lines=\"none\">\n                                      <div class=\"reading-card-icon\" [ngSwitch]=\"historyOfPu.nameUsl\">\n                                          <div *ngSwitchCase=\"READINGS_USL_LIST.gas.includes(historyOfPu.nameUsl) ? historyOfPu.nameUsl : !historyOfPu.nameUsl\" class=\"icon-block icon-gas\">\n                                              <ion-icon src=\"/assets/icons/Gas.svg\"></ion-icon>\n                                          </div>\n                                          <div *ngSwitchCase=\"READINGS_USL_LIST.heating.includes(historyOfPu.nameUsl) ? historyOfPu.nameUsl : !historyOfPu.nameUsl\" class=\"icon-block icon-heat\">\n                                              <ion-icon src=\"/assets/icons/Heat.svg\"></ion-icon>\n                                          </div>\n                                          <div *ngSwitchCase=\"READINGS_USL_LIST.electricity.includes(historyOfPu.nameUsl) ? historyOfPu.nameUsl : !historyOfPu.nameUsl\" class=\"icon-block icon-electricity\">\n                                              <ion-icon src=\"/assets/icons/Electricity.svg\"></ion-icon>\n                                          </div>\n                                          <div *ngSwitchCase=\"READINGS_USL_LIST.cws.includes(historyOfPu.nameUsl) ? historyOfPu.nameUsl : !historyOfPu.nameUsl\" class=\"icon-block icon-water-cold\">\n                                              <ion-icon src=\"/assets/icons/Water.svg\"></ion-icon>\n                                          </div>\n                                          <div *ngSwitchCase=\"READINGS_USL_LIST.hws.includes(historyOfPu.nameUsl) ? historyOfPu.nameUsl : !historyOfPu.nameUsl\" class=\"icon-block icon-water-heat\">\n                                              <ion-icon src=\"/assets/icons/Water.svg\"></ion-icon>\n                                          </div>\n                                          <div *ngSwitchDefault class=\"icon-block icon-default\">\n                                              <ion-icon src=\"/assets/icons/Meter_Readings.svg\"></ion-icon>\n                                          </div>\n                                      </div>\n\n                                      <ion-card-header>\n                                          <ion-card-title>{{historyOfPu.name}}</ion-card-title>\n                                          <ion-card-subtitle>№ {{historyOfPu.num | guardCounterNumber}}</ion-card-subtitle>\n                                      </ion-card-header>\n                                  </ion-item>\n                              </ion-card>\n\n\n                          </ion-item>\n                          <div class=\"accordion-content\" slot=\"content\">\n                              @for (history of historyOfPu.data; track history) {\n                                  <ion-item>\n                                      <div>\n                                          <p>{{ helper.dateConvert(history.DATE) }}</p>\n                                          <p>{{ history.POKAZANIE }}</p>\n                                      </div>\n                                  </ion-item>\n                              }\n                          </div>\n                      </ion-accordion>\n                  }\n              </ion-accordion-group>\n          </div>\n      }\n\n      @if (historyType === 'date' && request.readingsHistory.value[request.activeLs.value]) {\n          <div class=\"list-pointer\">\n              @for (historyOfDate of request.readingsHistory.value[request.activeLs.value].ofDate; track historyOfDate) {\n                  <div class=\"list\">\n                      <div class=\"list-header\">\n                          {{ helper.dateConvert(historyOfDate.key) }}\n                      </div>\n\n                      @for (history of historyOfDate.data;track history) {\n                          <ion-card>\n                              <ion-item class=\"reading-card-header\">\n                                  <div class=\"reading-card-icon\" [ngSwitch]=\"history.NAMEUSL\">\n                                      <div *ngSwitchCase=\"READINGS_USL_LIST.gas.includes(history.NAMEUSL) ? history.NAMEUSL : !history.NAMEUSL\" class=\"icon-block icon-gas\">\n                                          <ion-icon src=\"/assets/icons/Gas.svg\"></ion-icon>\n                                      </div>\n                                      <div *ngSwitchCase=\"READINGS_USL_LIST.heating.includes(history.NAMEUSL) ? history.NAMEUSL : !history.NAMEUSL\" class=\"icon-block icon-heat\">\n                                          <ion-icon src=\"/assets/icons/Heat.svg\"></ion-icon>\n                                      </div>\n                                      <div *ngSwitchCase=\"READINGS_USL_LIST.electricity.includes(history.NAMEUSL) ? history.NAMEUSL : !history.NAMEUSL\" class=\"icon-block icon-electricity\">\n                                          <ion-icon src=\"/assets/icons/Electricity.svg\"></ion-icon>\n                                      </div>\n                                      <div *ngSwitchCase=\"READINGS_USL_LIST.cws.includes(history.NAMEUSL) ? history.NAMEUSL : !history.NAMEUSL\" class=\"icon-block icon-water-cold\">\n                                          <ion-icon src=\"/assets/icons/Water.svg\"></ion-icon>\n                                      </div>\n                                      <div *ngSwitchCase=\"READINGS_USL_LIST.hws.includes(history.NAMEUSL) ? history.NAMEUSL : !history.NAMEUSL\" class=\"icon-block icon-water-heat\">\n                                          <ion-icon src=\"/assets/icons/Water.svg\"></ion-icon>\n                                      </div>\n                                      <div *ngSwitchDefault class=\"icon-block icon-default\">\n                                          <ion-icon src=\"/assets/icons/Meter_Readings.svg\"></ion-icon>\n                                      </div>\n                                  </div>\n\n                                  <ion-card-header>\n                                      <ion-card-title>{{history.NAME}}<p>{{history.POKAZANIE}}</p></ion-card-title>\n                                      <ion-card-subtitle>№ {{history.COUNTERNUM | guardCounterNumber}}</ion-card-subtitle>\n                                  </ion-card-header>\n                              </ion-item>\n                          </ion-card>\n                      }\n                  </div>\n              }\n\n          </div>\n      }\n  </div>\n</ion-content>\n";

/***/ })

}]);
//# sourceMappingURL=src_app_pages_tabs_readings_readings-history_readings-history_module_ts.js.map