exports.ids = [26,1];
exports.modules = {

/***/ 186:
/***/ (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__(189);
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("51c0b9ba", content, true, context)
};

/***/ }),

/***/ 188:
/***/ (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_Container_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(186);
/* 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_Container_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_Container_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_Container_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_Container_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 189:
/***/ (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, ".container{width:100%;padding-left:2rem;padding-right:2rem;margin-left:auto;margin-right:auto;max-width:1000px}@media(min-width:901px){.container{max-width:901px}}@media(min-width:1201px){.container{max-width:1201px}}@media(min-width:1701px){.container{max-width:1400px}}.container--narrow{max-width:1000px}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 190:
/***/ (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/Container.vue?vue&type=template&id=cb69aaa6&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classList},[_vm._t("default")],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/Container.vue?vue&type=template&id=cb69aaa6&

// 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/Container.vue?vue&type=script&lang=ts&

/* harmony default export */ var Containervue_type_script_lang_ts_ = (external_vue_default.a.extend({
  name: 'Container',
  props: {
    narrow: Boolean
  },
  computed: {
    classList() {
      return {
        'container': true,
        'container--narrow': this.narrow
      };
    }

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



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_Containervue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "4f61da67"
  
)

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

/***/ }),

/***/ 246:
/***/ (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__(284);
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("20a76b0d", content, true, context)
};

/***/ }),

/***/ 283:
/***/ (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__(246);
/* 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__));


/***/ }),

/***/ 284:
/***/ (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, ".admin-dashboard .frappe-chart .x.axis .line-vertical,.admin-dashboard .frappe-chart .x.axis text,.admin-dashboard .frappe-chart .y.axis .line-horizontal,.admin-dashboard .frappe-chart .y.axis text{display:none}.admin-dashboard__header{margin-top:1.5rem;padding-left:.25rem}.admin-dashboard__title{font-size:1.5rem;line-height:2rem;font-weight:500}.admin-dashboard__subtitle{color:grey}.admin-dashboard__statistics{margin-top:1.5rem;grid-gap:2rem;gap:2rem;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}.admin-dashboard__card{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);border-radius:1rem;color:#fff}.admin-dashboard__card:first-child{box-shadow:3px 3px 20px rgba(20,167,244,.6);background-color:#14a7f4}.admin-dashboard__card:nth-child(2){box-shadow:3px 3px 20px rgba(139,92,246,.6);background-color:#8b5cf6}.admin-dashboard__card:nth-child(3){box-shadow:3px 3px 20px rgba(247,96,96,.6);background-color:#f76060}.admin-dashboard__card:nth-child(4){box-shadow:3px 3px 20px rgba(243,162,11,.6);background-color:#f3a20b}.admin-dashboard__card-name{font-size:.875rem;line-height:1.25rem;opacity:.8}.admin-dashboard__card-value{font-size:1.5rem;line-height:2rem}.admin-dashboard__wrapper{grid-gap:2rem;gap:2rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.admin-dashboard__content{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);padding:.75rem;margin-top:2rem;border-radius:1rem;grid-column:1/span 3;background-color:var(--color-shade-0)}.admin-dashboard__sidebar{margin-top:2rem;display:flex;flex-direction:column;grid-gap:1.75rem;gap:1.75rem}.admin-dashboard__sidebar-container{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);padding:.75rem;border-radius:1rem;width:100%;background-color:#fff}.w-app--dark .admin-dashboard__sidebar-container{background-color:var(--color-shade-2)}.admin-dashboard__sidebar-container .w-divider{margin:0}.admin-dashboard__sidebar-container--users,.admin-dashboard__sidebar-container .section-title{padding:0}.admin-dashboard__sidebar-container-version-btn{width:100%}.admin-dashboard__sidebar-container-users-empty{padding-top:.5rem;padding-bottom:.5rem;text-align:center;color:grey}.admin-dashboard__sidebar-container-users-list{padding:.5rem 1rem;grid-gap:4;gap:4;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:center}.admin-dashboard__users-inner{padding:.75rem}.admin-dashboard__users-inner-title{display:flex}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 331:
/***/ (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/admin/index.vue?vue&type=template&id=c18c3452&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"admin-dashboard"},[_c('Container',[_c('w-flex',{staticClass:"admin-dashboard__header",attrs:{"align-center":"","gap":3}},[_c('w-icon',{attrs:{"size":40}},[_vm._v("\n\t\t\t\tmdi mdi-tools\n\t\t\t")]),_vm._v(" "),_c('div',[_c('div',{staticClass:"admin-dashboard__title"},[_vm._v("\n\t\t\t\t\tAdmin Dashboard\n\t\t\t\t")]),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__subtitle"},[_vm._v("\n\t\t\t\t\tManage your Vindigo workspace\n\t\t\t\t")])])],1),_vm._v(" "),_c('section',{staticClass:"admin-dashboard__statistics"},[_c('w-card',{staticClass:"admin-dashboard__card"},[_c('w-flex',[_c('div',{staticClass:"admin-dashboard__card-name"},[_vm._v("\n\t\t\t\t\t\tAPI Requests (30m)\n\t\t\t\t\t")]),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-icon',{attrs:{"size":24}},[_vm._v("\n\t\t\t\t\t\tmdi mdi-swap-vertical-bold\n\t\t\t\t\t")])],1),_vm._v(" "),(_vm.systemStats.requestMean < 0)?_c('div',{staticClass:"admin-dashboard__card-value"},[_vm._v("\n\t\t\t\t\tWaiting...\n\t\t\t\t")]):_c('div',{staticClass:"admin-dashboard__card-value"},[_vm._v("\n\t\t\t\t\t"+_vm._s(_vm.systemStats.requestMean)),_c('small',[_vm._v("/min avarage")])])],1),_vm._v(" "),_c('w-card',{staticClass:"admin-dashboard__card"},[_c('w-flex',[_c('div',{staticClass:"admin-dashboard__card-name"},[_vm._v("\n\t\t\t\t\t\tMemory Usage\n\t\t\t\t\t")]),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-icon',{attrs:{"size":24}},[_vm._v("\n\t\t\t\t\t\tmdi mdi-lightning-bolt\n\t\t\t\t\t")])],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__card-value"},[_vm._v("\n\t\t\t\t\t"+_vm._s(_vm.formatBytes(_vm.systemStats.memoryUsage))+"\n\t\t\t\t")])],1),_vm._v(" "),_c('w-card',{staticClass:"admin-dashboard__card"},[_c('w-flex',[_c('div',{staticClass:"admin-dashboard__card-name"},[_vm._v("\n\t\t\t\t\t\tStorage Usage\n\t\t\t\t\t")]),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-icon',{attrs:{"size":24}},[_vm._v("\n\t\t\t\t\t\tmdi mdi-database\n\t\t\t\t\t")])],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__card-value"},[_vm._v("\n\t\t\t\t\t"+_vm._s(_vm.formatBytes(_vm.systemStats.storageUsage))+"\n\t\t\t\t")])],1),_vm._v(" "),_c('w-card',{staticClass:"admin-dashboard__card"},[_c('w-flex',[_c('div',{staticClass:"admin-dashboard__card-name"},[_vm._v("\n\t\t\t\t\t\tServer Uptime\n\t\t\t\t\t")]),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-icon',{attrs:{"size":24}},[_vm._v("\n\t\t\t\t\t\tmdi mdi-clock\n\t\t\t\t\t")])],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__card-value"},[_vm._v("\n\t\t\t\t\t"+_vm._s(_vm.formatDuration(_vm.systemStats.serverUptime))+"\n\t\t\t\t")])],1)],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__wrapper"},[_c('section',{staticClass:"admin-dashboard__content"},[_c('VindiDatePicker',{attrs:{"range":""},model:{value:(_vm.date),callback:function ($$v) {_vm.date=$$v},expression:"date"}}),_vm._v("\n\n\t\t\t\t"+_vm._s(_vm.date)+"\n\n\t\t\t")],1),_vm._v(" "),_c('aside',{staticClass:"admin-dashboard__sidebar"},[_c('div',{staticClass:"admin-dashboard__sidebar-container admin-dashboard__sidebar-container--users"},[_c('div',{staticClass:"admin-dashboard__users-inner"},[_c('div',{staticClass:"admin-dashboard__users-inner-title"},[_c('VindiTitle',{attrs:{"icon":"mdi mdi-account"}},[_vm._v("\n\t\t\t\t\t\t\t\tUsers\n\t\t\t\t\t\t\t")]),_vm._v(" "),_c('VindiSpacer'),_vm._v(" "),_c('w-button',{attrs:{"bg-color":"transparent","color":"error","route":"/admin/users"}},[_vm._v("\n\t\t\t\t\t\t\t\tView list\n\t\t\t\t\t\t\t")])],1)]),_vm._v(" "),_c('w-divider'),_vm._v(" "),(!_vm.activeUsers.authenticatedUsers.length)?_c('div',{staticClass:"admin-dashboard__sidebar-container-users-empty"},[_vm._v("\n\t\t\t\t\t\tNo users online\n\t\t\t\t\t")]):_c('div',{staticClass:"admin-dashboard__sidebar-container-users-list"},_vm._l((_vm.activeUsers.authenticatedUsers),function(profile){return _c('div',{key:profile.id},[_c('VindiAvatar',{attrs:{"profile":profile,"size":"40"}})],1)}),0),_vm._v(" "),_c('w-divider'),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__users-inner"},[_c('small',[_vm._v("\n\t\t\t\t\t\t\t"+_vm._s(_vm.activeUsers.authenticatedAmount)+" known users online\n\t\t\t\t\t\t")]),_vm._v(" "),_c('br'),_vm._v(" "),_c('small',[_vm._v("\n\t\t\t\t\t\t\t"+_vm._s(_vm.activeUsers.anonymousAmount)+" anonymous users online\n\t\t\t\t\t\t")])])],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__sidebar-container admin-dashboard__sidebar-container-analytics"},[_c('div',{staticClass:"simple-subtitle"},[_vm._v("\n\t\t\t\t\t\tAnalytics\n\t\t\t\t\t")]),_vm._v(" "),_c('w-select',{staticClass:"admin-dashboard__sidebar-analytics--event__selector",attrs:{"items":_vm.analyticsList},model:{value:(_vm.analytic),callback:function ($$v) {_vm.analytic=$$v},expression:"analytic"}})],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__sidebar-container"},[_c('div',{staticClass:"simple-subtitle"},[_vm._v("\n\t\t\t\t\t\tMaintenance\n\t\t\t\t\t")]),_vm._v(" "),_c('w-switch')],1),_vm._v(" "),_c('div',{staticClass:"admin-dashboard__sidebar-container admin-dashboard__sidebar-container-version"},[_c('section',{staticClass:"admin-dashboard__sidebar-version-version"},[_c('p',[_vm._v("You are running "),_c('b',[_vm._v("Vindigo")])]),_vm._v("\n\t\t\t\t\t\tv1.0.0\n\t\t\t\t\t")]),_vm._v(" "),_c('section',{staticClass:"mt3"},[(!_vm.isLookingForUpdate && !_vm.updateAvailable && !_vm.isUpdating)?_c('w-button',{staticClass:"admin-dashboard__sidebar-container-version-btn",staticStyle:{"background-color":"rgb(59 130 246)"},on:{"click":function($event){return _vm.checkForUpdates()}}},[_vm._v("\n\t\t\t\t\t\t\tCheck for updates\n\t\t\t\t\t\t")]):(_vm.isLookingForUpdate && !_vm.updateAvailable && !_vm.isUpdating)?_c('w-button',{staticClass:"admin-dashboard__sidebar-container-version-btn",staticStyle:{"background-color":"rgb(59 130 246)"},attrs:{"disabled":""}},[_vm._v("\n\t\t\t\t\t\t\tLooking for updates...\n\t\t\t\t\t\t")]):(!_vm.isLookingForUpdate && _vm.updateAvailable && !_vm.isUpdating)?_c('w-button',{staticClass:"admin-dashboard__sidebar-container-version-btn",attrs:{"bg-color":"primary"},on:{"click":function($event){return _vm.updateVindigo()}}},[_c('w-icon',{staticStyle:{"margin-right":"0.25rem"}},[_vm._v("\n\t\t\t\t\t\t\t\tmdi mdi-refresh\n\t\t\t\t\t\t\t")]),_vm._v("\n\t\t\t\t\t\t\tUpdate vindigo\n\t\t\t\t\t\t")],1):(!_vm.isLookingForUpdate && _vm.updateAvailable && _vm.isUpdating)?_c('w-button',{staticClass:"admin-dashboard__sidebar-container-version-btn",attrs:{"bg-color":"primary","disabled":""}},[_vm._v("\n\t\t\t\t\t\t\tUpdate is running...\n\t\t\t\t\t\t")]):_vm._e()],1)])])])],1),_vm._ssrNode(" "),_c('w-dialog',{staticClass:"p-0 text-center py-4 dark:bg-gray-800",attrs:{"dialog-class":"rounded-xl dark:bg-gray-700","width":"500px","persistent":""},model:{value:(_vm.isUpdating),callback:function ($$v) {_vm.isUpdating=$$v},expression:"isUpdating"}},[_vm._v("\n\t\tVindigo is updating... Please wait\n\t")])],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/admin/index.vue?vue&type=template&id=c18c3452&

// CONCATENATED MODULE: ./assets/query/admin/adminDashboard.gql
/* harmony default export */ var adminDashboard = ("# > profileEssentials\r\n\r\nquery AdminDashboard {\r\n\tfetchSystemStats {\r\n\t\trequestMean\r\n\t\tmemoryUsage\r\n\t\tstorageUsage\r\n\t\tserverUptime\r\n\t}\r\n\tactiveUsers {\r\n\t\tauthenticatedAmount\r\n\t\tanonymousAmount\r\n\t\tauthenticatedUsers {\r\n\t\t\t...ProfileEssentials\r\n\t\t}\r\n\t}\r\n}");
// CONCATENATED MODULE: ./assets/query/admin/adminUpdateVersion.gql
/* harmony default export */ var adminUpdateVersion = ("mutation UpdateInstance {\r\n\tupdateVersion\r\n}");
// CONCATENATED MODULE: ./assets/query/store/checkVersion.gql
/* harmony default export */ var checkVersion = ("mutation CheckVersion {\r\n\tcheckVersion {\r\n\t\tstate\r\n\t\tcurrent\r\n\t\tlatest\r\n\t}\r\n}");
// EXTERNAL MODULE: external "dayjs"
var external_dayjs_ = __webpack_require__(7);
var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_);

// 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/admin/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 adminvue_type_script_lang_ts_ = (external_vue_default.a.extend({
  name: "AdminHome",
  middleware: 'admin',

  asyncData(context) {
    return __awaiter(this, void 0, void 0, function* () {
      const result = yield context.$api.query(adminDashboard);
      return {
        systemStats: result.fetchSystemStats,
        activeUsers: result.activeUsers
      };
    });
  },

  data: () => ({
    anonUsersCount: 0,
    activeUsersCount: 0,
    activeUsers: [],
    isLookingForUpdate: false,
    updateAvailable: false,
    isUpdating: false,
    systemStats: null,
    date: [],
    // Analytics
    analytic: 'REQUESTS',
    analyticsList: [{
      label: 'API Requests',
      value: 'REQUESTS'
    }, {
      label: 'Tasks created',
      value: 'TASKS'
    }, {
      label: 'Projects created',
      value: 'PROJECTS'
    }]
  }),
  computed: {
    user() {
      return this.$store.state.profile;
    }

  },
  methods: {
    checkForUpdates() {
      return __awaiter(this, void 0, void 0, function* () {
        this.isLookingForUpdate = true; // TODO This should be a query, right?

        const request = yield this.$api.query(checkVersion);
        const version = request.checkVersion;

        if (version.state == 0) {
          this.$waveui.notify({
            success: true,
            message: "Vindigo is up-to-date",
            timeout: 2500
          });
        } else {
          this.updateAvailable = true;
          this.$waveui.notify({
            warning: true,
            message: "Vindigo is not up-to-date",
            timeout: 2500
          });
        }

        this.isLookingForUpdate = false;
      });
    },

    updateVindigo() {
      return __awaiter(this, void 0, void 0, function* () {
        this.isUpdating = true; // This one is fine

        const request = yield this.$api.query(adminUpdateVersion);
        const version = request.updateVersion;

        if (version) {
          this.$waveui.notify({
            success: true,
            message: "Vindigo has been updated!",
            timeout: 5000
          });
        } else {
          this.$waveui.notify({
            error: true,
            message: "Something went wrong while updating vindigo",
            timeout: 2500
          });
        }

        this.isUpdating = false;
        this.isLookingForUpdate = false;
        this.updateAvailable = false;
      });
    },

    formatBytes(value) {
      const units = ['bytes', 'KB', 'MB', 'GB', 'TB'];
      let l = 0,
          n = value || 0;

      while (n >= 1024 && ++l) {
        n = n / 1024;
      }

      return n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l];
    },

    formatDuration(seconds) {
      return external_dayjs_default.a.duration(seconds, 's').humanize();
    }

  }
}));
// CONCATENATED MODULE: ./pages/admin/index.vue?vue&type=script&lang=ts&
 /* harmony default export */ var pages_adminvue_type_script_lang_ts_ = (adminvue_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/admin/index.vue



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

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  pages_adminvue_type_script_lang_ts_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "7aec2c51"
  
)

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

/* nuxt-component-imports */
installComponents(component, {VindiSpacer: __webpack_require__(11).default,VindiDatePicker: __webpack_require__(76).default,VindiTitle: __webpack_require__(69).default,VindiAvatar: __webpack_require__(12).default,Container: __webpack_require__(190).default})


/***/ })

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