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

/***/ "./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/packages/GroupActions.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/packages/GroupActions.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 _utils_mdc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/mdc */ \"./src/utils/mdc.js\");\n/* harmony import */ var _utils_packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/packages */ \"./src/utils/packages.js\");\n/* harmony import */ var _utils_socket__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/socket */ \"./src/utils/socket.js\");\n/* harmony import */ var _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/groupPackageStatus */ \"./src/utils/groupPackageStatus.js\");\n/* harmony import */ var _utils_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/http */ \"./src/utils/http.js\");\n/* harmony import */ var _utils_packageDate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/packageDate */ \"./src/utils/packageDate.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  props: {\n    value: Boolean,\n    item: Object\n  },\n  components: {\n    GroupWarnings: () => __webpack_require__.e(/*! import() */ 74).then(__webpack_require__.bind(null, /*! @/components/main/packages/GroupWarnings.vue */ \"./src/components/main/packages/GroupWarnings.vue\")),\n    Switches: () => __webpack_require__.e(/*! import() */ 95).then(__webpack_require__.bind(null, /*! @/components/main/packages/Switches.vue */ \"./src/components/main/packages/Switches.vue\")),\n    Modal: () => __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! ./Modal */ \"./src/components/main/packages/Modal.vue\")),\n    Schedule: () => __webpack_require__.e(/*! import() */ 94).then(__webpack_require__.bind(null, /*! ./Schedule */ \"./src/components/main/packages/Schedule.vue\")),\n    Parameters: () => __webpack_require__.e(/*! import() */ 38).then(__webpack_require__.bind(null, /*! @/components/main/packages/Parameters.vue */ \"./src/components/main/packages/Parameters.vue\"))\n  },\n  data() {\n    return {\n      isLoading: false,\n      dupPackages: []\n    };\n  },\n  computed: {\n    disabled() {\n      return this.dupPackages.length > 0;\n    },\n    isPseudo() {\n      var _this$item;\n      return (_this$item = this.item) === null || _this$item === void 0 || (_this$item = _this$item.chocoPackage) === null || _this$item === void 0 ? void 0 : _this$item.Pseudo;\n    },\n    hasParam() {\n      return param => {\n        return Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"hasParam\"])(this.item.tempCommand.parameters, param);\n      };\n    },\n    higherVersionInstalled() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isHigherVersionInstalled(this.item);\n    },\n    hasMultiple() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].hasMultipleVersions(this.item);\n    },\n    nameAndVersion() {\n      return Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"getPackageNameVersionAndHash\"])(this.item);\n    },\n    isUpgradable() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isUpgradable(this.item);\n    },\n    isInstallable() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isInstallable(this.item);\n    },\n    isUninstallable() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isUninstallable(this.item);\n    },\n    hasValidSchedule() {\n      return Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_5__[\"isScheduleValid\"])(this.item.tempSchedule);\n    },\n    isTempAutoUpgrade() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isTempAutoUpgrade(this.item);\n    },\n    isAutoUpgrade() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isAutoUpgrade(this.item);\n    },\n    hasAutoUpgrade() {\n      return _utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].hasAutoUpgrade(this.item);\n    }\n  },\n  async created() {\n    this.isLoading = true;\n    if (this.item) {\n      const {\n        name,\n        uid\n      } = this.nameAndVersion;\n      const shouldReload = !this.$store.state.groupPackage.fullyLoadedPackages[name + uid];\n      if (shouldReload) {\n        const mdcPackages = await Object(_utils_packages__WEBPACK_IMPORTED_MODULE_1__[\"getAllMdcVersions\"])(this.item, \"groupPackage\", Object(_utils_packages__WEBPACK_IMPORTED_MODULE_1__[\"getAllMdcVersionsFn\"])(this.item, true, this.$route.params));\n        this.$store.commit(`groupPackage/setMergedPackageVersions`, mdcPackages);\n      }\n      this.checkDups(name);\n      this.$store.commit(\"groupPackage/editMergedPackage\", {\n        p: this.item,\n        obj: {\n          tempCommand: {\n            ...this.item.command\n          }\n        }\n      });\n    }\n    this.isLoading = false;\n  },\n  methods: {\n    async checkDups() {\n      const {\n        name,\n        uid\n      } = this.nameAndVersion;\n      const result = await this.$store.dispatch(\"groupPackage/getDuplicateDomainPackages\", {\n        name,\n        domainUID: this.$route.params.domainUID\n      });\n      if (result && result[0] && result[0].length > 0) {\n        this.dupPackages = result[0].filter(x => x.group.uid !== this.$route.params.groupUID);\n      }\n    },\n    validate(action) {\n      if (action === \"upgrade\" && (this.hasMultiple || this.higherVersionInstalled || Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"hasParam\"])(\"-m\"))) {\n        return false;\n      } else if (action === \"install\" && ((this.hasMultiple || this.higherVersionInstalled) && !this.hasParam(\"-m\") || this.isTempAutoUpgrade || this.hasAutoUpgrade && !this.isAutoUpgrade)) {\n        return false;\n      } else if (action === \"uninstall\" && (this.hasAutoUpgrade && !this.isAutoUpgrade || this.isTempAutoUpgrade)) {\n        return false;\n      }\n      return true;\n    },\n    async sendPackage(item, action) {\n      if (this.validate(action)) {\n        this.isLoading = true;\n        if (_utils_groupPackageStatus__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isTempAutoUpgrade(item) && Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"hasParam\"])(\"-m\")) {\n          item.tempCommand.parameters = Object(_utils_packages__WEBPACK_IMPORTED_MODULE_1__[\"addTempParam\"])(item.tempCommand.parameters, \"-m\");\n        }\n        this.$emit(\"action\", action);\n        const newItem = Object(_utils_packages__WEBPACK_IMPORTED_MODULE_1__[\"formatPackage\"])(item, action);\n        newItem.command.override = false;\n        if (item.schedule && item.schedule.type === 1 && (item.tempSchedule && item.tempSchedule.type !== 1 || !item.tempSchedule)) {\n          await this.$store.dispatch(\"group/fetch\", {\n            domainUID: this.$route.params.domainUID\n          });\n          const {\n            name,\n            version,\n            hash\n          } = Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"getPackageNameVersionAndHash\"])(this.item);\n          const computerUIDs = this.$store.getters[\"group/computerUIDs\"](this.$route.params.groupUID);\n          Object(_utils_socket__WEBPACK_IMPORTED_MODULE_2__[\"cancelPackageSchedule\"])([{\n            package: {\n              name\n            },\n            version: {\n              version,\n              packageHash: hash\n            }\n          }], computerUIDs);\n          await this.$helpers.wait(2);\n        }\n        if (Object(_utils_socket__WEBPACK_IMPORTED_MODULE_2__[\"sendPackages\"])([newItem], [], this.$route.params.groupUID)) {\n          this.$store.commit(\"groupPackage/mergeMdcPackage\", newItem);\n          this.$store.commit(\"groupPackage/editMergedPackage\", {\n            p: item,\n            obj: {\n              command: newItem.command,\n              schedule: newItem.schedule\n            }\n          });\n        } else {\n          this.$helpers.notify(\"Error\", \"Could not send the package.\", \"danger\");\n        }\n        this.hide();\n      }\n    },\n    async deletePackage() {\n      this.isLoading = true;\n      const {\n        name,\n        version,\n        hash\n      } = Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_0__[\"getPackageNameVersionAndHash\"])(this.item);\n      await Object(_utils_http__WEBPACK_IMPORTED_MODULE_4__[\"postApi\"])(\"delete/groupPackage\", {\n        groupUID: this.$route.params.groupUID,\n        packageHash: hash,\n        domainUID: this.$route.params.domainUID\n      });\n      await this.$store.dispatch(\"group/fetch\", {\n        domainUID: this.$route.params.domainUID\n      });\n      const computerUIDs = this.$store.getters[\"group/computerUIDs\"](this.$route.params.groupUID);\n      Object(_utils_socket__WEBPACK_IMPORTED_MODULE_2__[\"cancelPackageSchedule\"])([{\n        package: {\n          name\n        },\n        version: {\n          version,\n          packageHash: hash\n        }\n      }], computerUIDs);\n      this.$store.commit(\"groupPackage/editMergedPackage\", {\n        p: this.item,\n        obj: {\n          schedule: {},\n          package: {},\n          version: {},\n          command: {}\n        }\n      });\n      this.$store.commit(\"groupPackage/removeMdcPackage\", this.item);\n      this.hide();\n    },\n    setTempSchedule(newSchedule) {\n      this.$store.commit(\"groupPackage/editMergedPackage\", {\n        p: this.item,\n        obj: {\n          tempSchedule: newSchedule\n        }\n      });\n    },\n    hide() {\n      this.$store.commit(\"groupPackage/editMergedPackage\", {\n        p: this.item,\n        obj: {\n          tempCommand: null\n        }\n      });\n      this.$emit(\"hide\");\n      this.$emit(\"input\", false);\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/packages/GroupActions.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?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/GroupPackages.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/GroupPackages.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 moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils_mdc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/mdc */ \"./src/utils/mdc.js\");\n/* harmony import */ var _utils_packageDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/packageDate */ \"./src/utils/packageDate.js\");\n/* harmony import */ var _utils_document__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/document */ \"./src/utils/document.js\");\n/* harmony import */ var _utils_packageStatus__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/packageStatus */ \"./src/utils/packageStatus.js\");\n/* harmony import */ var _utils_packageFilter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/packageFilter */ \"./src/utils/packageFilter.js\");\n/* harmony import */ var _utils_packageOrder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/packageOrder */ \"./src/utils/packageOrder.js\");\n/* harmony import */ var _utils_packageOdata__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/packageOdata */ \"./src/utils/packageOdata.js\");\n/* harmony import */ var _utils_paging__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/paging */ \"./src/utils/paging.js\");\n/* harmony import */ var _components_main_packages_GroupActions_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/components/main/packages/GroupActions.vue */ \"./src/components/main/packages/GroupActions.vue\");\n/* harmony import */ var _components_main_packages_Info_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/components/main/packages/Info.vue */ \"./src/components/main/packages/Info.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: () => __webpack_require__.e(/*! import() */ 11).then(__webpack_require__.bind(null, /*! @/components/main/Tips.vue */ \"./src/components/main/Tips.vue\")),\n    Paging: () => __webpack_require__.e(/*! import() */ 12).then(__webpack_require__.bind(null, /*! @/components/main/paging/Nav.vue */ \"./src/components/main/paging/Nav.vue\")),\n    SearchBar: () => __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.bind(null, /*! @/components/main/SearchBar.vue */ \"./src/components/main/SearchBar.vue\")),\n    Versions: () => __webpack_require__.e(/*! import() */ 39).then(__webpack_require__.bind(null, /*! @/components/main/packages/Versions.vue */ \"./src/components/main/packages/Versions.vue\")),\n    ActionInfo: () => Promise.all(/*! import() */[__webpack_require__.e(22), __webpack_require__.e(117)]).then(__webpack_require__.bind(null, /*! @/components/main/packages/ActionInfo.vue */ \"./src/components/main/packages/ActionInfo.vue\")),\n    GroupStats: () => __webpack_require__.e(/*! import() */ 55).then(__webpack_require__.bind(null, /*! @/components/main/packages/GroupStats.vue */ \"./src/components/main/packages/GroupStats.vue\")),\n    CheckboxText: () => __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.bind(null, /*! @/components/singles/CheckboxText.vue */ \"./src/components/singles/CheckboxText.vue\")),\n    Title: () => __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/singles/Title.vue */ \"./src/components/singles/Title.vue\")),\n    LoaderOne: () => __webpack_require__.e(/*! import() */ 17).then(__webpack_require__.bind(null, /*! @/components/singles/LoaderOne.vue */ \"./src/components/singles/LoaderOne.vue\")),\n    NotApproved: () => __webpack_require__.e(/*! import() */ 33).then(__webpack_require__.bind(null, /*! @/components/main/packages/warnings/NotApproved.vue */ \"./src/components/main/packages/warnings/NotApproved.vue\")),\n    FailedValidations: () => __webpack_require__.e(/*! import() */ 31).then(__webpack_require__.bind(null, /*! @/components/main/packages/warnings/FailedValidations.vue */ \"./src/components/main/packages/warnings/FailedValidations.vue\")),\n    FailedTests: () => __webpack_require__.e(/*! import() */ 30).then(__webpack_require__.bind(null, /*! @/components/main/packages/warnings/FailedTests.vue */ \"./src/components/main/packages/warnings/FailedTests.vue\")),\n    FailedVirusScan: () => __webpack_require__.e(/*! import() */ 32).then(__webpack_require__.bind(null, /*! @/components/main/packages/warnings/FailedVirusScan.vue */ \"./src/components/main/packages/warnings/FailedVirusScan.vue\")),\n    Passed: () => __webpack_require__.e(/*! import() */ 34).then(__webpack_require__.bind(null, /*! @/components/main/packages/warnings/Passed.vue */ \"./src/components/main/packages/warnings/Passed.vue\")),\n    InstallButton: () => __webpack_require__.e(/*! import() */ 40).then(__webpack_require__.bind(null, /*! @/components/main/packages/buttons/Install.vue */ \"./src/components/main/packages/buttons/Install.vue\")),\n    UninstallButton: () => __webpack_require__.e(/*! import() */ 41).then(__webpack_require__.bind(null, /*! @/components/main/packages/buttons/Uninstall.vue */ \"./src/components/main/packages/buttons/Uninstall.vue\")),\n    ChartBar: () => __webpack_require__.e(/*! import() */ 52).then(__webpack_require__.bind(null, /*! @/components/main/group/ChartBar.vue */ \"./src/components/main/group/ChartBar.vue\")),\n    GroupActions: _components_main_packages_GroupActions_vue__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n    Info: _components_main_packages_Info_vue__WEBPACK_IMPORTED_MODULE_10__[\"default\"]\n  },\n  watch: {\n    $route(to, from) {\n      if (from.params.groupUID !== to.params.groupUID) this.init(true);\n    }\n  },\n  computed: {\n    selectedItem() {\n      return this.$store.getters[\"groupPackage/selectedItem\"];\n    },\n    chartData() {\n      return item => {\n        return [{\n          percent: item.stats.procentWorking,\n          css: \"has-background-info\",\n          text: \"Working\"\n        }, {\n          percent: item.stats.procentInstalled,\n          css: \"has-background-success\",\n          text: \"Installed\"\n        }, {\n          percent: item.stats.procentUninstalled,\n          css: \"has-background-danger\",\n          text: \"Uninstalled\"\n        }, {\n          percent: item.stats.procentFailed,\n          css: \"has-background-warning\",\n          text: \"Failed\"\n        }, {\n          percent: item.stats.procentNoStatus,\n          css: \"has-background-grey-light\",\n          text: \"No status\"\n        }];\n      };\n    },\n    key() {\n      return item => {\n        return item.chocoPackage.Id + item.chocoPackage.Version + item.source.uid;\n      };\n    },\n    selected() {\n      return arr => {\n        return arr.filter(x => x.selected);\n      };\n    },\n    filtered() {\n      return packagesObj => {\n        if (this.filter && this.filter !== \"\") {\n          const newPackagesObj = Object(_utils_packageFilter__WEBPACK_IMPORTED_MODULE_5__[\"filterPackages\"])(packagesObj, this.filter);\n          this.visiblePackagesLength = Object.keys(newPackagesObj).length;\n          return Object(_utils_paging__WEBPACK_IMPORTED_MODULE_8__[\"getPackageObj\"])(newPackagesObj, this.paging.start, this.paging.page * this.paging.max);\n        } else {\n          this.visiblePackagesLength = Object.keys(packagesObj).length;\n          return Object(_utils_paging__WEBPACK_IMPORTED_MODULE_8__[\"getPackageObj\"])(packagesObj, this.paging.start, this.paging.page * this.paging.max);\n        }\n      };\n    },\n    hasValidSchedule() {\n      return item => {\n        return Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_2__[\"isScheduleValid\"])(Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_2__[\"objectifySchedule\"])(item.schedule));\n      };\n    },\n    hasAutoUpgrade() {\n      return items => {\n        return items.some(x => Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_2__[\"isScheduleValid\"])(Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_2__[\"objectifySchedule\"])(x.schedule)) && x.schedule.type === 1);\n      };\n    },\n    name() {\n      return item => {\n        return this.$helpers.getNameOrFriendlyName(item);\n      };\n    },\n    isPseudo() {\n      return item => {\n        var _item$chocoPackage;\n        return item === null || item === void 0 || (_item$chocoPackage = item.chocoPackage) === null || _item$chocoPackage === void 0 ? void 0 : _item$chocoPackage.Pseudo;\n      };\n    },\n    icon() {\n      return item => {\n        return item.chocoPackage.IconUrl && item.chocoPackage.IconUrl !== \"\" ? item.chocoPackage.IconUrl : \"/box.png\";\n      };\n    },\n    hasParam() {\n      return (item, param) => {\n        return Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_1__[\"hasParam\"])(item.command.parameters, param);\n      };\n    },\n    toIso() {\n      return date => {\n        return Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_1__[\"toIsoDate\"])(date);\n      };\n    },\n    nameAndVersion() {\n      return item => {\n        return Object(_utils_mdc__WEBPACK_IMPORTED_MODULE_1__[\"getPackageNameVersionAndHash\"])(item);\n      };\n    },\n    title() {\n      return item => {\n        return item.chocoPackage.Title.length > 30 ? `${item.chocoPackage.Title.substring(0, 30)}...` : item.chocoPackage.Title;\n      };\n    },\n    uninstallable() {\n      return item => {\n        return _utils_packageStatus__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isUninstallable(item);\n      };\n    },\n    fromNow() {\n      return date => {\n        if (date) {\n          return moment__WEBPACK_IMPORTED_MODULE_0___default()(date).fromNow();\n        } else {\n          return \"\";\n        }\n      };\n    }\n  },\n  data() {\n    return {\n      visiblePackagesLength: 0,\n      firstLoadDone: false,\n      searching: false,\n      internalExternal: true,\n      showActions: false,\n      showStats: false,\n      showInfo: false,\n      showActionInfo: false,\n      tempFilter: \"\",\n      filter: \"\",\n      includePrerelease: false,\n      statsTab: 1,\n      searchId: Object(_utils_document__WEBPACK_IMPORTED_MODULE_3__[\"getId\"])(),\n      paging: {\n        page: 1,\n        max: 15,\n        start: 0,\n        pages: []\n      }\n    };\n  },\n  beforeDestroy() {\n    this.$store.commit(\"groupPackage/clear\");\n  },\n  async created() {\n    this.init();\n  },\n  methods: {\n    toggle(item, what, showHide) {\n      if (item && item.command) {\n        this.$store.commit(\"groupPackage/selectItem\", item);\n      }\n      this[what] = showHide;\n    },\n    jump(item) {\n      Object(_utils_document__WEBPACK_IMPORTED_MODULE_3__[\"jump\"])(item.chocoPackage.Id);\n    },\n    async init(force) {\n      if (force) {\n        this.internalExternal = true;\n        this.filter = \"\";\n        this.tempFilter = this.filter;\n        this.$store.commit(\"groupPackage/clear\");\n        this.showActions = false;\n      }\n      try {\n        var _this$$store$state$se;\n        await this.$store.dispatch(\"settings/getUserSettings\", {\n          path: \"groupPackages\"\n        }, {\n          root: true\n        });\n        const paging = (_this$$store$state$se = this.$store.state.settings.user.groupPackages) === null || _this$$store$state$se === void 0 ? void 0 : _this$$store$state$se.paging;\n        if (paging) this.paging.max = paging.max;\n        await this.getLatestPackages();\n      } catch (err) {\n        console.log(err);\n        this.$helpers.notify(\"Error\", \"Could not get data.\", \"danger\", 5000);\n      }\n      this.firstLoadDone = true;\n    },\n    setPageMax(size) {\n      this.paging.max = size;\n      this.$store.dispatch(\"settings/setUser\", {\n        path: \"groupPackages\",\n        key: \"paging\",\n        value: {\n          max: size\n        }\n      });\n      this.setPage(1);\n      this.setPages(Object.keys(this.$store.state.groupPackage.mergedPackages).length);\n    },\n    setPages(num) {\n      this.paging.pages = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_8__[\"getPackageNumbers\"])(num, this.paging.max);\n    },\n    setPage(page) {\n      this.paging.start = Object(_utils_paging__WEBPACK_IMPORTED_MODULE_8__[\"getStartIndex\"])(page, this.paging.max);\n      this.paging.page = page;\n    },\n    dispatchGroupOrder: _utils_packageOrder__WEBPACK_IMPORTED_MODULE_6__[\"dispatchGroupOrder\"],\n    focus: _utils_document__WEBPACK_IMPORTED_MODULE_3__[\"focus\"],\n    async getLatestPackages() {\n      this.searching = true;\n      await this.$store.dispatch(\"groupPackage/fetchAndMerge\", {\n        domainUID: this.$route.params.domainUID,\n        groupUID: this.$route.params.groupUID\n      });\n      this.setPage(1);\n      this.setPages(Object.keys(this.$store.state.groupPackage.mergedPackages).length);\n      this.searching = false;\n      Object(_utils_document__WEBPACK_IMPORTED_MODULE_3__[\"focus\"])(this.searchId);\n    },\n    async search(searchStr) {\n      this.searching = true;\n      if (!this.internalExternal) {\n        this.filter = \"\";\n        let encodedFilter = \"\";\n        if (searchStr !== \"\") {\n          encodedFilter = _utils_packageOdata__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getSearchString(searchStr, this.includePrerelease, null, this.paging.max);\n        } else {\n          encodedFilter = _utils_packageOdata__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLatestPackagesString(this.paging.max, this.includePrerelease);\n        }\n        const filters = this.$store.state.source.sources.map(x => {\n          return {\n            source: x,\n            filter: encodedFilter\n          };\n        });\n        await this.$store.dispatch(\"groupPackage/searchFetchAndMerge\", {\n          domainUID: this.$route.params.domainUID,\n          groupUID: this.$route.params.groupUID,\n          filters: filters\n        });\n        this.setPage(1);\n        this.setPages(Object.keys(this.$store.state.groupPackage.mergedPackages).length);\n      } else {\n        this.setPage(1);\n        this.filter = searchStr;\n      }\n      this.searching = false;\n      Object(_utils_document__WEBPACK_IMPORTED_MODULE_3__[\"focus\"])(this.searchId);\n    },\n    showGroupStats(item, selectedTab) {\n      this.statsTab = selectedTab;\n      this.toggle(item, \"showStats\", true);\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/views/GroupPackages.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/packages/GroupActions.vue?vue&type=template&id=4e6cee8c&":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/packages/GroupActions.vue?vue&type=template&id=4e6cee8c& ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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.item.tempCommand\n    ? _c(\n        \"Modal\",\n        {\n          attrs: {\n            value: _vm.value,\n            title: _vm.item.chocoPackage.Title,\n            subtitle:\n              _vm.nameAndVersion.name + \" - \" + _vm.nameAndVersion.version\n          },\n          on: {\n            hide: function($event) {\n              return _vm.hide()\n            }\n          }\n        },\n        [\n          _c(\n            \"div\",\n            { staticClass: \"content\", attrs: { slot: \"body\" }, slot: \"body\" },\n            [\n              _vm.isPseudo\n                ? _c(\"div\", { staticClass: \"notification is-warning\" }, [\n                    _vm._v(\n                      \" This package does not exist in the repo it originated from, therefore only uninstallation and delete from database is possible. Uninstallation is needed before deletion, since deletion would remove the abillity to controll the package. \"\n                    )\n                  ])\n                : _vm._e(),\n              _vm.disabled\n                ? _c(\"div\", { staticClass: \"notification is-info\" }, [\n                    _vm._v(\n                      \" This package is present in another group. Delete the package from the other group, or configure the package in that group. \"\n                    ),\n                    _c(\n                      \"ul\",\n                      _vm._l(_vm.dupPackages, function(item) {\n                        return _c(\n                          \"li\",\n                          { key: item.version.packageHash + item.source.uid },\n                          [\n                            _c(\n                              \"router-link\",\n                              {\n                                attrs: {\n                                  to:\n                                    \"/domains/\" +\n                                    _vm.$route.params.domainUID +\n                                    \"/groups/\" +\n                                    item.group.uid +\n                                    \"/packages\"\n                                }\n                              },\n                              [_vm._v(_vm._s(item.group.name))]\n                            )\n                          ],\n                          1\n                        )\n                      }),\n                      0\n                    )\n                  ])\n                : _vm._e(),\n              !_vm.disabled\n                ? _c(\n                    \"section\",\n                    [\n                      _c(\"GroupWarnings\", { attrs: { item: _vm.item } }),\n                      _c(\"Schedule\", {\n                        attrs: { schedule: _vm.item.schedule },\n                        on: {\n                          changed: function($event) {\n                            return _vm.setTempSchedule($event)\n                          }\n                        }\n                      }),\n                      _c(\"Switches\", {\n                        attrs: { isGroup: true, item: _vm.item }\n                      }),\n                      _c(\"Parameters\", {\n                        attrs: { isGroup: true, item: _vm.item }\n                      })\n                    ],\n                    1\n                  )\n                : _vm._e()\n            ]\n          ),\n          _c(\"template\", { staticClass: \"content\", slot: \"footer\" }, [\n            !_vm.isLoading\n              ? _c(\"div\", [\n                  !_vm.disabled &&\n                  !_vm.isPseudo &&\n                  (_vm.isUpgradable || _vm.isAutoUpgrade) &&\n                  !_vm.hasParam(\"-m\")\n                    ? _c(\n                        \"div\",\n                        {\n                          staticClass: \"button is-info\",\n                          attrs: {\n                            disabled:\n                              _vm.hasMultiple ||\n                              _vm.higherVersionInstalled ||\n                              _vm.hasParam(\"-m\")\n                          },\n                          on: {\n                            click: function($event) {\n                              return _vm.sendPackage(_vm.item, \"upgrade\")\n                            }\n                          }\n                        },\n                        [_vm._v(\" Upgrade \")]\n                      )\n                    : _vm._e(),\n                  !_vm.isPseudo && !_vm.disabled\n                    ? _c(\n                        \"div\",\n                        {\n                          staticClass: \"button is-success\",\n                          attrs: {\n                            disabled:\n                              ((_vm.hasMultiple ||\n                                _vm.higherVersionInstalled) &&\n                                !_vm.hasParam(\"-m\")) ||\n                              _vm.isTempAutoUpgrade ||\n                              (_vm.hasAutoUpgrade && !_vm.isAutoUpgrade)\n                          },\n                          on: {\n                            click: function($event) {\n                              return _vm.sendPackage(_vm.item, \"install\")\n                            }\n                          }\n                        },\n                        [_vm._v(\" Install \")]\n                      )\n                    : _vm._e(),\n                  !_vm.disabled\n                    ? _c(\n                        \"div\",\n                        {\n                          staticClass: \"button is-danger\",\n                          attrs: {\n                            disabled:\n                              (_vm.hasAutoUpgrade && !_vm.isAutoUpgrade) ||\n                              _vm.isTempAutoUpgrade\n                          },\n                          on: {\n                            click: function($event) {\n                              return _vm.sendPackage(_vm.item, \"uninstall\")\n                            }\n                          }\n                        },\n                        [_vm._v(\" Uninstall \")]\n                      )\n                    : _vm._e(),\n                  _c(\n                    \"div\",\n                    {\n                      staticClass: \"button is-warning\",\n                      attrs: {\n                        disabled:\n                          !_vm.item.command ||\n                          !_vm.item.command.name ||\n                          (_vm.isPseudo && _vm.isUninstallable)\n                      },\n                      on: {\n                        click: function($event) {\n                          !_vm.item.command ||\n                          !_vm.item.command.name ||\n                          (_vm.isPseudo && _vm.isUninstallable)\n                            ? null\n                            : _vm.deletePackage()\n                        }\n                      }\n                    },\n                    [_vm._v(\" Delete \")]\n                  ),\n                  _c(\n                    \"div\",\n                    {\n                      staticClass: \"button\",\n                      on: {\n                        click: function($event) {\n                          return _vm.hide()\n                        }\n                      }\n                    },\n                    [_vm._v(\"Cancel\")]\n                  )\n                ])\n              : _vm._e(),\n            _c(\n              \"div\",\n              {\n                directives: [\n                  {\n                    name: \"show\",\n                    rawName: \"v-show\",\n                    value: _vm.isLoading,\n                    expression: \"isLoading\"\n                  }\n                ],\n                staticClass: \"spinner-wrapper center\"\n              },\n              [_c(\"span\", { staticClass: \"spinner is-centered\" })]\n            )\n          ])\n        ],\n        2\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/packages/GroupActions.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");

/***/ }),

/***/ "./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/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true&":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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(\"Title\", [_vm._v(\"Packages\")]),\n          _c(\n            \"div\",\n            { staticClass: \"margin-bottom-1\" },\n            [\n              _c(\n                \"CheckboxText\",\n                {\n                  attrs: {\n                    css: \"is-inline-block margin-right-10\",\n                    checked: _vm.internalExternal\n                  },\n                  on: {\n                    click: function($event) {\n                      _vm.tempFilter = \"\"\n                      _vm.internalExternal = true\n                      _vm.internalExternal === true\n                        ? _vm.getLatestPackages()\n                        : false\n                    }\n                  }\n                },\n                [_vm._v(\"Packages in this group\")]\n              ),\n              _c(\n                \"CheckboxText\",\n                {\n                  attrs: {\n                    css: \"is-inline-block\",\n                    checked: !_vm.internalExternal\n                  },\n                  on: {\n                    click: function($event) {\n                      _vm.tempFilter = \"\"\n                      _vm.internalExternal = false\n                      _vm.search(\"\")\n                    }\n                  }\n                },\n                [_vm._v(\"All available packages\")]\n              ),\n              !_vm.internalExternal\n                ? _c(\n                    \"CheckboxText\",\n                    {\n                      attrs: { css: \"\", checked: _vm.includePrerelease },\n                      on: {\n                        click: function($event) {\n                          _vm.includePrerelease = !_vm.includePrerelease\n                          _vm.focus(_vm.searchId)\n                        }\n                      }\n                    },\n                    [_vm._v(\"Include pre-release\")]\n                  )\n                : _vm._e()\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          _c(\n            \"Tips\",\n            {\n              directives: [\n                {\n                  name: \"show\",\n                  rawName: \"v-show\",\n                  value: _vm.firstLoadDone && _vm.visiblePackagesLength !== 0,\n                  expression: \"firstLoadDone && visiblePackagesLength !== 0\"\n                }\n              ],\n              attrs: {\n                path: \"groupPackages\",\n                xKey: \"dismissedTips\",\n                property: \"autoUpdateLatestVersionStats\"\n              }\n            },\n            [\n              _vm._v(\n                \" Tip: Change the package version to see the installation status for that version. \"\n              )\n            ]\n          ),\n          _c(\"LoaderOne\", {\n            directives: [\n              {\n                name: \"show\",\n                rawName: \"v-show\",\n                value: !_vm.firstLoadDone,\n                expression: \"!firstLoadDone\"\n              }\n            ]\n          }),\n          _c(\n            \"p\",\n            {\n              directives: [\n                {\n                  name: \"show\",\n                  rawName: \"v-show\",\n                  value: !_vm.searching && _vm.visiblePackagesLength === 0,\n                  expression: \"!searching && visiblePackagesLength === 0\"\n                }\n              ]\n            },\n            [_c(\"i\", [_vm._v(\"No packages.\")])]\n          ),\n          _c(\"transition\", { attrs: { name: \"fade\", appear: \"\" } }, [\n            _c(\n              \"table\",\n              {\n                directives: [\n                  {\n                    name: \"show\",\n                    rawName: \"v-show\",\n                    value: !_vm.searching && _vm.visiblePackagesLength !== 0,\n                    expression: \"!searching && visiblePackagesLength !== 0\"\n                  }\n                ],\n                staticClass: \"table is-hoverable is-narrow is-fullwidth\"\n              },\n              [\n                _c(\"thead\", [\n                  _c(\"tr\", { staticClass: \"is-unselectable\" }, [\n                    _c(\"th\", { staticClass: \"is-hidden-touch\" }, [\n                      _vm._v(\"Icon\")\n                    ]),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\"chocoPackage.Title\")\n                          }\n                        }\n                      },\n                      [_vm._v(\"Title\")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\"source.name\")\n                          }\n                        }\n                      },\n                      [_vm._v(\"Repo\")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\n                              \"chocoPackage.IsLatestVersion\"\n                            )\n                          }\n                        }\n                      },\n                      [_vm._v(\" Version \")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        staticClass: \"is-hidden-touch\",\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\n                              \"chocoPackage.PackageScanStatus\"\n                            )\n                          }\n                        }\n                      },\n                      [_vm._v(\" Health \")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\"command.name\")\n                          }\n                        }\n                      },\n                      [_vm._v(\"Action\")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\"command.name\")\n                          }\n                        }\n                      },\n                      [_vm._v(\" Command \")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        staticClass: \"is-hidden-touch\",\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\"command.added\", true)\n                          }\n                        }\n                      },\n                      [_vm._v(\" Added \")]\n                    ),\n                    _c(\n                      \"th\",\n                      {\n                        on: {\n                          click: function($event) {\n                            return _vm.dispatchGroupOrder(\n                              \"stats.procentWorking\",\n                              true\n                            )\n                          }\n                        }\n                      },\n                      [_vm._v(\" Stats \")]\n                    )\n                  ])\n                ]),\n                _c(\n                  \"tbody\",\n                  [\n                    _vm._l(\n                      _vm.filtered(\n                        _vm.$store.state.groupPackage.mergedPackages\n                      ),\n                      function(arr) {\n                        return _vm._l(_vm.selected(arr), function(item) {\n                          return _c(\n                            \"tr\",\n                            {\n                              key: _vm.key(item),\n                              attrs: { id: item.chocoPackage.Id }\n                            },\n                            [\n                              _c(\"td\", { staticClass: \"is-hidden-touch\" }, [\n                                _c(\n                                  \"figure\",\n                                  { staticClass: \"image is-24x24\" },\n                                  [\n                                    _c(\"img\", {\n                                      attrs: { src: _vm.icon(item), alt: \"\" }\n                                    })\n                                  ]\n                                )\n                              ]),\n                              _c(\"td\", [\n                                _c(\n                                  \"a\",\n                                  {\n                                    staticClass: \"has-text-link\",\n                                    attrs: {\n                                      \"data-tooltip\": item.chocoPackage.Title\n                                    },\n                                    on: {\n                                      click: function($event) {\n                                        return _vm.toggle(\n                                          item,\n                                          \"showInfo\",\n                                          true\n                                        )\n                                      }\n                                    }\n                                  },\n                                  [_vm._v(_vm._s(_vm.title(item)))]\n                                )\n                              ]),\n                              _c(\n                                \"td\",\n                                [\n                                  _c(\n                                    \"router-link\",\n                                    {\n                                      attrs: {\n                                        to: \"/repos/\" + item.source.uid + \"/\"\n                                      }\n                                    },\n                                    [\n                                      !_vm.isPseudo(item)\n                                        ? _c(\"span\", [\n                                            _vm._v(_vm._s(item.source.name))\n                                          ])\n                                        : _c(\n                                            \"span\",\n                                            {\n                                              staticClass: \"has-text-danger\",\n                                              attrs: {\n                                                \"data-tooltip\":\n                                                  \"Package was not found in repo\"\n                                              }\n                                            },\n                                            [\n                                              _vm._v(\n                                                \" \" +\n                                                  _vm._s(item.source.name) +\n                                                  \" \"\n                                              )\n                                            ]\n                                          )\n                                    ]\n                                  )\n                                ],\n                                1\n                              ),\n                              _c(\n                                \"td\",\n                                [\n                                  _c(\"Versions\", {\n                                    attrs: { items: arr, isGroup: true },\n                                    on: {\n                                      change: function($event) {\n                                        return _vm.jump($event)\n                                      }\n                                    }\n                                  })\n                                ],\n                                1\n                              ),\n                              _c(\n                                \"td\",\n                                { staticClass: \"is-hidden-touch\" },\n                                [\n                                  _c(\n                                    \"NotApproved\",\n                                    {\n                                      attrs: { item: item, showTooltip: true }\n                                    },\n                                    [\n                                      _c(\"i\", {\n                                        staticClass:\n                                          \"mdi mdi-alert-outline has-text-warning\"\n                                      })\n                                    ]\n                                  ),\n                                  _c(\n                                    \"FailedValidations\",\n                                    {\n                                      attrs: { item: item, showTooltip: true }\n                                    },\n                                    [\n                                      _c(\"i\", {\n                                        staticClass:\n                                          \"mdi mdi-alert-outline has-text-warning\"\n                                      })\n                                    ]\n                                  ),\n                                  _c(\n                                    \"FailedTests\",\n                                    {\n                                      attrs: { item: item, showTooltip: true }\n                                    },\n                                    [\n                                      _c(\"i\", {\n                                        staticClass:\n                                          \"mdi mdi-alert-outline has-text-warning\"\n                                      })\n                                    ]\n                                  ),\n                                  _c(\n                                    \"FailedVirusScan\",\n                                    {\n                                      attrs: { item: item, showTooltip: true }\n                                    },\n                                    [\n                                      _c(\"i\", {\n                                        staticClass:\n                                          \"mdi mdi-alert-outline has-text-warning\"\n                                      })\n                                    ]\n                                  ),\n                                  _c(\n                                    \"Passed\",\n                                    {\n                                      attrs: { item: item, showTooltip: false }\n                                    },\n                                    [\n                                      _c(\"i\", {\n                                        staticClass:\n                                          \"mdi mdi-check has-text-success\"\n                                      })\n                                    ]\n                                  )\n                                ],\n                                1\n                              ),\n                              _c(\n                                \"td\",\n                                [\n                                  _c(\"InstallButton\", {\n                                    attrs: { item: item },\n                                    on: {\n                                      click: function($event) {\n                                        return _vm.toggle(\n                                          item,\n                                          \"showActions\",\n                                          true\n                                        )\n                                      }\n                                    }\n                                  }),\n                                  _c(\"UninstallButton\", {\n                                    attrs: { item: item },\n                                    on: {\n                                      click: function($event) {\n                                        return _vm.toggle(\n                                          item,\n                                          \"showActions\",\n                                          true\n                                        )\n                                      }\n                                    }\n                                  })\n                                ],\n                                1\n                              ),\n                              _c(\"td\", [\n                                _c(\"div\", [\n                                  item.command &&\n                                  item.command.status === \"pending\"\n                                    ? _c(\n                                        \"div\",\n                                        { staticClass: \"tags has-addons\" },\n                                        [\n                                          _c(\n                                            \"span\",\n                                            {\n                                              staticClass:\n                                                \"tag is-rounded is-light is-capitalized\"\n                                            },\n                                            [\n                                              _vm._v(\n                                                \" \" +\n                                                  _vm._s(item.command.name) +\n                                                  \" \"\n                                              )\n                                            ]\n                                          ),\n                                          _vm.hasParam(item, \"-f\")\n                                            ? _c(\n                                                \"span\",\n                                                {\n                                                  staticClass:\n                                                    \"tag is-rounded is-light\",\n                                                  attrs: {\n                                                    \"data-tooltip\": \"Forced\"\n                                                  }\n                                                },\n                                                [_vm._v(\"-f\")]\n                                              )\n                                            : _vm._e(),\n                                          _vm.hasParam(item, \"-m\")\n                                            ? _c(\n                                                \"span\",\n                                                {\n                                                  staticClass:\n                                                    \"tag is-rounded is-light\",\n                                                  attrs: {\n                                                    \"data-tooltip\":\n                                                      \"Side by side installation\"\n                                                  }\n                                                },\n                                                [_vm._v(\"-m\")]\n                                              )\n                                            : _vm._e(),\n                                          _vm.hasParam(item, \"-n\")\n                                            ? _c(\n                                                \"span\",\n                                                {\n                                                  staticClass:\n                                                    \"tag is-rounded is-light\",\n                                                  attrs: {\n                                                    \"data-tooltip\":\n                                                      \"Add/remove package only\"\n                                                  }\n                                                },\n                                                [_vm._v(\"-n\")]\n                                              )\n                                            : _vm._e(),\n                                          _vm.hasValidSchedule(item)\n                                            ? _c(\n                                                \"span\",\n                                                {\n                                                  staticClass:\n                                                    \"tag is-rounded is-primary is-light\",\n                                                  attrs: {\n                                                    \"data-tooltip\": \"Scheduled\"\n                                                  }\n                                                },\n                                                [\n                                                  _c(\"i\", {\n                                                    staticClass:\n                                                      \"mdi mdi-calendar-month\"\n                                                  })\n                                                ]\n                                              )\n                                            : _vm._e(),\n                                          _vm.hasAutoUpgrade(arr)\n                                            ? _c(\n                                                \"span\",\n                                                {\n                                                  staticClass:\n                                                    \"tag is-rounded is-primary is-light\",\n                                                  attrs: {\n                                                    \"data-tooltip\":\n                                                      \"Auto upgrade\"\n                                                  }\n                                                },\n                                                [\n                                                  _c(\"i\", {\n                                                    staticClass:\n                                                      \"mdi mdi-cached\"\n                                                  })\n                                                ]\n                                              )\n                                            : _vm._e()\n                                        ]\n                                      )\n                                    : _vm._e()\n                                ])\n                              ]),\n                              _c(\"td\", { staticClass: \"is-hidden-touch\" }, [\n                                _vm._v(\n                                  \" \" +\n                                    _vm._s(_vm.fromNow(item.command.added)) +\n                                    \" \"\n                                )\n                              ]),\n                              _c(\n                                \"td\",\n                                {\n                                  staticStyle: { \"min-width\": \"200px\" },\n                                  on: {\n                                    click: function($event) {\n                                      return _vm.showGroupStats(item, 1)\n                                    }\n                                  }\n                                },\n                                [\n                                  item.stats\n                                    ? _c(\"ChartBar\", {\n                                        staticClass: \"clickable\",\n                                        attrs: { data: _vm.chartData(item) }\n                                      })\n                                    : _vm._e()\n                                ],\n                                1\n                              )\n                            ]\n                          )\n                        })\n                      }\n                    )\n                  ],\n                  2\n                )\n              ]\n            )\n          ]),\n          _vm.visiblePackagesLength > 0 && !_vm.searching\n            ? _c(\"Paging\", {\n                attrs: {\n                  items: _vm.paging.pages,\n                  selected: _vm.paging.page,\n                  size: _vm.paging.max,\n                  hasOptions: true\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            : _vm._e()\n        ],\n        1\n      ),\n      _vm.selectedItem && _vm.showInfo\n        ? _c(\"Info\", {\n            attrs: { item: _vm.selectedItem },\n            on: {\n              openActions: function($event) {\n                _vm.showActions = true\n              }\n            },\n            model: {\n              value: _vm.showInfo,\n              callback: function($$v) {\n                _vm.showInfo = $$v\n              },\n              expression: \"showInfo\"\n            }\n          })\n        : _vm._e(),\n      _vm.showActions && _vm.selectedItem\n        ? _c(\"GroupActions\", {\n            attrs: { item: _vm.selectedItem },\n            model: {\n              value: _vm.showActions,\n              callback: function($$v) {\n                _vm.showActions = $$v\n              },\n              expression: \"showActions\"\n            }\n          })\n        : _vm._e(),\n      _vm.selectedItem && _vm.showStats\n        ? _c(\"GroupStats\", {\n            attrs: { item: _vm.selectedItem, tab: _vm.statsTab },\n            on: {\n              changed: function($event) {\n                _vm.statsTab = $event\n              }\n            },\n            model: {\n              value: _vm.showStats,\n              callback: function($$v) {\n                _vm.showStats = $$v\n              },\n              expression: \"showStats\"\n            }\n          })\n        : _vm._e(),\n      _vm.selectedItem && _vm.showActionInfo\n        ? _c(\"ActionInfo\", {\n            attrs: { item: _vm.selectedItem },\n            on: {\n              hide: function($event) {\n                _vm.selectedItem = null\n              },\n              openActions: function($event) {\n                return _vm.toggle(null, \"showActions\", true)\n              }\n            },\n            model: {\n              value: _vm.showActionInfo,\n              callback: function($$v) {\n                _vm.showActionInfo = $$v\n              },\n              expression: \"showActionInfo\"\n            }\n          })\n        : _vm._e()\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/GroupPackages.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");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/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, \"\\nth[data-v-7f05e2c2] {\\n  font-weight: normal;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/views/GroupPackages.vue?./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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__(/*! !../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib??vue-loader-options!./GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&\");\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__(/*! ../../node_modules/vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"3db1bf72\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./src/views/GroupPackages.vue?./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

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

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

/***/ }),

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

/***/ }),

/***/ "./src/components/main/packages/GroupActions.vue?vue&type=template&id=4e6cee8c&":
/*!**************************************************************************************!*\
  !*** ./src/components/main/packages/GroupActions.vue?vue&type=template&id=4e6cee8c& ***!
  \**************************************************************************************/
/*! 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_GroupActions_vue_vue_type_template_id_4e6cee8c___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!./GroupActions.vue?vue&type=template&id=4e6cee8c& */ \"./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/packages/GroupActions.vue?vue&type=template&id=4e6cee8c&\");\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_GroupActions_vue_vue_type_template_id_4e6cee8c___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_GroupActions_vue_vue_type_template_id_4e6cee8c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/packages/GroupActions.vue?");

/***/ }),

/***/ "./src/utils/groupPackageStatus.js":
/*!*****************************************!*\
  !*** ./src/utils/groupPackageStatus.js ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store */ \"./src/store/index.js\");\n/* harmony import */ var _packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./packages */ \"./src/utils/packages.js\");\n/* harmony import */ var _mdc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mdc */ \"./src/utils/mdc.js\");\n/* harmony import */ var _utils_packageDate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/packageDate */ \"./src/utils/packageDate.js\");\n\n\n\n\nfunction hasValidSchedule(item) {\n  return Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"isScheduleValid\"])(Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"objectifySchedule\"])(item.schedule));\n}\nfunction hasAutoUpgrade(item) {\n  const packages = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters[\"groupPackage/packageGroup\"]({\n    p: item,\n    filter: x => isAutoUpgrade(x)\n  });\n  return packages.length !== 0;\n}\nfunction isAutoUpgrade(item) {\n  return Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"isScheduleValid\"])(Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"objectifySchedule\"])(item.schedule)) && item.schedule.type === 1;\n}\nfunction isTempAutoUpgrade(item) {\n  return Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"isScheduleValid\"])(Object(_utils_packageDate__WEBPACK_IMPORTED_MODULE_3__[\"objectifySchedule\"])(item.tempSchedule)) && item.tempSchedule.type === 1;\n}\nfunction isHigherVersionInstalled(item) {\n  const packages = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters[\"groupPackage/packageGroup\"]({\n    p: item,\n    filter: x => isInstallOrUpgrade(x)\n  });\n  if (packages.length !== 0) {\n    const p1NV = Object(_mdc__WEBPACK_IMPORTED_MODULE_2__[\"getPackageNameVersionAndHash\"])(packages[0]);\n    const p2NV = Object(_mdc__WEBPACK_IMPORTED_MODULE_2__[\"getPackageNameVersionAndHash\"])(item);\n    return Object(_packages__WEBPACK_IMPORTED_MODULE_1__[\"compareVersions\"])(p1NV.version, p2NV.version) > 0;\n  }\n  return false;\n}\nfunction hasMultipleVersions(item) {\n  const packages = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters[\"groupPackage/packageGroup\"]({\n    p: item,\n    filter: x => isInstallOrUpgrade(x) && !Object(_mdc__WEBPACK_IMPORTED_MODULE_2__[\"isSamePackage\"])(x, item)\n  });\n  return packages.length !== 0;\n}\nfunction isUpgradable(item) {\n  if (!hasAutoUpgrade(item)) {\n    const packages = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters[\"groupPackage/packageGroup\"]({\n      p: item,\n      filter: x => isInstallOrUpgrade(x) && x.command.name && !Object(_mdc__WEBPACK_IMPORTED_MODULE_2__[\"isSamePackage\"])(item, x)\n    });\n    if (packages.length === 0) return true;else return !hasMultipleVersions(item) && Object(_packages__WEBPACK_IMPORTED_MODULE_1__[\"upgradable\"])(packages, item);\n  }\n  return false;\n}\nfunction isInstallOrUpgrade(item) {\n  return item.command.name && item.command.name !== \"uninstall\";\n}\nfunction isInstallable(item) {\n  return !item.command.name || item.command && item.command.name == \"uninstall\";\n}\nfunction isUninstallable(item) {\n  return !item.command.name || item.command && item.command.name != \"uninstall\";\n}\nfunction isInstall(item) {\n  return item.command.name === \"install\";\n}\nfunction isUninstall(item) {\n  return item.command.name === \"uninstall\";\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  isUpgradable,\n  hasMultipleVersions,\n  isHigherVersionInstalled,\n  isAutoUpgrade,\n  hasAutoUpgrade,\n  hasValidSchedule,\n  isInstall,\n  isUninstall,\n  isInstallable,\n  isUninstallable,\n  isTempAutoUpgrade\n});\n\n//# sourceURL=webpack:///./src/utils/groupPackageStatus.js?");

/***/ }),

/***/ "./src/views/GroupPackages.vue":
/*!*************************************!*\
  !*** ./src/views/GroupPackages.vue ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true& */ \"./src/views/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true&\");\n/* harmony import */ var _GroupPackages_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GroupPackages.vue?vue&type=script&lang=js& */ \"./src/views/GroupPackages.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& */ \"./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n  _GroupPackages_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  \"7f05e2c2\",\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/views/GroupPackages.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/GroupPackages.vue?");

/***/ }),

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

/***/ }),

/***/ "./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&":
/*!**********************************************************************************************!*\
  !*** ./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/vue-style-loader??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib??vue-loader-options!./GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true& */ \"./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/GroupPackages.vue?vue&type=style&index=0&id=7f05e2c2&lang=css&scoped=true&\");\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GroupPackages_vue_vue_type_style_index_0_id_7f05e2c2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n\n\n//# sourceURL=webpack:///./src/views/GroupPackages.vue?");

/***/ }),

/***/ "./src/views/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true&":
/*!********************************************************************************!*\
  !*** ./src/views/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true& ***!
  \********************************************************************************/
/*! 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_GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___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!./GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true& */ \"./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/GroupPackages.vue?vue&type=template&id=7f05e2c2&scoped=true&\");\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_GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___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_GroupPackages_vue_vue_type_template_id_7f05e2c2_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/views/GroupPackages.vue?");

/***/ })

}]);