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

/***/ "./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/computer/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/computer/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_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __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_1__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __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_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _utils_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/http */ \"./src/utils/http.js\");\n/* harmony import */ var _utils_socket__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/socket */ \"./src/utils/socket.js\");\n/* harmony import */ var _utils_document__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/document */ \"./src/utils/document.js\");\n/* harmony import */ var _utils_order__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils/order */ \"./src/utils/order.js\");\n/* harmony import */ var _utils_paging__WEBPACK_IMPORTED_MODULE_13__ = __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//\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    ComputerConfirm: function ComputerConfirm() {\n      return __webpack_require__.e(/*! import() */ 85).then(__webpack_require__.bind(null, /*! @/components/main/computer/Delete.vue */ \"./src/components/main/computer/Delete.vue\"));\n    },\n    Powershell: function Powershell() {\n      return __webpack_require__.e(/*! import() */ 29).then(__webpack_require__.bind(null, /*! @/components/main/computer/Powershell.vue */ \"./src/components/main/computer/Powershell.vue\"));\n    },\n    License: function License() {\n      return __webpack_require__.e(/*! import() */ 86).then(__webpack_require__.bind(null, /*! @/components/main/computer/License.vue */ \"./src/components/main/computer/License.vue\"));\n    },\n    Wol: function Wol() {\n      return __webpack_require__.e(/*! import() */ 27).then(__webpack_require__.bind(null, /*! @/components/main/context_menu/Wol.vue */ \"./src/components/main/context_menu/Wol.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    Msi: function Msi() {\n      return __webpack_require__.e(/*! import() */ 39).then(__webpack_require__.bind(null, /*! @/components/main/domain/Msi.vue */ \"./src/components/main/domain/Msi.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    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    View1: function View1() {\n      return Promise.all(/*! import() */[__webpack_require__.e(3), __webpack_require__.e(55)]).then(__webpack_require__.bind(null, /*! @/components/main/computer/View1.vue */ \"./src/components/main/computer/View1.vue\"));\n    },\n    View2: function View2() {\n      return Promise.all(/*! import() */[__webpack_require__.e(3), __webpack_require__.e(56)]).then(__webpack_require__.bind(null, /*! @/components/main/computer/View2.vue */ \"./src/components/main/computer/View2.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    domain: Object\n  },\n  computed: {\n    view: function view() {\n      return this.$store.state.settings.user.computers && this.$store.state.settings.user.computers.view ? this.$store.state.settings.user.computers.view : 1;\n    },\n    filtered: function filtered() {\n      var _this = this;\n      var items = this.$store.state.computer.computers;\n      if (this.filter && this.filter !== \"\") {\n        items = items.filter(function (x) {\n          return x.name && x.name.toLowerCase().indexOf(_this.filter) !== -1 || x.friendlyName && x.friendlyName.toLowerCase().indexOf(_this.filter) !== -1;\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      showComputerLicense: false,\n      showPowershell: false,\n      selected: null,\n      showDelete: false,\n      showGuide: false,\n      showDownload: false,\n      saving: false,\n      firstLoadDone: false,\n      searching: false,\n      tempFilter: \"\",\n      filter: \"\",\n      searchId: Object(_utils_document__WEBPACK_IMPORTED_MODULE_11__[\"getId\"])(),\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_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__[\"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: \"computers\",\n              key: \"paging\"\n            });\n          case 3:\n            paging = (_this2$$store$state$s = _this2.$store.state.settings.user.computers) === 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.setPage(1);\n            _context.next = 8;\n            return _this2.$store.dispatch(\"computer/fetch\", {\n              domainUID: _this2.$route.params.domainUID\n            });\n          case 8:\n            _this2.firstLoadDone = true;\n            _context.next = 15;\n            break;\n          case 11:\n            _context.prev = 11;\n            _context.t0 = _context[\"catch\"](0);\n            console.log(_context.t0);\n            _this2.$helpers.notify(\"Error\", \"Could not get computers.\", \"danger\", 5000);\n          case 15:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[0, 11]]);\n    }))();\n  },\n  beforeDestroy: function beforeDestroy() {},\n  methods: {\n    setPageMax: function setPageMax(size) {\n      this.paging.max = size;\n      this.setPage(1);\n      this.setPages(this.$store.state.computer.computers);\n    },\n    setPages: function setPages(items) {\n      this.paging.pages = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_13__[\"getNumbers\"])(items, this.paging.max);\n    },\n    setPage: function setPage(page) {\n      this.paging.start = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_13__[\"getStartIndex\"])(page, this.paging.max);\n      this.paging.page = page;\n    },\n    setView: function setView(view) {\n      this.$store.dispatch(\"settings/setUser\", {\n        path: \"computers\",\n        key: \"view\",\n        value: view\n      });\n    },\n    dispatchComputerOrder: _utils_order__WEBPACK_IMPORTED_MODULE_12__[\"dispatchComputerOrder\"],\n    search: function search(searchStr) {\n      this.searching = true;\n      searchStr = searchStr.trim().toLowerCase();\n      this.filter = searchStr;\n      this.setPage(1);\n      this.searching = false;\n    },\n    toggleRename: function toggleRename(computer) {\n      this.$store.commit(\"computer/editComputer\", {\n        c: computer,\n        obj: {\n          edit: !computer.edit\n        }\n      });\n    },\n    _delete: function _delete(computer) {\n      var _this3 = this;\n      return Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\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.$helpers.wait(1);\n            case 2:\n              Object(_utils_socket__WEBPACK_IMPORTED_MODULE_10__[\"disconnectComputers\"])([computer.uid]);\n              _context2.next = 5;\n              return _this3.$helpers.wait(1);\n            case 5:\n              _context2.next = 7;\n              return _this3.$store.dispatch(\"computer/delete\", {\n                computerUID: computer.uid,\n                domainUID: _this3.domain.uid\n              });\n            case 7:\n              _this3.showDelete = false;\n            case 8:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2);\n      }))();\n    },\n    rename: function rename(computer, text) {\n      var _this4 = this;\n      return Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__[\"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.saving = true;\n              text = text.trim();\n              _context3.next = 4;\n              return Object(_utils_http__WEBPACK_IMPORTED_MODULE_9__[\"postApi\"])(\"set/computerFriendlyName\", {\n                uid: computer.uid,\n                friendlyName: text,\n                domainUID: _this4.domain.uid\n              });\n            case 4:\n              _this4.$store.commit(\"computer/editComputer\", {\n                c: computer,\n                obj: {\n                  friendlyName: text,\n                  edit: 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/computer/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\":\"7d40fa80-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/computer/Section.vue?vue&type=template&id=c52c03f2&":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d40fa80-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/computer/Section.vue?vue&type=template&id=c52c03f2& ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 _vm.domain\n    ? _c(\n        \"section\",\n        { staticClass: \"section small\" },\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(\" Computers \"),\n                      !_vm.domain.permission || _vm.domain.permission >= 32\n                        ? _c(\"Plus\", {\n                            on: {\n                              click: function($event) {\n                                _vm.showDownload = true\n                              }\n                            }\n                          })\n                        : _vm._e()\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: false\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 &&\n              _vm.$store.state.computer.computers.length !== 0\n                ? _c(\n                    \"Tips\",\n                    {\n                      attrs: {\n                        path: \"computers\",\n                        xKey: \"dismissedTips\",\n                        property: \"rightClick\",\n                        rightClickIconVisible: true\n                      }\n                    },\n                    [\n                      _vm._v(\n                        \"Right-click on a computer name to open the context menu \"\n                      )\n                    ]\n                  )\n                : _vm._e(),\n              _vm.firstLoadDone\n                ? _c(\n                    \"Tips\",\n                    {\n                      attrs: {\n                        path: \"computers\",\n                        xKey: \"dismissedTips\",\n                        property: \"computerNotification\"\n                      }\n                    },\n                    [\n                      _vm._v(\n                        \"Be notified when a new computer is added to the domain -> go to profile settings \"\n                      )\n                    ]\n                  )\n                : _vm._e(),\n              _vm.firstLoadDone &&\n              _vm.$store.state.computer.computers.length === 0\n                ? _c(\"p\", { staticClass: \"is-italic\" }, [\n                    _c(\"i\", [_vm._v(\"No computers.\")])\n                  ])\n                : _vm._e(),\n              _vm.firstLoadDone &&\n              _vm.$store.state.computer.computers.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.dispatchComputerOrder($event)\n                              },\n                              save: function($event) {\n                                return _vm.rename($event.computer, $event.text)\n                              },\n                              cancel: function($event) {\n                                return _vm.toggleRename($event)\n                              },\n                              menu: function($event) {\n                                return _vm.$refs.menu.open(\n                                  $event.e,\n                                  $event.computer\n                                )\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.dispatchComputerOrder($event)\n                              },\n                              save: function($event) {\n                                return _vm.rename($event.computer, $event.text)\n                              },\n                              cancel: function($event) {\n                                return _vm.toggleRename($event)\n                              },\n                              menu: function($event) {\n                                return _vm.$refs.menu.open(\n                                  $event.e,\n                                  $event.computer\n                                )\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: \"computers\"\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 && _vm.domain\n                      ? [\n                          _vm.domain.permission < 4 && _vm.domain.permission\n                            ? _c(\"li\", [\n                                _c(\"a\", [\n                                  _c(\"i\", [_vm._v(\"Too low permissions\")])\n                                ])\n                              ])\n                            : _vm._e(),\n                          _vm.domain.permission >= 16 || !_vm.domain.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                          _vm.domain.permission >= 4 || !_vm.domain.permission\n                            ? _c(\n                                \"li\",\n                                [\n                                  _c(\n                                    \"router-link\",\n                                    {\n                                      attrs: {\n                                        to:\n                                          \"/domains/\" +\n                                          _vm.$route.params.domainUID +\n                                          \"/computers/\" +\n                                          child.data.uid +\n                                          \"/applications\"\n                                      }\n                                    },\n                                    [_vm._v(\"Applications\")]\n                                  )\n                                ],\n                                1\n                              )\n                            : _vm._e(),\n                          _vm.domain.permission >= 8 || !_vm.domain.permission\n                            ? _c(\n                                \"Wol\",\n                                { attrs: { computers: [child.data] } },\n                                [_vm._v(\"Wake computer\")]\n                              )\n                            : _vm._e(),\n                          _vm.domain.permission >= 64 || !_vm.domain.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.showPowershell = true\n                                      }\n                                    }\n                                  },\n                                  [_vm._v(\"Powershell\")]\n                                )\n                              ])\n                            : _vm._e(),\n                          _vm.$store.state.settings.server.licenseEnabled &&\n                          (_vm.domain.permission >= 64 ||\n                            !_vm.domain.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.showComputerLicense = true\n                                      }\n                                    }\n                                  },\n                                  [_vm._v(\"Manage license\")]\n                                )\n                              ])\n                            : _vm._e(),\n                          _vm.domain.permission >= 64 || !_vm.domain.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.showDownload\n            ? _c(\"Msi\", {\n                attrs: { domain: _vm.domain },\n                model: {\n                  value: _vm.showDownload,\n                  callback: function($$v) {\n                    _vm.showDownload = $$v\n                  },\n                  expression: \"showDownload\"\n                }\n              })\n            : _vm._e(),\n          _vm.selected && _vm.showDelete\n            ? _c(\"ComputerConfirm\", {\n                attrs: { computer: _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.selected && _vm.showPowershell\n            ? _c(\"Powershell\", {\n                attrs: { computer: _vm.selected },\n                model: {\n                  value: _vm.showPowershell,\n                  callback: function($$v) {\n                    _vm.showPowershell = $$v\n                  },\n                  expression: \"showPowershell\"\n                }\n              })\n            : _vm._e(),\n          _vm.selected && _vm.showComputerLicense\n            ? _c(\"License\", {\n                attrs: { computer: _vm.selected },\n                model: {\n                  value: _vm.showComputerLicense,\n                  callback: function($$v) {\n                    _vm.showComputerLicense = $$v\n                  },\n                  expression: \"showComputerLicense\"\n                }\n              })\n            : _vm._e()\n        ],\n        1\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/computer/Section.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%227d40fa80-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");

/***/ }),

/***/ "./src/components/main/computer/Section.vue":
/*!**************************************************!*\
  !*** ./src/components/main/computer/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_c52c03f2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Section.vue?vue&type=template&id=c52c03f2& */ \"./src/components/main/computer/Section.vue?vue&type=template&id=c52c03f2&\");\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/computer/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_c52c03f2___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _Section_vue_vue_type_template_id_c52c03f2___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/computer/Section.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/computer/Section.vue?");

/***/ }),

/***/ "./src/components/main/computer/Section.vue?vue&type=script&lang=js&":
/*!***************************************************************************!*\
  !*** ./src/components/main/computer/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/computer/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/computer/Section.vue?");

/***/ }),

/***/ "./src/components/main/computer/Section.vue?vue&type=template&id=c52c03f2&":
/*!*********************************************************************************!*\
  !*** ./src/components/main/computer/Section.vue?vue&type=template&id=c52c03f2& ***!
  \*********************************************************************************/
/*! 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_7d40fa80_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_c52c03f2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"7d40fa80-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=c52c03f2& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"7d40fa80-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/computer/Section.vue?vue&type=template&id=c52c03f2&\");\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_7d40fa80_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_c52c03f2___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_7d40fa80_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_c52c03f2___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/computer/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?");

/***/ })

}]);