(function () {
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

  function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }

  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

  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([["add-vehicle-form-add-vehicle-form-module"], {
    /***/
    "7KTt":
    /*!*************************************************************!*\
      !*** ./src/app/add-vehicle-form/add-vehicle-form.module.ts ***!
      \*************************************************************/

    /*! exports provided: AddVehicleFormPageModule */

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

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


      __webpack_require__.d(__webpack_exports__, "AddVehicleFormPageModule", function () {
        return AddVehicleFormPageModule;
      });
      /* 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 _add_vehicle_form_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./add-vehicle-form-routing.module */
      "olP1");
      /* harmony import */


      var _add_vehicle_form_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./add-vehicle-form.page */
      "XUb4");

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

      AddVehicleFormPageModule = 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"], _add_vehicle_form_routing_module__WEBPACK_IMPORTED_MODULE_5__["AddVehicleFormPageRoutingModule"]],
        declarations: [_add_vehicle_form_page__WEBPACK_IMPORTED_MODULE_6__["AddVehicleFormPage"]]
      })], AddVehicleFormPageModule);
      /***/
    },

    /***/
    "DzIP":
    /*!***************************************************************************************************!*\
      !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/add-vehicle-form/add-vehicle-form.page.html ***!
      \***************************************************************************************************/

    /*! exports provided: default */

    /***/
    function DzIP(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<ion-buttons slot=\"start\" class=\"on-search-hide\">\n\t\t\t<ion-back-button text=\"\" icon=\"chevron-back-sharp\"></ion-back-button>\n\t\t</ion-buttons>\n\t\t<ion-title>Add Vehicle</ion-title>\n\t</ion-toolbar>\n\t\n</ion-header>\n<ion-content fullscreen>\n\t<div class=\"tab_container\">\n\t\t<div class=\"form\">\n\t\t\t<ion-list lines=\"none\">\n\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t<ion-label position=\"floating\">Vehicle Number</ion-label>\n\t\t\t\t\t<ion-input [(ngModel)]=\"vehicle_num\"></ion-input>\n\t\t\t\t</ion-item>\n\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t<ion-label position=\"floating\">Vehicle Commercial</ion-label>\n\t\t\t\t\t<ion-input [(ngModel)]=\"vehicle_commercial\"></ion-input>\n\t\t\t\t</ion-item>\n\t\t\t\t<ion-item lines=\"none\">\n\t\t\t\t\t<ion-label position=\"floating\">Vehicle Class</ion-label>\n\t\t\t\t\t<ion-input [(ngModel)]=\"vehicle_class\"></ion-input>\n\t\t\t\t</ion-item>\n\t\t\t</ion-list>\n\t\t</div>\n  \n\t</div>\n</ion-content>\n\n<ion-footer>\n\t<ion-toolbar>\n\t  <ion-button type=\"submit\" slot=\"start\" size=\"large\" shape=\"block\" class=\"btn\" (click)=\"submit()\">Submit</ion-button>\n\t</ion-toolbar>\n  </ion-footer>\n";
      /***/
    },

    /***/
    "XUb4":
    /*!***********************************************************!*\
      !*** ./src/app/add-vehicle-form/add-vehicle-form.page.ts ***!
      \***********************************************************/

    /*! exports provided: AddVehicleFormPage */

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

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


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


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


      var _raw_loader_add_vehicle_form_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! raw-loader!./add-vehicle-form.page.html */
      "DzIP");
      /* harmony import */


      var _add_vehicle_form_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./add-vehicle-form.page.scss */
      "ajuu");
      /* harmony import */


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


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


      var src_services_vehicle_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! src/services/vehicle.service */
      "lMcH");
      /* harmony import */


      var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/router */
      "tyNb");
      /* harmony import */


      var src_services_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! src/services/constants */
      "k8oS");
      /* harmony import */


      var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @ionic/angular */
      "TEn/");

      var AddVehicleFormPage = /*#__PURE__*/function () {
        function AddVehicleFormPage(commonService, vehicleService, navCtrl, route) {
          _classCallCheck(this, AddVehicleFormPage);

          this.commonService = commonService;
          this.vehicleService = vehicleService;
          this.navCtrl = navCtrl;
          this.route = route;
          this.fileName = 'add-vehicle-form..page.ts';
        }

        _createClass(AddVehicleFormPage, [{
          key: "ngOnInit",
          value: function ngOnInit() {}
        }, {
          key: "submit",
          value: function submit() {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
              var _this = this;

              var obj, _obj;

              return regeneratorRuntime.wrap(function _callee3$(_context3) {
                while (1) {
                  switch (_context3.prev = _context3.next) {
                    case 0:
                      _context3.prev = 0;
                      _context3.next = 3;
                      return this.commonService.showLoader();

                    case 3:
                      obj = {
                        vehicle_num: this.vehicle_num,
                        vehicle_commercial: this.vehicle_commercial,
                        vehicle_class: this.vehicle_class
                      };
                      console.log({
                        obj: obj
                      });
                      this.vehicleService.addVehicle(obj).subscribe(function (res) {
                        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
                          var _this2 = this;

                          var alertMsg;
                          return regeneratorRuntime.wrap(function _callee$(_context) {
                            while (1) {
                              switch (_context.prev = _context.next) {
                                case 0:
                                  if (!res.status) {
                                    _context.next = 8;
                                    break;
                                  }

                                  alertMsg = src_services_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].VEHICLE_ADD_ALERT_MSG;
                                  this.commonService.simpleAlert("Success", alertMsg);
                                  _context.next = 5;
                                  return this.commonService.hideLoader();

                                case 5:
                                  // Fetch vechile data
                                  this.vehicleService.getAllVehicle(0).subscribe(function (res) {
                                    console.log({
                                      Vehicle: res
                                    });

                                    if (res.status === true) {
                                      var col = res.columns;
                                      var data = res.data;

                                      _this2.vehicleService.log({
                                        Columns: col,
                                        Data: data
                                      });

                                      var vehicleList = _this2.vehicleService.mapColData(col, data);

                                      var vehicleNumberList = {};

                                      var _iterator = _createForOfIteratorHelper(vehicleList),
                                          _step;

                                      try {
                                        for (_iterator.s(); !(_step = _iterator.n()).done;) {
                                          var vnum = _step.value;
                                          vehicleNumberList[vnum.vrn] = vnum;
                                        }
                                      } catch (err) {
                                        _iterator.e(err);
                                      } finally {
                                        _iterator.f();
                                      }

                                      localStorage.setItem("vehicleList", JSON.stringify(vehicleNumberList)); //this.route.navigate(['./tab/vehicle-list']);

                                      _this2.navCtrl.navigateBack('/tab/vehicle-list');
                                    }
                                  });
                                  _context.next = 12;
                                  break;

                                case 8:
                                  this.resError = res.message;
                                  _context.next = 11;
                                  return this.commonService.hideLoader();

                                case 11:
                                  this.commonService.errorToast(this.resError);

                                case 12:
                                case "end":
                                  return _context.stop();
                              }
                            }
                          }, _callee, this);
                        }));
                      }, function (error) {
                        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
                          return regeneratorRuntime.wrap(function _callee2$(_context2) {
                            while (1) {
                              switch (_context2.prev = _context2.next) {
                                case 0:
                                  _context2.next = 2;
                                  return this.commonService.hideLoader();

                                case 2:
                                  this.resError = error.message;
                                  this.commonService.errorToast(this.resError);
                                  console.log(this.resError);

                                case 5:
                                case "end":
                                  return _context2.stop();
                              }
                            }
                          }, _callee2, this);
                        }));
                      });
                      _context3.next = 12;
                      break;

                    case 8:
                      _context3.prev = 8;
                      _context3.t0 = _context3["catch"](0);
                      _obj = {
                        fileName: this.fileName,
                        functionName: 'submit()',
                        error: _context3.t0
                      };
                      this.commonService.systemException(_obj);

                    case 12:
                    case "end":
                      return _context3.stop();
                  }
                }
              }, _callee3, this, [[0, 8]]);
            }));
          }
        }]);

        return AddVehicleFormPage;
      }();

      AddVehicleFormPage.ctorParameters = function () {
        return [{
          type: src_services_common_service__WEBPACK_IMPORTED_MODULE_4__["CommonService"]
        }, {
          type: src_services_vehicle_service__WEBPACK_IMPORTED_MODULE_5__["VehicleService"]
        }, {
          type: _ionic_angular__WEBPACK_IMPORTED_MODULE_8__["NavController"]
        }, {
          type: _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"]
        }];
      };

      AddVehicleFormPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-add-vehicle-form',
        template: _raw_loader_add_vehicle_form_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_add_vehicle_form_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
      }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [src_services_common_service__WEBPACK_IMPORTED_MODULE_4__["CommonService"], src_services_vehicle_service__WEBPACK_IMPORTED_MODULE_5__["VehicleService"], _ionic_angular__WEBPACK_IMPORTED_MODULE_8__["NavController"], _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"]])], AddVehicleFormPage);
      /***/
    },

    /***/
    "ajuu":
    /*!*************************************************************!*\
      !*** ./src/app/add-vehicle-form/add-vehicle-form.page.scss ***!
      \*************************************************************/

    /*! exports provided: default */

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

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


      __webpack_exports__["default"] = ".banner {\n  background: var(--profile_header_gradient);\n  padding: 10px 20px 0px 20px;\n}\n.banner ion-segment {\n  max-width: calc(100% - 80px);\n  margin: 0 auto;\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: 1rem;\n  font-weight: 700;\n}\n.banner ion-segment ion-segment-button.segment-button-checked {\n  opacity: 1;\n  color: var(--white) !important;\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}\nion-content {\n  --background: rgba(204, 204, 204, 0);\n}\n.form {\n  position: relative;\n  z-index: 99;\n  width: calc(100% - 15px);\n  margin-top: 11px;\n}\n.form ion-list {\n  box-shadow: none;\n}\n.form ion-list ion-item {\n  padding: 5px 18px 0 18px;\n  margin-bottom: 7px;\n}\n.form ion-list ion-item ion-label {\n  padding: 0;\n  color: var(--text-light) !important;\n  width: 100% !important;\n  padding-bottom: 23px;\n  font-weight: 400 !important;\n  font-size: var(--sub_title_font_size) !important;\n}\n.form ion-list ion-item ion-input {\n  color: var(--text-dark);\n  font-weight: 700 !important;\n  font-size: var(--sub_title_font_size) !important;\n  border-bottom: 1px solid #ccc;\n}\n.form ion-list ion-item.item-select ion-select {\n  color: var(--text-dark);\n  font-weight: 700 !important;\n  font-size: 1rem !important;\n  border-bottom: 1px solid #ccc;\n  padding-bottom: 7px;\n}\nion-list ion-icon {\n  font-size: 40px;\n  color: var(--primary);\n  border-radius: 50%;\n  padding: 5px;\n  text-align: center;\n  margin: 10px;\n  border: 2px solid var(--primary);\n}\nion-list ion-item h4 {\n  color: var(--secondary);\n}\nion-footer ion-button {\n  position: fixed;\n  bottom: 10px;\n  width: 95% !important;\n  left: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */";
      /***/
    },

    /***/
    "lMcH":
    /*!*****************************************!*\
      !*** ./src/services/vehicle.service.ts ***!
      \*****************************************/

    /*! exports provided: VehicleService */

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

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


      __webpack_require__.d(__webpack_exports__, "VehicleService", function () {
        return VehicleService;
      });
      /* 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");

      var VehicleService = /*#__PURE__*/function (_base_service__WEBPAC) {
        _inherits(VehicleService, _base_service__WEBPAC);

        var _super = _createSuper(VehicleService);

        function VehicleService(commonService, httpClient) {
          var _this3;

          _classCallCheck(this, VehicleService);

          _this3 = _super.call(this);
          _this3.commonService = commonService;
          _this3.httpClient = httpClient;
          _this3.fileName = 'vehicle.service.ts';
          _this3.paramName = "customervehicle";
          _this3.columnArray = _constants__WEBPACK_IMPORTED_MODULE_6__["COLUMNS"];
          return _this3;
        }

        _createClass(VehicleService, [{
          key: "getAllVehicle",
          value: function getAllVehicle(offset) {
            var _this4 = this;

            try {
              var dataObj = {
                offset: offset,
                method: 'post',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_LISTING_API,
                local_json_file: 'local-vehicle-list',
                param_data: {
                  "name": this.paramName
                },
                mapcol: true
              };
              var res = this.commonService.fetchData(dataObj);
              res.subscribe(function (data) {
                if (data.status) localStorage.setItem("vehicleUpdateTime", _this4.commonService.getTimestamp());
              });
              return res;
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'getAllVehicle(offset)',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "suspendVehicle",
          value: function suspendVehicle(list) {
            try {
              var data = {};
              var url = this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_SUSPEND_API + (list === null || list === void 0 ? void 0 : list.tag_id);
              return this.httpClient.post(url, data).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (resp) {
                return resp;
              }));
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'suspendVehicle(list)',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "generatePdf",
          value: function generatePdf(obj) {
            try {
              var dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_GENERATE_CHALLAN_PDF_API + '/' + obj.key,
                local_json_file: '',
                mapcol: false
              };
              return this.commonService.fetchData(dataObj);
            } catch (error) {
              var _obj2 = {
                fileName: this.fileName,
                functionName: 'generatePdf(obj)',
                error: error
              };
              this.commonService.systemException(_obj2);
            }
          }
        }, {
          key: "downloadPdf",
          value: function downloadPdf(obj) {
            try {
              var filename = encodeURIComponent(obj.data).replace(/\./g, '%2E');
              var dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOWNLOAD_CHALLAN_PDF_API + '/' + filename,
                local_json_file: '',
                mapcol: false
              };
              return this.httpClient.get(this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOWNLOAD_CHALLAN_PDF_API + '/' + filename + '/', {
                responseType: 'blob',
                reportProgress: true,
                observe: 'events'
              });
            } catch (error) {
              var _obj3 = {
                fileName: this.fileName,
                functionName: 'downloadPdf(obj)',
                error: error
              };
              this.commonService.systemException(_obj3);
            }
          }
        }, {
          key: "getVehicleDocList",
          value: function getVehicleDocList() {
            try {
              var dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOC_TYPE_API,
                local_json_file: '',
                param_data: {},
                mapcol: false
              };
              return this.commonService.fetchData(dataObj);
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'getVehicleDocList()',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "uploadVehicleDoc",
          value: function uploadVehicleDoc(obj) {
            try {
              var formData = new FormData();
              formData.append('file', obj.file);
              formData.append('customer_id', this.getLocalUserId());
              formData.append('vrn', obj.vrn);
              formData.append('doc_type', obj.docKey);
              var dataObj = {
                offset: 0,
                method: 'post',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOC_UPLOAD_API + obj.vrn + '/' + obj.docKey,
                local_json_file: '',
                param_data: {
                  file: formData
                },
                mapcol: false
              };
              return this.commonService.fetchData(dataObj);
            } catch (error) {
              var _obj4 = {
                fileName: this.fileName,
                functionName: 'uploadVehicleDoc(obj)',
                error: error
              };
              this.commonService.systemException(_obj4);
            }
          }
        }, {
          key: "addVehicle",
          value: function addVehicle(obj) {
            try {
              var dataObj;
              dataObj = {
                offset: 0,
                method: 'post',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ADD_VEHICLE_API,
                local_json_file: '',
                param_data: {
                  vehicle_num: obj.vehicle_num,
                  vehicle_commercial: obj.vehicle_commercial,
                  vehicle_class: obj.vehicle_class
                },
                mapcol: false
              };
              console.log({
                dataObj: dataObj
              });
              return this.commonService.fetchData(dataObj);
            } catch (error) {
              var _obj5 = {
                fileName: this.fileName,
                functionName: 'addvehicle(obj)',
                error: error
              };
              this.commonService.systemException(_obj5);
            }
          }
        }, {
          key: "attachment",
          value: function attachment(id) {
            try {
              var dataObj = {
                offset: 0,
                method: 'get',
                //api_url: this.getLocalapiBaseURL() + Enums.CONSTANTS.ATTACHMENT_LISTS_API,
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_ATTACHMENT_LISTS_API + id,
                local_json_file: '',
                data: {},
                mapcol: false
              };
              return this.commonService.fetchData(dataObj);
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'attachment()',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "downloadAttachment",
          value: function downloadAttachment(obj) {
            try {
              //let filename = encodeURIComponent(obj.data).replace(/\./g, '%2E');
              var dataObj = {
                offset: 0,
                method: 'get',
                api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOC_DOWNLOAD_API + obj.vrn + '/' + obj.docType,
                local_json_file: '',
                mapcol: false
              };
              return this.httpClient.get(this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].VEHICLE_DOC_DOWNLOAD_API + obj.vrn + '/' + obj.docType, {
                responseType: 'blob',
                reportProgress: true,
                observe: 'events'
              });
            } catch (error) {
              var _obj6 = {
                fileName: this.fileName,
                functionName: 'downloadAttachment(obj)',
                error: error
              };
              this.commonService.systemException(_obj6);
            }
          }
        }]);

        return VehicleService;
      }(_base_service__WEBPACK_IMPORTED_MODULE_4__["BaseService"]);

      VehicleService.ctorParameters = function () {
        return [{
          type: _common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"]
        }, {
          type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]
        }];
      };

      VehicleService = 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", [_common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])], VehicleService);
      /***/
    },

    /***/
    "olP1":
    /*!*********************************************************************!*\
      !*** ./src/app/add-vehicle-form/add-vehicle-form-routing.module.ts ***!
      \*********************************************************************/

    /*! exports provided: AddVehicleFormPageRoutingModule */

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

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


      __webpack_require__.d(__webpack_exports__, "AddVehicleFormPageRoutingModule", function () {
        return AddVehicleFormPageRoutingModule;
      });
      /* 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 _add_vehicle_form_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./add-vehicle-form.page */
      "XUb4");

      var routes = [{
        path: '',
        component: _add_vehicle_form_page__WEBPACK_IMPORTED_MODULE_3__["AddVehicleFormPage"]
      }];

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

      AddVehicleFormPageRoutingModule = 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"]]
      })], AddVehicleFormPageRoutingModule);
      /***/
    }
  }]);
})();
//# sourceMappingURL=add-vehicle-form-add-vehicle-form-module-es5.js.map