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

/***/ "./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/group/GroupCopy.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/group/GroupCopy.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  components: {\n    CheckboxText: () => __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.bind(null, /*! @/components/singles/CheckboxText.vue */ \"./src/components/singles/CheckboxText.vue\")),\n    IconText: () => __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.bind(null, /*! @/components/singles/IconText.vue */ \"./src/components/singles/IconText.vue\"))\n  },\n  props: {\n    min: Number\n  },\n  data() {\n    return {\n      isLoading: false,\n      items: [],\n      rawItems: []\n    };\n  },\n  computed: {\n    filtered() {\n      return this.items.filter(x => !x.hidden);\n    }\n  },\n  created() {\n    this.isLoading = true;\n    this.init();\n    this.isLoading = false;\n  },\n  methods: {\n    set(item, key, value) {\n      const index = this.items.findIndex(x => x == item);\n      this.$set(this.items, index, {\n        ...item,\n        ...{\n          [key]: value\n        }\n      });\n      this.change();\n    },\n    change() {\n      this.isLoading = true;\n      const flat = [].concat.apply([], this.items.filter(x => x.selected).map(x => x.packages.map(y => {\n        y.command.added = new Date().toISOString();\n        return y;\n      })));\n      this.$emit(\"change\", flat);\n      this.$set(this, \"items\", this.items.map(x => {\n        const hasDups = x.packages.some(y => flat.some(z => z.package.name === y.package.name));\n        if (!x.selected) x.hidden = hasDups;\n        return x;\n      }));\n      this.isLoading = false;\n    },\n    hasDuplicates(source, flat) {\n      return source.filter(x => x.domain.uid === this.$route.params.domainUID).some(x => x.packages.some(y => flat.some(z => z.package.name === y.package.name)));\n    },\n    async init() {\n      try {\n        const result = await this.$store.dispatch(\"groupPackage/getAccountGroupPackages\", {\n          domainUID: this.$route.params.domainUID\n        });\n        if (result && result.length > 0) {\n          this.rawItems = result;\n          this.items = result.filter(x => x.domain.uid !== this.$route.params.domainUID && x.packages.length >= (this.min || 4) && !this.hasDuplicates(this.rawItems, x.packages));\n        }\n      } catch (error) {\n        console.error(error);\n      }\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/group/GroupCopy.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/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e&":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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.items.length > 0\n    ? _c(\n        \"div\",\n        [\n          _vm._t(\"default\"),\n          _vm._l(_vm.filtered, function(item) {\n            return _c(\n              \"CheckboxText\",\n              {\n                key: item.group.uid,\n                attrs: { checked: item.selected },\n                on: {\n                  click: function($event) {\n                    return _vm.set(item, \"selected\", !item.selected)\n                  }\n                }\n              },\n              [\n                _c(\n                  \"span\",\n                  { staticClass: \"tag\" },\n                  [\n                    _c(\"IconText\", { attrs: { icon: \"mdi-domain\" } }, [\n                      _vm._v(_vm._s(item.domain.name))\n                    ])\n                  ],\n                  1\n                ),\n                _c(\"div\", { staticClass: \"icon\" }, [\n                  _c(\"i\", { staticClass: \"mdi mdi-arrow-right\" })\n                ]),\n                _c(\n                  \"span\",\n                  { staticClass: \"tag is-light is-primary\" },\n                  [\n                    _c(\n                      \"IconText\",\n                      { attrs: { icon: \"mdi-monitor-multiple\" } },\n                      [_vm._v(_vm._s(item.group.name))]\n                    )\n                  ],\n                  1\n                )\n              ]\n            )\n          })\n        ],\n        2\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/group/GroupCopy.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");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GroupCopy_vue_vue_type_template_id_7a2c5b9e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GroupCopy.vue?vue&type=template&id=7a2c5b9e& */ \"./src/components/main/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e&\");\n/* harmony import */ var _GroupCopy_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GroupCopy.vue?vue&type=script&lang=js& */ \"./src/components/main/group/GroupCopy.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  _GroupCopy_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _GroupCopy_vue_vue_type_template_id_7a2c5b9e___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _GroupCopy_vue_vue_type_template_id_7a2c5b9e___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/group/GroupCopy.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/group/GroupCopy.vue?");

/***/ }),

/***/ "./src/components/main/group/GroupCopy.vue?vue&type=script&lang=js&":
/*!**************************************************************************!*\
  !*** ./src/components/main/group/GroupCopy.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_GroupCopy_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!./GroupCopy.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/group/GroupCopy.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_GroupCopy_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/components/main/group/GroupCopy.vue?");

/***/ }),

/***/ "./src/components/main/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e&":
/*!********************************************************************************!*\
  !*** ./src/components/main/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e& ***!
  \********************************************************************************/
/*! 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_GroupCopy_vue_vue_type_template_id_7a2c5b9e___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!./GroupCopy.vue?vue&type=template&id=7a2c5b9e& */ \"./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/group/GroupCopy.vue?vue&type=template&id=7a2c5b9e&\");\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_GroupCopy_vue_vue_type_template_id_7a2c5b9e___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_GroupCopy_vue_vue_type_template_id_7a2c5b9e___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/group/GroupCopy.vue?");

/***/ })

}]);