(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[59],{

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/domain/Section.vue?vue&type=script&lang=js&":
/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/domain/Section.vue?vue&type=script&lang=js& ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js */ \"./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\");\n/* harmony import */ var C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"./node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"./node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ \"./node_modules/core-js/modules/es.array.slice.js\");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ \"./node_modules/core-js/modules/es.string.trim.js\");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var vue_context_src_sass_vue_context_scss__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! vue-context/src/sass/vue-context.scss */ \"./node_modules/vue-context/src/sass/vue-context.scss\");\n/* harmony import */ var vue_context_src_sass_vue_context_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(vue_context_src_sass_vue_context_scss__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _utils_http__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/http */ \"./src/utils/http.js\");\n/* harmony import */ var _utils_document__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils/document */ \"./src/utils/document.js\");\n/* harmony import */ var _utils_order__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/utils/order */ \"./src/utils/order.js\");\n/* harmony import */ var _utils_socket__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/utils/socket */ \"./src/utils/socket.js\");\n/* harmony import */ var _utils_paging__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/utils/paging */ \"./src/utils/paging.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  components: {\n    Tips: function Tips() {\n      return __webpack_require__.e(/*! import() */ 11).then(__webpack_require__.bind(null, /*! @/components/main/Tips.vue */ \"./src/components/main/Tips.vue\"));\n    },\n    Title: function Title() {\n      return __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/singles/Title.vue */ \"./src/components/singles/Title.vue\"));\n    },\n    VueContext: function VueContext() {\n      return __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! vue-context */ \"./node_modules/vue-context/src/js/index.js\"));\n    },\n    DomainConfirm: function DomainConfirm() {\n      return __webpack_require__.e(/*! import() */ 88).then(__webpack_require__.bind(null, /*! @/components/main/domain/Delete.vue */ \"./src/components/main/domain/Delete.vue\"));\n    },\n    DomainAdd: function DomainAdd() {\n      return __webpack_require__.e(/*! import() */ 87).then(__webpack_require__.bind(null, /*! @/components/main/domain/Add.vue */ \"./src/components/main/domain/Add.vue\"));\n    },\n    Plus: function Plus() {\n      return __webpack_require__.e(/*! import() */ 14).then(__webpack_require__.bind(null, /*! @/components/main/Plus.vue */ \"./src/components/main/Plus.vue\"));\n    },\n    SearchBar: function SearchBar() {\n      return __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.bind(null, /*! @/components/main/SearchBar.vue */ \"./src/components/main/SearchBar.vue\"));\n    },\n    View1: function View1() {\n      return __webpack_require__.e(/*! import() */ 73).then(__webpack_require__.bind(null, /*! @/components/main/domain/View1.vue */ \"./src/components/main/domain/View1.vue\"));\n    },\n    View2: function View2() {\n      return __webpack_require__.e(/*! import() */ 74).then(__webpack_require__.bind(null, /*! @/components/main/domain/View2.vue */ \"./src/components/main/domain/View2.vue\"));\n    },\n    ViewSelector: function ViewSelector() {\n      return __webpack_require__.e(/*! import() */ 22).then(__webpack_require__.bind(null, /*! @/components/main/ViewSelector.vue */ \"./src/components/main/ViewSelector.vue\"));\n    },\n    IconText: function IconText() {\n      return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.bind(null, /*! @/components/singles/IconText.vue */ \"./src/components/singles/IconText.vue\"));\n    },\n    StartGuide: function StartGuide() {\n      return __webpack_require__.e(/*! import() */ 26).then(__webpack_require__.bind(null, /*! @/components/main/user/StartGuide.vue */ \"./src/components/main/user/StartGuide.vue\"));\n    },\n    Paging: function Paging() {\n      return Promise.all(/*! import() */[__webpack_require__.e(12), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, /*! @/components/main/paging/Nav.vue */ \"./src/components/main/paging/Nav.vue\"));\n    }\n  },\n  props: {},\n  computed: {\n    step: function step() {\n      if (this.firstLoadDone) {\n        if (this.$store.state.domain.domains.length == 0) return 1;else if (this.$store.state.domain.domains.length == 1) return 2;\n      }\n      return -1;\n    },\n    view: function view() {\n      return this.$store.state.settings.user.domains && this.$store.state.settings.user.domains.view ? this.$store.state.settings.user.domains.view : 1;\n    },\n    filtered: function filtered() {\n      var _this = this;\n      var items = this.$store.state.domain.domains;\n      if (this.filter && this.filter !== \"\") {\n        items = items.filter(function (x) {\n          return x.friendlyName.toLowerCase().includes(_this.filter);\n        });\n      }\n      this.setPages(items);\n      if (this.paging.max === -1) return items;else {\n        return items.slice(this.paging.start, this.paging.page * this.paging.max);\n      }\n    }\n  },\n  data: function data() {\n    return {\n      selected: null,\n      showDelete: false,\n      showAdd: false,\n      saving: false,\n      firstLoadDone: false,\n      searching: false,\n      tempFilter: \"\",\n      filter: \"\",\n      searchId: Object(_utils_document__WEBPACK_IMPORTED_MODULE_14__[\"getId\"])(),\n      showGuide: false,\n      paging: {\n        page: 1,\n        max: 15,\n        start: 0,\n        pages: []\n      }\n    };\n  },\n  created: function created() {\n    var _this2 = this;\n    return Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n      var _this2$$store$state$s, paging;\n      return regeneratorRuntime.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            _context.prev = 0;\n            _context.next = 3;\n            return _this2.$store.dispatch(\"settings/getUserSetting\", {\n              path: \"profile\",\n              xKey: \"guides\"\n            });\n          case 3:\n            _context.next = 5;\n            return _this2.$store.dispatch(\"domain/fetch\");\n          case 5:\n            _context.next = 7;\n            return _this2.$store.dispatch(\"settings/getUserSetting\", {\n              path: \"domains\",\n              key: \"paging\"\n            });\n          case 7:\n            paging = (_this2$$store$state$s = _this2.$store.state.settings.user.domains) === null || _this2$$store$state$s === void 0 ? void 0 : _this2$$store$state$s.paging;\n            if (paging && paging.max) _this2.paging.max = paging.max;\n            _this2.checkGuide();\n            _this2.firstLoadDone = true;\n            _context.next = 17;\n            break;\n          case 13:\n            _context.prev = 13;\n            _context.t0 = _context[\"catch\"](0);\n            console.log(_context.t0);\n            _this2.$helpers.notify(\"Error\", \"Could not get domains.\", \"danger\", 5000);\n          case 17:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[0, 13]]);\n    }))();\n  },\n  methods: {\n    setPageMax: function setPageMax(size) {\n      this.paging.max = size;\n      this.setPage(1);\n      this.setPages(this.$store.state.domain.domains);\n    },\n    setPages: function setPages(items) {\n      this.paging.pages = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_17__[\"getNumbers\"])(items, this.paging.max);\n    },\n    setPage: function setPage(page) {\n      this.paging.start = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_17__[\"getStartIndex\"])(page, this.paging.max);\n      this.paging.page = page;\n    },\n    checkGuide: function checkGuide() {\n      if (this.$store.state.domain.domains.length === 0 && this.guideActive()) this.showGuide = true;else if (this.$store.state.domain.domains.length === 0) this.showAdd = true;\n    },\n    guideActive: function guideActive() {\n      var _this$$store$state$se, _this$$store$state$se2;\n      return ((_this$$store$state$se = this.$store.state.settings.user) === null || _this$$store$state$se === void 0 || (_this$$store$state$se = _this$$store$state$se.profile) === null || _this$$store$state$se === void 0 || (_this$$store$state$se = _this$$store$state$se.guides) === null || _this$$store$state$se === void 0 ? void 0 : _this$$store$state$se.getStarted) === undefined || ((_this$$store$state$se2 = this.$store.state.settings.user) === null || _this$$store$state$se2 === void 0 || (_this$$store$state$se2 = _this$$store$state$se2.profile) === null || _this$$store$state$se2 === void 0 || (_this$$store$state$se2 = _this$$store$state$se2.guides) === null || _this$$store$state$se2 === void 0 ? void 0 : _this$$store$state$se2.getStarted);\n    },\n    setView: function setView(view) {\n      this.$store.dispatch(\"settings/setUser\", {\n        path: \"domains\",\n        key: \"view\",\n        value: view\n      });\n    },\n    dispatchDomainOrder: _utils_order__WEBPACK_IMPORTED_MODULE_15__[\"dispatchDomainOrder\"],\n    search: function search(searchStr) {\n      this.searching = true;\n      searchStr = searchStr.trim().toLowerCase();\n      this.filter = searchStr;\n      this.searching = false;\n    },\n    toggleRename: function toggleRename(domain) {\n      this.$store.commit(\"domain/edit\", {\n        d: domain,\n        obj: {\n          edit: !domain.edit\n        }\n      });\n    },\n    _delete: function _delete(domain) {\n      var _this3 = this;\n      return Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n        var _iterator, _step, groupItem, computerUIDs;\n        return regeneratorRuntime.wrap(function _callee2$(_context2) {\n          while (1) switch (_context2.prev = _context2.next) {\n            case 0:\n              _context2.next = 2;\n              return _this3.$store.dispatch(\"group/fetch\", {\n                domainUID: domain.uid\n              });\n            case 2:\n              _context2.next = 4;\n              return _this3.$store.dispatch(\"computer/fetch\", {\n                domainUID: domain.uid\n              });\n            case 4:\n              _context2.next = 6;\n              return Object(_utils_socket__WEBPACK_IMPORTED_MODULE_16__[\"connect\"])(domain);\n            case 6:\n              _iterator = Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_this3.$store.state.group.groups);\n              _context2.prev = 7;\n              _iterator.s();\n            case 9:\n              if ((_step = _iterator.n()).done) {\n                _context2.next = 20;\n                break;\n              }\n              groupItem = _step.value;\n              computerUIDs = groupItem.computers.map(function (x) {\n                return x.uid;\n              });\n              _context2.next = 14;\n              return _this3.$helpers.wait(2);\n            case 14:\n              Object(_utils_socket__WEBPACK_IMPORTED_MODULE_16__[\"cancelGroupPackageSchedule\"])(groupItem.group.uid, computerUIDs);\n              _context2.next = 17;\n              return _this3.$helpers.wait(2);\n            case 17:\n              Object(_utils_socket__WEBPACK_IMPORTED_MODULE_16__[\"disconnectComputers\"])(computerUIDs);\n            case 18:\n              _context2.next = 9;\n              break;\n            case 20:\n              _context2.next = 25;\n              break;\n            case 22:\n              _context2.prev = 22;\n              _context2.t0 = _context2[\"catch\"](7);\n              _iterator.e(_context2.t0);\n            case 25:\n              _context2.prev = 25;\n              _iterator.f();\n              return _context2.finish(25);\n            case 28:\n              Object(_utils_socket__WEBPACK_IMPORTED_MODULE_16__[\"disconnectComputers\"])(_this3.$store.state.computer.computers.map(function (x) {\n                return x.uid;\n              }));\n              _context2.next = 31;\n              return _this3.$helpers.wait(2);\n            case 31:\n              Object(_utils_socket__WEBPACK_IMPORTED_MODULE_16__[\"disconnect\"])();\n              _this3.$store.dispatch(\"domain/delete\", domain);\n              _this3.showDelete = false;\n            case 34:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2, null, [[7, 22, 25, 28]]);\n      }))();\n    },\n    rename: function rename(domain, text) {\n      var _this4 = this;\n      return Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n        return regeneratorRuntime.wrap(function _callee3$(_context3) {\n          while (1) switch (_context3.prev = _context3.next) {\n            case 0:\n              _this4.$store.commit(\"domain/edit\", {\n                d: domain,\n                obj: {\n                  saving: true\n                }\n              });\n              text = text.trim();\n              _context3.next = 4;\n              return Object(_utils_http__WEBPACK_IMPORTED_MODULE_13__[\"postApi\"])(\"set/domainFriendlyName\", {\n                friendlyName: text,\n                domainUID: domain.uid\n              });\n            case 4:\n              _this4.$store.commit(\"domain/edit\", {\n                d: domain,\n                obj: {\n                  friendlyName: text,\n                  edit: false,\n                  saving: false\n                }\n              });\n              _this4.saving = false;\n            case 6:\n            case \"end\":\n              return _context3.stop();\n          }\n        }, _callee3);\n      }))();\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/domain/Section.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"60671cf1-vue-loader-template\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"60671cf1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\n    \"section\",\n    { staticClass: \"section\" },\n    [\n      _c(\n        \"div\",\n        { staticClass: \"container\" },\n        [\n          _c(\n            \"ViewSelector\",\n            {\n              attrs: { view: _vm.view },\n              on: {\n                change: function($event) {\n                  return _vm.setView($event)\n                }\n              }\n            },\n            [\n              _c(\n                \"Title\",\n                { attrs: { skipMarginBottom: true } },\n                [\n                  _vm._v(\" Domains \"),\n                  _c(\"Plus\", {\n                    on: {\n                      click: function($event) {\n                        _vm.showAdd = true\n                      }\n                    }\n                  })\n                ],\n                1\n              )\n            ],\n            1\n          ),\n          _c(\"SearchBar\", {\n            attrs: {\n              id: _vm.searchId,\n              selectOnSubmit: true,\n              loading: _vm.searching,\n              focus: true\n            },\n            on: {\n              submit: function($event) {\n                return _vm.search($event)\n              }\n            },\n            model: {\n              value: _vm.tempFilter,\n              callback: function($$v) {\n                _vm.tempFilter = $$v\n              },\n              expression: \"tempFilter\"\n            }\n          }),\n          _vm.firstLoadDone && _vm.$store.state.domain.domains.length !== 0\n            ? _c(\n                \"Tips\",\n                {\n                  attrs: {\n                    path: \"domains\",\n                    xKey: \"dismissedTips\",\n                    property: \"rightClick\",\n                    rightClickIconVisible: true\n                  }\n                },\n                [\n                  _vm._v(\n                    \"Right-click on a domain name to open the context menu \"\n                  )\n                ]\n              )\n            : _vm._e(),\n          _vm.firstLoadDone && _vm.$store.state.domain.domains.length === 0\n            ? _c(\"p\", { staticClass: \"is-italic\" }, [\n                _c(\"i\", [_vm._v(\"No Domains.\")])\n              ])\n            : _vm._e(),\n          _vm.firstLoadDone && _vm.$store.state.domain.domains.length !== 0\n            ? _c(\n                \"div\",\n                [\n                  _vm.view == 1\n                    ? _c(\"View1\", {\n                        attrs: { items: _vm.filtered },\n                        on: {\n                          order: function($event) {\n                            return _vm.dispatchDomainOrder($event)\n                          },\n                          save: function($event) {\n                            return _vm.rename($event.domain, $event.text)\n                          },\n                          cancel: function($event) {\n                            return _vm.toggleRename($event)\n                          },\n                          menu: function($event) {\n                            return _vm.$refs.menu.open($event.e, $event.domain)\n                          }\n                        }\n                      })\n                    : _vm._e(),\n                  _vm.view == 2\n                    ? _c(\"View2\", {\n                        attrs: { items: _vm.filtered },\n                        on: {\n                          order: function($event) {\n                            return _vm.dispatchDomainOrder($event)\n                          },\n                          save: function($event) {\n                            return _vm.rename($event.domain, $event.text)\n                          },\n                          cancel: function($event) {\n                            return _vm.toggleRename($event)\n                          },\n                          menu: function($event) {\n                            return _vm.$refs.menu.open($event.e, $event.domain)\n                          }\n                        }\n                      })\n                    : _vm._e(),\n                  _c(\"Paging\", {\n                    directives: [\n                      {\n                        name: \"show\",\n                        rawName: \"v-show\",\n                        value: !_vm.searching && _vm.firstLoadDone,\n                        expression: \"!searching && firstLoadDone\"\n                      }\n                    ],\n                    attrs: {\n                      items: _vm.paging.pages,\n                      selected: _vm.paging.page,\n                      size: _vm.paging.max,\n                      hasOptions: true,\n                      autosave: \"domains\"\n                    },\n                    on: {\n                      change: function($event) {\n                        return _vm.setPage($event)\n                      },\n                      size: function($event) {\n                        return _vm.setPageMax($event)\n                      }\n                    }\n                  })\n                ],\n                1\n              )\n            : _vm._e()\n        ],\n        1\n      ),\n      _c(\"vue-context\", {\n        ref: \"menu\",\n        scopedSlots: _vm._u(\n          [\n            {\n              key: \"default\",\n              fn: function(child) {\n                return child.data\n                  ? [\n                      child.data.permission < 16 && child.data.permission\n                        ? _c(\"li\", [\n                            _c(\"a\", [_c(\"i\", [_vm._v(\"Too low permissions\")])])\n                          ])\n                        : _vm._e(),\n                      child.data.permission >= 16 || !child.data.permission\n                        ? _c(\"li\", [\n                            _c(\n                              \"a\",\n                              {\n                                on: {\n                                  click: function($event) {\n                                    $event.preventDefault()\n                                    return _vm.toggleRename(child.data)\n                                  }\n                                }\n                              },\n                              [_vm._v(\"Rename\")]\n                            )\n                          ])\n                        : _vm._e(),\n                      child.data.permission >= 256 || !child.data.permission\n                        ? _c(\n                            \"li\",\n                            [\n                              _c(\n                                \"router-link\",\n                                {\n                                  attrs: {\n                                    to: \"/domains/\" + child.data.uid + \"/shares\"\n                                  }\n                                },\n                                [_vm._v(\"Manage shares\")]\n                              )\n                            ],\n                            1\n                          )\n                        : _vm._e(),\n                      child.data.permission >= 128 || !child.data.permission\n                        ? _c(\"li\", [\n                            _c(\n                              \"a\",\n                              {\n                                on: {\n                                  click: function($event) {\n                                    $event.preventDefault()\n                                    _vm.selected = child.data\n                                    _vm.showDelete = true\n                                  }\n                                }\n                              },\n                              [_vm._v(\"Delete\")]\n                            )\n                          ])\n                        : _vm._e()\n                    ]\n                  : undefined\n              }\n            }\n          ],\n          null,\n          true\n        )\n      }),\n      _vm.showAdd\n        ? _c(\"DomainAdd\", {\n            on: {\n              success: function($event) {\n                _vm.$store.state.domain.domains.length == 1\n                  ? (_vm.showGuide = true)\n                  : false\n              }\n            },\n            model: {\n              value: _vm.showAdd,\n              callback: function($$v) {\n                _vm.showAdd = $$v\n              },\n              expression: \"showAdd\"\n            }\n          })\n        : _vm._e(),\n      _vm.selected && _vm.showDelete\n        ? _c(\"DomainConfirm\", {\n            attrs: { domain: _vm.selected },\n            on: {\n              hide: function($event) {\n                _vm.selected = null\n              },\n              confirmed: function($event) {\n                return _vm._delete(_vm.selected)\n              }\n            },\n            model: {\n              value: _vm.showDelete,\n              callback: function($$v) {\n                _vm.showDelete = $$v\n              },\n              expression: \"showDelete\"\n            }\n          })\n        : _vm._e(),\n      _vm.step > 0\n        ? _c(\n            \"StartGuide\",\n            {\n              attrs: { step: _vm.step },\n              model: {\n                value: _vm.showGuide,\n                callback: function($$v) {\n                  _vm.showGuide = $$v\n                },\n                expression: \"showGuide\"\n              }\n            },\n            [\n              _vm.step == 1\n                ? _c(\"p\", { staticClass: \"has-text-centered\" }, [\n                    _c(\n                      \"a\",\n                      {\n                        on: {\n                          click: function($event) {\n                            $event.stopPropagation()\n                            _vm.showGuide = false\n                            _vm.showAdd = true\n                          }\n                        }\n                      },\n                      [_vm._v(\" Click here to create your first domain\")]\n                    ),\n                    _vm._v(\". \")\n                  ])\n                : _vm._e(),\n              _vm.step == 2\n                ? _c(\"p\", { staticClass: \"has-text-centered\" }, [\n                    _c(\n                      \"a\",\n                      {\n                        on: {\n                          click: function($event) {\n                            $event.stopPropagation()\n                            _vm.showGuide = false\n                          }\n                        }\n                      },\n                      [_vm._v(\"Close this window\")]\n                    ),\n                    _vm._v(\" and click on the new domain. \")\n                  ])\n                : _vm._e()\n            ]\n          )\n        : _vm._e()\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/domain/Section.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2260671cf1-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/vue-context/src/sass/vue-context.scss":
/*!*********************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./node_modules/vue-context/src/sass/vue-context.scss ***!
  \*********************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"@charset \\\"UTF-8\\\";\\n.v-context, .v-context ul {\\n  background-color: #fff;\\n  background-clip: padding-box;\\n  border-radius: 0.25rem;\\n  border: 1px solid rgba(0, 0, 0, 0.15);\\n  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);\\n          box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);\\n  display: block;\\n  margin: 0;\\n  padding: 10px 0;\\n  min-width: 10rem;\\n  z-index: 1500;\\n  position: fixed;\\n  list-style: none;\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  max-height: calc(100% - 50px);\\n  overflow-y: auto;\\n}\\n.v-context > li, .v-context ul > li {\\n  margin: 0;\\n  position: relative;\\n}\\n.v-context > li > a, .v-context ul > li > a {\\n  display: block;\\n  padding: 0.5rem 1.5rem;\\n  font-weight: 400;\\n  color: #212529;\\n  text-decoration: none;\\n  white-space: nowrap;\\n  background-color: transparent;\\n  border: 0;\\n}\\n.v-context > li > a:hover, .v-context > li > a:focus, .v-context ul > li > a:hover, .v-context ul > li > a:focus {\\n  text-decoration: none;\\n  color: #212529;\\n  background-color: #f8f9fa;\\n}\\n.v-context > li > a:focus, .v-context ul > li > a:focus {\\n  outline: 0;\\n}\\n.v-context:focus, .v-context ul:focus {\\n  outline: 0;\\n}\\n.v-context__sub > a:after {\\n  content: \\\"⯈\\\";\\n  float: right;\\n  padding-left: 1rem;\\n}\\n.v-context__sub > ul {\\n  display: none;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vue-context/src/sass/vue-context.scss?./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3");

/***/ }),

/***/ "./node_modules/vue-context/src/sass/vue-context.scss":
/*!************************************************************!*\
  !*** ./node_modules/vue-context/src/sass/vue-context.scss ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--8-oneOf-3-1!../../../postcss-loader/src??ref--8-oneOf-3-2!../../../sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./vue-context.scss */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/vue-context/src/sass/vue-context.scss\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"40ce638c\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vue-context/src/sass/vue-context.scss?");

/***/ }),

/***/ "./src/components/main/domain/Section.vue":
/*!************************************************!*\
  !*** ./src/components/main/domain/Section.vue ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Section.vue?vue&type=template&id=3a4e8db0& */ \"./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0&\");\n/* harmony import */ var _Section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Section.vue?vue&type=script&lang=js& */ \"./src/components/main/domain/Section.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n  _Section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/components/main/domain/Section.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/domain/Section.vue?");

/***/ }),

/***/ "./src/components/main/domain/Section.vue?vue&type=script&lang=js&":
/*!*************************************************************************!*\
  !*** ./src/components/main/domain/Section.vue?vue&type=script&lang=js& ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Section.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/domain/Section.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/components/main/domain/Section.vue?");

/***/ }),

/***/ "./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0&":
/*!*******************************************************************************!*\
  !*** ./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0& ***!
  \*******************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_60671cf1_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"60671cf1-vue-loader-template\"}!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Section.vue?vue&type=template&id=3a4e8db0& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"60671cf1-vue-loader-template\\\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/domain/Section.vue?vue&type=template&id=3a4e8db0&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_60671cf1_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_60671cf1_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Section_vue_vue_type_template_id_3a4e8db0___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/domain/Section.vue?");

/***/ }),

/***/ "./src/utils/paging.js":
/*!*****************************!*\
  !*** ./src/utils/paging.js ***!
  \*****************************/
/*! exports provided: getNumbers, getPackageObj, getPackageNumbers, getStartIndex */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getNumbers\", function() { return getNumbers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPackageObj\", function() { return getPackageObj; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPackageNumbers\", function() { return getPackageNumbers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStartIndex\", function() { return getStartIndex; });\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nfunction getNumbers(items, size) {\n  if (!size) size = 10;\n  var numberArray = [];\n  var total = items.length;\n  if (total != 0) {\n    var numbers = total / size;\n    for (var i = 0; i < numbers; i++) {\n      numberArray.push(i + 1);\n    }\n  } else numberArray.push(1);\n  return numberArray;\n}\nfunction getPackageObj(packagesObj, start, end) {\n  var newObj = {};\n  Object.keys(packagesObj).filter(function (key, index) {\n    return index >= start && index < end ? newObj[key] = packagesObj[key] : false;\n  });\n  return newObj;\n}\nfunction getPackageNumbers(total, size) {\n  if (!size) size = 10;\n  var numberArray = [];\n  if (total != 0) {\n    var numbers = total / size;\n    for (var i = 0; i < numbers; i++) {\n      numberArray.push(i + 1);\n    }\n  } else numberArray.push(1);\n  return numberArray;\n}\nfunction getStartIndex(page, size) {\n  page = page - 1;\n  var comb = page * size;\n  if (!comb || comb < 0) return 0;else return comb;\n}\n\n//# sourceURL=webpack:///./src/utils/paging.js?");

/***/ })

}]);