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

/***/ "B3xu":
/*!***********************************************!*\
  !*** ./src/app/dashboard/dashboard.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}\n\n.container {\n  padding: 10px;\n}\n\n.container p.info-icon {\n  text-align: center;\n}\n\n.container .info-icon {\n  font-size: 250% !important;\n}\n\n.container ion-grid {\n  background: #e1e6ea;\n  color: var(--secondary);\n  padding: 10px;\n  border-radius: 10px 10px 0 0;\n  margin: 0px 0px 2px 0px;\n  border-top: 2px solid var(--secondary);\n}\n\n.container ion-grid ion-note {\n  color: var(--secondary);\n}\n\n.container ion-list-header {\n  font-size: var(--title_font_size);\n  color: var(--primary);\n}\n\n.container ion-list-header ion-icon {\n  margin: 0 15px 0 0;\n  color: var(--primary);\n}\n\n.container ion-item {\n  color: var(--secondary);\n  font-size: var(--title_font_size);\n  width: 95%;\n}\n\n.container ion-item ion-label {\n  font-size: var(--sub_title_font_size);\n}\n\n.container ion-note {\n  font-size: var(--text_font_size);\n  color: var(--primary);\n}\n\n.container .title {\n  border-radius: 10px;\n  background: var(--white);\n}\n\n.container .title ion-item {\n  --background: var(--white) !important;\n}\n\n.container .top-border {\n  border-top: 2px solid var(--secondary);\n}\n\n.row1 {\n  margin-top: 0px;\n}\n\n.row1 .add-btn {\n  border: unset !important;\n  font-size: 20px !important;\n  padding: 0px 0px !important;\n  margin-left: 10px;\n}\n\n.row1 ion-icon {\n  font-size: 25px;\n  color: var(--black);\n  border-radius: 50%;\n  padding: 0px;\n  align-items: center;\n  text-align: center;\n  border: 10px solid var(--white);\n}\n\n.row1 .bal-text {\n  /* Auto Layout */\n  font-family: Roboto;\n  font-style: normal;\n  font-weight: 800;\n  font-size: 15px;\n  margin: 1px;\n  text-align: center;\n  color: var(--black);\n}\n\n.row2 {\n  border-radius: 20px;\n}\n\n.row2 .menu {\n  color: var(--primary) !important;\n  font-size: 20px;\n}\n\n.row2 .submenu {\n  color: var(--secondary) !important;\n  font-size: 18px;\n}\n\n.row2 ion-badge {\n  padding: 8px;\n}\n\n.row3 {\n  border-radius: 20px;\n}\n\n.row3 .menu {\n  color: var(--primary) !important;\n  font-size: 20px;\n}\n\n.row3 .submenu {\n  color: var(--secondary) !important;\n  font-size: 18px;\n}\n\n.row3 ion-badge {\n  padding: 8px;\n}\n\nion-content {\n  --offset-bottom:0px !important;\n}\n\n.my_location {\n  position: absolute;\n  width: 68px;\n  height: 68px;\n  overflow: hidden;\n  border-radius: 50%;\n}\n\n.my_location ion-icon {\n  color: var(--sky_Blue);\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  top: 0px;\n  left: 0px;\n  bottom: 0;\n  right: 0;\n  margin: auto;\n  border-radius: 50%;\n  overflow: hidden;\n}\n\n.my_location ion-icon::before, .my_location ion-icon::after {\n  content: \"\";\n  position: absolute;\n  top: 0px;\n  left: 0px;\n  bottom: 0;\n  right: 0;\n  margin: auto;\n  width: 100%;\n  height: 100%;\n  background: var(--sky_Blue);\n  opacity: 0.2;\n  border-radius: 50%;\n}\n\n.my_location ion-icon::before {\n  opacity: 1;\n  width: 8px;\n  height: 8px;\n}\n\n.my_location::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: var(--sky_Blue);\n  opacity: 0.1;\n}\n\n.tasks_container {\n  position: relative;\n  left: 0;\n  right: 0;\n  width: 100%;\n  bottom: -100%;\n  height: 100%;\n  transition: all 0.3s;\n}\n\n.tasks_container ion-list {\n  padding: 0;\n  background: none;\n  padding-top: 10px;\n}\n\n.tasks_container ion-list ion-item {\n  width: calc(100% - 25px);\n  margin: 0 auto;\n  padding: 0;\n  position: relative;\n  overflow: hidden;\n  border-radius: 7px;\n  margin-bottom: 12.5px;\n  --background: var(--transparent);\n  background: var(--bg_light);\n  --inner-padding-end: 0px;\n  --inner-min-height: unset !important;\n  --padding-start: 0;\n  box-shadow: none !important;\n  --min-height: unset;\n}\n\n.tasks_container ion-list ion-item .item_inner {\n  width: 100%;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_header {\n  padding: 8px 11px;\n  background: var(--primary2);\n}\n\n.tasks_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\n.tasks_container ion-list ion-item .item_inner .item_header h2 {\n  font-size: 1.1rem;\n  font-weight: 700;\n  letter-spacing: 0;\n  margin: 0;\n  color: var(--primary2_contrast);\n}\n\n.tasks_container ion-list ion-item .item_inner .item_header h2 sub {\n  color: var(--text-light);\n  font-weight: 400;\n  font-size: 0.7rem;\n  margin: 0px 4px;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_header h2 .end {\n  color: var(--primary2_contrast);\n  font-size: 0.95rem;\n  letter-spacing: 0.5px;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt {\n  background: var(--white);\n  border-radius: 7px;\n  padding: 3px 3px 6px 9px;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row {\n  align-items: flex-end;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col {\n  padding-bottom: 5px;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col.d-flex {\n  width: 16.66667%;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col h3 {\n  color: var(--text-light);\n  font-size: 0.8rem;\n  margin: 0;\n  margin-bottom: 3px;\n  opacity: 0.8;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col h4.remark {\n  color: var(--title);\n  font-size: 0.95rem;\n  margin: 0;\n  font-weight: 400;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col h4 {\n  color: var(--title);\n  font-size: 0.8rem;\n  margin: 0;\n  font-weight: 400;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row ion-col ion-icon {\n  color: var(--primary);\n  border: 1px solid #ccc;\n  border-radius: 50%;\n  font-size: 1rem;\n  width: 30px;\n  height: 30px;\n  line-height: 30px;\n  text-align: center;\n}\n\n.tasks_container ion-list ion-item .item_inner .item_containt ion-row:last-child {\n  background: var(--bg_light);\n  border-radius: 5px;\n  padding: 2px;\n}\n\n.tasks_container.active {\n  bottom: 0;\n}\n\nion-footer {\n  height: 75px;\n  transition: all 0.5s;\n  position: absolute;\n  bottom: 0;\n}\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}\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}\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}\n\nion-footer.active {\n  bottom: -100px;\n}\n\n.banner {\n  background: var(--bg_light);\n  padding: 10px 20px 0px 20px;\n}\n\n.banner .truck_details {\n  padding-bottom: 14px;\n}\n\n.banner .truck_details .truck_img {\n  min-width: 95px;\n  max-width: 95px;\n  height: 85px;\n  position: relative;\n  overflow: hidden;\n  margin-right: 23px;\n}\n\n.banner .truck_details .truck_img .img_box {\n  min-width: 85px;\n  max-width: 85px;\n  height: 85px;\n  border-radius: 50%;\n  border: 2px solid var(--white);\n}\n\n.banner .truck_details .truck_img ion-icon {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  margin: auto 0;\n  background: var(--primary);\n  color: var(--white);\n  text-align: center;\n  z-index: 999;\n  border-radius: 50%;\n  width: 22px;\n  height: 22px;\n  font-size: 0.85rem;\n  line-height: 23px;\n}\n\n.banner .truck_details .text_box {\n  width: 100%;\n}\n\n.banner .truck_details .text_box h2 {\n  margin: 0;\n  color: var(--green_color);\n  font-size: 1.12rem;\n  font-weight: 700;\n  letter-spacing: 0;\n  padding-bottom: 7px;\n}\n\n.banner .truck_details .text_box p {\n  color: var(--white);\n  margin: 0;\n  font-size: 0.95rem;\n}\n\n.banner .truck_details .text_box p span {\n  font-weight: 600;\n  margin: 0 4px;\n}\n\n.banner .truck_details .text_box p ion-icon {\n  color: var(--primary);\n  font-size: 1.8rem;\n  width: 14px;\n}\n\n.banner ion-segment {\n  max-width: calc(100% - 80px);\n  margin: 0 auto;\n}\n\n.banner ion-segment ion-segment-button {\n  background: none !important;\n  position: relative;\n  color: var(--text-light) !important;\n  text-transform: unset !important;\n  letter-spacing: 0;\n  --color-checked: var(--transparent) !important;\n  text-align: justify !important;\n  --background-checked: var(--transparent) !important;\n  --border-width: 0 !important;\n  --border-radius: 0 !important;\n  padding: 0px 0;\n  text-align: justify;\n  opacity: 1;\n  font-size: 0.9rem;\n  font-weight: 700;\n}\n\n.banner ion-segment ion-segment-button.segment-button-checked {\n  opacity: 1;\n  color: var(--title) !important;\n}\n\n.banner ion-segment ion-segment-button.segment-button-checked::after {\n  content: \"\";\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  width: 55px;\n  height: 3.5px;\n  border-radius: 0px;\n  background: var(--primary);\n  margin: 0 auto;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "KR73":
/*!*************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/dashboard/dashboard.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>\n\t<ion-toolbar>\n\t\t<!-- <div class=\"map\">\n\t\t\t<img src=\"assets/imgs/h_logo.png\" class=\"crop_img\">\n\t\t</div> -->\n\t\t<ion-buttons slot=\"start\">\n\t\t\t<ion-menu-button></ion-menu-button>\n\t\t</ion-buttons>\n\t\t<ion-title>\n\t\t\t<span class=\"d-flex\">\n\t\t\t\t1PAY\n\t\t\t</span>\n\t\t</ion-title>\n\t</ion-toolbar>\n\n</ion-header>\n<ion-content fullscreen>\n\t<ion-refresher slot=\"fixed\" (ionRefresh)=\"doRefresh($event)\">\n\t\t<ion-refresher-content></ion-refresher-content>\n\t</ion-refresher>\n\n\t<div class=\"container\">\n\n\t\t<ion-list>\n\t\t\t<!-- <ion-list-header>Notice</ion-list-header> -->\n\t\t\t<ion-grid>\n\t\t\t\t<ion-row>\n\t\t\t\t\t<ion-col>\n\t\t\t\t\t\t<ion-note>{{appDbNew}}</ion-note>\n\t\t\t\t\t</ion-col>\n\t\t\t\t</ion-row>\n\t\t\t</ion-grid>\n\t\t\t<div (click)=\"goToWallet()\">\n\t\t\t\t<ion-list-header class=\"top-border\" (click)=\"goToWallet()\">\n\t\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t\t<ion-icon name=\"wallet\"></ion-icon>\n\t\t\t\t\t\t<ion-label>Wallet</ion-label>\n\t\t\t\t\t\t<ion-note slot=\"end\">{{walletData?.balance | currency:'INR':'symbol':'0.0'}}</ion-note>\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\n\t\t\t\t<ion-list-header (click)=\"goToWallet()\">\n\t\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t\t<ion-icon name=\"shield-half\"></ion-icon>\n\t\t\t\t\t\t<ion-label>Deposit</ion-label>\n\t\t\t\t\t\t<ion-note slot=\"end\">{{walletData?.sec_deposit | currency:'INR':'symbol':'0.0'}}</ion-note>\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\t\t\t</div>\n\t\t\t<div (click)=\"goToVehicle()\">\n\t\t\t\t<ion-list-header class=\"top-border title\">\n\t\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t\t<ion-icon name=\"car\"></ion-icon>\n\t\t\t\t\t\tVehicles\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\n\t\t\t\t<ion-list-header *ngFor=\"let vrnState of vrnStates\">\n\t\t\t\t\t<ion-item>\n\t\t\t\t\t\t<ion-label>{{vrnState?.tag_status}}</ion-label>\n\t\t\t\t\t\t<ion-note slot=\"end\">{{vrnState?.occurrence}}</ion-note>\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\t\t\t</div>\n\t\t\t<div (click)=\"goToSR()\">\n\t\t\t\t<ion-list-header class=\"top-border title\">\n\t\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t\t<ion-icon name=\"ticket\"></ion-icon>\n\t\t\t\t\t\tHelpdesk Tickets\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\t\t\t\t<ion-list-header *ngFor=\"let ticketList of ticketLists\">\n\t\t\t\t\t<ion-item>\n\t\t\t\t\t\t<ion-label>{{ticketList?.status}}</ion-label>\n\t\t\t\t\t\t<ion-note slot=\"end\">{{ticketList?.count}}</ion-note>\n\t\t\t\t\t</ion-item>\n\t\t\t\t</ion-list-header>\n\t\t\t</div>\n\t\t</ion-list>\n\t</div>\n</ion-content>");

/***/ }),

/***/ "NcNw":
/*!*********************************************!*\
  !*** ./src/app/dashboard/dashboard.page.ts ***!
  \*********************************************/
/*! exports provided: DashboardPage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardPage", function() { return DashboardPage; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _raw_loader_dashboard_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raw-loader!./dashboard.page.html */ "KR73");
/* harmony import */ var _dashboard_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dashboard.page.scss */ "B3xu");
/* 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 src_services_common_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/services/common.service */ "FBGF");
/* harmony import */ var src_services_wallet_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/services/wallet.service */ "vjAt");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_services_service_request_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/services/service-request.service */ "YPdO");









let DashboardPage = class DashboardPage {
    constructor(route, _walletService, _commonService, _serviceReq) {
        this.route = route;
        this._walletService = _walletService;
        this._commonService = _commonService;
        this._serviceReq = _serviceReq;
        this.walletData = {};
        this.listType = 1;
        this.appDbNew = src_environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].appDbNew;
        this.tab = "open";
        this.fileName = 'dashboard.page.ts';
        this.firstTimeLoad = 'n';
    }
    ngOnInit() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            this.firstTimeLoad = 'y';
            try {
                if (this._commonService.getLocalDashboardUpdatedTime() === null || (this._commonService.differenceInMinutes(new Date().toISOString(), this._commonService.getLocalDashboardUpdatedTime()) > 1)) {
                    this.titleHeader = 'Dashboard';
                    yield this._commonService.showLoader();
                    this.vrnLists = this._commonService.getLocalVehicleList();
                    this.vrnStates = this._commonService.findOcc(this.vrnLists, 'tag_status');
                    this._walletService.checkBalance({ mode: 'BAL' }).subscribe((res) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
                        localStorage.setItem("dashboardUpdatedTime", this._commonService.getTimestamp());
                        if (res.status === true) {
                            this._walletService.log({ checkbalResp: res });
                            this.walletData = res.data;
                            yield this._commonService.hideLoader();
                        }
                    }));
                    this._serviceReq.getDBTicketStatus().subscribe((res) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
                        localStorage.setItem("dashboardUpdatedTime", this._commonService.getTimestamp());
                        if (res.status === true) {
                            this._walletService.log({ TicketStatus: res });
                            this.ticketLists = res.data;
                            yield this._commonService.hideLoader();
                        }
                    }));
                }
            }
            catch (error) {
                this._commonService.hideLoader();
                let obj = {
                    fileName: this.fileName,
                    functionName: 'ngOnInit()',
                    error: error
                };
                this._commonService.systemException(obj);
            }
        });
    }
    ionViewWillEnter() {
        if (this.firstTimeLoad == 'n') {
            this.ngOnInit();
            let ng = this;
            setTimeout(() => {
                ng._commonService.hideLoader();
            }, 3000);
        }
    }
    ionViewDidLeave() {
        this.firstTimeLoad = 'n';
        // this._commonService.hideLoader();
    }
    doRefresh(event) {
        try {
            this.firstTimeLoad = 'n';
            localStorage.removeItem("dashboardUpdatedTime");
            setTimeout(() => {
                this.ngOnInit();
                event.target.complete();
            }, 2000);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'doRefresh()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    goToSR() {
        try {
            this.route.navigate(['./tab/services-list']);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'goToSR()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    goToVehicle() {
        try {
            this.route.navigate(['./tab/vehicle-list']);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'goToVehicle()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
    goToWallet() {
        try {
            this.route.navigate(['./wallet']);
        }
        catch (error) {
            let obj = {
                fileName: this.fileName,
                functionName: 'goToWallet()',
                error: error
            };
            this._commonService.systemException(obj);
        }
    }
};
DashboardPage.ctorParameters = () => [
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] },
    { type: src_services_wallet_service__WEBPACK_IMPORTED_MODULE_6__["WalletService"] },
    { type: src_services_common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"] },
    { type: src_services_service_request_service__WEBPACK_IMPORTED_MODULE_8__["ServiceRequestService"] }
];
DashboardPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-dashboard',
        template: _raw_loader_dashboard_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_dashboard_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
    }),
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"],
        src_services_wallet_service__WEBPACK_IMPORTED_MODULE_6__["WalletService"],
        src_services_common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"],
        src_services_service_request_service__WEBPACK_IMPORTED_MODULE_8__["ServiceRequestService"]])
], DashboardPage);



/***/ }),

/***/ "Oy4E":
/*!*******************************************************!*\
  !*** ./src/app/dashboard/dashboard-routing.module.ts ***!
  \*******************************************************/
/*! exports provided: DashboardPageRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardPageRoutingModule", function() { return DashboardPageRoutingModule; });
/* 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 _dashboard_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dashboard.page */ "NcNw");




const routes = [
    {
        path: '',
        component: _dashboard_page__WEBPACK_IMPORTED_MODULE_3__["DashboardPage"]
    }
];
let DashboardPageRoutingModule = class DashboardPageRoutingModule {
};
DashboardPageRoutingModule = 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"]],
    })
], DashboardPageRoutingModule);



/***/ }),

/***/ "TDBs":
/*!***********************************************!*\
  !*** ./src/app/dashboard/dashboard.module.ts ***!
  \***********************************************/
/*! exports provided: DashboardPageModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardPageModule", function() { return DashboardPageModule; });
/* 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 _dashboard_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dashboard-routing.module */ "Oy4E");
/* harmony import */ var _dashboard_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./dashboard.page */ "NcNw");








let DashboardPageModule = class DashboardPageModule {
};
DashboardPageModule = 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"],
            _dashboard_routing_module__WEBPACK_IMPORTED_MODULE_6__["DashboardPageRoutingModule"]
        ],
        declarations: [_dashboard_page__WEBPACK_IMPORTED_MODULE_7__["DashboardPage"]]
    })
], DashboardPageModule);



/***/ }),

/***/ "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);



/***/ })

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