(function () {
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

  (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["tab-tab-module"], {
    /***/
    "2ASr":
    /*!*************************************************************************!*\
      !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/tab/tab.page.html ***!
      \*************************************************************************/

    /*! exports provided: default */

    /***/
    function ASr(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony default export */


      __webpack_exports__["default"] = "<ion-content>\n  <ion-tabs>\n    <ion-tab-bar slot=\"bottom\">\n      <ion-tab-button tab=\"my-dashboard\">\n        <ion-icon name=\"stats-chart\"></ion-icon>\n      </ion-tab-button>\n      <ion-tab-button tab=\"services-list\">\n        <ion-icon name=\"ticket\"></ion-icon>\n      </ion-tab-button>     \n      <ion-tab-button tab=\"vehicle-list\">\n        <ion-icon name=\"car\"></ion-icon>\n      </ion-tab-button>\n      <ion-tab-button tab=\"my-profile\">\n        <ion-icon name=\"person\"></ion-icon>\n      </ion-tab-button>\n    </ion-tab-bar>\n  </ion-tabs>\n</ion-content>";
      /***/
    },

    /***/
    "75Ue":
    /*!*******************************************!*\
      !*** ./src/app/tab/tab-routing.module.ts ***!
      \*******************************************/

    /*! exports provided: TabPageRoutingModule */

    /***/
    function Ue(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TabPageRoutingModule", function () {
        return TabPageRoutingModule;
      });
      /* 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 _tab_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./tab.page */
      "DZ9W");

      var routes = [{
        path: 'tab',
        component: _tab_page__WEBPACK_IMPORTED_MODULE_3__["TabPage"],
        children: [{
          path: 'services-list',
          children: [{
            path: '',
            loadChildren: function loadChildren() {
              return __webpack_require__.e(
              /*! import() | services-list-services-list-module */
              "services-list-services-list-module").then(__webpack_require__.bind(null,
              /*! ../services-list/services-list.module */
              "Bzwh")).then(function (m) {
                return m.ServicesListPageModule;
              });
            } //loadChildren: () => import('../service-request/service-request.module').then( m => m.ServiceRequestPageModule)

          }]
        }, {
          path: 'my-dashboard',
          children: [{
            path: '',
            loadChildren: function loadChildren() {
              return Promise.all(
              /*! import() | dashboard-dashboard-module */
              [__webpack_require__.e("default~add-money-add-money-module~dashboard-dashboard-module~service-wallet-recharge-service-wallet~05c51d99"), __webpack_require__.e("dashboard-dashboard-module")]).then(__webpack_require__.bind(null,
              /*! ../dashboard/dashboard.module */
              "TDBs")).then(function (m) {
                return m.DashboardPageModule;
              });
            }
          }]
        }, {
          path: 'vehicle-list',
          children: [{
            path: '',
            loadChildren: function loadChildren() {
              return Promise.all(
              /*! import() | vehicle-list-vehicle-list-module */
              [__webpack_require__.e("common"), __webpack_require__.e("vehicle-list-vehicle-list-module")]).then(__webpack_require__.bind(null,
              /*! ../vehicle-list/vehicle-list.module */
              "p45I")).then(function (m) {
                return m.VehicleListPageModule;
              });
            }
          }]
        }, {
          path: 'my-profile',
          children: [{
            path: '',
            loadChildren: function loadChildren() {
              return __webpack_require__.e(
              /*! import() | my-profile-my-profile-module */
              "my-profile-my-profile-module").then(__webpack_require__.bind(null,
              /*! ../my-profile/my-profile.module */
              "IptF")).then(function (m) {
                return m.MyProfilePageModule;
              });
            }
          }]
        }, {
          path: '',
          redirectTo: '/tab/my-dashboard',
          pathMatch: 'full'
        }]
      }, {
        path: '',
        redirectTo: '/tab/my-dashboard',
        pathMatch: 'full'
      }];

      var TabPageRoutingModule = function TabPageRoutingModule() {
        _classCallCheck(this, TabPageRoutingModule);
      };

      TabPageRoutingModule = 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"]]
      })], TabPageRoutingModule);
      /***/
    },

    /***/
    "DZ9W":
    /*!*********************************!*\
      !*** ./src/app/tab/tab.page.ts ***!
      \*********************************/

    /*! exports provided: TabPage */

    /***/
    function DZ9W(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TabPage", function () {
        return TabPage;
      });
      /* harmony import */


      var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! tslib */
      "mrSG");
      /* harmony import */


      var _raw_loader_tab_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! raw-loader!./tab.page.html */
      "2ASr");
      /* harmony import */


      var _tab_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./tab.page.scss */
      "TdGL");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "fXoL");
      /* harmony import */


      var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @ionic/angular */
      "TEn/");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "ofXK");
      /* harmony import */


      var src_services_common_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! src/services/common.service */
      "FBGF");

      var TabPage = /*#__PURE__*/function () {
        function TabPage(platform, routerOutlet, alertController, _commonService, _location) {
          var _this = this;

          _classCallCheck(this, TabPage);

          /*this.platform.backButton.subscribeWithPriority(-1, () => {
            console.log({getInfo:App.getInfo(),
              getLaunchUrl:App.getLaunchUrl()});
            if (!this.routerOutlet.canGoBack()) {
              App.exitApp();
            }
          });*/
          this.platform = platform;
          this.routerOutlet = routerOutlet;
          this.alertController = alertController;
          this._commonService = _commonService;
          this._location = _location;
          this.fileName = 'tab.page.ts';
          this.platform.backButton.subscribeWithPriority(10, function (processNextHandler) {
            if (_this._location.isCurrentPathEqualTo('/tab/my-dashboard')) {
              // Show Exit Alert!
              //this.showExitConfirm();
              navigator['app'].exitApp(); //comment this when this.showExitConfirm(); is uncommented

              processNextHandler();
            } else {
              // Navigate to back page
              _this._location.back();
            }
          });
        }

        _createClass(TabPage, [{
          key: "showExitConfirm",
          value: function showExitConfirm() {
            try {
              this.alertController.create({
                header: 'App termination',
                message: 'Do you want to close the app?',
                backdropDismiss: false,
                buttons: [{
                  text: 'Stay',
                  role: 'cancel',
                  handler: function handler() {}
                }, {
                  text: 'Exit',
                  handler: function handler() {
                    navigator['app'].exitApp();
                  }
                }]
              }).then(function (alert) {
                alert.present();
              });
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'showExitConfirm()',
                error: error
              };

              this._commonService.systemException(obj);
            }
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {}
        }]);

        return TabPage;
      }();

      TabPage.ctorParameters = function () {
        return [{
          type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["Platform"]
        }, {
          type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonRouterOutlet"]
        }, {
          type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["AlertController"]
        }, {
          type: src_services_common_service__WEBPACK_IMPORTED_MODULE_6__["CommonService"]
        }, {
          type: _angular_common__WEBPACK_IMPORTED_MODULE_5__["Location"]
        }];
      };

      TabPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-tab',
        template: _raw_loader_tab_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_tab_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
      }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["Platform"], _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonRouterOutlet"], _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["AlertController"], src_services_common_service__WEBPACK_IMPORTED_MODULE_6__["CommonService"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["Location"]])], TabPage);
      /***/
    },

    /***/
    "TdGL":
    /*!***********************************!*\
      !*** ./src/app/tab/tab.page.scss ***!
      \***********************************/

    /*! exports provided: default */

    /***/
    function TdGL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony default export */


      __webpack_exports__["default"] = "ion-content ion-tab-bar {\n  background: var(--primary);\n  --color-selected: #000 !important;\n}\nion-content ion-tab-bar ion-tab-button {\n  background: var(--text-black);\n  max-width: unset;\n}\nion-content ion-icon {\n  font-size: 1.2rem;\n  min-width: 34px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RhYi5wYWdlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0M7RUFDQywwQkFBQTtFQUNBLGlDQUFBO0FBQUY7QUFDRTtFQUNBLDZCQUFBO0VBQ0EsZ0JBQUE7QUFDRjtBQUVDO0VBRUMsaUJBQUE7RUFDQSxlQUFBO0FBREYiLCJmaWxlIjoidGFiLnBhZ2Uuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlvbi1jb250ZW50e1xuXHRpb24tdGFiLWJhcntcblx0XHRiYWNrZ3JvdW5kOiB2YXIoLS1wcmltYXJ5KTtcblx0XHQtLWNvbG9yLXNlbGVjdGVkOiAjMDAwICFpbXBvcnRhbnQ7XG5cdFx0aW9uLXRhYi1idXR0b24ge1xuXHRcdGJhY2tncm91bmQ6IHZhcigtLXRleHQtYmxhY2spO1xuXHRcdG1heC13aWR0aDogdW5zZXQ7XG5cdFx0fVxuXHR9XG5cdGlvbi1pY29ue1xuXHRcdC8vY29sb3I6IHZhcigtLXByaW1hcnkpO1xuXHRcdGZvbnQtc2l6ZTogMS4ycmVtO1xuXHRcdG1pbi13aWR0aDogMzRweDtcblx0fVxufVxuIl19 */";
      /***/
    },

    /***/
    "hOCx":
    /*!***********************************!*\
      !*** ./src/app/tab/tab.module.ts ***!
      \***********************************/

    /*! exports provided: TabPageModule */

    /***/
    function hOCx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TabPageModule", function () {
        return TabPageModule;
      });
      /* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @ionic/angular */
      "TEn/");
      /* harmony import */


      var _tab_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./tab-routing.module */
      "75Ue");
      /* harmony import */


      var _tab_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./tab.page */
      "DZ9W");

      var TabPageModule = function TabPageModule() {
        _classCallCheck(this, TabPageModule);
      };

      TabPageModule = 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_4__["IonicModule"], _tab_routing_module__WEBPACK_IMPORTED_MODULE_5__["TabPageRoutingModule"]],
        declarations: [_tab_page__WEBPACK_IMPORTED_MODULE_6__["TabPage"]]
      })], TabPageModule);
      /***/
    }
  }]);
})();
//# sourceMappingURL=tab-tab-module-es5.js.map