(function () {
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

  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([["verification-verification-module"], {
    /***/
    "IOxn":
    /*!*******************************************************************************************!*\
      !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/verification/verification.page.html ***!
      \*******************************************************************************************/

    /*! exports provided: default */

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

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


      __webpack_exports__["default"] = "<!-- <ion-header class=\"bg-transparent\">\r\n\t<ion-toolbar>\r\n\t\t<ion-buttons slot=\"start\">\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</ion-toolbar>\r\n</ion-header> -->\r\n<ion-header>\r\n\t<ion-toolbar>\r\n\t\t<ion-title>\r\n\t\t\t<span class=\"d-flex\">\r\n\t\t\t\t<span class=\"on-search-hide\">{{'OTP Verification' | translate}}\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>\r\n\r\n\t<div class=\"form\">\r\n\t\t<!-- <h2 class=\"ion-text-center\">{{'OTP Verification' | translate}}</h2> -->\r\n\t\t<h3 class=\"ion-text-center\">{{'enter_otp_sent_on_below_given_number' | translate}}<br>{{'otp_sent_on' |\r\n\t\t\ttranslate}}<span class=\"phone-no\">{{ enteredMobNo }}</span>\r\n\t\t</h3>\r\n\t\t<ion-list lines=\"none\">\r\n\t\t\t<ion-grid>\r\n\t\t\t\t<ion-row>\r\n\t\t\t\t\t<ion-col size=\"12\" class=\"d-flex\">\r\n\t\t\t\t\t\t<ion-item lines=\"none\" class=\"otp_input\">\r\n\t\t\t\t\t\t\t<ion-input class=\"ion-text-center\" type=\"password\" maxlength=\"6\" value=\"\"\r\n\t\t\t\t\t\t\t\t(input)='onOtpChange($event.target.value)'></ion-input>\r\n\t\t\t\t\t\t\t<!-- <ng-otp-input (onInputChange)=\"onOtpChange($event)\" [config]={allowNumbersOnly:true,length:4}></ng-otp-input> -->\r\n\t\t\t\t\t\t</ion-item>\r\n\t\t\t\t\t</ion-col>\r\n\t\t\t\t</ion-row>\r\n\t\t\t</ion-grid>\r\n\t\t\t<!-- <p class=\"ion-text-center\">{{'did_not_receive_otp' | translate}} <span>\r\n\t\t\t\t\t{{'resend_otp' | translate}}</span></p> -->\r\n\t\t\t<p class=\"ion-text-center\"><span (click)=\"editNumber()\">Edit number</span></p>\r\n\t\t</ion-list>\r\n\t</div>\r\n</ion-content>\r\n<ion-footer>\r\n\t<ion-toolbar>\r\n\t\t<ion-button size=\"large\" shape=\"block\" class=\"btn\" [disabled]=\"inputValue?.length !== 6\" (click)=\"sign_up()\">\r\n\t\t\t{{'submit' | translate}}</ion-button>\r\n\t</ion-toolbar>\r\n</ion-footer>";
      /***/
    },

    /***/
    "JF+G":
    /*!*****************************************************!*\
      !*** ./src/app/verification/verification.page.scss ***!
      \*****************************************************/

    /*! exports provided: default */

    /***/
    function JFG(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 30%;\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  font-size: 25px !important;\n}\n.applogo {\n  background: white;\n}\n.img {\n  height: 100px;\n  width: 40px;\n  margin: auto;\n  padding-top: 21px;\n}\n.form {\n  padding: 3% 3%;\n  margin: auto;\n  padding-top: 21px;\n  position: relative;\n  z-index: 9999;\n}\n.form .phone-no {\n  color: var(--secondary);\n}\n.form h2 {\n  font-size: 16px;\n  font-weight: 600;\n  margin: 0;\n  margin-bottom: 30px;\n  position: relative;\n  color: var(--primary);\n}\n.form h3 {\n  font-size: var(--sub_title_font_size);\n  margin: 0;\n  font-weight: 400;\n  letter-spacing: 0;\n  color: var(--primary);\n}\n.form ion-list {\n  margin-top: 30px;\n}\n.form ion-list ion-item {\n  width: 60%;\n  padding: 7.4px 18px 7.4px 18px;\n}\n.form ion-list ion-item ion-input {\n  font-size: var(--sub_title_font_size) !important;\n  letter-spacing: 13px;\n  font-weight: 700 !important;\n  height: 30px;\n  --padding-top: 10px;\n}\n.form ion-list p {\n  font-size: var(--sub_title_font_size);\n  color: var(--secondary);\n}\n.form ion-list p span {\n  font-weight: 600;\n}\n.form ion-list .button.btn {\n  margin-top: 3em;\n  height: 43px;\n}\n.form .otp_input {\n  margin: auto;\n  border: 1px solid var(--primary);\n  border-radius: 5px;\n}\nion-footer ion-button {\n  width: 95% !important;\n  margin: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */";
      /***/
    },

    /***/
    "Kw+X":
    /*!*****************************************************!*\
      !*** ./src/app/verification/verification.module.ts ***!
      \*****************************************************/

    /*! exports provided: VerificationPageModule */

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

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


      __webpack_require__.d(__webpack_exports__, "VerificationPageModule", function () {
        return VerificationPageModule;
      });
      /* 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 ng_otp_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ng-otp-input */
      "9OaD");
      /* harmony import */


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


      var _verification_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ./verification-routing.module */
      "SIZt");
      /* harmony import */


      var _verification_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ./verification.page */
      "c9mM");

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

      VerificationPageModule = 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_6__["IonicModule"], _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateModule"], ng_otp_input__WEBPACK_IMPORTED_MODULE_5__["NgOtpInputModule"], _verification_routing_module__WEBPACK_IMPORTED_MODULE_7__["VerificationPageRoutingModule"]],
        declarations: [_verification_page__WEBPACK_IMPORTED_MODULE_8__["VerificationPage"]]
      })], VerificationPageModule);
      /***/
    },

    /***/
    "SIZt":
    /*!*************************************************************!*\
      !*** ./src/app/verification/verification-routing.module.ts ***!
      \*************************************************************/

    /*! exports provided: VerificationPageRoutingModule */

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

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


      __webpack_require__.d(__webpack_exports__, "VerificationPageRoutingModule", function () {
        return VerificationPageRoutingModule;
      });
      /* 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 _verification_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./verification.page */
      "c9mM");

      var routes = [{
        path: '',
        component: _verification_page__WEBPACK_IMPORTED_MODULE_3__["VerificationPage"]
      }];

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

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

    /***/
    "c9mM":
    /*!***************************************************!*\
      !*** ./src/app/verification/verification.page.ts ***!
      \***************************************************/

    /*! exports provided: VerificationPage */

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

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


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


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


      var _raw_loader_verification_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! raw-loader!./verification.page.html */
      "IOxn");
      /* harmony import */


      var _verification_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./verification.page.scss */
      "JF+G");
      /* 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 _ionic_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @ionic/angular */
      "TEn/");
      /* harmony import */


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


      var src_services_myevent_services__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! src/services/myevent.services */
      "ThQF");
      /* harmony import */


      var js_sha256__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! js-sha256 */
      "bCcq");
      /* harmony import */


      var js_sha256__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(js_sha256__WEBPACK_IMPORTED_MODULE_8__);
      /* harmony import */


      var src_services_auth_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! src/services/auth.service */
      "LLt/");
      /* harmony import */


      var src_services_profile_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! src/services/profile.service */
      "2l2O");
      /* harmony import */


      var src_services_service_request_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! src/services/service-request.service */
      "YPdO");
      /* harmony import */


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


      var src_services_firestore_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! src/services/firestore.service */
      "ETdK");
      /* harmony import */


      var src_services_fcm_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! src/services/fcm.service */
      "KqhZ");
      /* harmony import */


      var _capacitor_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
      /*! @capacitor/core */
      "FUe0");
      /* harmony import */


      var _capacitor_device__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
      /*! @capacitor/device */
      "rvvs");

      var VerificationPage = /*#__PURE__*/function () {
        function VerificationPage(navCtrl, route, fcmService, dataService, commonService, authService, profileService, serviceRequest, vehicleService, firestoreService) {
          _classCallCheck(this, VerificationPage);

          this.navCtrl = navCtrl;
          this.route = route;
          this.fcmService = fcmService;
          this.dataService = dataService;
          this.commonService = commonService;
          this.authService = authService;
          this.profileService = profileService;
          this.serviceRequest = serviceRequest;
          this.vehicleService = vehicleService;
          this.firestoreService = firestoreService;
          this.hideLogo = false;
          this.isMobUpdate = false;
          this.fileName = 'verification.page.ts';
          this.config = {
            allowNumbersOnly: false,
            length: 6,
            inputStyles: {//  'color': 'white',
              //  'width': '30px',
              //  'height': '50px',
              //  'border': 'none',
              //  'background': 'white'
              // 'padding-left':'50px'
            },
            containerStyles: {//  'color': 'white',
              //  'width': '30px',
              //  'height': '50px',
              //  'border': 'none',
              //  'background': 'white'
              //'padding-left': '50px'
            }
          };
        }

        _createClass(VerificationPage, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            try {
              this.enteredMobNo = this.dataService.sharedData;
              this.isMobUpdate = this.dataService.isMobUpdate;
              this.hideLogo = this.dataService.getHideLogo();
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'ngOnInit()',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "data",
          get: function get() {
            try {
              return this.dataService.sharedData;
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'data()',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "onOtpChange",
          value: function onOtpChange(event) {
            try {
              this.inputValue = event;
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'onOtpChange(event)',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }, {
          key: "sign_up",
          value: function sign_up() {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
              var _this = this;

              var encryptedPass, obj, _obj;

              return regeneratorRuntime.wrap(function _callee9$(_context9) {
                while (1) {
                  switch (_context9.prev = _context9.next) {
                    case 0:
                      try {
                        encryptedPass = Object(js_sha256__WEBPACK_IMPORTED_MODULE_8__["sha256"])(this.inputValue);
                        obj = {
                          "password": encryptedPass,
                          "userId": this.enteredMobNo,
                          "login_type": "mobile"
                        };
                        this.firestoreService.enterVerificationCode(this.inputValue).then(function (userData) {
                          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
                            var _this2 = this;

                            return regeneratorRuntime.wrap(function _callee8$(_context8) {
                              while (1) {
                                switch (_context8.prev = _context8.next) {
                                  case 0:
                                    //console.log("userData: ",userData?.refreshToken);
                                    localStorage.setItem("authToken", userData === null || userData === void 0 ? void 0 : userData.refreshToken);
                                    _context8.next = 3;
                                    return this.commonService.showLoader();

                                  case 3:
                                    this.authService.login(obj).subscribe(function (resp) {
                                      return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this2, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
                                        var _this3 = this;

                                        var data, subCat, resData, categories;
                                        return regeneratorRuntime.wrap(function _callee6$(_context6) {
                                          while (1) {
                                            switch (_context6.prev = _context6.next) {
                                              case 0:
                                                console.log({
                                                  Login: resp
                                                });

                                                if (!resp.status) {
                                                  _context6.next = 18;
                                                  break;
                                                }

                                                localStorage.setItem("userId", resp.userId); // Fetch Profile data

                                                this.profileService.getProfile().subscribe(function (event) {
                                                  console.log({
                                                    Profile: event
                                                  });

                                                  if (event.status) {
                                                    localStorage.setItem("profileData", JSON.stringify(event.data));
                                                  }
                                                });
                                                subCat = [];
                                                resData = [];
                                                categories = []; // Fetch Topics data

                                                this.serviceRequest.getAllServiceRequestCategories(data).subscribe(function (res) {
                                                  return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this3, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
                                                    var _a, _b, catBasedID, _iterator, _step, cat, i, temp, tmp, _iterator2, _step2, sep;

                                                    return regeneratorRuntime.wrap(function _callee$(_context) {
                                                      while (1) {
                                                        switch (_context.prev = _context.next) {
                                                          case 0:
                                                            console.log({
                                                              Topics: res
                                                            });

                                                            if (res.status === true) {
                                                              resData = res.data;
                                                              catBasedID = {};
                                                              _iterator = _createForOfIteratorHelper(resData);

                                                              try {
                                                                for (_iterator.s(); !(_step = _iterator.n()).done;) {
                                                                  cat = _step.value;
                                                                  categories.push(cat.category);
                                                                  catBasedID[cat.topicId] = cat;
                                                                }
                                                              } catch (err) {
                                                                _iterator.e(err);
                                                              } finally {
                                                                _iterator.f();
                                                              }

                                                              localStorage.setItem("IdBasedCat", JSON.stringify(catBasedID)); //localStorage.setItem("userId", Enums.CONSTANTS.userId);

                                                              categories = _toConsumableArray(new Set(categories));

                                                              for (i = 0; i < categories.length; i++) {
                                                                temp = [];
                                                                _iterator2 = _createForOfIteratorHelper(resData);

                                                                try {
                                                                  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                                                                    sep = _step2.value;

                                                                    if (sep.category === categories[i]) {
                                                                      temp.push({
                                                                        category_desc: sep === null || sep === void 0 ? void 0 : sep.categoryDesc,
                                                                        category_id: sep === null || sep === void 0 ? void 0 : sep.topicId,
                                                                        category_type: sep === null || sep === void 0 ? void 0 : sep.category,
                                                                        id: sep === null || sep === void 0 ? void 0 : sep.id,
                                                                        favourite: (_a = sep === null || sep === void 0 ? void 0 : sep.properties) === null || _a === void 0 ? void 0 : _a.favourite,
                                                                        tags: (_b = sep === null || sep === void 0 ? void 0 : sep.properties) === null || _b === void 0 ? void 0 : _b.tags,
                                                                        help_text: sep === null || sep === void 0 ? void 0 : sep.help_text
                                                                      });
                                                                      tmp = sep.category;
                                                                    }
                                                                  }
                                                                } catch (err) {
                                                                  _iterator2.e(err);
                                                                } finally {
                                                                  _iterator2.f();
                                                                }

                                                                subCat.push({
                                                                  "category_desc": tmp,
                                                                  "subCate": temp
                                                                });
                                                                localStorage.setItem("subCat", JSON.stringify(subCat));
                                                              }

                                                              this.navCtrl.navigateRoot(['./tab/my-dashboard']);
                                                              this.inputValue = ""; //this.password = "";
                                                            }

                                                          case 2:
                                                          case "end":
                                                            return _context.stop();
                                                        }
                                                      }
                                                    }, _callee, this);
                                                  }));
                                                }); // Fetch ticket Document type list

                                                this.serviceRequest.getDocList().subscribe(function (res) {
                                                  return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this3, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
                                                    return regeneratorRuntime.wrap(function _callee2$(_context2) {
                                                      while (1) {
                                                        switch (_context2.prev = _context2.next) {
                                                          case 0:
                                                            if (res.status === true) {
                                                              localStorage.setItem("ticketDocTypeList", JSON.stringify(res === null || res === void 0 ? void 0 : res.data));
                                                              console.log("ticketDocTypeList: ", res.data);
                                                            }

                                                          case 1:
                                                          case "end":
                                                            return _context2.stop();
                                                        }
                                                      }
                                                    }, _callee2);
                                                  }));
                                                }); // Fetch vehicle Document type list

                                                this.vehicleService.getVehicleDocList().subscribe(function (res) {
                                                  return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this3, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
                                                    return regeneratorRuntime.wrap(function _callee3$(_context3) {
                                                      while (1) {
                                                        switch (_context3.prev = _context3.next) {
                                                          case 0:
                                                            if (res.status === true) {
                                                              localStorage.setItem("vehicleDocTypeList", JSON.stringify(res === null || res === void 0 ? void 0 : res.data));
                                                              console.log("vehicleDocTypeList: ", res.data);
                                                            }

                                                          case 1:
                                                          case "end":
                                                            return _context3.stop();
                                                        }
                                                      }
                                                    }, _callee3);
                                                  }));
                                                }); // 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;

                                                    _this3.vehicleService.log({
                                                      Columns: col,
                                                      Data: _data
                                                    });

                                                    var vehicleList = _this3.vehicleService.mapColData(col, _data);

                                                    var vehicleNumberList = {};

                                                    var _iterator3 = _createForOfIteratorHelper(vehicleList),
                                                        _step3;

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

                                                    localStorage.setItem("vehicleList", JSON.stringify(vehicleNumberList));
                                                  }
                                                });
                                                _context6.next = 13;
                                                return this.fcmService.initPush();

                                              case 13:
                                                this.fcmService.localInit.subscribe(function (data) {
                                                  return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this3, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
                                                    var _this4 = this;

                                                    var info;
                                                    return regeneratorRuntime.wrap(function _callee5$(_context5) {
                                                      while (1) {
                                                        switch (_context5.prev = _context5.next) {
                                                          case 0:
                                                            this.fcmService.log({
                                                              localInitData: data
                                                            });

                                                            if (!(_capacitor_core__WEBPACK_IMPORTED_MODULE_15__["Capacitor"].getPlatform() != 'web')) {
                                                              _context5.next = 8;
                                                              break;
                                                            }

                                                            _context5.next = 4;
                                                            return _capacitor_device__WEBPACK_IMPORTED_MODULE_16__["Device"].getId();

                                                          case 4:
                                                            info = _context5.sent;
                                                            this.deviceId = info.uuid;
                                                            _context5.next = 8;
                                                            return this.authService.localAPI(this.deviceId).subscribe(function (resp1) {
                                                              return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this4, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
                                                                return regeneratorRuntime.wrap(function _callee4$(_context4) {
                                                                  while (1) {
                                                                    switch (_context4.prev = _context4.next) {
                                                                      case 0:
                                                                        console.log({
                                                                          localAPI: resp1
                                                                        });

                                                                        if (resp1.status) {
                                                                          localStorage.setItem("localInitTimeStamp", new Date().toISOString());
                                                                        }

                                                                      case 2:
                                                                      case "end":
                                                                        return _context4.stop();
                                                                    }
                                                                  }
                                                                }, _callee4);
                                                              }));
                                                            });

                                                          case 8:
                                                          case "end":
                                                            return _context5.stop();
                                                        }
                                                      }
                                                    }, _callee5, this);
                                                  }));
                                                });
                                                _context6.next = 16;
                                                return this.commonService.hideLoader();

                                              case 16:
                                                _context6.next = 22;
                                                break;

                                              case 18:
                                                this.loginError = resp.message;
                                                _context6.next = 21;
                                                return this.commonService.hideLoader();

                                              case 21:
                                                this.commonService.errorToast(this.loginError);

                                              case 22:
                                              case "end":
                                                return _context6.stop();
                                            }
                                          }
                                        }, _callee6, this);
                                      }));
                                    }, function (error) {
                                      return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this2, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
                                        return regeneratorRuntime.wrap(function _callee7$(_context7) {
                                          while (1) {
                                            switch (_context7.prev = _context7.next) {
                                              case 0:
                                                this.loginError = error.message;
                                                _context7.next = 3;
                                                return this.commonService.hideLoader();

                                              case 3:
                                                this.commonService.errorToast(this.loginError);

                                              case 4:
                                              case "end":
                                                return _context7.stop();
                                            }
                                          }
                                        }, _callee7, this);
                                      }));
                                    }); //this.commonService.simpleAlert("Success", "You are successfully authenticated!");
                                    //localStorage.setItem("authToken", userData.refreshToken);

                                  case 4:
                                  case "end":
                                    return _context8.stop();
                                }
                              }
                            }, _callee8, this);
                          }));
                        }, function (error) {
                          _this.loginError = error;

                          _this.commonService.errorToast(_this.loginError);
                        }); //----------This code for update Mobile/Mail-------------------------------------------------------------------- 

                        this.countClick = this.dataService.getCountClick();

                        if (this.countClick > 0) {
                          if (this.dataService.isMobUpdate) {
                            this.commonService.simpleAlert('Thank You!', 'Mobile number will be updated in next 48 hours'); //this.route.navigate(['./tab/my-profile']);

                            this.inputValue = "";
                            this.dataService.hideLogo = false;
                            this.dataService.sharedData = "";
                            this.dataService.setCountClick(0);
                          }

                          if (!this.dataService.isMobUpdate) {
                            this.commonService.simpleAlert('Thank You!', 'Email Id will be updated in next 48 hours'); //this.route.navigate(['./tab/my-profile']);

                            this.inputValue = "";
                            this.dataService.sharedData = "";
                            this.dataService.hideLogo = false;
                            this.dataService.setCountClick(0);
                          }
                        }
                      } catch (error) {
                        _obj = {
                          fileName: this.fileName,
                          functionName: 'sign_up()',
                          error: error
                        };
                        this.commonService.systemException(_obj);
                      } // else {
                      //   this.dataService.setCountClick(0);
                      //   this.dataService.setIsMobUpdate(false);
                      //   this.route.navigate(['./tab/services-list']);
                      //   this.inputValue = "";
                      //   this.dataService.hideLogo = false;
                      //   this.dataService.sharedData = "";
                      // }
                      //-------------------------------------------------------------------------------------------------------------------


                    case 1:
                    case "end":
                      return _context9.stop();
                  }
                }
              }, _callee9, this);
            }));
          }
        }, {
          key: "editNumber",
          value: function editNumber() {
            this.route.navigate(['./sign-in']);
          }
        }, {
          key: "resend_otp",
          value: function resend_otp() {
            try {
              this.dataService.sharedData = this.inputValue;
              this.route.navigate(['./verification']);
              this.inputValue = "";
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'resend_otp()',
                error: error
              };
              this.commonService.systemException(obj);
            }
          }
        }]);

        return VerificationPage;
      }();

      VerificationPage.ctorParameters = function () {
        return [{
          type: _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["NavController"]
        }, {
          type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
        }, {
          type: src_services_fcm_service__WEBPACK_IMPORTED_MODULE_14__["FcmService"]
        }, {
          type: src_services_myevent_services__WEBPACK_IMPORTED_MODULE_7__["MyEvent"]
        }, {
          type: src_services_common_service__WEBPACK_IMPORTED_MODULE_6__["CommonService"]
        }, {
          type: src_services_auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"]
        }, {
          type: src_services_profile_service__WEBPACK_IMPORTED_MODULE_10__["ProfileService"]
        }, {
          type: src_services_service_request_service__WEBPACK_IMPORTED_MODULE_11__["ServiceRequestService"]
        }, {
          type: src_services_vehicle_service__WEBPACK_IMPORTED_MODULE_12__["VehicleService"]
        }, {
          type: src_services_firestore_service__WEBPACK_IMPORTED_MODULE_13__["FirestoreService"]
        }];
      };

      VerificationPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-verification',
        template: _raw_loader_verification_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_verification_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
      }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_ionic_angular__WEBPACK_IMPORTED_MODULE_5__["NavController"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"], src_services_fcm_service__WEBPACK_IMPORTED_MODULE_14__["FcmService"], src_services_myevent_services__WEBPACK_IMPORTED_MODULE_7__["MyEvent"], src_services_common_service__WEBPACK_IMPORTED_MODULE_6__["CommonService"], src_services_auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"], src_services_profile_service__WEBPACK_IMPORTED_MODULE_10__["ProfileService"], src_services_service_request_service__WEBPACK_IMPORTED_MODULE_11__["ServiceRequestService"], src_services_vehicle_service__WEBPACK_IMPORTED_MODULE_12__["VehicleService"], src_services_firestore_service__WEBPACK_IMPORTED_MODULE_13__["FirestoreService"]])], VerificationPage);
      /***/
    }
  }]);
})();
//# sourceMappingURL=verification-verification-module-es5.js.map