exports.ids = [41,21,22];
exports.modules = {

/***/ 191:
/***/ (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__(198);
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("15cfd218", content, true, context)
};

/***/ }),

/***/ 197:
/***/ (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_ColorPicker_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(191);
/* 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_ColorPicker_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_ColorPicker_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_ColorPicker_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_ColorPicker_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 198:
/***/ (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, ".color-selector{display:flex;align-items:center;grid-gap:.5rem;gap:.5rem;flex-wrap:wrap}.color-selector__input{max-width:110px;padding:0;margin:0}.color-selector__palette{display:flex;grid-gap:.5rem;gap:.5rem;flex-wrap:wrap}.color-selector__palette-color{border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;height:1.5rem;aspect-ratio:1/1;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#fff}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 200:
/***/ (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__(216);
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("87da33dc", content, true, context)
};

/***/ }),

/***/ 201:
/***/ (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!./components/vindi/ColorPicker.vue?vue&type=template&id=91388e46&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"color-selector"},[_c('w-input',{staticClass:"color-selector__input",attrs:{"placeholder":"#000000","inner-icon-left":"mdi mdi-eyedropper-variant","color":"gray"},model:{value:(_vm.colorValue),callback:function ($$v) {_vm.colorValue=$$v},expression:"colorValue"}}),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"color-selector__palette\">","</div>",_vm._l((_vm.$store.state.config.colorPalette),function(color){return _vm._ssrNode("<div class=\"color-selector__palette-color\""+(_vm._ssrStyle(null,{ backgroundColor: color }, null))+">","</div>",[_c('w-transition-scale-fade',[(color == _vm.value)?_c('w-icon',[_vm._v("\n\t\t\t\t\tmdi mdi-check\n\t\t\t\t")]):_vm._e()],1)],1)}),0),_vm._ssrNode(" "),(_vm.clearable)?_c('w-button',{attrs:{"icon":"mdi mdi-cancel","bg-color":"error","max":7},on:{"click":function($event){return _vm.$emit('input', '')}}}):_vm._e()],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/vindi/ColorPicker.vue?vue&type=template&id=91388e46&

// 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!./components/vindi/ColorPicker.vue?vue&type=script&lang=ts&

/* harmony default export */ var ColorPickervue_type_script_lang_ts_ = (external_vue_default.a.extend({
  props: {
    value: String,
    clearable: Boolean
  },
  data: () => ({
    colorValue: ''
  }),
  watch: {
    value(value) {
      this.colorValue = value || '';
    },

    colorValue(value) {
      if (!value) {
        this.$emit('input', null);
        return;
      }

      const isValid = /^#[0-9A-F]{6}$/i.test(value);

      if (isValid) {
        this.$emit('input', value);
      }
    }

  },

  created() {
    this.colorValue = this.value;
  },

  methods: {
    selectColor(color) {
      this.colorValue = color;
    }

  }
}));
// CONCATENATED MODULE: ./components/vindi/ColorPicker.vue?vue&type=script&lang=ts&
 /* harmony default export */ var vindi_ColorPickervue_type_script_lang_ts_ = (ColorPickervue_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: ./components/vindi/ColorPicker.vue



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  vindi_ColorPickervue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "2ab3b88a"
  
)

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

/***/ }),

/***/ 215:
/***/ (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_FileUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(200);
/* 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_FileUpload_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_FileUpload_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_FileUpload_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_FileUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 216:
/***/ (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, ".file-upload input{display:none}.file-upload__dialog{border-radius:.75rem}.w-app--dark .file-upload__dialog{background-color:var(--color-shade-2)}.file-upload__cropper{padding-top:.75rem;padding-bottom:.75rem;overflow:hidden}.file-upload__options{display:flex}.file-upload__options .w-button{width:100%}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 223:
/***/ (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!./components/vindi/FileUpload.vue?vue&type=template&id=0d2fe576&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"file-upload"},[_vm._ssrNode("<div class=\"file-upload__trigger\">","</div>",[_vm._t("activator",null,{"on":_vm.handlers})],2),_vm._ssrNode(" <input type=\"file\" accept=\".png,.jpg,.jpeg,.gif\"> "),_c('w-dialog',{attrs:{"dialog-class":"file-upload__dialog","width":"500","persistent":""},model:{value:(_vm.cropDialog),callback:function ($$v) {_vm.cropDialog=$$v},expression:"cropDialog"}},[_c('VindiTitle',{attrs:{"icon":"mdi mdi-crop"}},[_vm._v("\n\t\t\tCrop image\n\t\t\t"),_c('VindiSpacer'),_vm._v(" "),_c('w-button',{attrs:{"color":"black","icon":"mdi mdi-close"},on:{"click":function($event){_vm.cropDialog = false}}})],1),_vm._v(" "),_c('w-divider'),_vm._v(" "),_c('cropper',_vm._b({staticClass:"file-upload__cropper",attrs:{"src":_vm.cropData},on:{"change":_vm.onFileCropped}},'cropper',_vm.cropProps,false)),_vm._v(" "),_c('w-divider'),_vm._v(" "),_c('div',{staticClass:"file-upload__options"},[_c('w-button',{staticClass:"file-upload__continue",attrs:{"bg-color":"primary","color":"white"},on:{"click":_vm.confirmCrop}},[_vm._v("\n\t\t\t\tContinue\n\t\t\t\t"),_c('w-icon',{staticClass:"right"},[_vm._v("\n\t\t\t\t\tmdi mdi-check\n\t\t\t\t")])],1)],1)],1)],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/vindi/FileUpload.vue?vue&type=template&id=0d2fe576&

// 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!./components/vindi/FileUpload.vue?vue&type=script&lang=ts&

/* harmony default export */ var FileUploadvue_type_script_lang_ts_ = (external_vue_default.a.extend({
  props: {
    showCropper: {
      type: Boolean
    },
    cropProps: {
      type: Object,
      default: () => {}
    },
    maxSize: {
      type: Number
    }
  },
  data: () => ({
    cropDialog: false,
    cropData: null,
    cropCanvas: undefined,
    fileName: ''
  }),
  computed: {
    hasPreviewListener() {
      return this.$listeners && !!this.$listeners.preview;
    },

    handlers() {
      return {
        click: this.openPicker
      };
    }

  },
  methods: {
    openPicker() {
      this.$refs.uploadInput.click();
    },

    createPreview(data, callback) {
      let reader = new FileReader();

      reader.onload = event => {
        callback(event.target.result);
      };

      reader.readAsDataURL(data);
    },

    onFileChanged(e) {
      const file = e.target.files[0];
      this.fileName = file.name; // Postpone the emission of input until
      // the crop has been confirmed.

      if (!this.showCropper) {
        this.$emit('input', file);
      } // Generate a data URL preview


      if (this.showCropper || this.hasPreviewListener) {
        this.createPreview(file, result => {
          if (this.showCropper) {
            this.cropData = result;
            this.cropDialog = true;
          } else {
            this.$emit('preview', result);
          }
        });
      } // Reset the input


      e.target.value = '';
    },

    onFileCropped(e) {
      this.cropCanvas = e.canvas;
    },

    confirmCrop() {
      this.cropDialog = false;
      if (!this.cropCanvas) return;
      this.cropCanvas.toBlob(blob => {
        if (!blob) return; // Handle max file size

        if (this.maxSize && blob.size > this.maxSize) {
          this.$waveui.notify({
            message: 'Selected file is too large',
            error: true
          });
          return;
        } // Create a new file given the croppped image
        // contents combined with the original file name


        const file = new File([blob], this.fileName);
        this.$emit('input', file);

        if (this.hasPreviewListener) {
          this.createPreview(file, result => {
            this.$emit('preview', result);
          });
        }
      });
    }

  }
}));
// CONCATENATED MODULE: ./components/vindi/FileUpload.vue?vue&type=script&lang=ts&
 /* harmony default export */ var vindi_FileUploadvue_type_script_lang_ts_ = (FileUploadvue_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: ./components/vindi/FileUpload.vue



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  vindi_FileUploadvue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "700348a3"
  
)

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

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


/***/ }),

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

module.exports = __webpack_require__.p + "img/avatar-placeholder.824a558.svg";

/***/ }),

/***/ 254:
/***/ (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__(301);
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("3d614a4c", content, true, context)
};

/***/ }),

/***/ 300:
/***/ (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_general_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(254);
/* 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_general_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_general_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_general_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_general_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 301:
/***/ (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, ".project-general{padding-top:.5rem}.project-general__grid{display:flex;flex-direction:column;grid-gap:2.5rem;gap:2.5rem}@media(min-width:1201px){.project-general__grid{flex-direction:row}}.project-general__fields{flex:1}@media(min-width:1201px){.project-general__fields{width:0}}.project-general__uploads{width:250px;order:-1}@media(min-width:1201px){.project-general__uploads{order:1}}.project-general__fields>.w-divider,.project-general__fields>label:not(:first-child),.project-general__uploads>.w-divider,.project-general__uploads>label:not(:first-child){margin-top:1.75rem}.project-general__upload{margin-bottom:2.5rem;width:13rem;position:relative}.project-general__upload-preview{border-radius:.75rem;-o-object-fit:cover;object-fit:cover;height:8rem;width:13rem}.project-general__upload-file{position:absolute;bottom:-1.25rem;right:-1.25rem}.project-general__upload-option.w-button{border-radius:9999px;box-shadow:0 0 0 0 transparent,0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:2.75rem;height:2.75rem}.project-general__archive{margin-top:.5rem;margin-left:0}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 340:
/***/ (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/project/_pid/settings/general.vue?vue&type=template&id=212a16d9&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"project-general"},[_vm._ssrNode("<div class=\"project-general__grid\">","</div>",[_vm._ssrNode("<div class=\"project-general__fields\">","</div>",[_vm._ssrNode("<label>"+(_vm._s(_vm.$t('CREATE_NEW_PROJECT_NAME')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_PROJECT_NAME_DESC'))+"\n\t\t\t")+"</small> "),_c('w-input',{model:{value:(_vm.project.name),callback:function ($$v) {_vm.$set(_vm.project, "name", $$v)},expression:"project.name"}}),_vm._ssrNode(" <label>"+(_vm._s(_vm.$t('CREATE_NEW_DESC')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_PROJECT_DESCRIPTION'))+"\n\t\t\t")+"</small> "),_c('w-textarea',{attrs:{"rows":"3"},model:{value:(_vm.project.description),callback:function ($$v) {_vm.$set(_vm.project, "description", $$v)},expression:"project.description"}}),_vm._ssrNode(" <label>"+_vm._ssrEscape(_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_ACCENT_COLOR')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_ACCENT_COLOR_DESC'))+"\n\t\t\t")+"</small> "),_c('VindiColorPicker',{model:{value:(_vm.project.accentColor),callback:function ($$v) {_vm.$set(_vm.project, "accentColor", $$v)},expression:"project.accentColor"}}),_vm._ssrNode(" <label>"+_vm._ssrEscape(_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_KANBAN_COLOR')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_KANBAN_COLOR_DESC'))+"\n\t\t\t")+"</small> "),_c('VindiColorPicker',{attrs:{"clearable":""},model:{value:(_vm.project.kanbanColor),callback:function ($$v) {_vm.$set(_vm.project, "kanbanColor", $$v)},expression:"project.kanbanColor"}}),_vm._ssrNode(" <label>"+_vm._ssrEscape(_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_DEFAULT_VIEW')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_DEFAULT_VIEW_DESC'))+"\n\t\t\t")+"</small> "),_c('w-select',{attrs:{"items":_vm.projectViews},model:{value:(_vm.project.defaultView),callback:function ($$v) {_vm.$set(_vm.project, "defaultView", $$v)},expression:"project.defaultView"}}),_vm._ssrNode(" <label>"+_vm._ssrEscape(_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_PUBLIC_ACCESS')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_PUBLIC_ACCESS_DESC'))+"\n\t\t\t")+"</small> "),_c('w-switch',{attrs:{"color":"success"},model:{value:(_vm.project.isPublic),callback:function ($$v) {_vm.$set(_vm.project, "isPublic", $$v)},expression:"project.isPublic"}}),_vm._ssrNode(" "),_c('w-divider'),_vm._ssrNode(" <label>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_DELETE_PROJECT'))+"\n\t\t\t")+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_DELETE_PROJECT_DESC'))+"\n\t\t\t")+"</small> "),_c('w-button',{staticClass:"project-general__archive",attrs:{"outline":"","color":"error"},on:{"click":function($event){_vm.deletionDialog = true}}},[_vm._v("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_DELETE_PROJECT'))+"\n\t\t\t\t"),_c('w-icon',{staticClass:"right"},[_vm._v("\n\t\t\t\t\tmdi mdi-delete\n\t\t\t\t")])],1)],2),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"project-general__uploads\">","</div>",[_vm._ssrNode("<label>"+_vm._ssrEscape(_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_COVER_IMAGE')))+"</label> <small>"+_vm._ssrEscape("\n\t\t\t\t"+_vm._s(_vm.$t('PROJECT_SETTINGS_GENERAL_COVER_IMAGE_DESC'))+"\n\t\t\t")+"</small> "),_vm._ssrNode("<div class=\"project-general__upload\">","</div>",[_vm._ssrNode("<img"+(_vm._ssrAttr("src",_vm.projectCoverPreview || __webpack_require__(235)))+" class=\"project-general__upload-preview\"> "),_c('VindiFileUpload',{staticClass:"project-general__upload-file",attrs:{"show-cropper":"","crop-props":{'stencil-props': { aspectRatio: 1.5/1 }},"max-size":10485760},on:{"preview":_vm.updateCoverPreview},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
var on = ref.on;
return [(_vm.project.coverImage != _vm.original.coverImage)?_c('w-button',{staticClass:"project-general__upload-option",attrs:{"icon":"mdi mdi-undo","bg-color":"info","color":"white","lg":""},on:{"click":_vm.revertCover}}):_vm._e(),_vm._v(" "),(_vm.project.coverImage)?_c('w-button',{staticClass:"project-general__upload-option",attrs:{"icon":"mdi mdi-delete","bg-color":"error","color":"white","lg":""},on:{"click":_vm.removeCover}}):_vm._e(),_vm._v(" "),_c('w-button',_vm._g({staticClass:"project-general__upload-option",attrs:{"icon":"mdi mdi-pencil","bg-color":"primary","color":"white","lg":""}},on))]}}]),model:{value:(_vm.project.coverImage),callback:function ($$v) {_vm.$set(_vm.project, "coverImage", $$v)},expression:"project.coverImage"}})],2)],2)],2),_vm._ssrNode(" "),_c('w-dialog',{attrs:{"width":"350"},model:{value:(_vm.deletionDialog),callback:function ($$v) {_vm.deletionDialog=$$v},expression:"deletionDialog"}},[_c('VindiTitle',{attrs:{"icon":"mdi mdi-delete"}},[_vm._v("\n\t\t\tDelete Project\n\t\t")]),_vm._v(" "),_c('w-divider'),_vm._v(" "),_c('div',{staticStyle:{"padding-bottom":"10px"}},[_c('p',{staticStyle:{"padding-bottom":"10px"}},[_vm._v("\n\t\t\t\tAre you sure?\n\t\t\t")]),_vm._v(" "),_c('small',[_vm._v("\n\t\t\t\tYou are about to permanently delete this project. This cannot be undone!\n\t\t\t")])]),_vm._v(" "),_c('div',{staticStyle:{"display":"flex"}},[_c('w-button',{attrs:{"text":"","disabled":_vm.deletionActive},on:{"click":function($event){_vm.deletionDialog = false}}},[_c('w-icon',{staticClass:"left"},[_vm._v("\n\t\t\t\t\tmdi mdi-arrow-left\n\t\t\t\t")]),_vm._v("\n\t\t\t\tBack\n\t\t\t")],1),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-button',{attrs:{"bg-color":"error","text":"","loading":_vm.deletionActive},on:{"click":_vm.deleteProject}},[_vm._v("\n\t\t\t\tConfirm\n\t\t\t")])],1)],1)],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/project/_pid/settings/general.vue?vue&type=template&id=212a16d9&

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

// CONCATENATED MODULE: ./assets/query/project/deleteProject.gql
/* harmony default export */ var deleteProject = ("mutation DeleteProject($id: Int!) {\r\n\tdeleteProject(id: $id) {\r\n\t\tid\r\n\t}\r\n}");
// 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/project/_pid/settings/general.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 generalvue_type_script_lang_ts_ = (external_vue_default.a.extend({
  props: {
    project: Object
  },
  data: () => ({
    original: null,
    projectCoverPreview: '',
    projectBackgroundPreview: '',
    deletionActive: false,
    deletionDialog: false
  }),
  computed: {
    projectViews() {
      return this.$registries.projectViews.toItems().map(view => ({
        label: this.$t(view.content.name),
        value: view.id
      }));
    }

  },
  watch: {
    'project.coverImage'(value) {
      this.projectCoverPreview = value;
    }

  },

  created() {
    this.original = Object.assign({}, this.project);
    this.projectCoverPreview = this.project.coverImage;
  },

  methods: {
    revertCover() {
      this.project.coverImage = this.original.coverImage;
      this.projectCoverPreview = this.original.coverImage;
    },

    removeCover() {
      this.project.coverImage = null;
      this.projectCoverPreview = '';
    },

    updateCoverPreview(preview) {
      this.projectCoverPreview = preview;
    },

    revertBackground() {
      this.project.backgroundImage = this.original.backgroundImage;
      this.projectBackgroundPreview = this.original.backgroundImage;
    },

    removeBackground() {
      this.project.backgroundImage = null;
      this.projectBackgroundPreview = '';
    },

    updateBackgroundPreview(preview) {
      this.projectBackgroundPreview = preview;
    },

    deleteProject() {
      return __awaiter(this, void 0, void 0, function* () {
        this.deletionActive = true;
        this.$router.push('/');
        yield this.$api.query(deleteProject, {
          id: this.project.id
        });
        this.deletionActive = false;
      });
    }

  }
}));
// CONCATENATED MODULE: ./pages/project/_pid/settings/general.vue?vue&type=script&lang=ts&
 /* harmony default export */ var settings_generalvue_type_script_lang_ts_ = (generalvue_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/project/_pid/settings/general.vue



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  settings_generalvue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "56d8f6f0"
  
)

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

/* nuxt-component-imports */
installComponents(component, {VindiColorPicker: __webpack_require__(201).default,VindiFileUpload: __webpack_require__(223).default,VindiTitle: __webpack_require__(69).default,VindiSpacer: __webpack_require__(11).default})


/***/ })

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