(function () {
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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; }

  (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["welcome-welcome-module"], {
    /***/
    "+riw":
    /*!*****************************************!*\
      !*** ./src/app/welcome/welcome.page.ts ***!
      \*****************************************/

    /*! exports provided: WelcomePage */

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

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


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


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


      var _raw_loader_welcome_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! raw-loader!./welcome.page.html */
      "4lQF");
      /* harmony import */


      var _welcome_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./welcome.page.scss */
      "lRqQ");
      /* harmony import */


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


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


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


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


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

      var WelcomePage = /*#__PURE__*/function () {
        function WelcomePage(route, _authService, document, _commonService, renderFactory) {
          _classCallCheck(this, WelcomePage);

          this.route = route;
          this._authService = _authService;
          this.document = document;
          this._commonService = _commonService;
          this.renderFactory = renderFactory;
          this.fileName = 'welcome.page.ts';
          this.renderer = this.renderFactory.createRenderer(null, null);
        }

        _createClass(WelcomePage, [{
          key: "ngOnInit",
          value: function ngOnInit() {}
        }, {
          key: "gotoLogin",
          value: function gotoLogin() {
            try {
              console.log('gotoLogin');
              this.route.navigate(['./sign-in']);
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'gotoLogin()',
                error: error
              };

              this._commonService.systemException(obj);
            }
          }
        }, {
          key: "appGlobalInit",
          value: function appGlobalInit() {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
              var _this = this;

              var info;
              return regeneratorRuntime.wrap(function _callee2$(_context2) {
                while (1) {
                  switch (_context2.prev = _context2.next) {
                    case 0:
                      _context2.next = 2;
                      return this._authService.getDeviceInfo();

                    case 2:
                      info = _context2.sent;
                      localStorage.setItem("deviceInfo", JSON.stringify(info));
                      _context2.next = 6;
                      return this._authService.setAppVersion();

                    case 6:
                      this._authService.globalAPI().subscribe(function (resp) {
                        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
                          return regeneratorRuntime.wrap(function _callee$(_context) {
                            while (1) {
                              switch (_context.prev = _context.next) {
                                case 0:
                                  console.log({
                                    GlobalInit: resp
                                  });

                                  if (resp.status) {
                                    localStorage.setItem("resetPwdURL", resp.data.resetpwd);
                                    localStorage.setItem("apiBaseURL", resp.data.apibase);
                                    localStorage.setItem("webPageURL", resp.data.webpage);
                                    localStorage.setItem("globalInitTimeStamp", new Date().toISOString()); // this._authService.localAPI().subscribe(async (resp1) => {
                                    //   console.log({ localAPI: resp1 });
                                    //   if (resp1.status) {
                                    //     localStorage.setItem("localInitTimeStamp", new Date().toISOString());
                                    //   }
                                    // });
                                  }

                                case 2:
                                case "end":
                                  return _context.stop();
                              }
                            }
                          }, _callee);
                        }));
                      });

                    case 7:
                    case "end":
                      return _context2.stop();
                  }
                }
              }, _callee2, this);
            }));
          }
        }, {
          key: "ionViewDidEnter",
          value: function ionViewDidEnter() {
            try {
              console.log('ionViewDidEnter');

              this._authService.logout(); // remove below classs as the menu over remain and the next button becomes unclickable


              var element = document.getElementsByTagName("ion-router-outlet")[0];
              element.classList.remove("menu-content");
              element.classList.remove("menu-content-overlay");
              element.classList.remove("menu-content-open");
              this.changeTheme("light-theme");
              this.appGlobalInit();
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'ionViewDidEnter()',
                error: error
              };

              this._commonService.systemException(obj);
            }
          }
        }, {
          key: "changeTheme",
          value: function changeTheme(themeName) {
            try {
              this.removeTheme(themeName);
              this.renderer.addClass(this.document.body, themeName);
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'changeTheme(themeName)',
                error: error
              };

              this._commonService.systemException(obj);
            }
          }
        }, {
          key: "removeTheme",
          value: function removeTheme(themeName) {
            try {
              if (localStorage.getItem("theme") === null) {
                localStorage.setItem("theme", themeName);
              } else {
                this.renderer.removeClass(this.document.body, localStorage.getItem("theme"));
                localStorage.setItem("theme", themeName);
              }
            } catch (error) {
              var obj = {
                fileName: this.fileName,
                functionName: 'removeTheme(themeName)',
                error: error
              };

              this._commonService.systemException(obj);
            }
          }
        }]);

        return WelcomePage;
      }();

      WelcomePage.ctorParameters = function () {
        return [{
          type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
        }, {
          type: src_services_auth_service__WEBPACK_IMPORTED_MODULE_5__["AuthService"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]
          }]
        }, {
          type: src_services_common_service__WEBPACK_IMPORTED_MODULE_7__["CommonService"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["RendererFactory2"]
        }];
      };

      WelcomePage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
        selector: 'app-welcome',
        template: _raw_loader_welcome_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
        styles: [_welcome_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
      }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"], src_services_auth_service__WEBPACK_IMPORTED_MODULE_5__["AuthService"], Object, src_services_common_service__WEBPACK_IMPORTED_MODULE_7__["CommonService"], _angular_core__WEBPACK_IMPORTED_MODULE_3__["RendererFactory2"]])], WelcomePage);
      /***/
    },

    /***/
    "4lQF":
    /*!*********************************************************************************!*\
      !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/welcome/welcome.page.html ***!
      \*********************************************************************************/

    /*! exports provided: default */

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

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


      __webpack_exports__["default"] = "<ion-content fullscreen class=\"bg-img\">\n  <ion-icon class=\"next\" name=\"chevron-forward-outline\" (click)=\"gotoLogin()\"></ion-icon>\n  \n  <div class=\"applogo\">\n    <div class=\"img\">\n      <img src=\"./assets/imgs/applogo.png\">\n    </div>\n  </div>\n\n</ion-content>";
      /***/
    },

    /***/
    "f1L3":
    /*!***************************************************!*\
      !*** ./src/app/welcome/welcome-routing.module.ts ***!
      \***************************************************/

    /*! exports provided: WelcomePageRoutingModule */

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

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


      __webpack_require__.d(__webpack_exports__, "WelcomePageRoutingModule", function () {
        return WelcomePageRoutingModule;
      });
      /* 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 _welcome_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./welcome.page */
      "+riw");

      var routes = [{
        path: '',
        component: _welcome_page__WEBPACK_IMPORTED_MODULE_3__["WelcomePage"]
      }];

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

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

    /***/
    "lRqQ":
    /*!*******************************************!*\
      !*** ./src/app/welcome/welcome.page.scss ***!
      \*******************************************/

    /*! exports provided: default */

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

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


      __webpack_exports__["default"] = ".next {\n  position: absolute;\n  bottom: 0;\n  right: 0;\n  padding-right: 15px;\n  padding-bottom: 15px;\n  font-size: 40px;\n  color: white;\n}\n\n.applogo {\n  padding-top: 20%;\n}\n\n.img {\n  height: 200px;\n  width: 80px;\n  margin: auto;\n  padding-top: 25px;\n}\n\nion-header ion-toolbar {\n  --background:white;\n}\n\n.form {\n  color: var(--primary);\n  padding-top: 10px;\n  position: relative;\n  z-index: 99;\n}\n\n.form h2 {\n  font-size: 1.2rem;\n  font-weight: bold;\n  margin: 0;\n  margin-bottom: 35px;\n  position: relative;\n}\n\n.form h2::after, .form h2::before {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  margin: auto 0;\n  width: 55px;\n  height: 3px;\n  background: var(--primary);\n  border-radius: 50px;\n}\n\n.form h2::after {\n  left: unset;\n  right: 0;\n}\n\n.form h3 {\n  font-size: 1.1rem;\n  margin: 0;\n  font-weight: 400;\n}\n\n.form .button.btn {\n  height: 43px;\n  margin-top: 80px;\n}\n\nion-tab-button {\n  background: white;\n  font-weight: bold;\n}\n\nh1 {\n  color: var(--primary);\n  font-size: 1.3rem;\n  font-weight: bold;\n  margin: 0;\n}\n\nion-footer ion-button {\n  width: 95% !important;\n  margin: 10px;\n}\n\n.bg-img {\n  --background: var(--background-welcome);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3dlbGNvbWUucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksa0JBQUE7RUFDQSxTQUFBO0VBQ0EsUUFBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7RUFDQSxlQUFBO0VBQ0EsWUFBQTtBQUNKOztBQUdBO0VBRUssZ0JBQUE7QUFETDs7QUFHQTtFQUNHLGFBQUE7RUFDQSxXQUFBO0VBRUEsWUFBQTtFQUNBLGlCQUFBO0FBREg7O0FBR0E7RUFDQyxrQkFBQTtBQUFEOztBQUdBO0VBT0kscUJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtBQU5KOztBQVFJO0VBQ0ksaUJBQUE7RUFDQSxpQkFBQTtFQUNBLFNBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0FBTlI7O0FBU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blxuLmZvcm0ge1xuICAgIC8vIHBhZGRpbmc6IDMlIDMlO1xuICAgIC8vIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXdoaXRlKTtcbiAgICAvLyBib3gtc2hhZG93OiAzcHggNXB4IHZhcigtLXdoaXRlKTtcbiAgICAvLyBib3JkZXItcmFkaXVzOiA1JTtcbiAgICAvLyBtYXJnaW46IDE2JSBhdXRvO1xuXG4gICAgY29sb3I6IHZhcigtLXByaW1hcnkpO1xuICAgIHBhZGRpbmctdG9wOiAxMHB4O1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICB6LWluZGV4OiA5OTtcblxuICAgIGgyIHtcbiAgICAgICAgZm9udC1zaXplOiAxLjJyZW07XG4gICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgIG1hcmdpbi1ib3R0b206IDM1cHg7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICAgICAmOjphZnRlcixcbiAgICAgICAgJjo6YmVmb3JlIHtcbiAgICAgICAgICAgIC8vY29udGVudDogJyc7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBib3R0b206IDA7XG4gICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgbWFyZ2luOiBhdXRvIDA7XG4gICAgICAgICAgICB3aWR0aDogNTVweDtcbiAgICAgICAgICAgIGhlaWdodDogM3B4O1xuICAgICAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tcHJpbWFyeSk7XG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MHB4O1xuXG5cbiAgICAgICAgfVxuXG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIGxlZnQ6IHVuc2V0O1xuICAgICAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBoMyB7XG4gICAgICAgIGZvbnQtc2l6ZTogMS4xcmVtO1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG5cbiAgICB9XG4gICAgLmJ1dHRvbi5idG4ge1xuICAgICAgICBoZWlnaHQ6IDQzcHg7XG4gICAgICAgIG1hcmdpbi10b3A6IDgwcHg7XG4gICAgfVxufVxuICBpb24tdGFiLWJ1dHRvbiB7XG4gICBiYWNrZ3JvdW5kOiB3aGl0ZTtcdFxuICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIH1cbiAgaDEge1xuICAgICAgY29sb3I6dmFyKC0tcHJpbWFyeSk7XG4gICAgZm9udC1zaXplOiAxLjNyZW07XG4gICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgbWFyZ2luOiAwO1xuICAgLy8gbWFyZ2luLWJvdHRvbTogMzVweDtcblxufVxuaW9uLWZvb3Rlcntcblx0aW9uLWJ1dHRvbntcblx0XHR3aWR0aDo5NSUgIWltcG9ydGFudDtcblx0XHRtYXJnaW46IDEwcHg7XG5cdH1cbn1cbi5iZy1pbWcge1xuICAgICAgLS1iYWNrZ3JvdW5kOiB2YXIoLS1iYWNrZ3JvdW5kLXdlbGNvbWUpO1xuICB9XG4iXX0= */";
      /***/
    },

    /***/
    "pi15":
    /*!*******************************************!*\
      !*** ./src/app/welcome/welcome.module.ts ***!
      \*******************************************/

    /*! exports provided: WelcomePageModule */

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

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


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


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


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


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


      var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/forms */
      "3Pt+");
      /* harmony import */


      var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @ngx-translate/core */
      "sYmb");
      /* harmony import */


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


      var _welcome_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./welcome-routing.module */
      "f1L3");
      /* harmony import */


      var _welcome_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ./welcome.page */
      "+riw");

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

      WelcomePageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"], _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["IonicModule"], _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateModule"], _welcome_routing_module__WEBPACK_IMPORTED_MODULE_6__["WelcomePageRoutingModule"]],
        declarations: [_welcome_page__WEBPACK_IMPORTED_MODULE_7__["WelcomePage"]]
      })], WelcomePageModule);
      /***/
    }
  }]);
})();
//# sourceMappingURL=welcome-welcome-module-es5.js.map