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

/***/ "./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/Move.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/Move.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_http__WEBPACK_IMPORTED_MODULE_0__ = __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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  props: {\n    value: Boolean,\n    item: Object,\n    sources: Array\n  },\n  components: {\n    Modal: () => __webpack_require__.e(/*! import() */ 2).then(__webpack_require__.bind(null, /*! @/components/main/Modal.vue */ \"./src/components/main/Modal.vue\"))\n  },\n  data() {\n    return {\n      repoName: \"\",\n      valid: false,\n      isLoading: false,\n      selectedSource: null\n    };\n  },\n  created() {},\n  methods: {\n    async move() {\n      this.isLoading = true;\n      try {\n        await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"post\"])(`${this.item.source.url}package/move`, {\n          Id: this.item.chocoPackage.Id,\n          Version: this.item.chocoPackage.Version,\n          source: this.selectedSource\n        });\n        try {\n          await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"postApi\"])(\"delete/sourcePackage\", {\n            packageHash: this.item.chocoPackage.PackageHash,\n            packageName: this.item.chocoPackage.Id,\n            sourceUID: this.item.source.uid\n          });\n          this.$emit(\"change\", this.item);\n          this.isLoading = false;\n          this.hide();\n        } catch (err) {\n          console.log(err);\n          if (err.response.status === 401) this.$helpers.notify(\"Permission denied\", \"\", \"danger\");else this.$helpers.notify(\"Error\", \"Internal error\", \"danger\");\n        }\n      } catch (err) {\n        console.log(err);\n        if (err.response.status === 401) this.$helpers.notify(\"Permission denied\", \"\", \"danger\");else this.$helpers.notify(\"Error\", \"Internal error\", \"danger\");\n      }\n      this.isLoading = false;\n    },\n    hide() {\n      if (!this.isLoading) {\n        this.$emit(\"hide\", false);\n        this.$emit(\"input\", false);\n      }\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/repo/Move.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/Move.vue?vue&type=template&id=5e0ef9a8&":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/Move.vue?vue&type=template&id=5e0ef9a8& ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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    \"Modal\",\n    {\n      attrs: { value: _vm.value, title: \"Move package\" },\n      on: {\n        hide: function($event) {\n          return _vm.hide()\n        }\n      }\n    },\n    [\n      _c(\"template\", { staticClass: \"content\", slot: \"body\" }, [\n        _vm.item.source.permission && _vm.item.source.permission < 16\n          ? _c(\"div\", { staticClass: \"notification is-danger\" }, [\n              _vm._v(\" This action requires \"),\n              _c(\"i\", [_vm._v(\"Delete\")]),\n              _vm._v(\" permission that you currently lack. \")\n            ])\n          : _vm._e(),\n        _c(\"p\", [\n          _vm._v(\" Move \"),\n          _c(\"i\", [_vm._v(_vm._s(_vm.item.chocoPackage.Title))]),\n          _vm._v(\" from \"),\n          _c(\"i\", [_vm._v(_vm._s(_vm.item.source.name))]),\n          _vm._v(\" to the selected repository. \")\n        ]),\n        _c(\"p\", [\n          _vm._v(\n            \" This is a feature mainly for package testing, to be able to separate test repositories from production repositories. \"\n          )\n        ]),\n        _c(\"div\", { staticClass: \"notification is-warning\" }, [\n          _vm._v(\n            \" This can cause temporary synchronization conflicts for computers that is online and have this package installed/uninstalled. You can resolve this by restarting the DeploymentClient service. \"\n          )\n        ]),\n        _c(\"div\", { staticClass: \"select\" }, [\n          _c(\n            \"select\",\n            {\n              directives: [\n                {\n                  name: \"model\",\n                  rawName: \"v-model\",\n                  value: _vm.selectedSource,\n                  expression: \"selectedSource\"\n                }\n              ],\n              on: {\n                change: function($event) {\n                  var $$selectedVal = Array.prototype.filter\n                    .call($event.target.options, function(o) {\n                      return o.selected\n                    })\n                    .map(function(o) {\n                      var val = \"_value\" in o ? o._value : o.value\n                      return val\n                    })\n                  _vm.selectedSource = $event.target.multiple\n                    ? $$selectedVal\n                    : $$selectedVal[0]\n                }\n              }\n            },\n            [\n              _c(\n                \"option\",\n                { attrs: { disabled: \"\" }, domProps: { value: null } },\n                [_vm._v(\"Select new repo\")]\n              ),\n              _vm._l(\n                _vm.sources.filter(function(x) {\n                  return !x.external && x.uid !== _vm.item.source.uid\n                }),\n                function(source) {\n                  return _c(\n                    \"option\",\n                    { key: source.uid, domProps: { value: source } },\n                    [_vm._v(_vm._s(source.name))]\n                  )\n                }\n              )\n            ],\n            2\n          )\n        ])\n      ]),\n      _c(\"template\", { staticClass: \"content\", slot: \"footer\" }, [\n        !_vm.isLoading\n          ? _c(\"div\", [\n              _c(\n                \"div\",\n                {\n                  staticClass: \"button is-success\",\n                  attrs: { disabled: !_vm.selectedSource },\n                  on: {\n                    click: function($event) {\n                      return _vm.move(_vm.selectedSource)\n                    }\n                  }\n                },\n                [_vm._v(\" Move \")]\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}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/repo/Move.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/Move.vue":
/*!*******************************************!*\
  !*** ./src/components/main/repo/Move.vue ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

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

/***/ }),

/***/ "./src/components/main/repo/Move.vue?vue&type=template&id=5e0ef9a8&":
/*!**************************************************************************!*\
  !*** ./src/components/main/repo/Move.vue?vue&type=template&id=5e0ef9a8& ***!
  \**************************************************************************/
/*! 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_Move_vue_vue_type_template_id_5e0ef9a8___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!./Move.vue?vue&type=template&id=5e0ef9a8& */ \"./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/Move.vue?vue&type=template&id=5e0ef9a8&\");\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_Move_vue_vue_type_template_id_5e0ef9a8___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_Move_vue_vue_type_template_id_5e0ef9a8___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/repo/Move.vue?");

/***/ })

}]);