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

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils_packages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/packages */ \"./src/utils/packages.js\");\n/* harmony import */ var _utils_packageOdata__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/packageOdata */ \"./src/utils/packageOdata.js\");\n/* harmony import */ var _utils_http__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/http */ \"./src/utils/http.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  props: {\n    item: Object\n  },\n  computed: {\n    icon: function icon() {\n      return function (item) {\n        return item.chocoPackage.IconUrl ? item.chocoPackage.IconUrl : \"/box.png\";\n      };\n    },\n    visible: function visible() {\n      return this.items.filter(function (x) {\n        return x.visible;\n      });\n    }\n  },\n  data: function data() {\n    return {\n      show: false,\n      loading: false,\n      items: []\n    };\n  },\n  created: function created() {},\n  methods: {\n    getPackage: function getPackage(item, otherVersionItem) {\n      var _this = this;\n      return Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              _this.$emit(\"change\", otherVersionItem);\n              _this.show = false;\n            case 2:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee);\n      }))();\n    },\n    getPackageVersions: function getPackageVersions(item, nameAndVersion, force) {\n      var _this2 = this;\n      return Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n        var chocoResult;\n        return regeneratorRuntime.wrap(function _callee2$(_context2) {\n          while (1) switch (_context2.prev = _context2.next) {\n            case 0:\n              if (!(force || _this2.items.length === 0)) {\n                _context2.next = 6;\n                break;\n              }\n              _this2.loading = true;\n              _context2.next = 4;\n              return Object(_utils_http__WEBPACK_IMPORTED_MODULE_8__[\"postApi\"])(\"choco/packages\", {\n                query: _utils_packageOdata__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getPackageSearchString(_this2.item.chocoPackage.Id, 10, _this2.items.length),\n                source: item.source\n              });\n            case 4:\n              chocoResult = _context2.sent;\n              _this2.items = Object(_utils_packages__WEBPACK_IMPORTED_MODULE_6__[\"orderByVersion\"])([].concat(Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_this2.items), Object(C_Users_oscar_jartoft_Documents_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(chocoResult.packages)));\n            case 6:\n              _this2.showVersions();\n              _this2.loading = false;\n            case 8:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2);\n      }))();\n    },\n    showVersions: function showVersions() {\n      this.show = true;\n      document.addEventListener(\"click\", this.hideVersions);\n    },\n    hideVersions: function hideVersions() {\n      this.show = false;\n      document.removeEventListener(\"click\", this.hideVersions);\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/repo/Versions.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _vm.items\n    ? _c(\n        \"div\",\n        {\n          staticClass: \"dropdown\",\n          class: { \"is-active\": _vm.show },\n          attrs: { name: \"version-dropdown\" }\n        },\n        [\n          _c(\"div\", { staticClass: \"dropdown-trigger\" }, [\n            _c(\n              \"a\",\n              {\n                staticClass: \"button is-small smaller no-border\",\n                class: {\n                  \"is-loading\": _vm.loading\n                },\n                attrs: {\n                  \"aria-haspopup\": \"true\",\n                  \"aria-controls\": \"dropdown-menu\"\n                },\n                on: {\n                  click: function($event) {\n                    $event.stopPropagation()\n                    return _vm.getPackageVersions(\n                      _vm.item,\n                      _vm.item.chocoPackage.Version\n                    )\n                  }\n                }\n              },\n              [\n                _c(\"span\", [_vm._v(_vm._s(_vm.item.chocoPackage.Version))]),\n                !_vm.show\n                  ? _c(\"span\", { staticClass: \"icon is-small\" }, [\n                      _c(\"i\", {\n                        staticClass: \"mdi mdi-chevron-down\",\n                        attrs: { \"aria-hidden\": \"true\" }\n                      })\n                    ])\n                  : _vm._e()\n              ]\n            )\n          ]),\n          _c(\n            \"div\",\n            {\n              staticClass: \"dropdown-menu\",\n              attrs: { id: \"dropdown-menu\", role: \"menu\" }\n            },\n            [\n              _c(\n                \"div\",\n                { staticClass: \"dropdown-content\" },\n                [\n                  _vm._l(_vm.items, function(otherVersionItem) {\n                    return _c(\n                      \"a\",\n                      {\n                        key: otherVersionItem.chocoPackage.PackageHash,\n                        staticClass: \"dropdown-item is-small\",\n                        on: {\n                          click: function($event) {\n                            return _vm.getPackage(_vm.item, otherVersionItem)\n                          }\n                        }\n                      },\n                      [_vm._v(_vm._s(otherVersionItem.chocoPackage.Version))]\n                    )\n                  }),\n                  _c(\n                    \"a\",\n                    {\n                      staticClass:\n                        \"dropdown-item has-text-centered has-text-link margin-top-5 is-unselectable\",\n                      attrs: { ignore: \"true\", disabled: _vm.loading },\n                      on: {\n                        click: function($event) {\n                          $event.stopPropagation()\n                          return _vm.getPackageVersions(\n                            _vm.item,\n                            _vm.item.chocoPackage.Version,\n                            true\n                          )\n                        }\n                      }\n                    },\n                    [\n                      _vm._v(\" \" + _vm._s(!_vm.loading ? \"More\" : \"\") + \" \"),\n                      _vm.item\n                        ? _c(\"span\", {\n                            staticClass: \"margin-left\",\n                            class: {\n                              \"spinner small margin\": _vm.loading\n                            }\n                          })\n                        : _vm._e()\n                    ]\n                  )\n                ],\n                2\n              )\n            ]\n          )\n        ]\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/repo/Versions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2260671cf1-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

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

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

/***/ }),

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

/***/ }),

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

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

/***/ })

}]);