exports.ids = [33];
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__(291);
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__(4).default
module.exports.__inject__ = function (context) {
  add("ac9507b0", content, true, context)
};

/***/ }),

/***/ 290:
/***/ (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_install_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_install_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_install_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_install_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_install_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

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

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
// Module
___CSS_LOADER_EXPORT___.push([module.i, ".install-page{box-shadow:6px 6px 40px rgba(0,131,253,.8);border-radius:1rem;padding:1rem 2rem;flex:1;z-index:2;color:#fff;margin:0 auto;max-width:400px;text-align:center;background:linear-gradient(135deg,#02c6ff,#6943ff)}.w-app--dark .install-page{box-shadow:6px 6px 40px rgba(0,131,253,.45)}.install-page__title{padding-top:.75rem;padding-bottom:.75rem;font-weight:600;font-size:1.5rem;line-height:2rem;text-transform:uppercase;letter-spacing:.1em}.install-page__form{display:flex;flex-direction:column;height:100%}.install-page__input{margin-top:1.25rem;margin-bottom:1.25rem}.install-page .w-button{margin-top:1.25rem}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

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

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

// CONCATENATED MODULE: D:/Development/StarlaneStudios/vindigo/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!D:/Development/StarlaneStudios/vindigo/node_modules/nuxt/node_modules/@nuxt/components/dist/loader.js??ref--0-0!D:/Development/StarlaneStudios/vindigo/node_modules/vue-loader/lib??vue-loader-options!./pages/install.vue?vue&type=template&id=180f4ebc&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"install-page"},[_vm._ssrNode("<section class=\"install-page__view\">","</section>",[_vm._ssrNode("<h1 class=\"install-page__title\">"+_vm._ssrEscape("\n\t\t\t"+_vm._s(_vm.$t("INSTALLER_INSTALL"))+"\n\t\t")+"</h1> "),_c('w-form',{staticClass:"install-page__form"},[_c('section',[_c('w-input',{staticClass:"install-page__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:"install-page__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:"install-page__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('VindiSpacer'),_vm._v(" "),_c('w-button',{staticClass:"install-page__button",attrs:{"round":"","color":"white","bg-color":"secondary","type":"submit","width":"100%","height":"32","loading":_vm.loading},on:{"click":_vm.registerAdmin}},[_vm._v("\n\t\t\t\t"+_vm._s(_vm.$t("INSTALLER_CONTINUE"))+"\n\t\t\t\t"),_c('w-icon',[_vm._v("\n\t\t\t\t\tmdi mdi-chevron-right\n\t\t\t\t")])],1)],1)],2)])}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/install.vue?vue&type=template&id=180f4ebc&

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

// CONCATENATED MODULE: D:/Development/StarlaneStudios/vindigo/node_modules/babel-loader/lib??ref--13-0!D:/Development/StarlaneStudios/vindigo/node_modules/ts-loader??ref--13-1!D:/Development/StarlaneStudios/vindigo/node_modules/nuxt/node_modules/@nuxt/components/dist/loader.js??ref--0-0!D:/Development/StarlaneStudios/vindigo/node_modules/vue-loader/lib??vue-loader-options!./pages/install.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 installvue_type_script_lang_ts_ = (external_vue_default.a.extend({
  layout: 'landing',
  middleware: 'guest',

  asyncData(context) {
    if (!context.store.state.config.installing) {
      context.redirect('/');
    }
  },

  data: () => ({
    fullname: "",
    email: "",
    password: "",
    loading: false
  }),
  methods: {
    registerAdmin() {
      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: true
        });

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

        this.loading = false;
      });
    }

  }
}));
// CONCATENATED MODULE: ./pages/install.vue?vue&type=script&lang=ts&
 /* harmony default export */ var pages_installvue_type_script_lang_ts_ = (installvue_type_script_lang_ts_); 
// EXTERNAL MODULE: D:/Development/StarlaneStudios/vindigo/node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./pages/install.vue



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  pages_installvue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "77127a32"
  
)

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

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


/***/ })

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