(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_tabs_main_notifications_notifications_module_ts"],{

/***/ 73562:
/*!**********************************************************!*\
  !*** ./src/app/animations/modal-breakpoint-animation.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   modalBreakpointDismissAnimation: () => (/* binding */ modalBreakpointDismissAnimation)
/* harmony export */ });
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ionic/angular */ 21507);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */

const modalBreakpointDismissAnimation = (baseEL, opts) => {
  const DURATION = 300;
  const EASING = 'cubic-bezier(.3,.8,.5,1)';
  const animationCtrl = new _ionic_angular__WEBPACK_IMPORTED_MODULE_0__.AnimationController();
  const leavingAnimation = animationCtrl.create().addElement(baseEL).duration(DURATION).easing(EASING).keyframes([{
    offset: 0,
    transform: 'translateY(0%)'
  }, {
    offset: 1,
    transform: 'translateY(60%)'
  }]);
  return animationCtrl.create().addAnimation([leavingAnimation]);
};

/***/ }),

/***/ 23241:
/*!*************************************************************!*\
  !*** ./src/app/components/html-text/html-text.component.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HtmlTextComponent: () => (/* binding */ HtmlTextComponent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _html_text_component_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./html-text.component.html?ngResource */ 51043);
/* harmony import */ var _html_text_component_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./html-text.component.scss?ngResource */ 24475);
/* harmony import */ var _html_text_component_scss_ngResource__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_html_text_component_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser */ 80436);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ionic/angular */ 21507);






let HtmlTextComponent = class HtmlTextComponent {
  constructor(sanitizer) {
    this.sanitizer = sanitizer;
    this.rawHtml = '';
    this.safeHtml = '';
  }
  ngOnInit() {
    if (!!this.rawHtml) {
      this.safeHtml = this.sanitizer.bypassSecurityTrustHtml(this.rawHtml);
    }
  }
  static {
    this.ctorParameters = () => [{
      type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__.DomSanitizer
    }];
  }
  static {
    this.propDecorators = {
      rawHtml: [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input
      }],
      safeHtml: [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input
      }]
    };
  }
};
HtmlTextComponent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Component)({
  selector: 'app-html-text',
  template: _html_text_component_html_ngResource__WEBPACK_IMPORTED_MODULE_0__,
  encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__.ViewEncapsulation.ShadowDom,
  imports: [_ionic_angular__WEBPACK_IMPORTED_MODULE_5__.IonicModule],
  standalone: true,
  styles: [(_html_text_component_scss_ngResource__WEBPACK_IMPORTED_MODULE_1___default())]
})], HtmlTextComponent);


/***/ }),

/***/ 62643:
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notification/notification-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 */   NotificationPageRoutingModule: () => (/* binding */ NotificationPageRoutingModule)
/* 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 _notification_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notification.page */ 26517);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */




const routes = [{
  path: '',
  component: _notification_page__WEBPACK_IMPORTED_MODULE_0__.NotificationPage
}];
let NotificationPageRoutingModule = class NotificationPageRoutingModule {};
NotificationPageRoutingModule = (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]
})], NotificationPageRoutingModule);


/***/ }),

/***/ 80690:
/*!***********************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notification/notification.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 */   NotificationPageModule: () => (/* binding */ NotificationPageModule)
/* 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 _notification_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notification-routing.module */ 62643);
/* harmony import */ var _notification_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notification.page */ 26517);
/* harmony import */ var _components_html_text_html_text_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../components/html-text/html-text.component */ 23241);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */








let NotificationPageModule = class NotificationPageModule {};
NotificationPageModule = (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, _notification_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificationPageRoutingModule, _components_html_text_html_text_component__WEBPACK_IMPORTED_MODULE_2__.HtmlTextComponent],
  declarations: [_notification_page__WEBPACK_IMPORTED_MODULE_1__.NotificationPage]
})], NotificationPageModule);


/***/ }),

/***/ 26517:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notification/notification.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 */   NotificationPage: () => (/* binding */ NotificationPage)
/* 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_4__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _notification_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notification.page.html?ngResource */ 73731);
/* harmony import */ var _notification_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./notification.page.scss?ngResource */ 74735);
/* harmony import */ var _notification_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_notification_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 37580);

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




let NotificationPage = class NotificationPage {
  constructor() {}
  ngOnInit() {}
  dismiss() {
    var _this = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this.modal.dismiss();
    })();
  }
  static {
    this.ctorParameters = () => [];
  }
  static {
    this.propDecorators = {
      notification: [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input
      }]
    };
  }
};
NotificationPage = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Component)({
  selector: 'app-notification',
  template: _notification_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_notification_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], NotificationPage);


/***/ }),

/***/ 71030:
/*!*******************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notifications-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 */   NotificationsPageRoutingModule: () => (/* binding */ NotificationsPageRoutingModule)
/* 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 _notifications_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notifications.page */ 74088);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */




const routes = [{
  path: '',
  component: _notifications_page__WEBPACK_IMPORTED_MODULE_0__.NotificationsPage
}];
let NotificationsPageRoutingModule = class NotificationsPageRoutingModule {};
NotificationsPageRoutingModule = (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]
})], NotificationsPageRoutingModule);


/***/ }),

/***/ 31583:
/*!***********************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notifications.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 */   NotificationsPageModule: () => (/* binding */ NotificationsPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __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_7__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _notifications_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notifications-routing.module */ 71030);
/* harmony import */ var _notifications_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notifications.page */ 74088);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 597);
/* harmony import */ var _notification_notification_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./notification/notification.module */ 80690);
/* harmony import */ var _components_html_text_html_text_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../components/html-text/html-text.component */ 23241);
/*
 * Copyright (c) 2022. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */










let NotificationsPageModule = class NotificationsPageModule {};
NotificationsPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule)({
  imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonicModule, _notifications_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificationsPageRoutingModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslateModule, _components_html_text_html_text_component__WEBPACK_IMPORTED_MODULE_3__.HtmlTextComponent],
  declarations: [_notifications_page__WEBPACK_IMPORTED_MODULE_1__.NotificationsPage],
  providers: [_notification_notification_module__WEBPACK_IMPORTED_MODULE_2__.NotificationPageModule]
})], NotificationsPageModule);


/***/ }),

/***/ 74088:
/*!*********************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notifications.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 */   NotificationsPage: () => (/* binding */ NotificationsPage)
/* 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_14__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _notifications_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notifications.page.html?ngResource */ 62188);
/* harmony import */ var _notifications_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./notifications.page.scss?ngResource */ 94588);
/* harmony import */ var _notifications_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_notifications_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _notification_notification_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./notification/notification.page */ 26517);
/* harmony import */ var _services_modal_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/modal.service */ 5455);
/* harmony import */ var _services_request_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/request.service */ 80931);
/* harmony import */ var _services_helper_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../services/helper.service */ 54102);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 89475);
/* harmony import */ var _animations_modal_breakpoint_animation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../animations/modal-breakpoint-animation */ 73562);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _environments_storage__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../environments/storage */ 12960);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _environments_settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../environments/settings */ 79308);

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














let NotificationsPage = class NotificationsPage {
  constructor(modalService, request, helper, activeRoute) {
    this.modalService = modalService;
    this.request = request;
    this.helper = helper;
    this.activeRoute = activeRoute;
    this.loading$ = (0,_angular_core__WEBPACK_IMPORTED_MODULE_10__.signal)(false);
    this.refresher = null;
    this.notificationsAllCount = 0;
    this.page = 1;
  }
  ngOnInit() {
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {})();
  } //
  ngOnDestroy() {
    this.request.notifications.next({});
  }
  ionViewWillEnter() {
    var _this = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this.request.getStorageWithLS(_environments_storage__WEBPACK_IMPORTED_MODULE_8__.NOTIFICATIONS, _this.request.notifications);
      const notificationId = _this.activeRoute.snapshot.queryParamMap.get('notificationId');
      if (notificationId !== undefined) {
        try {
          _this.request.notifications.value[_this.request.activeLs.value].forEach((notification, key) => {
            if (+notification.id === +notificationId) {
              _this.openNotificationModal(notification, key).then(() => {});
              throw new Error();
            }
          });
        } catch (e) {}
      }
      _this.timerLoad = setTimeout(() => {
        _this.loading$.set(true);
      }, 100);
      _this.loadData('init').finally(() => {
        clearTimeout(_this.timerLoad);
        _this.loading$.set(false);
      });
    })();
  }
  ionViewDidLeave() {
    //
  }
  doRefresh(_event) {
    this.refresher = _event.target;
    this.loadData(_event).finally(() => {
      this.refresher = null;
      _event.target.complete();
    });
  }
  loadData(event) {
    var _this2 = this;
    return new Promise(/*#__PURE__*/function () {
      var _ref = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resolve) {
        if (event) {
          if (event.type === 'ionInfinite') {
            _this2.page++;
          } else if (event.type === 'ionRefresh' || event == 'init') {
            _this2.page = 1;
          }
        }
        // Выполняем запрос
        _this2.request.getRequest(_this2.request.uri.notificationsGet(_this2.page), {
          onlyCacheOrRequest: true,
          forceUpdateCache: _this2.page == 1,
          preloader: false,
          cacheGroup: 'notifications:' + _this2.request.activeLs.value
        }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.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.loadNotificationsCallback(_this2.page)(result);
            if (event) {
              if (event.type === 'ionInfinite') {
                if (result.notifications.length < _environments_settings__WEBPACK_IMPORTED_MODULE_9__.COUNT_NOTIFICATIONS_LOADING) {
                  event.target.disabled = true;
                }
                event.target.complete();
              }
            }
          });
          return function (_x2) {
            return _ref2.apply(this, arguments);
          };
        }());
      });
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }());
  }
  openNotificationModal(notification, key) {
    var _this3 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      document.querySelector('ion-app').querySelector('ion-backdrop').classList.add('backdrop-show');
      yield _this3.modalService.openModal({
        cssClass: 'breakpoint-modal',
        component: _notification_notification_page__WEBPACK_IMPORTED_MODULE_3__.NotificationPage,
        componentProps: {
          notification
        },
        showBackdrop: false,
        handle: true,
        breakpoints: [0, 0.6, 1],
        initialBreakpoint: 0.6,
        leaveAnimation: _animations_modal_breakpoint_animation__WEBPACK_IMPORTED_MODULE_7__.modalBreakpointDismissAnimation
      }).then(modal => {
        if (notification.status === 2) {
          _this3.read(0, notification, key);
        }
        modal.onWillDismiss().then(() => {
          clearTimeout(_this3.timer);
          modal.setCurrentBreakpoint(0.6);
          document.querySelector('ion-app').querySelector('ion-backdrop').classList.remove('backdrop-show');
        });
      });
    })();
  }
  read(count, notification, key) {
    this.timer = setTimeout(() => {
      this.request.postRequest(this.request.uri.notificationRead(notification.id), {}, {
        useCache: false,
        preloader: false,
        background: true
      }).subscribe(result => {
        if (result.result) {
          this.request.invalidateCacheGroup('notifications:' + this.request.activeLs.value);
          const notifications = this.request.notifications.value;
          notifications[this.request.activeLs.value][key].status = 3;
          this.request.notifications.next(notifications);
          const noRead = this.request.noReadNotificationsCount.value;
          noRead[this.request.activeLs.value] -= 1;
          if (noRead[this.request.activeLs.value] < 0) {
            noRead[this.request.activeLs.value] = 0;
          }
          this.request.noReadNotificationsCount.next(noRead);
        }
      }, error => {
        count++;
        console.error(error);
        if ((error.status === 500 || error.status === 429) && count < 3) {
          this.read(count, notification, key);
        }
      });
    }, 500);
  }
  convert(a, b) {
    return this.helper.dateConvert(a, b);
  }
  object() {
    return Object;
  }
  static {
    this.ctorParameters = () => [{
      type: _services_modal_service__WEBPACK_IMPORTED_MODULE_4__.ModalService
    }, {
      type: _services_request_service__WEBPACK_IMPORTED_MODULE_5__.RequestService
    }, {
      type: _services_helper_service__WEBPACK_IMPORTED_MODULE_6__.HelperService
    }, {
      type: _angular_router__WEBPACK_IMPORTED_MODULE_12__.ActivatedRoute
    }];
  }
  static {
    this.propDecorators = {
      infiniteScroll: [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_10__.ViewChild,
        args: [_ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonInfiniteScroll]
      }]
    };
  }
};
NotificationsPage = (0,tslib__WEBPACK_IMPORTED_MODULE_14__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_10__.Component)({
  selector: 'app-notifications',
  template: _notifications_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_notifications_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], NotificationsPage);


/***/ }),

/***/ 24475:
/*!**************************************************************************!*\
  !*** ./src/app/components/html-text/html-text.component.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, `ion-text {
  line-height: normal;
}`, "",{"version":3,"sources":["webpack://./src/app/components/html-text/html-text.component.scss"],"names":[],"mappings":"AAAA;EACE,mBAAA;AACF","sourcesContent":["ion-text {\n  line-height: normal;\n}\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 74735:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notification/notification.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. Группа компаний "СТЕК". Все права защищены. Разработчик: Чуриков Антон Алексеевич
 */
ion-toolbar ion-title {
  font-size: 20px;
  font-weight: 500;
}

.content-page {
  min-height: auto;
}
.content-page .text {
  margin-top: 10px;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  color: var(--font-color-secondary);
}

.dateText {
  color: #525E74;
  margin: 0 24px;
  font-size: 18px;
}`, "",{"version":3,"sources":["webpack://./src/app/pages/tabs/main/notifications/notification/notification.page.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAAhB;;EAAA;AAKE;EACE,eAAA;EACA,gBAAA;AAAJ;;AAIA;EAKE,gBAAA;AALF;AAOE;EACE,gBAAA;EACA,gBAAA;EACA,eAAA;EACA,iBAAA;EACA,kCAAA;AALJ;;AASA;EACE,cAAA;EACA,cAAA;EACA,eAAA;AANF","sourcesContent":["/*!\n * Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n */\n\nion-toolbar {\n  ion-title {\n    font-size: 20px;\n    font-weight: 500;\n  }\n}\n\n.content-page {\n  //min-height: calc(75vh - 64px) !important;\n  //height: calc(75vh - 64px) !important;\n  //max-height: calc(75vh - 64px) !important;\n  //overflow-y: auto;\n  min-height: auto;\n\n  .text {\n    margin-top: 10px;\n    text-align: left;\n    font-size: 16px;\n    line-height: 24px;\n    color: var(--font-color-secondary);\n  }\n}\n\n.dateText{\n  color: #525E74;\n  margin: 0 24px;\n  font-size: 18px;\n}\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 94588:
/*!**********************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notifications.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-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 {
  margin: 0;
}
ion-content .content-page .list:first-child {
  border-top: none;
}
ion-content .content-page .list:nth-last-child(2) ion-card {
  border: none;
}
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;
}
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;
  margin: 0 -16px;
  padding: 8px 16px;
  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 svg {
  fill: var(--ion-color-primary);
  width: 24px;
  height: 24px;
}
ion-content .content-page .list ion-card .notification-card-header .notification-card-icon svg circle {
  fill: var(--ion-color-warning);
}
ion-content .content-page .list ion-card .notification-card-header ion-card-header {
  padding: 0 0 8px 16px;
}
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;
  font-size: 16px;
  margin-bottom: 8px;
}
ion-content .content-page .list ion-card .notification-card-header ion-card-header .ion-card-title-bold {
  font-weight: 700;
}
ion-content .content-page .list ion-card .notification-card-header ion-card-header ion-card-subtitle {
  font-size: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}`, "",{"version":3,"sources":["webpack://./src/app/pages/tabs/main/notifications/notifications.page.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAAhB;;EAAA;AAIA;EACE,qDAAA;AACF;;AAMI;EACE,mBAAA;EACA,eAAA;EACA,uBAAA;AAHN;AAKM;EACE,gBAAA;AAHR;AAMM;EACE,mBAAA;AAJR;AAQI;EACE,SAAA;AANN;AASM;EACE,gBAAA;AAPR;AAWQ;EACE,YAAA;AATV;AAaM;EACE,eAAA;EACA,gBAAA;EACA,SAAA;EACA,8CAAA;EACA,gBAAA;AAXR;AAeU;EACE,2BAAA;AAbZ;AAgBQ;EACE,aAAA;EACA,uBAAA;EACA,eAAA;EACA,iBAAA;EACA,uBAAA;AAdV;AAgBU;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,8CAAA;AAdZ;AAgBY;EACE,8BAAA;EACA,WAAA;EACA,YAAA;AAdd;AAgBc;EACE,8BAAA;AAdhB;AAkBU;EACE,qBAAA;AAhBZ;AAiBY;EACE,mBAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,eAAA;EACA,kBAAA;AAfd;AAiBY;EACE,gBAAA;AAfd;AAiBY;EACE,eAAA;EACA,gBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;AAfd","sourcesContent":["/*!\n * Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n */\n\n:host {\n  --ion-background-color: var(--alternative-color-page);\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      margin: 0;\n      //border-top: 1px solid var(--color-separate);\n\n      &:first-child {\n        border-top: none;\n      }\n\n      &:nth-last-child(2) {\n        ion-card {\n          border: none;\n        }\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\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          margin: 0 -16px;\n          padding: 8px 16px;\n          box-sizing: content-box;\n\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            svg {\n              fill: var(--ion-color-primary);\n              width: 24px;\n              height: 24px;\n\n              circle {\n                fill: var(--ion-color-warning);\n              }\n            }\n          }\n          ion-card-header {\n            padding: 0 0 8px 16px;\n            ion-card-title {\n              font-weight: normal;\n              display: flex;\n              justify-content: space-between;\n              align-items: center;\n              font-size: 16px;\n              margin-bottom: 8px;\n            }\n            .ion-card-title-bold {\n              font-weight: 700;\n            }\n            ion-card-subtitle {\n              font-size: 12px;\n              overflow: hidden;\n              display: -webkit-box;\n              -webkit-line-clamp: 2;\n              -webkit-box-orient: vertical;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 51043:
/*!**************************************************************************!*\
  !*** ./src/app/components/html-text/html-text.component.html?ngResource ***!
  \**************************************************************************/
/***/ ((module) => {

"use strict";
module.exports = "<ion-text [innerHTML]=\"safeHtml\"></ion-text>\n";

/***/ }),

/***/ 73731:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notification/notification.page.html?ngResource ***!
  \**********************************************************************************************/
/***/ ((module) => {

"use strict";
module.exports = "<!--\n  ~ Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n  -->\n\n<ion-header class=\"ion-no-border\">\n  <ion-toolbar>\n      <div class=\"text dateText\">{{ notification.date.substr(0, 10) }}</div>\n    <ion-buttons slot=\"end\">\n      <ion-button (click)=\"dismiss()\"><ion-icon src=\"/assets/icons/Close.svg\"></ion-icon></ion-button>\n    </ion-buttons>\n  </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n  <div class=\"content-page\">\n    <div class=\"text\">\n      <app-html-text [rawHtml]=\"notification.text\" ></app-html-text>\n    </div>\n  </div>\n\n</ion-content>\n";

/***/ }),

/***/ 62188:
/*!**********************************************************************************!*\
  !*** ./src/app/pages/tabs/main/notifications/notifications.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\"></ion-back-button>\n            </ion-buttons>\n            <ion-title>\n                <div class=\"header-fullscreen\">\n                    <div class=\"title\">\n                        <ion-spinner></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\"></ion-back-button>\n            </ion-buttons>\n            <ion-title>{{ 'MAIN.NOTIFICATIONS_PAGE.TITLE' | translate }}</ion-title>\n        </ion-toolbar>\n    }\n</ion-header>\n\n<ion-content>\n    @if (!loading$()) {\n        <ion-refresher slot=\"fixed\" (ionRefresh)=\"doRefresh($event)\">\n            <ion-refresher-content></ion-refresher-content>\n        </ion-refresher>\n    }\n  <div class=\"content-page\">\n      @if (!loading$() && !request.notifications.value[request.activeLs.value]) {\n          <ion-card>\n              <div class=\"reading-card-header\">\n                  <ion-card-header>\n                      <ion-card-title>{{ 'MAIN.NOTIFICATIONS_PAGE.LOAD_ERROR' | translate }}</ion-card-title>\n                  </ion-card-header>\n              </div>\n          </ion-card>\n      }\n\n      @if (\n            !loading$() &&\n            request.notifications.value[request.activeLs.value] &&\n            object().values(request.notifications.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>{{ 'MAIN.NOTIFICATIONS_PAGE.NODATA' | translate }}</ion-card-title>\n                  </ion-card-header>\n              </div>\n          </ion-card>\n      }\n\n      @if (request.notifications.value[request.activeLs.value]) {\n          <div class=\"list-pointer\">\n              @for (notification of object().values(request.notifications.value[request.activeLs.value]); let key = $index; track key) {\n                  <div class=\"list\">\n                      <!--        <div class=\"list-header\">-->\n                      <!--          {{ convert(notification.date, 'dd.mm.yyyy hh:mm:ss') }}-->\n                      <!--        </div>-->\n\n                      <ion-card class=\"\" (click)=\"openNotificationModal(notification, key)\">\n                          <ion-item class=\"notification-card-header el-anim-tap\">\n                              <div class=\"notification-card-icon\">\n                                  <div class=\"icon-block\" [hidden]=\"notification.status === 2\">\n                                      <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><title>Notifications</title><g id=\"Notifications\"><path class=\"cls-1\" d=\"M12,22a1.66,1.66,0,0,0,1.67-1.66H10.33A1.66,1.66,0,0,0,12,22m8.82-4.23L19,15.16V10.43a7,7,0,0,0-5.33-6.74v0a1.67,1.67,0,0,0-3.34,0s0,0,0,0A7,7,0,0,0,5,10.43v4.73L3.18,17.77a1,1,0,0,0-.07,1,1,1,0,0,0,.89.53H20a1,1,0,0,0,.89-.53,1,1,0,0,0-.07-1M5.91,17.34,6.82,16A1,1,0,0,0,7,15.47v-5a5,5,0,0,1,10,0v5a1,1,0,0,0,.18.57l.91,1.3Z\"/></g></svg>\n                                  </div>\n                                  <div class=\"icon-block\" [hidden]=\"notification.status !== 2\">\n                                      <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><title>Notifications_Badge</title><g id=\"Notifications-badge\"><circle class=\"cls-1\" cx=\"17.5\" cy=\"6\" r=\"3.5\"/><path class=\"cls-1\" d=\"M12,22a1.66,1.66,0,0,0,1.67-1.66H10.33A1.66,1.66,0,0,0,12,22Z\"/><path class=\"cls-1\" d=\"M19,15.16V11.29a5.72,5.72,0,0,1-1.5.21,4.19,4.19,0,0,1-.5,0v4a1,1,0,0,0,.18.57l.91,1.3H5.91L6.82,16A1,1,0,0,0,7,15.47v-5a5,5,0,0,1,5-5h0a5.44,5.44,0,0,1,1.2-2.93,1.67,1.67,0,0,0-2.9,1.12s0,0,0,0A7,7,0,0,0,5,10.43v4.73L3.18,17.77a1,1,0,0,0-.07,1,1,1,0,0,0,.89.53H20a1,1,0,0,0,.89-.53,1,1,0,0,0-.07-1Z\"/></g></svg>\n                                  </div>\n                              </div>\n                              <ion-card-header>\n                                  <ion-card-title [hidden]=\"notification.title === ''\" [ngClass]=\"notification.status === 2 ? 'ion-card-title-bold' : ''\">{{ notification.title }}</ion-card-title>\n                                  <ion-card-subtitle>\n                                    <app-html-text [safeHtml]=\"notification.text\" ></app-html-text>\n                                  </ion-card-subtitle>\n                              </ion-card-header>\n                          </ion-item>\n                      </ion-card>\n                  </div>\n              }\n              <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadData($event)\">\n                  <ion-infinite-scroll-content></ion-infinite-scroll-content>\n              </ion-infinite-scroll>\n          </div>\n      }\n  </div>\n\n</ion-content>\n";

/***/ })

}]);
//# sourceMappingURL=src_app_pages_tabs_main_notifications_notifications_module_ts.js.map