exports.ids = [31];
exports.modules = {

/***/ 249:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(290);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add CSS to SSR context
var add = __webpack_require__(6).default
module.exports.__inject__ = function (context) {
  add("5affaaed", content, true, context)
};

/***/ }),

/***/ 288:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "img/login-illustration.a146b9c.svg";

/***/ }),

/***/ 289:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(249);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 290:
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(5);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
// Module
___CSS_LOADER_EXPORT___.push([module.i, ".auth-box__content{display:flex}.auth-box__prominent{box-shadow:6px 6px 40px rgba(0,131,253,.8);border-radius:1rem;padding:1rem 2rem;flex:1;width:50%;z-index:2;text-align:center;background:linear-gradient(135deg,#02c6ff,#6943ff)}.w-app--dark .auth-box__prominent{box-shadow:6px 6px 40px rgba(0,131,253,.45)}.auth-box__prominent-inner{position:relative;height:100%}.auth-box__flat{box-shadow:6px 6px 40px hsla(0,0%,72.5%,.8);border-radius:1rem;padding:1rem 2rem;flex:1;width:50%;margin-left:-1.5rem;border-top-left-radius:0;border-bottom-left-radius:0;background-color:#fff;display:none}@media(min-width:901px){.auth-box__flat{display:block}}.w-app--dark .auth-box__flat{box-shadow:6px 6px 40px hsla(0,0%,50.6%,.8)}.auth-box__flat-inner{height:100%;display:flex;align-items:center;justify-content:center}.auth-box__flat-inner img{width:80%}.auth-box__flat,.auth-box__prominent{height:25rem}.auth-box__view{position:absolute;flex-direction:column;color:#fff;display:flex;top:0;right:0;bottom:0;left:0}.auth-box__title{padding-top:.75rem;padding-bottom:.75rem;font-weight:600;font-size:1.5rem;line-height:2rem;text-transform:uppercase;letter-spacing:.1em}.auth-box__form{display:flex;flex-direction:column;height:100%}.auth-box__input{margin-top:1.25rem;margin-bottom:1.25rem}.auth-box__remember{display:flex}.auth-box__remember :not(:checked)~.w-checkbox__input:after{border-color:#fff}.auth-box__forgot{color:inherit}.auth-box__toggle{padding-top:1rem;font-weight:300;font-size:.875rem;line-height:1.25rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 351:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: D:/Starlane/Workspaces/vindigo/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!D:/Starlane/Workspaces/vindigo/node_modules/nuxt/node_modules/@nuxt/components/dist/loader.js??ref--0-0!D:/Starlane/Workspaces/vindigo/node_modules/vue-loader/lib??vue-loader-options!./pages/authenticate/index.vue?vue&type=template&id=ebff045a&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"auth-box__content"},[_vm._ssrNode("<div class=\"auth-box__prominent\">","</div>",[_vm._ssrNode("<div class=\"auth-box__prominent-inner\">","</div>",[_c('zoom-x-transition',[(!_vm.isSigningUp)?_c('section',{key:"authenticate",staticClass:"auth-box__view"},[_c('h1',{staticClass:"auth-box__title"},[_vm._v("\n\t\t\t\t\t\t"+_vm._s(_vm.$t("SIGNIN_WELCOME"))+"\n\t\t\t\t\t")]),_vm._v(" "),_c('w-form',{staticClass:"auth-box__form"},[_c('section',[_c('w-input',{staticClass:"auth-box__input",attrs:{"placeholder":_vm.$t('SIGNIN_USERNAME'),"autocomplete":"sign-in email","round":""},model:{value:(_vm.identity),callback:function ($$v) {_vm.identity=$$v},expression:"identity"}}),_vm._v(" "),_c('w-input',{staticClass:"auth-box__input",attrs:{"placeholder":_vm.$t('SIGNIN_PASSWORD'),"autocomplete":"sign-in password","type":"password","round":""},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:"password"}})],1),_vm._v(" "),_c('div',{staticClass:"auth-box__remember"},[_c('w-checkbox',{attrs:{"label":_vm.$t('SIGNIN_REMEMBER_ME'),"round":""},model:{value:(_vm.remember),callback:function ($$v) {_vm.remember=$$v},expression:"remember"}}),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('a',{staticClass:"auth-box__forgot",attrs:{"href":""}},[_vm._v("\n\t\t\t\t\t\t\t\t"+_vm._s(_vm.$t("SIGNIN_FORGOT_PASSWORD"))+"\n\t\t\t\t\t\t\t")])],1),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-button',{staticClass:"auth-box__button",attrs:{"round":"","color":"white","bg-color":"secondary","type":"submit","width":"100%","height":"32","loading":_vm.loading},on:{"click":_vm.authenticate}},[_vm._v("\n\t\t\t\t\t\t\t"+_vm._s(_vm.$t("SIGNIN_SIGNIN"))+"\n\t\t\t\t\t\t\t"),_c('w-icon',[_vm._v("\n\t\t\t\t\t\t\t\tmdi mdi-chevron-right\n\t\t\t\t\t\t\t")])],1)],1),_vm._v(" "),(_vm.canRegister)?_c('div',{staticClass:"auth-box__toggle",on:{"click":function($event){_vm.isSigningUp = true}}},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.$t('SIGNIN_NO_ACCOUNT'))}})]):_vm._e()],1):_c('section',{key:"register",staticClass:"auth-box__view"},[_c('h1',{staticClass:"auth-box__title py4 font-semibold"},[_vm._v("\n\t\t\t\t\t\t"+_vm._s(_vm.$t("SIGNIN_SIGNUP"))+"\n\t\t\t\t\t")]),_vm._v(" "),_c('w-form',{staticClass:"auth-box__form"},[_c('section',[_c('w-input',{staticClass:"auth-box__input",attrs:{"placeholder":_vm.$t('GENERAL_EMAIL'),"autocomplete":"sign-up email","name":"email","round":""},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:"email"}}),_vm._v(" "),_c('w-input',{staticClass:"auth-box__input",attrs:{"placeholder":_vm.$t('GENERAL_FULL_NAME'),"autocomplete":"sign-up name","name":"name","round":""},model:{value:(_vm.fullname),callback:function ($$v) {_vm.fullname=$$v},expression:"fullname"}}),_vm._v(" "),_c('w-input',{staticClass:"auth-box__input",attrs:{"placeholder":_vm.$t('SIGNIN_PASSWORD'),"autocomplete":"sign-up password","password-reveal":"","type":"password","name":"password","round":""},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:"password"}})],1),_vm._v(" "),_c('div',{staticClass:"auth-box__remember"},[_c('w-checkbox',{attrs:{"label":_vm.$t('SIGNIN_REMEMBER_ME'),"round":""},model:{value:(_vm.remember),callback:function ($$v) {_vm.remember=$$v},expression:"remember"}})],1),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-button',{staticClass:"auth-box__button",attrs:{"round":"","color":"white","bg-color":"secondary","type":"submit","width":"100%","height":"32","loading":_vm.loading},on:{"click":_vm.register}},[_vm._v("\n\t\t\t\t\t\t\t"+_vm._s(_vm.$t("SIGNIN_REGISTER_ACCOUNT"))+"\n\t\t\t\t\t\t\t"),_c('w-icon',[_vm._v("\n\t\t\t\t\t\t\t\tmdi mdi-chevron-right\n\t\t\t\t\t\t\t")])],1)],1),_vm._v(" "),_c('div',{staticClass:"auth-box__toggle",on:{"click":function($event){_vm.isSigningUp = false}}},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.$t('SIGNIN_HAVE_ACCOUNT'))}})])],1)])],1)]),_vm._ssrNode(" <div class=\"auth-box__flat\"><div class=\"auth-box__flat-inner\"><img"+(_vm._ssrAttr("src",__webpack_require__(288)))+"></div></div>")],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/authenticate/index.vue?vue&type=template&id=ebff045a&

// EXTERNAL MODULE: external "vue"
var external_vue_ = __webpack_require__(0);
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);

// CONCATENATED MODULE: D:/Starlane/Workspaces/vindigo/node_modules/babel-loader/lib??ref--13-0!D:/Starlane/Workspaces/vindigo/node_modules/ts-loader??ref--13-1!D:/Starlane/Workspaces/vindigo/node_modules/nuxt/node_modules/@nuxt/components/dist/loader.js??ref--0-0!D:/Starlane/Workspaces/vindigo/node_modules/vue-loader/lib??vue-loader-options!./pages/authenticate/index.vue?vue&type=script&lang=ts&
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function (resolve) {
      resolve(value);
    });
  }

  return new (P || (P = Promise))(function (resolve, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    }

    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e) {
        reject(e);
      }
    }

    function step(result) {
      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
    }

    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
};


/* harmony default export */ var authenticatevue_type_script_lang_ts_ = (external_vue_default.a.extend({
  layout: 'landing',
  middleware: 'guest',
  data: () => ({
    isSigningUp: false,
    fullname: "",
    email: "",
    identity: "",
    password: "",
    remember: false,
    loading: false
  }),
  computed: {
    canRegister() {
      return this.$store.state.config.allowRegister;
    }

  },
  methods: {
    authenticate() {
      return __awaiter(this, void 0, void 0, function* () {
        if (!this.identity || !this.password) {
          this.$waveui.notify(this.$t('NOTIFICATION_BLANK_FIELDS'), "error");
          return;
        }

        this.loading = true;
        const profile = yield this.$store.dispatch("signIn", {
          identity: this.identity,
          password: this.password,
          remember: this.remember
        });
        const authError = this.$store.state.authError;

        if (authError != '') {
          this.$waveui.notify({
            message: authError,
            error: true
          });
          this.$store.commit('setAuthError', '');
        } else {
          if (!profile) {
            this.$waveui.notify(this.$t("NOTIFICATION_INVALID_DETAILS"), "error");
          } else {
            this.$router.push('/');
          }
        }

        this.loading = false;
      });
    },

    register() {
      return __awaiter(this, void 0, void 0, function* () {
        if (!this.fullname || !this.email || !this.password) {
          this.$waveui.notify(this.$t('NOTIFICATION_BLANK_FIELDS'), "error");
          return;
        }

        this.loading = true;
        const profile = yield this.$store.dispatch("signUp", {
          fullname: this.fullname,
          email: this.email,
          password: this.password,
          remember: this.remember
        });

        if (!profile) {
          this.$waveui.notify(this.$t('NOTIFICATION_INVALID_DETAILS'), "error");
        } else {
          this.$router.push('/authenticate/complete');
        }

        this.loading = false;
      });
    }

  }
}));
// CONCATENATED MODULE: ./pages/authenticate/index.vue?vue&type=script&lang=ts&
 /* harmony default export */ var pages_authenticatevue_type_script_lang_ts_ = (authenticatevue_type_script_lang_ts_); 
// EXTERNAL MODULE: D:/Starlane/Workspaces/vindigo/node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./pages/authenticate/index.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(289)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  pages_authenticatevue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "03d6ab96"
  
)

/* harmony default export */ var authenticate = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {VindiSpacer: __webpack_require__(11).default})


/***/ })

};;
//# sourceMappingURL=index.js.map