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

/***/ "./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/views/ComputerPackages.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/views/ComputerPackages.vue?vue&type=script&lang=js& ***!
  \********************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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    Packages: () => Promise.all(/*! import() */[__webpack_require__.e(3), __webpack_require__.e(23), __webpack_require__.e(43)]).then(__webpack_require__.bind(null, /*! @/components/main/packages/Computer.vue */ \"./src/components/main/packages/Computer.vue\")),\n    Menu: () => __webpack_require__.e(/*! import() */ 20).then(__webpack_require__.bind(null, /*! @/components/main/Menu.vue */ \"./src/components/main/Menu.vue\")),\n    ComputerInfo: () => Promise.all(/*! import() */[__webpack_require__.e(3), __webpack_require__.e(64)]).then(__webpack_require__.bind(null, /*! @/components/main/computer/Info.vue */ \"./src/components/main/computer/Info.vue\")),\n    ComputerLog: () => Promise.all(/*! import() */[__webpack_require__.e(3), __webpack_require__.e(65)]).then(__webpack_require__.bind(null, /*! @/components/main/computer/Log.vue */ \"./src/components/main/computer/Log.vue\")),\n    Powershell: () => __webpack_require__.e(/*! import() */ 25).then(__webpack_require__.bind(null, /*! @/components/main/computer/Powershell.vue */ \"./src/components/main/computer/Powershell.vue\")),\n    IconText: () => __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.bind(null, /*! @/components/singles/IconText.vue */ \"./src/components/singles/IconText.vue\"))\n  },\n  computed: {\n    computer() {\n      return this.$store.state.computer.computers.find(x => x.uid === this.$route.params.computerUID);\n    }\n  },\n  data() {\n    return {\n      showComputerInfo: false,\n      showComputerLog: false,\n      showPowershell: false,\n      domain: null,\n      domainSub: null\n    };\n  },\n  beforeDestroy() {\n    this.$store.commit(\"powershell/clear\");\n    if (this.domainSub) this.domainSub();\n  },\n  async created() {\n    try {\n      this.domain = this.$store.getters[\"domain/single\"](this.$route.params.domainUID);\n      if (!this.domain) this.domainSub = this.$store.subscribe((mutation, state) => {\n        if (mutation.type == \"domain/set\") this.domain = this.$store.getters[\"domain/single\"](this.$route.params.domainUID);\n      });\n    } catch (err) {\n      console.log(err);\n      this.$helpers.notify(\"Error\", \"Could not get data.\", \"danger\", 5000);\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/views/ComputerPackages.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/views/ComputerPackages.vue?vue&type=template&id=6abce962&":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/views/ComputerPackages.vue?vue&type=template&id=6abce962& ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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    \"div\",\n    [\n      _c(\"Menu\", [\n        _vm.computer\n          ? _c(\"li\", { staticClass: \"menu-item\" }, [\n              _c(\n                \"a\",\n                {\n                  on: {\n                    click: function($event) {\n                      _vm.showComputerInfo = true\n                    }\n                  }\n                },\n                [\n                  _c(\"IconText\", { attrs: { icon: \"mdi-laptop\" } }, [\n                    _vm._v(\"Details\")\n                  ])\n                ],\n                1\n              )\n            ])\n          : _vm._e(),\n        _c(\"li\", { staticClass: \"menu-item\" }, [\n          _vm.computer\n            ? _c(\n                \"a\",\n                {\n                  on: {\n                    click: function($event) {\n                      _vm.showComputerLog = true\n                    }\n                  }\n                },\n                [\n                  _c(\"IconText\", { attrs: { icon: \"mdi-card-text-outline\" } }, [\n                    _vm._v(\"Log\")\n                  ])\n                ],\n                1\n              )\n            : _vm._e()\n        ]),\n        _vm.computer &&\n        _vm.domain &&\n        (!_vm.domain.permission || _vm.domain.permission >= 64)\n          ? _c(\"li\", { staticClass: \"menu-item\" }, [\n              _c(\n                \"a\",\n                {\n                  on: {\n                    click: function($event) {\n                      _vm.showPowershell = true\n                    }\n                  }\n                },\n                [\n                  _c(\"IconText\", { attrs: { icon: \"mdi-powershell\" } }, [\n                    _vm._v(\"Powershell\")\n                  ])\n                ],\n                1\n              )\n            ])\n          : _vm._e(),\n        _vm.$route.params.domainUID\n          ? _c(\n              \"li\",\n              { staticClass: \"menu-item\" },\n              [\n                _c(\n                  \"router-link\",\n                  {\n                    attrs: {\n                      to:\n                        \"/domains/\" +\n                        _vm.$route.params.domainUID +\n                        \"/computers/\" +\n                        _vm.$route.params.computerUID +\n                        \"/applications\"\n                    }\n                  },\n                  [\n                    _c(\n                      \"IconText\",\n                      { attrs: { icon: \"mdi-format-list-checks\" } },\n                      [_vm._v(\"Applications\")]\n                    )\n                  ],\n                  1\n                )\n              ],\n              1\n            )\n          : _vm._e()\n      ]),\n      _c(\"Packages\"),\n      _vm.showComputerInfo && _vm.computer\n        ? _c(\"ComputerInfo\", {\n            attrs: { computer: _vm.computer },\n            model: {\n              value: _vm.showComputerInfo,\n              callback: function($$v) {\n                _vm.showComputerInfo = $$v\n              },\n              expression: \"showComputerInfo\"\n            }\n          })\n        : _vm._e(),\n      _vm.showComputerLog && _vm.computer\n        ? _c(\"ComputerLog\", {\n            attrs: { computer: _vm.computer },\n            model: {\n              value: _vm.showComputerLog,\n              callback: function($$v) {\n                _vm.showComputerLog = $$v\n              },\n              expression: \"showComputerLog\"\n            }\n          })\n        : _vm._e(),\n      _vm.showPowershell && _vm.computer\n        ? _c(\"Powershell\", {\n            attrs: { computer: _vm.computer },\n            model: {\n              value: _vm.showPowershell,\n              callback: function($$v) {\n                _vm.showPowershell = $$v\n              },\n              expression: \"showPowershell\"\n            }\n          })\n        : _vm._e()\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/ComputerPackages.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/views/ComputerPackages.vue":
/*!****************************************!*\
  !*** ./src/views/ComputerPackages.vue ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ComputerPackages_vue_vue_type_template_id_6abce962___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ComputerPackages.vue?vue&type=template&id=6abce962& */ \"./src/views/ComputerPackages.vue?vue&type=template&id=6abce962&\");\n/* harmony import */ var _ComputerPackages_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ComputerPackages.vue?vue&type=script&lang=js& */ \"./src/views/ComputerPackages.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  _ComputerPackages_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _ComputerPackages_vue_vue_type_template_id_6abce962___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _ComputerPackages_vue_vue_type_template_id_6abce962___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/views/ComputerPackages.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/ComputerPackages.vue?");

/***/ }),

/***/ "./src/views/ComputerPackages.vue?vue&type=script&lang=js&":
/*!*****************************************************************!*\
  !*** ./src/views/ComputerPackages.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_ComputerPackages_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!./ComputerPackages.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/views/ComputerPackages.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_ComputerPackages_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/views/ComputerPackages.vue?");

/***/ }),

/***/ "./src/views/ComputerPackages.vue?vue&type=template&id=6abce962&":
/*!***********************************************************************!*\
  !*** ./src/views/ComputerPackages.vue?vue&type=template&id=6abce962& ***!
  \***********************************************************************/
/*! 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_ComputerPackages_vue_vue_type_template_id_6abce962___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!./ComputerPackages.vue?vue&type=template&id=6abce962& */ \"./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/views/ComputerPackages.vue?vue&type=template&id=6abce962&\");\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_ComputerPackages_vue_vue_type_template_id_6abce962___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_ComputerPackages_vue_vue_type_template_id_6abce962___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/views/ComputerPackages.vue?");

/***/ })

}]);