(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_tabs_payment_history-and-kvit_history-and-kvit_module_ts"],{

/***/ 31057:
/*!****************************************************************************************!*\
  !*** ./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit-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 */   HistoryAndKvitPageRoutingModule: () => (/* binding */ HistoryAndKvitPageRoutingModule)
/* 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 _history_and_kvit_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./history-and-kvit.page */ 78995);




const routes = [{
  path: '',
  component: _history_and_kvit_page__WEBPACK_IMPORTED_MODULE_0__.HistoryAndKvitPage
}, {
  path: 'receipt-info',
  loadChildren: () => Promise.all(/*! import() */[__webpack_require__.e("common"), __webpack_require__.e("src_app_pages_tabs_payment_history-and-kvit_receipt-info_receipt-info_module_ts")]).then(__webpack_require__.bind(__webpack_require__, /*! ./receipt-info/receipt-info.module */ 4484)).then(m => m.ReceiptInfoPageModule)
}];
let HistoryAndKvitPageRoutingModule = class HistoryAndKvitPageRoutingModule {};
HistoryAndKvitPageRoutingModule = (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]
})], HistoryAndKvitPageRoutingModule);


/***/ }),

/***/ 65192:
/*!********************************************************************************!*\
  !*** ./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit.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 */   HistoryAndKvitPageModule: () => (/* binding */ HistoryAndKvitPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _history_and_kvit_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./history-and-kvit-routing.module */ 31057);
/* harmony import */ var _history_and_kvit_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./history-and-kvit.page */ 78995);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ngx-translate/core */ 597);








let HistoryAndKvitPageModule = class HistoryAndKvitPageModule {};
HistoryAndKvitPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({
  imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule, _history_and_kvit_routing_module__WEBPACK_IMPORTED_MODULE_0__.HistoryAndKvitPageRoutingModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__.TranslateModule],
  declarations: [_history_and_kvit_page__WEBPACK_IMPORTED_MODULE_1__.HistoryAndKvitPage]
})], HistoryAndKvitPageModule);


/***/ }),

/***/ 78995:
/*!******************************************************************************!*\
  !*** ./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit.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 */   HistoryAndKvitPage: () => (/* binding */ HistoryAndKvitPage)
/* 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_10__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _history_and_kvit_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./history-and-kvit.page.html?ngResource */ 73029);
/* harmony import */ var _history_and_kvit_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./history-and-kvit.page.scss?ngResource */ 59599);
/* harmony import */ var _history_and_kvit_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_history_and_kvit_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __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 _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 4059);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 89475);











let HistoryAndKvitPage = class HistoryAndKvitPage {
  constructor(request, helper, navCtrl, activeRoute, router, route) {
    this.request = request;
    this.helper = helper;
    this.navCtrl = navCtrl;
    this.activeRoute = activeRoute;
    this.router = router;
    this.route = route;
    this.loading$ = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.signal)(false);
    this.type = this.helper.availablePayment.value ? 'payments' : 'receipts';
    this.refresher = null;
  }
  ngOnInit() {
    this.request.getStorageWithLS(_environments_storage__WEBPACK_IMPORTED_MODULE_5__.PAYMENTS_HISTORY, this.request.paymentsHistory).then(() => {});
    this.request.getStorageWithLS(_environments_storage__WEBPACK_IMPORTED_MODULE_5__.RECEIPTS, this.request.receipts).then(() => {});
  }
  ionViewWillEnter() {
    if (this.activeRoute.snapshot.queryParamMap.get('type')) {
      this.type = this.activeRoute.snapshot.queryParamMap.get('type');
    }
    this.router.navigate(['.'], {
      relativeTo: this.route
    }).then(() => {});
    if (this.helper.availablePayment.value && this.request.paymentsHistory.value[this.request.activeLs.value] === undefined || this.request.receipts.value[this.request.activeLs.value] === undefined) {
      this.timerLoad = setTimeout(() => {
        this.loading$.set(true);
      }, 100);
      this.loadData().finally(() => {
        clearTimeout(this.timerLoad);
        this.loading$.set(false);
      });
    }
  }
  doRefresh(_event) {
    this.loadData(_event.target).finally(() => {
      this.refresher = null;
      _event.target.complete();
    });
    this.refresher = _event.target;
  }
  loadData(refresher) {
    return Promise.all([this.loadPaymentHistory(refresher), this.loadReceipts(refresher)]);
  }
  loadPaymentHistory(refresher) {
    var _this = this;
    return new Promise(resolve => {
      // Выполняем запрос
      if (this.helper.availablePayment.value) {
        this.request.getRequest(this.request.uri.paymentsHistoryGet(), {
          preloader: false,
          forceUpdateCache: refresher,
          cacheDelayType: 'expired'
        }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.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.loadPaymentsHistoryCallback()(result);
          });
          return function (_x) {
            return _ref.apply(this, arguments);
          };
        }());
      } else {
        resolve(true);
      }
    });
  }
  loadReceipts(refresher) {
    var _this2 = this;
    return new Promise(resolve => {
      // Выполняем запрос
      this.request.getRequest(this.request.uri.receiptsGet(), {
        preloader: false,
        forceUpdateCache: refresher,
        cacheDelayType: 'expired'
      }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => {
        resolve(true);
      })).subscribe(/*#__PURE__*/function () {
        var _ref2 = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
          // Вызываем функцию коллбэк
          yield _this2.request.loadReceiptsCallback()(result);
        });
        return function (_x2) {
          return _ref2.apply(this, arguments);
        };
      }());
    });
  }
  typeChanged(_event) {
    this.type = _event.detail.value;
  }
  object() {
    return Object;
  }
  openReceipt(fileId, month, year, fileCacheKey) {
    var _this3 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this3.navCtrl.navigateForward(_this3.router.url + '/receipt-info', {
        queryParams: {
          fileId,
          month,
          year,
          fileCacheKey
        }
      });
    })();
  }
  static {
    this.ctorParameters = () => [{
      type: _services_request_service__WEBPACK_IMPORTED_MODULE_3__.RequestService
    }, {
      type: _services_helper_service__WEBPACK_IMPORTED_MODULE_4__.HelperService
    }, {
      type: _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.NavController
    }, {
      type: _angular_router__WEBPACK_IMPORTED_MODULE_9__.ActivatedRoute
    }, {
      type: _angular_router__WEBPACK_IMPORTED_MODULE_9__.Router
    }, {
      type: _angular_router__WEBPACK_IMPORTED_MODULE_9__.ActivatedRoute
    }];
  }
};
HistoryAndKvitPage = (0,tslib__WEBPACK_IMPORTED_MODULE_10__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.Component)({
  selector: 'app-history-and-kvit',
  template: _history_and_kvit_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_history_and_kvit_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], HistoryAndKvitPage);


/***/ }),

/***/ 59599:
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit.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, `:host {
  --ion-background-color: var(--alternative-color-page);
}

ion-toolbar .fullscreen {
  padding-inline: 24px 50px !important;
}
ion-toolbar ion-title:not(.fullscreen) {
  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:first-child {
  margin-top: 0;
}
ion-content .content-page .list ion-card {
  padding: 0 16px;
  box-shadow: none;
  margin: 0;
  border-bottom: 1px solid var(--color-separate);
  border-radius: 0;
  overflow: visible;
  contain: none;
}
ion-content .content-page .list ion-card:last-child {
  border: none;
}
ion-content .content-page .list ion-card:last-child .notification-card-header {
  --border-color: transparent;
}
ion-content .content-page .list ion-card .notification-card-header {
  display: flex;
  align-items: flex-start;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: -24px !important;
  margin-right: -24px !important;
  box-sizing: content-box;
}
ion-content .content-page .list ion-card .notification-card-header .notification-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ion-color-primary-lighten-4);
}
ion-content .content-page .list ion-card .notification-card-header .notification-card-icon ion-icon {
  color: var(--ion-color-primary);
  width: 24px;
  height: 24px;
}
ion-content .content-page .list ion-card .notification-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 .notification-card-header ion-card-header ion-card-title {
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: capitalize;
}
ion-content .content-page .list ion-card .notification-card-header ion-card-header ion-card-title p {
  margin: 0;
  padding-left: 12px;
  text-transform: none;
}
ion-content .content-page .list ion-card .notification-card-header ion-card-header ion-card-subtitle {
  font-size: 12px;
}`, "",{"version":3,"sources":["webpack://./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit.page.scss"],"names":[],"mappings":"AAAA;EACE,qDAAA;AACF;;AAGE;EACE,oCAAA;AAAJ;AAGE;EACE,kBAAA;EACA,mBAAA;AADJ;AAIE;EAEE,WAAA;EACA,gBAAA;AAHJ;;AAWA;EACE,sBAAA;EACA,gBAAA;EACA,cAAA;EACA,WAAA;AARF;;AAgBI;EACE,mBAAA;EACA,eAAA;EACA,uBAAA;AAbN;AAeM;EACE,gBAAA;AAbR;AAgBM;EACE,mBAAA;AAdR;AAoBM;EACE,aAAA;AAlBR;AAyBM;EACE,eAAA;EACA,gBAAA;EACA,SAAA;EACA,8CAAA;EACA,gBAAA;EACA,iBAAA;EACA,aAAA;AAvBR;AAyBQ;EACE,YAAA;AAvBV;AAwBU;EACE,2BAAA;AAtBZ;AAyBQ;EACE,aAAA;EACA,uBAAA;EACA,6BAAA;EACA,8BAAA;EACA,6BAAA;EACA,8BAAA;EACA,uBAAA;AAvBV;AAwBU;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,8CAAA;AAtBZ;AAwBY;EACE,+BAAA;EACA,WAAA;EACA,YAAA;AAtBd;AAyBU;EACE,gBAAA;EACA,UAAA;EACA,aAAA;EACA,sBAAA;EACA,8BAAA;EACA,oBAAA;EACA,WAAA;AAvBZ;AAwBY;EACE,mBAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,0BAAA;AAtBd;AAuBc;EACE,SAAA;EACA,kBAAA;EACA,oBAAA;AArBhB;AAwBY;EACE,eAAA;AAtBd","sourcesContent":[":host {\n  --ion-background-color: var(--alternative-color-page);\n}\n\nion-toolbar {\n  .fullscreen {\n    padding-inline: 24px 50px !important;\n  }\n\n  ion-title:not(.fullscreen) {\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  .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\n      &:first-child {\n        margin-top: 0;\n      }\n\n      &:last-child {\n        //margin-bottom: 0;\n      }\n\n      ion-card {\n        padding: 0 16px;\n        box-shadow: none;\n        margin: 0;\n        border-bottom: 1px solid var(--color-separate);\n        border-radius: 0;\n        overflow: visible;\n        contain: none;\n\n        &:last-child {\n          border: none;\n          .notification-card-header {\n            --border-color: transparent;\n          }\n        }\n        .notification-card-header {\n          display: flex;\n          align-items: flex-start;\n          padding-left: 24px !important;\n          padding-right: 24px !important;\n          margin-left: -24px !important;\n          margin-right: -24px !important;\n          box-sizing: content-box;\n          .notification-card-icon {\n            width: 48px;\n            height: 48px;\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-bottom: 8px;\n            ion-icon {\n              color: var(--ion-color-primary);\n              width: 24px;\n              height: 24px;\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              text-transform: capitalize;\n              p {\n                margin: 0;\n                padding-left: 12px;\n                text-transform: none;\n              }\n            }\n            ion-card-subtitle {\n              font-size: 12px;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 73029:
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/tabs/payment/history-and-kvit/history-and-kvit.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/>\n                        {{ '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            @if (helper.availablePayment.value) {\n                <ion-title>{{ 'PAYMENT.HISTORY_PAGE.TITLE' | translate }}</ion-title>\n            } @else {\n                <ion-title class=\"fullscreen\">\n                    <div class=\"header-fullscreen\">\n                        <div class=\"title\">\n                            {{ 'PAYMENT.HISTORY_PAGE.RECEIPTS' | translate }}\n                        </div>\n                    </div>\n                </ion-title>\n            }\n        </ion-toolbar>\n    }\n\n\n    @if (helper.availablePayment.value) {\n        <ion-toolbar>\n            <div class=\"segment\">\n                <ion-segment value=\"{{ type }}\" (ionChange)=\"typeChanged($event)\">\n                    <ion-segment-button value=\"payments\">\n                        <ion-label>{{ 'PAYMENT.HISTORY_PAGE.PAYMENTS' | translate }}</ion-label>\n                    </ion-segment-button>\n                    <ion-segment-button value=\"receipts\">\n                        <ion-label>{{ 'PAYMENT.HISTORY_PAGE.RECEIPTS' | translate }}</ion-label>\n                    </ion-segment-button>\n                </ion-segment>\n            </div>\n        </ion-toolbar>\n    }\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 (type === 'payments') {\n          <div class=\"list-pointer\">\n              @if (\n                    request.paymentsHistory.value[request.activeLs.value] &&\n                    object().values(request.paymentsHistory.value[request.activeLs.value]).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.paymentsHistory.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 (\n                    request.paymentsHistory.value[request.activeLs.value] &&\n                    object().values(request.paymentsHistory.value[request.activeLs.value]).length > 0\n                  )\n              {\n                  <div class=\"list-pointer\">\n                      @for (items of object().values(request.paymentsHistory.value[request.activeLs.value]); let key = $index; track key) {\n                          <div class=\"list\">\n                              <div class=\"list-header\">\n                                  {{ object().keys(request.paymentsHistory.value[request.activeLs.value])[key] }}\n                              </div>\n                              @for (payment of items; track payment) {\n                                  <ion-card>\n                                      <ion-item class=\"notification-card-header\">\n                                          <div class=\"notification-card-icon\">\n                                              <div class=\"icon-block\">\n                                                  <ion-icon src=\"/assets/icons/Accruals_And_Payments.svg\"></ion-icon>\n                                              </div>\n                                          </div>\n                                          <ion-card-header>\n                                              <ion-card-title>{{ payment.okonh }} <p>{{ helper.paySumFormate(payment.summ) }}</p></ion-card-title>\n                                              <ion-card-subtitle>{{ payment.purpose }}</ion-card-subtitle>\n                                          </ion-card-header>\n                                      </ion-item>\n                                  </ion-card>\n                              }\n                          </div>\n                      }\n                  </div>\n              }\n          </div>\n      }\n\n      @if (type === 'receipts') {\n          <div class=\"list-pointer\">\n              @if (request.receipts.value[request.activeLs.value] && request.receipts.value[request.activeLs.value].length <= 0) {\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.receipts.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 (request.receipts.value[request.activeLs.value] && request.receipts.value[request.activeLs.value].length > 0) {\n                  <div class=\"list-pointer\">\n                      @for (items of request.receipts.value[request.activeLs.value]; track items) {\n                          <div class=\"list\">\n                              <div class=\"list-header\">\n                                  {{ items.year }}\n                              </div>\n                              @for (receipt of items.data; track receipt) {\n                                  <ion-card>\n                                      <ion-item class=\"notification-card-header el-anim-tap\" (click)=\"openReceipt(receipt.fileId, receipt.month, items.year, receipt.type+receipt.name)\">\n                                          <div class=\"notification-card-icon\">\n                                              <div class=\"icon-block\">\n                                                  <ion-icon src=\"/assets/icons/File.svg\"></ion-icon>\n                                              </div>\n                                          </div>\n                                          <ion-card-header>\n                                              <ion-card-title>{{ helper.months2[+receipt.month -1] | translate }} <p>{{ helper.paySumFormate(receipt.accrued) }}</p></ion-card-title>\n                                              <ion-card-subtitle>{{ receipt.name }}</ion-card-subtitle>\n                                          </ion-card-header>\n                                      </ion-item>\n                                  </ion-card>\n                              }\n                          </div>\n                      }\n                  </div>\n              }\n          </div>\n      }\n  </div>\n</ion-content>\n";

/***/ })

}]);
//# sourceMappingURL=src_app_pages_tabs_payment_history-and-kvit_history-and-kvit_module_ts.js.map