(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_tabs_appeals_applications-form_applications-form_module_ts"],{

/***/ 3851:
/*!******************************************************************************************!*\
  !*** ./src/app/pages/tabs/appeals/applications-form/applications-form-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 */   ApplicationsFormPageRoutingModule: () => (/* binding */ ApplicationsFormPageRoutingModule)
/* 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 _applications_form_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applications-form.page */ 35165);




const routes = [{
  path: '',
  component: _applications_form_page__WEBPACK_IMPORTED_MODULE_0__.ApplicationsFormPage
}, {
  path: 'chat',
  loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_pages_tabs_appeals_applications-form_chat_chat_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./chat/chat.module */ 59873)).then(m => m.ChatPageModule)
}];
let ApplicationsFormPageRoutingModule = class ApplicationsFormPageRoutingModule {};
ApplicationsFormPageRoutingModule = (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]
})], ApplicationsFormPageRoutingModule);


/***/ }),

/***/ 24362:
/*!**********************************************************************************!*\
  !*** ./src/app/pages/tabs/appeals/applications-form/applications-form.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 */   ApplicationsFormPageModule: () => (/* binding */ ApplicationsFormPageModule)
/* 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 _applications_form_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applications-form-routing.module */ 3851);
/* harmony import */ var _applications_form_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./applications-form.page */ 35165);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ngx-translate/core */ 597);








let ApplicationsFormPageModule = class ApplicationsFormPageModule {};
ApplicationsFormPageModule = (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, _applications_form_routing_module__WEBPACK_IMPORTED_MODULE_0__.ApplicationsFormPageRoutingModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__.TranslateModule],
  declarations: [_applications_form_page__WEBPACK_IMPORTED_MODULE_1__.ApplicationsFormPage]
})], ApplicationsFormPageModule);


/***/ }),

/***/ 35165:
/*!********************************************************************************!*\
  !*** ./src/app/pages/tabs/appeals/applications-form/applications-form.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 */   ApplicationsFormPage: () => (/* binding */ ApplicationsFormPage)
/* 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_13__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _applications_form_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./applications-form.page.html?ngResource */ 25183);
/* harmony import */ var _applications_form_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./applications-form.page.scss?ngResource */ 40685);
/* harmony import */ var _applications_form_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_applications_form_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __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 _services_app_theme_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/app-theme.service */ 43017);
/* harmony import */ var _environments_settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../environments/settings */ 79308);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _services_modal_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/modal.service */ 5455);
/* harmony import */ var _create_modal_create_modal_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./create-modal/create-modal.page */ 58770);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 89475);














let ApplicationsFormPage = class ApplicationsFormPage {
  constructor(request, helper, appTheme, modalService, router) {
    this.request = request;
    this.helper = helper;
    this.appTheme = appTheme;
    this.modalService = modalService;
    this.router = router;
    this.loading$ = (0,_angular_core__WEBPACK_IMPORTED_MODULE_9__.signal)(false);
    this.countApplicationFormsLoading = _environments_settings__WEBPACK_IMPORTED_MODULE_6__.COUNT_APPLICATIONS_FORM_LOADING;
    this.page = 1;
  }
  ngOnInit() {
    this.focusToTabs = this.helper.focusToTabs.subscribe(value => {
      if (!value) {
        const back = this.helper.focusToTabs.subscribe(value => {
          if (value) {
            this.ionViewWillEnter();
            back.unsubscribe();
          }
        });
      }
    });
  }
  ngOnDestroy() {
    this.request.applicationsForm.next({});
    this.page = 1;
    this.focusToTabs.unsubscribe();
  }
  ionViewWillEnter() {
    if (!this.loading$()) {
      this.timerLoad = setTimeout(() => {
        this.loading$.set(true);
      }, 100);
      this.page = 1;
      return this.loadData(true, true).finally(() => {
        clearTimeout(this.timerLoad);
        this.loading$.set(false);
      });
    }
  }
  ionViewDidEnter() {
    setTimeout(() => {
      document.querySelector('body').classList.add('tab-bar-alternative-color');
    }, 0);
  }
  ionViewDidLeave() {
    this.request.applicationsForm.next({});
    this.page = 1;
    document.querySelector('body').classList.remove('tab-bar-alternative-color');
  }
  doRefresh(_event) {
    var _this = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.page = 1;
      yield _this.request.invalidateCacheGroup('applicationsForm:' + _this.request.activeLs.value);
      _this.loadData(_event, false).finally(() => {
        if (_this.infiniteScroll) {
          _this.infiniteScroll.disabled = false;
        }
        _this.refresher = null;
        _event.target.complete();
      });
      _this.refresher = _event.target;
    })();
  }
  loadData(event, init) {
    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 (_this2.refresher) {
          _this2.refresher.complete();
          _this2.refresher = null;
        }
        let disabledCache = false;
        if (event && !init) {
          disabledCache = event.type !== 'ionInfinite';
        }
        if (disabledCache) {
          yield _this2.request.invalidateCacheGroup('applicationsForm:' + _this2.request.activeLs.value);
        }
        // Выполняем запрос
        _this2.request.getRequest(_this2.request.uri.applicationsFormGet(_this2.page), {
          preloader: false,
          cacheGroup: 'applicationsForm:' + _this2.request.activeLs.value,
          onlyCacheOrRequest: !init
        }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.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) {
            try {
              if (result.result) {
                if (event && event.type === 'ionRefresh') {
                  _this2.request.applicationsForm.next({});
                }
                // Вызываем функцию коллбэк
                yield _this2.request.loadApplicationsFormCallback(_this2.page)(result);
                if (event && event.type) {
                  if (event.type === 'ionInfinite') {
                    if (result.appeals.length < _environments_settings__WEBPACK_IMPORTED_MODULE_6__.COUNT_APPLICATIONS_FORM_LOADING) {
                      event.target.disabled = true;
                    } else {
                      _this2.page++;
                    }
                    event.target.complete();
                  } else if (event.type === 'ionRefresh') {
                    _this2.page++;
                  }
                } else {
                  _this2.page++;
                }
              }
            } catch (e) {
              console.error(e);
            }
          });
          return function (_x2) {
            return _ref2.apply(this, arguments);
          };
        }());
      });
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }());
  }
  dateConvert(date) {
    return date.split('.')[2];
  }
  openNewApplicationFormModal() {
    this.modalService.openModal({
      component: _create_modal_create_modal_page__WEBPACK_IMPORTED_MODULE_8__.CreateModalPage
    }).then(modal => {
      modal.onWillDismiss().then(data => {
        if (data.data.result) {
          this.ionViewWillEnter().then(() => {
            if (!!data.data.id) {
              let appeal = this.request.applicationsForm.value[this.request.activeLs.value].filter(value => value.id == data.data.id);
              this.openChat(appeal[0]);
            }
          });
        }
      });
    }).catch(err => {});
  }
  openChat(appeal) {
    var _this3 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this3.router.navigate([appeal.isFinished ? '/tabs/appeals/applications-form/chat' : '/chat'], {
        queryParams: {
          appeal: JSON.stringify(appeal),
          readonly: appeal.isFinished
        }
      });
    })();
  }
  static {
    this.ctorParameters = () => [{
      type: _services_request_service__WEBPACK_IMPORTED_MODULE_3__.RequestService
    }, {
      type: _services_helper_service__WEBPACK_IMPORTED_MODULE_4__.HelperService
    }, {
      type: _services_app_theme_service__WEBPACK_IMPORTED_MODULE_5__.AppThemeService
    }, {
      type: _services_modal_service__WEBPACK_IMPORTED_MODULE_7__.ModalService
    }, {
      type: _angular_router__WEBPACK_IMPORTED_MODULE_11__.Router
    }];
  }
  static {
    this.propDecorators = {
      infiniteScroll: [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_9__.ViewChild,
        args: [_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonInfiniteScroll]
      }]
    };
  }
};
ApplicationsFormPage = (0,tslib__WEBPACK_IMPORTED_MODULE_13__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_9__.Component)({
  selector: 'app-applications-form',
  template: _applications_form_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_applications_form_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], ApplicationsFormPage);


/***/ }),

/***/ 40685:
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/tabs/appeals/applications-form/applications-form.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);
}

.content-page {
  padding-bottom: calc(var(--ion-safe-area-bottom, 0px) + 172px);
}
.content-page .list {
  margin: 0;
}
.content-page .list:first-child {
  border-top: none;
}
.content-page .list:first-child .list-header {
  border-top: none;
}
.content-page .list + .list:not(.group) {
  border: none;
  border-top: 8px solid var(--alternative-color-page);
}
.content-page .list .list-header {
  position: relative;
  background: var(--ion-card-background);
}
.content-page .list ion-card {
  box-shadow: none;
  margin: 0;
  border-top: none;
  border-radius: 0;
}
.content-page .list ion-card:last-child .applications-form-card-header {
  --border-color: transparent;
}
.content-page .list ion-card .applications-form-card-header {
  display: flex;
  align-items: flex-start;
  margin: 0 -16px;
  padding: 8px 16px;
  box-sizing: content-box;
}
.content-page .list ion-card .applications-form-card-header .applications-form-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ion-color-primary-lighten-4);
}
.content-page .list ion-card .applications-form-card-header .applications-form-card-icon ion-icon {
  color: var(--ion-color-primary);
  width: 24px;
  height: 24px;
}
.content-page .list ion-card .applications-form-card-header .applications-form-card-icon ion-icon circle {
  fill: var(--ion-color-warning);
}
.content-page .list ion-card .applications-form-card-header ion-card-header {
  padding: 0 0 8px 16px;
  width: 100%;
}
.content-page .list ion-card .applications-form-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;
}
.content-page .list ion-card .applications-form-card-header ion-card-header .ion-card-title-bold {
  font-weight: 700;
}
.content-page .list ion-card .applications-form-card-header ion-card-header ion-card-subtitle {
  font-size: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.content-page .group ion-card {
  border-top: 1px solid var(--color-separate);
}

.newApplicationForm {
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: saturate(210%) blur(20px);
  box-shadow: 0 0 24px rgba(104, 122, 147, 0.16);
  padding: 24px calc(max((100% - 562px) / 2, 0px) + 24px) calc(74px + var(--ion-safe-area-bottom)) calc(max((100% - 562px) / 2, 0px) + 24px);
  border-radius: 16px 16px 0 0;
}
.newApplicationForm .create {
  margin: 0;
}`, "",{"version":3,"sources":["webpack://./src/app/pages/tabs/appeals/applications-form/applications-form.page.scss"],"names":[],"mappings":"AAEA;EACE,qDAAA;AADF;;AAIA;EACE,8DAAA;AADF;AAGE;EACE,SAAA;AADJ;AAKI;EACE,gBAAA;AAHN;AAKM;EACE,gBAAA;AAHR;AAWI;EACE,YAAA;EACA,mDAAA;AATN;AAYI;EACE,kBAAA;EAEA,sCAAA;AAXN;AAcI;EAEE,gBAAA;EACA,SAAA;EACA,gBAAA;EACA,gBAAA;AAbN;AAiBQ;EACE,2BAAA;AAfV;AAkBM;EACE,aAAA;EACA,uBAAA;EACA,eAAA;EACA,iBAAA;EACA,uBAAA;AAhBR;AAkBQ;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,8CAAA;AAhBV;AAkBU;EACE,+BAAA;EACA,WAAA;EACA,YAAA;AAhBZ;AAkBY;EACE,8BAAA;AAhBd;AAoBQ;EACE,qBAAA;EACA,WAAA;AAlBV;AAoBU;EACE,mBAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,eAAA;EACA,kBAAA;AAlBZ;AAoBU;EACE,gBAAA;AAlBZ;AAoBU;EACE,eAAA;EACA,gBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;AAlBZ;AA0BI;EACE,2CAAA;AAxBN;;AA6BA;EACE,SAAA;EACA,OAAA;EACA,QAAA;EAEA,0CAAA;EACA,8CAAA;EACA,0IAAA;EACA,4BAAA;AA3BF;AA8BE;EACE,SAAA;AA5BJ","sourcesContent":["\n\n:host {\n  --ion-background-color: var(--alternative-color-page);\n}\n\n.content-page {\n  padding-bottom: calc(var(--ion-safe-area-bottom, 0px) + 172px);\n\n  .list {\n    margin: 0;\n    //border-top: 1px solid var(--color-separate);\n    //background: none;\n\n    &:first-child {\n      border-top: none;\n\n      .list-header {\n        border-top: none;\n      }\n    }\n\n    &:last-child {\n\n    }\n\n    & + .list:not(.group) {\n      border: none;\n      border-top: 8px solid var(--alternative-color-page);\n    }\n\n    .list-header {\n      position: relative;\n      //border-top: 8px solid var(--alternative-color-page);\n      background: var(--ion-card-background);\n    }\n\n    ion-card {\n      //padding: 0 16px;\n      box-shadow: none;\n      margin: 0;\n      border-top: none;\n      border-radius: 0;\n\n      &:last-child {\n        //border: none;\n        .applications-form-card-header {\n          --border-color: transparent;\n        }\n      }\n      .applications-form-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        .applications-form-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            circle {\n              fill: var(--ion-color-warning);\n            }\n          }\n        }\n        ion-card-header {\n          padding: 0 0 8px 16px;\n          width: 100%;\n\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  .group {\n    ion-card {\n      border-top: 1px solid var(--color-separate);\n    }\n  }\n}\n\n.newApplicationForm {\n  bottom: 0;\n  left: 0;\n  right: 0;\n  //background: rgba(var(--ion-tab-bar-background-color-alternative), .64);\n  backdrop-filter: saturate(210%) blur(20px);\n  box-shadow: 0 0 24px rgba(104, 122, 147, 0.16);\n  padding: 24px calc(max(((100% - 562px)/2), 0px) + 24px) calc(24px + 50px + var(--ion-safe-area-bottom)) calc(max(((100% - 562px)/2), 0px) + 24px);\n  border-radius: 16px 16px 0 0;\n\n\n  .create {\n    margin: 0;\n  }\n}\n\n"],"sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 25183:
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/tabs/appeals/applications-form/applications-form.page.html?ngResource ***!
  \*********************************************************************************************/
/***/ ((module) => {

"use strict";
module.exports = "<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>{{ 'APPEALS.APPLICATIONS_FORM_PAGE.TITLE' | translate }}</ion-title>\n        </ion-toolbar>\n    }\n</ion-header>\n\n<ion-content>\n\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 (\n            !loading$() &&\n            (!request.applicationsForm.value[request.activeLs.value] ||\n            request.applicationsForm.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>{{ 'APPEALS.APPLICATIONS_FORM_PAGE.NODATA' | translate }}</ion-card-title>\n                  </ion-card-header>\n              </div>\n          </ion-card>\n      }\n\n\n      @if (request.applicationsForm.value[request.activeLs.value]) {\n          <div class=\"list-pointer\">\n              @for (applicationForm of request.applicationsForm.value[request.activeLs.value]; let key = $index; track key) {\n                  <div\n                    class=\"list\"\n                    [ngClass]=\"key > 0 && dateConvert(applicationForm.created_at) === dateConvert(request.applicationsForm.value[request.activeLs.value][key-1].created_at) ? 'group' : ''\"\n                  >\n                      @if (\n                          key === 0 ||\n                          dateConvert(applicationForm.created_at) !== dateConvert(request.applicationsForm.value[request.activeLs.value][key-1].created_at)\n                              )\n                      {\n                          <div class=\"list-header\">\n                              {{ dateConvert(applicationForm.created_at) }}\n                          </div>\n                      }\n                      <ion-card>\n                          <ion-item class=\"applications-form-card-header el-anim-tap\" (click)=\"openChat(applicationForm)\">\n                              <div class=\"applications-form-card-icon\">\n                                  <div class=\"icon-block\"><ion-icon src=\"/assets/icons/Applications.svg\"></ion-icon></div>\n                              </div>\n                              <ion-card-header>\n                                  <ion-card-title [ngClass]=\"{'ion-card-title-bold':applicationForm.marked}\">\n                                      <div>{{ 'APPEALS.APPLICATIONS_FORM_PAGE.ITEM_TITLE' | translate:{value: applicationForm.number} }}</div>\n                                      <div>{{ applicationForm.status }}</div>\n                                  </ion-card-title>\n                                  <ion-card-subtitle>{{ applicationForm.description }}</ion-card-subtitle>\n                              </ion-card-header>\n                          </ion-item>\n                      </ion-card>\n                  </div>\n              }\n\n              @if (request.applicationsForm.value[request.activeLs.value] && request.applicationsForm.value[request.activeLs.value].length >= countApplicationFormsLoading) {\n                  <ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadData($event)\">\n                      <ion-infinite-scroll-content></ion-infinite-scroll-content>\n                  </ion-infinite-scroll>\n              }\n          </div>\n      }\n  </div>\n\n  <div class=\"newApplicationForm action-btn\" slot=\"fixed\">\n    <ion-button class=\"create\" type=\"button\" expand=\"block\" fill=\"solid\" (click)=\"openNewApplicationFormModal()\">{{ 'APPEALS.APPLICATIONS_FORM_PAGE.BUTTON' | translate }}</ion-button>\n  </div>\n\n</ion-content>\n";

/***/ })

}]);
//# sourceMappingURL=src_app_pages_tabs_appeals_applications-form_applications-form_module_ts.js.map