(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["service-request-service-request-module"],{

/***/ "BOY3":
/*!***********************************************************!*\
  !*** ./src/app/service-request/service-request.page.scss ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("ion-header ion-toolbar ion-buttons ion-menu-button {\n  border-radius: 50%;\n  margin: 0 15px;\n  width: 42px;\n  height: 42px;\n}\nion-header ion-toolbar:last-child {\n  padding: 0 7px 0 7px;\n}\nion-header ion-toolbar:last-child ion-button {\n  font-weight: 500;\n  white-space: normal;\n}\nion-header ion-toolbar:last-child ion-icon {\n  padding-right: 10px;\n}\nion-header .search-opt {\n  width: 100%;\n  text-align: end;\n}\nion-header .search-opt ion-searchbar {\n  text-align: initial;\n}\n.asc {\n  /* IE 9 */\n  transform: rotate(180deg);\n}\n.desc {\n  /* IE 9 */\n  transform: rotate(0deg);\n}\nion-footer ion-toolbar:last-child {\n  border-radius: 10px 10px 0 0;\n  padding: 0 7px 0 7px;\n}\nion-footer ion-toolbar:last-child ion-button {\n  font-weight: 500;\n  white-space: normal;\n}\nion-footer ion-toolbar:last-child ion-icon {\n  font-size: 20px;\n}\nion-footer ion-toolbar:last-child .filter {\n  padding-right: 5px;\n}\nion-content {\n  --offset-top:60px !important;\n}\n.main_container {\n  position: absolute;\n  left: 0;\n  right: 0;\n  width: 100%;\n  bottom: -100%;\n  height: 100%;\n  transition: all 0.3s;\n}\n.main_container .opt2 {\n  margin-bottom: 15px !important;\n}\n.main_container ion-list {\n  padding: 0;\n  background: none;\n  padding-top: 10px;\n  padding-top: 75px;\n}\n.main_container ion-list ion-item {\n  box-shadow: 4px 5px 10px -2px #b7b3b3 !important;\n  border: 1px solid #cac8c8 !important;\n}\n.main_container ion-list .filter {\n  font-weight: 700;\n  padding: 0 12px 0 0;\n}\n.main_container ion-list .filter .clear-filter {\n  font-size: var(--sub_title_font_size);\n  color: var(--primary);\n}\n.main_container ion-list .filter .date-range {\n  color: var(--text-light);\n  font-size: var(--text_font_size);\n  font-weight: 500;\n}\n.main_container ion-list .filter-banner {\n  color: var(--text-dark);\n  font-size: var(--text_font_size);\n  padding-left: 6px;\n  overflow: inherit;\n}\n.main_container ion-list .filter-by {\n  color: var(--text-dark);\n  font-size: var(--sub_title_font_size);\n  padding-left: 12px;\n  overflow: inherit;\n}\n.main_container ion-list ion-item-sliding, .main_container ion-list ion-item {\n  width: calc(100% - 15px);\n  margin: 0 auto;\n  padding: 0;\n  position: relative;\n  overflow: hidden;\n  border-radius: 7px;\n  margin-bottom: 12px;\n  --background: var(--transparent);\n  --inner-padding-end: 0px;\n  --inner-min-height: unset !important;\n  --padding-start: 0;\n  --min-height: unset;\n}\n.main_container ion-list ion-item-sliding .item_inner, .main_container ion-list ion-item .item_inner {\n  width: 100%;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-col.action-button, .main_container ion-list ion-item .item_inner ion-col.action-button {\n  padding: 5px !important;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-col.action-button ion-button, .main_container ion-list ion-item .item_inner ion-col.action-button ion-button {\n  height: 30px;\n  font-size: 14px;\n  --border-radius:7px !important;\n}\n.main_container ion-list ion-item-sliding .item_inner h4, .main_container ion-list ion-item .item_inner h4 {\n  font-size: 16px;\n}\n.main_container ion-list ion-item-sliding .item_inner .new, .main_container ion-list ion-item .item_inner .new {\n  border-right: 7px solid var(--ion-color-success);\n}\n.main_container ion-list ion-item-sliding .item_inner span.new, .main_container ion-list ion-item .item_inner span.new {\n  color: var(--ion-color-success) !important;\n  border-right: unset;\n}\n.main_container ion-list ion-item-sliding .item_inner .closed, .main_container ion-list ion-item .item_inner .closed {\n  border-left: 7px solid var(--ion-color-danger);\n}\n.main_container ion-list ion-item-sliding .item_inner span.closed, .main_container ion-list ion-item .item_inner span.closed {\n  color: var(--ion-color-danger) !important;\n  border-left: unset;\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header, .main_container ion-list ion-item .item_inner .item_header {\n  padding: 0px 12px;\n  background: var(--white);\n  border-bottom: 1px solid var(--text-dark);\n  color: var(--text-dark);\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header .expand, .main_container ion-list ion-item .item_inner .item_header .expand {\n  font-size: 29px;\n  margin: 0;\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header .img_box, .main_container ion-list ion-item .item_inner .item_header .img_box {\n  min-width: 30px;\n  max-width: 30px;\n  min-height: 30px;\n  border-radius: 50%;\n  margin-right: 10px;\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header h2, .main_container ion-list ion-item .item_inner .item_header h2 {\n  font-size: 1.1rem;\n  font-weight: 700;\n  margin: 0;\n  color: var(--secondary);\n  margin-right: 10px;\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header h2 sub, .main_container ion-list ion-item .item_inner .item_header h2 sub {\n  color: var(--text-light);\n  font-weight: 600;\n  font-size: 1rem;\n  margin: 0px 4px;\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header ion-icon, .main_container ion-list ion-item .item_inner .item_header ion-icon {\n  font-size: 125%;\n  margin: 5px 15px 5px 1px;\n  background: var(--white);\n  border-radius: 50%;\n  padding: 5px;\n  color: var(--secondary);\n}\n.main_container ion-list ion-item-sliding .item_inner .item_header .option2, .main_container ion-list ion-item .item_inner .item_header .option2 {\n  margin: 0 0 0 10px;\n  background: unset;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding, .main_container ion-list ion-item-sliding .item_inner .item_containt, .main_container ion-list ion-item .item_inner ion-item-sliding, .main_container ion-list ion-item .item_inner .item_containt {\n  padding: 8px 9px 8px 9px;\n  background: #fff;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row, .main_container ion-list ion-item .item_inner .item_containt ion-row {\n  align-items: flex-end;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col {\n  padding-bottom: 5px;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col.d-flex, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col.d-flex, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col.d-flex, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col.d-flex {\n  width: 16.66667%;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col span, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col span, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col span, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col span {\n  color: var(--text-dark);\n  font-size: 1rem;\n  margin: 0;\n  font-weight: 400;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col h3, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col h3, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col h3, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col h3 {\n  color: var(--text-light);\n  font-size: var(--sub_title_font_size);\n  margin: 0;\n  margin-bottom: 3px;\n  opacity: 0.8;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col h4, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col h4, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col h4, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col h4 {\n  color: var(--text-dark);\n  font-size: var(--text_font_size);\n  margin: 0;\n  font-weight: 400;\n}\n.main_container ion-list ion-item-sliding .item_inner ion-item-sliding ion-row ion-col ion-icon, .main_container ion-list ion-item-sliding .item_inner .item_containt ion-row ion-col ion-icon, .main_container ion-list ion-item .item_inner ion-item-sliding ion-row ion-col ion-icon, .main_container ion-list ion-item .item_inner .item_containt ion-row ion-col ion-icon {\n  color: var(--primary);\n  font-size: 1rem;\n  width: 30px;\n  height: 30px;\n  line-height: 30px;\n  text-align: center;\n}\n.main_container.active {\n  bottom: 0;\n}\n.item_footer {\n  height: 35px;\n  border-top: 1px solid var(--primary);\n  border-bottom: unset !important;\n}\n.item_footer p.item_footer1 {\n  position: absolute;\n  left: 5%;\n  color: var(--text-light);\n  font-size: var(--sub_title_font_size);\n}\n.item_footer p.item_footer2 {\n  position: absolute;\n  right: 5%;\n  color: var(--text-light);\n  font-size: var(--sub_title_font_size);\n}\nion-fab {\n  padding-right: 10px;\n  z-index: 1;\n}\nion-fab ion-fab-button {\n  --background: var(--secondary);\n  opacity: 0.6;\n  --color: var(--white);\n}\n/*\n.back-to-top-btn{\n\tmargin-bottom: 40px;\n}*/\nion-img {\n  width: 350px;\n  height: 320px;\n  font-weight: 100;\n  margin: 10px auto 10px auto;\n  border: 2px solid var(--text-dark);\n  border-radius: 10px;\n}\nion-footer {\n  transition: all 0.5s;\n  position: absolute;\n  bottom: 0;\n}\nion-footer .upcoming_tasks {\n  padding: 9px 0 14px 0;\n  background: var(--white);\n  overflow: hidden;\n  border-radius: 10px 10px 0 0;\n  width: calc(100% - 25px);\n  height: 75px;\n  margin: 0 auto;\n}\nion-footer .upcoming_tasks h2 {\n  margin: 0;\n  color: var(--text-light);\n  font-weight: 700;\n  font-size: 1.1rem;\n  letter-spacing: 0;\n}\nion-footer .upcoming_tasks ion-icon {\n  color: var(--text-light);\n  display: block;\n  margin: 0 auto;\n  font-size: 1.5rem;\n  margin-bottom: 6px;\n}\nion-footer.active {\n  bottom: -100px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "REdD":
/*!*******************************************************************!*\
  !*** ./src/app/service-request/service-request-routing.module.ts ***!
  \*******************************************************************/
/*! exports provided: ServiceRequestPageRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceRequestPageRoutingModule", function() { return ServiceRequestPageRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_request_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./service-request.page */ "lhn9");




const routes = [
    {
        path: '',
        component: _service_request_page__WEBPACK_IMPORTED_MODULE_3__["ServiceRequestPage"]
    }
];
let ServiceRequestPageRoutingModule = class ServiceRequestPageRoutingModule {
};
ServiceRequestPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
    })
], ServiceRequestPageRoutingModule);



/***/ }),

/***/ "YPdO":
/*!*************************************************!*\
  !*** ./src/services/service-request.service.ts ***!
  \*************************************************/
/*! exports provided: ServiceRequestService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceRequestService", function() { return ServiceRequestService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base-service */ "4YT6");
/* harmony import */ var _common_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common.service */ "FBGF");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "k8oS");







let ServiceRequestService = class ServiceRequestService extends _base_service__WEBPACK_IMPORTED_MODULE_4__["BaseService"] {
    constructor(_httpClient, _commonService) {
        super();
        this._httpClient = _httpClient;
        this._commonService = _commonService;
        this.fileName = 'service-request.service.ts';
    }
    getAllServiceRequestCategories(data) {
        try {
            let dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].SERVICE_REQUEST_API,
                local_json_file: 'local-service-request-topics',
                param_data: {},
                mapcol: false
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'getAllServiceRequestCategories(data)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    getAllServiceRequestTickets(obj) {
        try {
            /*var today = new Date();
            var monthStart = this.getLastThreeMonthDate();
            var monthEnd = today.toISOString().substr(0, 10);*/
            let dataObj = {
                offset: obj.offset,
                method: 'post',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].SERVICE_REQUEST_TICKETS_API,
                local_json_file: 'local-service-request-list',
                param_data: {
                    "name": "tickets",
                    "row_count": _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ROW_COUNT,
                    "row_offset": obj.offset,
                    "sorting": {
                        "id": "desc"
                    },
                    "filterparams": {
                        "created_on": [obj.startDate + "T00:01Z", obj.endDate + "T23:59Z"]
                    },
                    mapcol: true
                }
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'getAllServiceRequestTickets(obj)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    addTicket(obj) {
        try {
            let data = {
                "categoryId": obj.categoryId,
                "userId": this.getLocalUserId(),
                "remarks": obj.remarks,
                "properties": obj.properties
            };
            let url = this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ADD_TICKET_API;
            return this._httpClient.post(url, data).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(resp => {
                return resp;
            }));
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'addTicket(obj)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    closeTicket(obj) {
        try {
            let data = {
                "id": obj.id,
                "adminRemark": obj.adminRemark
            };
            let url = this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].CLOSE_TICKET_API;
            return this._httpClient.post(url, data).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(resp => {
                return resp;
            }));
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'closeTicket(obj)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    getDBTicketStatus() {
        try {
            let dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TICKET_STATUS_CNT_API,
                local_json_file: 'local-ticket-status-count',
                param_data: {},
                mapcol: false
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'getDBTicketStatus()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    getDocList() {
        try {
            let dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TICKET_DOC_TYPE_API,
                local_json_file: '',
                param_data: {},
                mapcol: false
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'getDocList()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    uploadTiketDoc(obj) {
        try {
            const formData = new FormData();
            formData.append('file', obj.file);
            let dataObj = {
                offset: 0,
                method: 'post',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TICKET_DOC_UPLOAD_API + obj.id + '/' + obj.docKey,
                local_json_file: '',
                param_data: {
                    file: formData
                },
                mapcol: false
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'uploadTiketDoc(obj)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    attachment(id) {
        try {
            let dataObj = {
                offset: 0,
                method: 'get',
                //api_url: this.getLocalapiBaseURL() + Enums.CONSTANTS.ATTACHMENT_LISTS_API,
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TICKET_ATTACHMENT_LISTS_API + id,
                local_json_file: '',
                data: {},
                mapcol: false
            };
            return this._commonService.fetchData(dataObj);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'attachment()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
};
ServiceRequestService.ctorParameters = () => [
    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
    { type: _common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"] }
];
ServiceRequestService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({
        providedIn: 'root'
    }),
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"], _common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"]])
], ServiceRequestService);



/***/ }),

/***/ "lhn9":
/*!*********************************************************!*\
  !*** ./src/app/service-request/service-request.page.ts ***!
  \*********************************************************/
/*! exports provided: ServiceRequestPage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceRequestPage", function() { return ServiceRequestPage; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _raw_loader_service_request_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raw-loader!./service-request.page.html */ "v6wH");
/* harmony import */ var _service_request_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./service-request.page.scss */ "BOY3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngx-translate/core */ "sYmb");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ "TEn/");
/* harmony import */ var src_services_common_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/services/common.service */ "FBGF");
/* harmony import */ var _services_service_request_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/service-request.service */ "YPdO");
/* harmony import */ var _services_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/constants */ "k8oS");
/* harmony import */ var src_models_service_filter_service_filter_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/models/service-filter/service-filter.component */ "HEGi");
/* harmony import */ var src_models_helpdesk_attachment_helpdesk_attachment_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/models/helpdesk-attachment/helpdesk-attachment.component */ "0lNN");




//import { ModalController } from '@ionic/angular';
//import { UpcomingPage } from '../upcoming/upcoming.page';  









let ServiceRequestPage = class ServiceRequestPage {
    constructor(router, translate, _actionSheetController, navCtrl, _modalController, _commonService, _alert, _serviceRequestService) {
        this.router = router;
        this.translate = translate;
        this._actionSheetController = _actionSheetController;
        this.navCtrl = navCtrl;
        this._modalController = _modalController;
        this._commonService = _commonService;
        this._alert = _alert;
        this._serviceRequestService = _serviceRequestService;
        this.record_per_page = _services_constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ROW_COUNT;
        this.offset = this.record_per_page * 0;
        this.pageNo = 1;
        this.lists = null;
        this.searchTerm = null;
        this.listType = 1;
        this.category_lists = {};
        this.showSearchBar = false;
        this.currentSortOrder = "asc";
        this.sortOn = '(on Status)';
        this.currentSortName = "status";
        this.filterOn = '(on All status)';
        this.SortCategory = 'All_request';
        this.dataGet = {
            op: "Opt1"
        };
        this.toggleGroups = {};
        this.tempFilter = null;
        this.backToTop = false;
        this.isLastPage = false;
        this.isDataFound = true;
        this.fileName = 'service-request.page.ts';
        // this.dataGet = JSON.parse(this.router.getCurrentNavigation().extras.queryParams.                         );
        // console.log({ tst: this.dataGet.op });
        this.idBasedCat = JSON.parse(localStorage.getItem("IdBasedCat"));
        this.resetFilter();
    }
    resetFilter() {
        try {
            var today = new Date();
            var monthStart = this._commonService.getLastThreeMonthDate(90);
            var monthEnd = today.toISOString().substr(0, 10);
            this.startDate = monthStart;
            this.endDate = monthEnd;
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'resetFilter()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    clearFilterDate() {
        try {
            this.filterBy = 'clear';
            this.dateRange = null;
            this.isDataFound = true;
            this.resetFilter();
            setTimeout(() => {
                this.ngOnInit();
            }, 700);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'clearFilterDate()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    ngOnInit() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                this.isLastPage = false;
                this.record_per_page = _services_constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ROW_COUNT;
                this.offset = this.record_per_page * 0;
                this.pageNo = 1;
                this.lists = null;
                yield this._commonService.showLoader();
                let obj;
                if (this.startDate && this.endDate !== '') {
                    obj = {
                        startDate: this.startDate,
                        endDate: this.endDate,
                        offset: this.offset
                    };
                }
                this._serviceRequestService.getAllServiceRequestTickets(obj).subscribe((res) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
                    if (res.status === true) {
                        let col = res.columns;
                        let data = res.data;
                        this._serviceRequestService.log({
                            Columns: col,
                            Data: data
                        });
                        this.lists = this._serviceRequestService.mapColData(col, data);
                        this.orgLists = this.lists;
                        if (res.data.length == 0) {
                            this.lists = null;
                            this.isDataFound = false;
                        }
                        yield this._commonService.hideLoader();
                    }
                    else if (res.d_type == 'local') {
                        this.lists = null;
                        this.isDataFound = false;
                    }
                }));
                this.backOpt = location.search.length;
                /*
                fetch('./assets/data-models/service-request/service-request-list-info.json').then(res => res.json()).then(jsonList => {
                  console.log('lists::',jsonList);
                  this.lists = jsonList;
                });
                */
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'ngOnInit()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    option(op) {
        try {
            this.dataGet.op = op;
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'option(op)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    showSearch() {
        try {
            //console.log(this.showSearchBar);
            if (this.showSearchBar) {
                this.ele.style.visibility = 'visible';
                //  this.eleheader.style.visibility = 'visible';
                this.showSearchBar = false;
            }
            else {
                this.ele.style.visibility = 'hidden';
                //  this.eleheader.style.visibility = 'hidden';
                this.showSearchBar = true;
            }
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'showSearch()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    ionViewDidEnter() {
        try {
            this.ele = document.getElementsByClassName('on-search-hide')[0];
            //console.log(this.ele);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'ionViewDidEnter()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    ionViewWillLeave() {
        try {
            /* resetting header for search & menu option if page is left or aborted */
            this.ele.style.visibility = 'visible';
            //this.eleheader.style.visibility = 'visible';
            this.showSearchBar = false;
            this.searchTerm = '';
            //this.searchConversation();
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'ionViewWillLeave()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    doRefresh(event) {
        try {
            this.lists = null;
            this.filterBy = 'clear';
            this.isDataFound = true;
            this.pageNo = 1;
            this.offset = this.record_per_page * 0;
            this.resetFilter();
            setTimeout(() => {
                this.ngOnInit();
                event.target.complete();
            }, 2000);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'doRefresh(event)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    // Open Modal for filter option
    openModel() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const modal = yield this._modalController.create({
                    component: src_models_service_filter_service_filter_component__WEBPACK_IMPORTED_MODULE_10__["ServiceFilterComponent"],
                    componentProps: {
                        _startDate: this.startDate,
                        _endDate: this.endDate,
                    }
                });
                modal.onDidDismiss().then((data) => {
                    var _a, _b, _c, _d;
                    if (data.data.userOption === 'confirm') {
                        this.startDate = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.startDate.toString().substring(0, 10);
                        this.endDate = (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.endDate.toString().substring(0, 10);
                        this.filterBy = 'date';
                        this.isDataFound = true;
                        this.startDateDisplay = (_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.startDate;
                        this.endDateDisplay = (_d = data === null || data === void 0 ? void 0 : data.data) === null || _d === void 0 ? void 0 : _d.endDate;
                        this.ngOnInit();
                    }
                });
                return yield modal.present();
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'openModel()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    loadMore(event) {
        try {
            if (this.isLastPage) {
                this._commonService.simpleToast(_services_constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].NO_RECORD);
            }
            let obj;
            this.offset = this.record_per_page * this.pageNo;
            if (this.startDate && this.endDate !== '') {
                obj = {
                    startDate: this.startDate,
                    endDate: this.endDate,
                    offset: this.offset
                };
            }
            this._serviceRequestService.getAllServiceRequestTickets(obj).subscribe(res => {
                if (res.status === true) {
                    this.isLastPage = (res.data.length < this.record_per_page || res.count == 0) ? true : false;
                    if (this.isLastPage) {
                        this._commonService.simpleToast(_services_constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].NO_RECORD);
                    }
                    this.pageNo++;
                    let col = res.columns;
                    let data = res.data;
                    let findata = [];
                    findata = this._serviceRequestService.mapColData(col, data);
                    if (this.lists === null) {
                        this.lists = findata;
                        this._commonService.log({ data: this.lists });
                    }
                    else {
                        Array.prototype.push.apply(this.lists, findata);
                        this._commonService.log({ data: this.lists });
                    }
                    this.orgLists = this.lists;
                    event.target.complete();
                }
            });
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'loadMore(event)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    getScrollPos(pos) {
        try {
            if (pos > 100) {
                this.backToTop = true;
            }
            else {
                this.backToTop = false;
            }
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'getScrollPos(pos: number)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    gotToTop() {
        try {
            this.content.scrollToTop(1000);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'gotToTop()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    sortOption() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                if (this.showSearchBar)
                    return;
                const actionSheet = yield this._actionSheetController.create({
                    header: 'Sort On',
                    cssClass: 'onepay-action-sheet',
                    buttons: [{
                            text: 'Status',
                            icon: 'invert-mode-outline',
                            handler: () => {
                                this.sortOn = '(on status)';
                                this.currentSortName = "status";
                                this.sortItems(this.lists);
                            }
                        }
                        /*{
                          text: 'Vehicle Number',
                          icon: 'car-sport-outline',
                          handler: () => {
                            this.sortOn = '(on Vehicle Number)';
                            this.currentSortName = "Vehicle_number";
                          }
                        }*/
                        ,
                        {
                            text: 'Ticket Number',
                            icon: 'pricetags-outline',
                            handler: () => {
                                this.sortOn = '(on Ticket Number)';
                                this.currentSortName = "id";
                                this.sortItems(this.lists);
                            }
                        }, {
                            text: 'Category Name',
                            icon: 'information-circle-outline',
                            handler: () => {
                                this.sortOn = '(on Category Name)';
                                this.currentSortName = "category_desc";
                                this.sortItems(this.lists);
                            }
                        }, {
                            text: 'Category Type',
                            icon: 'cog-outline',
                            handler: () => {
                                this.sortOn = '(on Category Type)';
                                this.currentSortName = "category_id";
                                this.sortItems(this.lists);
                            }
                        }]
                });
                yield actionSheet.present();
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'sortOption()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    reset() {
        try {
            return this.orgLists;
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'reset()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    filterOption() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                if (this.showSearchBar)
                    return;
                const actionSheet = yield this._actionSheetController.create({
                    header: 'Filter On',
                    cssClass: 'onepay-action-sheet',
                    buttons: [{
                            text: 'Clear',
                            icon: 'color-filter-outline',
                            handler: () => {
                                this.lists = this.reset();
                                this.filterOn = '(on All status)';
                                this.SortCategory = 'all_status';
                            }
                        }, {
                            text: 'New',
                            icon: 'flash-outline',
                            handler: () => {
                                this.lists = this.reset();
                                this.filterOn = '(on New)';
                                this.SortCategory = 'NEW';
                                this.lists = this.lists.filter((list, index) => {
                                    return list.status == 'NEW';
                                });
                            }
                        }, {
                            text: 'Pending',
                            icon: 'flash-outline',
                            handler: () => {
                                this.lists = this.reset();
                                this.filterOn = '(on Pending)';
                                this.SortCategory = 'PENDING';
                                this.lists = this.lists.filter((list, index) => {
                                    return list.status == 'PENDING';
                                });
                            }
                        }, {
                            text: 'Closed',
                            icon: 'flash-off-outline',
                            handler: () => {
                                this.lists = this.reset();
                                this.filterOn = '(on Closed)';
                                this.SortCategory = 'CLOSED';
                                this.lists = this.lists.filter((list, index) => {
                                    return list.status == 'CLOSED';
                                });
                            }
                        }]
                });
                yield actionSheet.present();
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'filterOption()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    toggleSort() {
        try {
            if (this.showSearchBar)
                return;
            this.currentSortOrder = this.currentSortOrder == 'asc' ? "desc" : "asc";
            this.sortItems(this.lists);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'toggleSort()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    raise_request() {
        try {
            this.router.navigate(['./raise-request']);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'raise_request()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    sortItems(list) {
        try {
            let order = "";
            if (this.currentSortName == "dueBy")
                order = this.currentSortOrder == "asc" ? "desc" : "asc";
            else
                order = this.currentSortOrder;
            this.lists = this._commonService.sortEntities(this.currentSortName, list, order);
            this._commonService.log({ TASKLIST: this.lists });
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'resetFilter()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    closeTicket(list) {
        try {
            this.simpleConfirm('Are You Sure?', 'This will close your ticket', list);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'closeTicket(list)',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    simpleConfirm(headerVal, messageVal, list) {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const alert = yield this._alert.create({
                    cssClass: 'prompt_alert',
                    mode: 'ios',
                    header: headerVal,
                    message: messageVal,
                    inputs: [
                        {
                            name: 'remarks',
                            placeholder: 'Enter Your Remarks',
                            type: 'textarea'
                        },
                    ],
                    buttons: [
                        {
                            cssClass: 'submit-btn',
                            text: 'Submit',
                            handler: data => {
                                if (data.remarks) {
                                    let obj = {
                                        "id": list.id,
                                        "adminRemark": data.remarks
                                    };
                                    this._serviceRequestService.closeTicket(obj).subscribe((resp) => {
                                        if (resp.status) {
                                            this._commonService.simpleAlert("Success", "Ticket Closed Successfully");
                                            this.ngOnInit();
                                        }
                                        else {
                                            this.resError = resp.message;
                                            // this._commonService.hideLoader();
                                            this._commonService.errorToast(this.resError);
                                        }
                                    }, error => {
                                        this.resError = error.message;
                                        //this._commonService.hideLoader();
                                        this._commonService.errorToast(this.resError);
                                    });
                                }
                                else {
                                    // invalid login
                                    return false;
                                }
                            }
                        },
                        {
                            cssClass: 'cancel-btn',
                            text: 'Cancel',
                            handler: () => {
                                //list.btnState = "Suspend";
                            }
                        },
                    ]
                });
                yield alert.present();
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'simpleConfirm(headerVal: string, messageVal: string, list)',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    // Open Modal for attachment option
    openAttachmentModel(list) {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const modal = yield this._modalController.create({
                    component: src_models_helpdesk_attachment_helpdesk_attachment_component__WEBPACK_IMPORTED_MODULE_11__["HelpdeskAttachmentComponent"],
                    componentProps: {
                    // _startDate: this.startDate,
                    // _endDate: this.endDate,
                    // _searchTerm: this.searchTerm
                    }
                });
                modal.onDidDismiss().then((data) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
                    var _a, _b, _c;
                    if (((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.userOption) === 'confirm') {
                        yield this._commonService.showLoader();
                        var obj = {
                            file: (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.file,
                            id: list === null || list === void 0 ? void 0 : list.id,
                            docKey: (_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.docKey
                        };
                        this._serviceRequestService.uploadTiketDoc(obj).subscribe((res) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
                            if (res.status === true) {
                                this._commonService.simpleAlert("Success", "Document Uploaded Successfully");
                                yield this._commonService.hideLoader();
                            }
                            else {
                                this._commonService.simpleToast(res === null || res === void 0 ? void 0 : res.message);
                                yield this._commonService.hideLoader();
                            }
                        }));
                    }
                }));
                return yield modal.present();
            }
            catch (error) {
                let obj = {
                    fileName: this.fileName,
                    functionName: 'openAttachmentModel()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    openAttachmentsList(list) {
        try {
            this._commonService.routeToPage('attachment-lists', {
                id: list.id,
                op: 'tickets'
            });
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'openAttachmentsList()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
};
ServiceRequestPage.ctorParameters = () => [
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] },
    { type: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__["TranslateService"] },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["ActionSheetController"] },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["NavController"] },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["ModalController"] },
    { type: src_services_common_service__WEBPACK_IMPORTED_MODULE_7__["CommonService"] },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["AlertController"] },
    { type: _services_service_request_service__WEBPACK_IMPORTED_MODULE_8__["ServiceRequestService"] }
];
ServiceRequestPage.propDecorators = {
    content: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: [_ionic_angular__WEBPACK_IMPORTED_MODULE_6__["IonContent"], { read: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["IonContent"], static: false },] }]
};
ServiceRequestPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-service-request',
        template: _raw_loader_service_request_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_service_request_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
    }),
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"],
        _ngx_translate_core__WEBPACK_IMPORTED_MODULE_5__["TranslateService"],
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["ActionSheetController"],
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["NavController"],
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["ModalController"],
        src_services_common_service__WEBPACK_IMPORTED_MODULE_7__["CommonService"],
        _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["AlertController"],
        _services_service_request_service__WEBPACK_IMPORTED_MODULE_8__["ServiceRequestService"]])
], ServiceRequestPage);



/***/ }),

/***/ "v6wH":
/*!*************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/service-request/service-request.page.html ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ion-header>\r\n\t<ion-toolbar>\r\n\t\t<ion-buttons slot=\"start\" class=\"on-search-hide\" *ngIf=\"!showSearchBar\">\r\n\t\t\t<ion-back-button text=\"\" icon=\"chevron-back-sharp\"></ion-back-button>\r\n\t\t</ion-buttons>\r\n\t\t<ion-title>\r\n\t\t\t<span class=\"d-flex\">\r\n\t\t\t\t<span *ngIf=\"!showSearchBar\" class=\"on-search-hide\">Helpdesk Tickets<span (click)=\"option('Opt1')\">\r\n\t\t\t\t\t\t&nbsp;</span>\r\n\t\t\t\t\t<!-- / <span (click)=\"option('Opt2')\">Option2</span>/ <span\r\n\t\t\t\t\t\t(click)=\"option('Opt3')\">Option3</span>-->\r\n\t\t\t\t</span>\r\n\t\t\t\t<span class=\"search-opt\">\r\n\t\t\t\t\t<ion-icon *ngIf=\"!showSearchBar\" slot=\"end\" name=\"search\" (click)=\"showSearch()\">\r\n\t\t\t\t\t</ion-icon>\r\n\t\t\t\t\t<ion-searchbar *ngIf=\"showSearchBar\" placeholder=\"Search items\" showCancelButton=\"always\"\r\n\t\t\t\t\t\tdeopenChatbounce=500 [(ngModel)]=\"searchTerm\" (ionCancel)=\"showSearch()\"></ion-searchbar>\r\n\t\t\t\t\t<ion-icon name=\"funnel\" (click)=\"openModel()\" *ngIf=\"!showSearchBar\" class=\"on-search-hide\">\r\n\t\t\t\t\t</ion-icon>\r\n\t\t\t\t</span>\r\n\t\t\t</span>\r\n\t\t</ion-title>\r\n\t</ion-toolbar>\r\n</ion-header>\r\n<ion-content fullscreen class=\"\" [scrollEvents]=\"true\" (ionScroll)=\"getScrollPos($event.detail.scrollTop)\">\r\n\t<ion-refresher slot=\"fixed\" (ionRefresh)=\"doRefresh($event)\">\r\n\t\t<ion-refresher-content></ion-refresher-content>\r\n\t</ion-refresher>\r\n\r\n\t<div class=\"main_container active\">\r\n\t\t<ion-list lines=\"none\" *ngIf=\"dataGet.op  == 'Opt1'\">\r\n\t\t\t<ion-item *ngIf=\"filterBy == 'date'\" class=\"filter\">\r\n\t\t\t\t<ion-label class=\"filter-by\">Filter by <span class=\"date-range\">{{ startDateDisplay |\r\n\t\t\t\t\t\tformatDate:'short' }} To {{endDateDisplay | formatDate:'short' }}</span></ion-label>\r\n\t\t\t\t<ion-label slot=\"end\" class=\"clear-filter\" (click)=\"clearFilterDate()\">Clear</ion-label>\r\n\t\t\t</ion-item>\r\n\t\t\t<ion-item *ngIf=\"!isDataFound\" class=\"filter-banner\">\r\n\t\t\t\t<ion-label class=\"filter-banner\">No record found from <strong>{{ startDate | formatDate:'short'\r\n\t\t\t\t\t\t}}</strong> To <strong>{{endDate | formatDate:'short' }}</strong></ion-label>\r\n\t\t\t</ion-item>\r\n\t\t\t<div *ngIf=\"( lists | filter : searchTerm) as result\">\r\n\t\t\t\t<ion-item *ngIf=\"result.length === 0\" class=\"filter-banner\">\r\n\t\t\t\t\t<ion-label class=\"filter-banner\">No record found</ion-label>\r\n\t\t\t\t</ion-item>\r\n\t\t\t\t<ion-item *ngFor=\"let list of result; let i = index\">\r\n\t\t\t\t\t<div class=\"item_inner\">\r\n\t\t\t\t\t\t<div class=\"item_header d-flex\">\r\n\t\t\t\t\t\t\t<h4 class=\"d-flex\">\r\n\t\t\t\t\t\t\t\t{{list?.category_desc}}\r\n\t\t\t\t\t\t\t\t<!-- (<sub> </sub>) -->\r\n\t\t\t\t\t\t\t\t<span class=\"end {{list?.status | lowercase}}\">{{list?.status}}</span>\r\n\t\t\t\t\t\t\t</h4>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"item_containt\">\r\n\t\t\t\t\t\t\t<!-- {{list?.tagStatus}} -->\r\n\t\t\t\t\t\t\t<ion-row>\r\n\t\t\t\t\t\t\t\t<ion-col size=\"8\">\r\n\t\t\t\t\t\t\t\t\t<h3>Remarks</h3>\r\n\t\t\t\t\t\t\t\t\t<h4>{{list?.remarks}}</h4>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t\t<ion-col size=\"4\">\r\n\t\t\t\t\t\t\t\t\t<h3>Category Type</h3>\r\n\t\t\t\t\t\t\t\t\t<h4>{{idBasedCat[list?.category_id]?.category}}</h4>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t\t<ion-col size=\"6\" *ngIf=\"list?.status === 'CLOSED'\">\r\n\t\t\t\t\t\t\t\t\t<h3>Admin Remarks</h3>\r\n\t\t\t\t\t\t\t\t\t<h4>{{list?.admin_remark}}</h4>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t</ion-row>\r\n\t\t\t\t\t\t\t<ion-row>\r\n\t\t\t\t\t\t\t\t<ion-col class=\"action-button\" size=\"2\">\r\n\t\t\t\t\t\t\t\t\t<ion-icon (click)=\"openAttachmentsList(list)\" name=\"attach-outline\"></ion-icon>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t\t<ion-col class=\"action-button\" size=\"5\">\r\n\t\t\t\t\t\t\t\t\t<ion-button size=\"small\" shape=\"block\" class=\"btn\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"openAttachmentModel(list)\">\r\n\t\t\t\t\t\t\t\t\t\tAttachment\r\n\t\t\t\t\t\t\t\t\t</ion-button>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t\t<ion-col size=\"5\" class=\"action-button\" *ngIf=\"list?.status !== 'CLOSED'\">\r\n\t\t\t\t\t\t\t\t\t<ion-button size=\"small\" shape=\"block\" class=\"btn\" (click)=\"closeTicket(list)\">Close\r\n\t\t\t\t\t\t\t\t\t</ion-button>\r\n\t\t\t\t\t\t\t\t</ion-col>\r\n\t\t\t\t\t\t\t</ion-row>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"item_header item_footer\">\r\n\t\t\t\t\t\t\t<p class=\"item_footer1\">T{{list?.id}}</p>\r\n\t\t\t\t\t\t\t<p class=\"item_footer2\">{{list?.created_on | formatDate:'short' }}</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</ion-item>\r\n\t\t\t</div>\r\n\r\n\t\t</ion-list>\r\n\t</div>\r\n\t<ion-fab class=\"back-to-top-btn\" *ngIf=\"backToTop\" (click)=\"gotToTop()\" horizontal=\"end\" vertical=\"bottom\"\r\n\t\tslot=\"fixed\">\r\n\t\t<ion-fab-button>\r\n\t\t\t<!-- <ion-icon md=\"caret-up\" ios=\"chevron-back-circle-outline\"></ion-icon> -->\r\n\t\t\t<ion-icon name=\"chevron-up-circle-outline\"></ion-icon>\r\n\t\t</ion-fab-button>\r\n\t</ion-fab>\r\n\t<ion-infinite-scroll threshold=\"100px\" (ionInfinite)=\"loadMore($event)\">\r\n\t\t<ion-infinite-scroll-content loadingSpinner=\"bubbles\" loadingText=\"Loading more data...\">\r\n\t\t</ion-infinite-scroll-content>\r\n\t</ion-infinite-scroll>\r\n</ion-content>\r\n<!-- <ion-footer>\r\n\t<ion-toolbar color=\"secondary\">\r\n\t\t<ion-buttons slot=\"start\">\r\n\t\t\t<ion-icon name=\"filter-outline\" (click)=\"toggleSort()\" class=\"sort-order {{currentSortOrder}}\"></ion-icon>\r\n\t\t\t<ion-icon name=\"arrow-up-sharp\" (click)=\"toggleSort()\" class=\"sort-order\"></ion-icon>\r\n\t\t\t<ion-icon name=\"arrow-down-sharp\" (click)=\"toggleSort()\"></ion-icon>\r\n\t\t\t<ion-button class=\"sort-option\">\r\n\t\t\t\t<span (click)=\"sortOption()\">Sort\r\n\t\t\t\t\t{{sortOn}}\r\n\t\t\t\t</span>\r\n\t\t\t</ion-button>\r\n\t\t</ion-buttons>\r\n\t\t<ion-buttons slot=\"end\">\r\n\t\t\t<ion-button (click)=\"filterOption()\">\r\n\t\t\t\t<ion-icon name=\"funnel-outline\" class=\"filter\"></ion-icon>\r\n\t\t\t\tFilter\r\n\t\t\t\t{{filterOn}}\r\n\t\t\t</ion-button>\r\n\t\t</ion-buttons>\r\n\t\t<ion-title>\r\n\t\t</ion-title>\r\n\t</ion-toolbar>\r\n</ion-footer> -->");

/***/ }),

/***/ "zL01":
/*!***********************************************************!*\
  !*** ./src/app/service-request/service-request.module.ts ***!
  \***********************************************************/
/*! exports provided: ServiceRequestPageModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceRequestPageModule", function() { return ServiceRequestPageModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngx-translate/core */ "sYmb");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ionic/angular */ "TEn/");
/* harmony import */ var _service_request_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./service-request-routing.module */ "REdD");
/* harmony import */ var _service_request_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./service-request.page */ "lhn9");
/* harmony import */ var src_pipes_shared_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/pipes/shared.module */ "hFmk");
/* harmony import */ var ng2_search_filter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ng2-search-filter */ "cZdB");





//import { FormatDatePipe } from '../../pipes/format-date.pipe';





let ServiceRequestPageModule = class ServiceRequestPageModule {
};
ServiceRequestPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["IonicModule"],
            _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateModule"],
            _service_request_routing_module__WEBPACK_IMPORTED_MODULE_6__["ServiceRequestPageRoutingModule"],
            src_pipes_shared_module__WEBPACK_IMPORTED_MODULE_8__["SharedModule"],
            ng2_search_filter__WEBPACK_IMPORTED_MODULE_9__["Ng2SearchPipeModule"]
        ],
        declarations: [_service_request_page__WEBPACK_IMPORTED_MODULE_7__["ServiceRequestPage"]]
    })
], ServiceRequestPageModule);



/***/ })

}]);
//# sourceMappingURL=service-request-service-request-module-es2015.js.map