((typeof self !== 'undefined' ? self : this)["webpackJsonpportal_management_std"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpportal_management_std"] || []).push([[64],{

/***/ "131b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LayoutConfig_vue_vue_type_style_index_0_id_80774b92_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3b44");
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LayoutConfig_vue_vue_type_style_index_0_id_80774b92_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LayoutConfig_vue_vue_type_style_index_0_id_80774b92_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "2b76":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return treeToOneArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return generateGUID; });
/* unused harmony export base64ToBase32 */
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2909");
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e260");
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("14d9");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("c19f");
/* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ace4");
/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("2c66");
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("249d");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("40e9");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("ac1f");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("25f0");
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("5319");
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_typed_array_uint8_array_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("5cc6");
/* harmony import */ var core_js_modules_es_typed_array_uint8_array_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_uint8_array_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("907a");
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("9a8c");
/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("a975");
/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("735e");
/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("c1ac");
/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("d139");
/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("3a7b");
/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("986a");
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("1d02");
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("d5d6");
/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("82f8");
/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("e91f");
/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_24__);
/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("60bd");
/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("5f96");
/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("3280");
/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_27__);
/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("3fcc");
/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_28__);
/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("ca91");
/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_29__);
/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("25a1");
/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_30__);
/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("cd26");
/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_31__);
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("3c5d");
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_32__);
/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("2954");
/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_33__);
/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("649e");
/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_34__);
/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("219c");
/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_35__);
/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("170b");
/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_36__);
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("b39a");
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_37__);
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("6ce5");
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_38__);
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("2834");
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_39__);
/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("72f7");
/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_40___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_40__);
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("4ea1");
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_41__);
/* harmony import */ var core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("81b2");
/* harmony import */ var core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_42__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("159b");
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_43__);
/* harmony import */ var core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__("0eb6");
/* harmony import */ var core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_44___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_44__);
/* harmony import */ var core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__("b7ef");
/* harmony import */ var core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_45__);
/* harmony import */ var core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__("8bd4");
/* harmony import */ var core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_46__);















































// 数组转一维数组
function treeToOneArray(treeData, key) {
  var flattenList = [];
  _.forEach(treeData, function (item) {
    var cloneItem = _.cloneDeep(item);
    delete cloneItem[key];
    flattenList.push(cloneItem);
    if (_.isArray(item[key])) {
      var flattenChildren = treeToOneArray(item[key], key);
      flattenList.push.apply(flattenList, Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(flattenChildren));
    }
  });
  return flattenList;
}
// 生成guid
function generateGUID() {
  var d = new Date().getTime();
  if (window.performance && typeof window.performance.now === 'function') {
    d += performance.now();
  }
  var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
    var r = (d + Math.random() * 16) % 16 | 0;
    d = Math.floor(d / 16);
    return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
  });
  return guid;
}
// base64转base32
function base64ToBase32(base64String) {
  var decodedString = atob(base64String);
  var byteArray = new Uint8Array(decodedString.length);
  for (var i = 0; i < decodedString.length; i += 1) {
    byteArray[i] = decodedString.charCodeAt(i);
  }
  var base32Alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
  var base32String = '';
  var bits = 0;
  var value = 0;
  for (var _i = 0; _i < byteArray.length; _i += 1) {
    value = value << 8 | byteArray[_i];
    bits += 8;
    while (bits >= 5) {
      base32String += base32Alphabet[value >>> bits - 5 & 0x1F];
      bits -= 5;
    }
  }
  if (bits > 0) {
    base32String += base32Alphabet[value << 5 - bits & 0x1F];
  }
  return "".concat(base32String, "====");
}
/* unused harmony default export */ var _unused_webpack_default_export = (null);

/***/ }),

/***/ "3b44":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("d642");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("9dda74ac", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "d642":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, ".grid-item[data-v-80774b92]{border:1px solid var(--lineBorderColor)}#gridContent[data-v-80774b92]  .el-card__body{background-image:linear-gradient(90deg,var(--lineBorderColor) 1px,transparent 0),linear-gradient(180deg,var(--lineBorderColor) 1px,transparent 0);background-repeat:repeat}[data-v-80774b92] .vue-grid-item>.vue-resizable-handle{z-index:10}", ""]);

// exports


/***/ }),

/***/ "e2d8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return listType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hyperLinksType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return topicType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return videoType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return bannnerType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return imageFitType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return dropdownComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return informationPublishMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return loginType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return postType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return layoutTypeData; });
var listType = [{
  name: '样式1',
  value: 'NewsOne'
}, {
  name: '样式2',
  value: 'NewsTwo'
}, {
  name: '样式3',
  value: 'NewsThree'
}, {
  name: '样式4',
  value: 'NewsFour'
}];
var hyperLinksType = [{
  name: '跳转链接',
  value: 'URLHref'
}, {
  name: '嵌套展示',
  value: 'URLIframe'
}];
var topicType = [{
  name: '样式1',
  value: 'HorizontalImageWall'
}, {
  name: '样式2',
  value: 'VerticalImageWall'
}];
var videoType = [{
  name: '样式1',
  value: 'NewsVideo'
}, {
  name: '样式2',
  value: 'NewsVideoTwo'
}];
var bannnerType = [{
  name: '横向',
  value: 'BannerLong'
}, {
  name: '纵向',
  value: 'BannerShort'
}];
var imageFitType = [{
  name: '拉伸铺满',
  value: 'fill'
}, {
  name: '等比缩放',
  value: 'contain'
}];
// 组件管理类型
var dropdownComponent = [{
  value: 0,
  label: 'banner'
}, {
  value: 1,
  label: '飘窗'
}, {
  value: 2,
  label: '轮播图'
}, {
  value: 3,
  label: '专题'
}, {
  value: 4,
  label: '超链接'
}];
// 信息发布模块
var informationPublishMap = {
  column: {
    columnText: 1,
    // 文字栏目
    columnImgText: 2,
    // 图文栏目
    columnVideo: 3,
    // 视频栏目
    columnFromThird: 2 // 外网栏目
  },
  columnSource: {
    columnFromThird: 2 // 外网栏目
  },
  component: {
    banner: dropdownComponent[0].value,
    // banner
    popup: dropdownComponent[1].value,
    // 飘窗
    carouse: dropdownComponent[2].value,
    // 轮播图
    topic: dropdownComponent[3].value,
    // 专题
    hyperlink: dropdownComponent[4].value // 超链接
  }
};
// 应用系统登录方式
var loginType = [{
  value: 0,
  label: '直接跳转'
}, {
  value: 3,
  label: 'auth2.0'
}, {
  value: 1,
  label: '账号登录',
  sso: true
}, {
  value: 2,
  label: '账号密码登录',
  password: true,
  sso: true
}];
// 应用系统请求方式 val 为2 则无需请求方式
var postType = [{
  value: 0,
  label: 'get'
}, {
  value: 1,
  label: 'post'
}, {
  value: 2,
  label: 'form表单get提交'
}, {
  value: 3,
  label: 'form表单post提交'
}];
// 布局方式
var layoutTypeData = [{
  value: 0,
  label: '自定义布局'
}, {
  value: 1,
  label: '自动布局'
}];
// 门户布局组件类型
/* harmony default export */ __webpack_exports__["b"] = ([
// {
//   name: '导航栏',
//   code: 'E001',
//   config: {
//     componentName: 'NavigationBar',
//     configName: 'NavigationBarConfig',
//     isDraggable: false,
//     w: 1180,
//     h: 1,
//   }
// },
{
  name: '列表',
  code: 'E001',
  config: {
    componentName: 'NewsTwo',
    configName: 'NewsConfig',
    isDraggable: true,
    isResizable: true,
    w: 380,
    h: 200
  }
}, {
  name: '飘窗',
  code: 'E002',
  config: {
    componentName: 'BayWindow',
    configName: 'BayWindowConfig',
    isDraggable: true,
    isResizable: true,
    w: 380,
    h: 200,
    type: 1
  }
}, {
  name: '超链接',
  code: 'E003',
  config: {
    componentName: 'URLHref',
    configName: 'HyperLinksConfig',
    isDraggable: true,
    isResizable: true,
    w: 1180,
    h: 100,
    type: 4
  }
}, {
  name: '专题',
  code: 'E004',
  config: {
    componentName: 'HorizontalImageWall',
    configName: 'TopicConfig',
    isDraggable: true,
    isResizable: true,
    w: 380,
    h: 240,
    type: 3
  }
}, {
  name: '轮播图',
  code: 'E005',
  config: {
    componentName: 'Carousel',
    configName: 'CarouselConfig',
    isDraggable: true,
    isResizable: true,
    w: 380,
    h: 240,
    type: 2
  }
}, {
  name: '滚动图窗',
  code: 'E006',
  config: {
    componentName: 'ImageNewsTwo',
    configName: 'ImageNewsConfig',
    isDraggable: true,
    isResizable: true,
    w: 760,
    h: 240,
    type: 2
  }
}, {
  name: '视频列表',
  code: 'E007',
  config: {
    componentName: 'NewsVideo',
    configName: 'NewsVideoConfig',
    isDraggable: true,
    isResizable: true,
    w: 760,
    h: 240,
    type: 3
  }
}, {
  name: '图片列表',
  code: 'E008',
  config: {
    componentName: 'ImageNews',
    configName: 'NewsImageConfig',
    isDraggable: true,
    isResizable: true,
    w: 760,
    h: 240,
    type: 2
  }
}, {
  name: 'html',
  code: 'E010',
  config: {
    componentName: 'NewsHtml',
    configName: 'NewsHtmlConfig',
    isDraggable: true,
    isResizable: true,
    w: 1180,
    h: 350,
    type: 1
  }
}, {
  name: 'banner',
  code: 'E009',
  config: {
    componentName: 'BannerLong',
    configName: 'BannerConfig',
    isDraggable: true,
    isResizable: true,
    w: 1180,
    h: 150,
    type: 0
  }
}, {
  name: '面包屑导航',
  code: 'E0010',
  config: {
    componentName: 'Breadcrumb',
    configName: '',
    isDraggable: true,
    isResizable: true,
    w: 1180,
    h: 18
  }
}]);

/***/ }),

/***/ "ecef":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return h5TopicType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return h5NewsImageType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return h5NewsVideoType; });
var h5TopicType = [{
  name: '样式1',
  value: 'H5HorizontalImageWall'
}, {
  name: '样式2',
  value: 'H5VerticalImageWall'
}];
var h5NewsImageType = [{
  name: '横向',
  value: 'H5HorizontalNewsImageList'
}, {
  name: '纵向',
  value: 'H5VerticalNewsImageList'
}];
var h5NewsVideoType = [{
  name: '横向',
  value: 'H5HorizontalNewsVideoList'
}, {
  name: '纵向',
  value: 'H5VerticalNewsVideoList'
}];
/* harmony default export */ __webpack_exports__["a"] = ([{
  name: '导航栏',
  code: 'E0011',
  config: {
    componentName: 'AppNavigation',
    configName: 'AppNavigationBarConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 50
  }
}, {
  name: '列表',
  code: 'E0012',
  config: {
    componentName: 'AppList',
    configName: 'AppListConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 400
  }
}, {
  name: '专题',
  code: 'E0012',
  config: {
    componentName: 'H5HorizontalImageWall',
    configName: 'H5TopicConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 400,
    type: 3
  }
}, {
  name: 'banner',
  code: 'E0015',
  config: {
    componentName: 'H5BannerLong',
    configName: 'H5BannerConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 200,
    type: 0
  }
}, {
  name: '图片列表',
  code: 'E0016',
  config: {
    componentName: 'H5HorizontalNewsImageList',
    configName: 'H5NewsImageConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 400,
    type: 2
  }
}, {
  name: '视频列表',
  code: 'E0017',
  config: {
    componentName: 'H5HorizontalNewsVideoList',
    configName: 'H5NewsVideoConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 400,
    type: 3
  }
}, {
  name: '轮播图',
  code: 'E0013',
  config: {
    componentName: 'AppCarousel',
    configName: 'AppCarouselConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 240,
    type: 2
  }
}, {
  name: '下拉加载',
  code: 'E0014',
  config: {
    componentName: 'AppLoadMore',
    configName: 'AppLoadMoreConfig',
    isDraggable: true,
    isResizable: true,
    w: 375,
    h: 400
  }
}]);

/***/ }),

/***/ "ef29":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"29850416-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!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/portal-management/views/portal-config/LayoutConfig.vue?vue&type=template&id=80774b92&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showLayout)?_c('div',{staticClass:"h-full relative"},[_c('el-card',{staticClass:"h-[calc(100%-66px)] absolute !overflow-visible p-20px left-0 top-66px z-20",class:_vm.leftVisible ? 'w-300px' : 'w-0px !p-0',attrs:{"body-style":{ height: '100%', padding: '0px', overflow: 'hidden' }}},[_c('div',{staticClass:"iconfont icon-line-left absolute -right-24px top-60px bg-hex-$buttonPrimaryBg h-24px w-24px text-hex-$colorLumpText !leading-24px cursor-pointer text-center text-12px z-10",on:{"click":_vm.setLeftVisible}}),_c('div',[_c('span',{staticClass:"border-l-3 border-color-primary pl-10px text-18px"},[_vm._v("组件类型")])]),_c('div',{staticClass:"flex mt-10px mb-10px"},[_c('el-input',{staticClass:"flex-1 mr-10px",attrs:{"clearable":"","placeholder":"组件名称","prefix-icon":"el-icon-search"},model:{value:(_vm.treeKeyword),callback:function ($$v) {_vm.treeKeyword=$$v},expression:"treeKeyword"}}),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.$refs.tree.filter(_vm.treeKeyword)}}},[_vm._v("搜索")])],1),_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.treeLoading),expression:"treeLoading"}],ref:"tree",staticClass:"h-[calc(100%-77px)] overflow-y-auto",attrs:{"data":_vm.treeData,"props":{
        label: 'name',
      },"highlight-current":"","node-key":"id","filter-node-method":_vm.filterTree},scopedSlots:_vm._u([{key:"default",fn:function(ref){
      var node = ref.node;
      var data = ref.data;
return _c('div',{staticClass:"w-full truncate",attrs:{"draggable":"true"},on:{"drag":function($event){return _vm.drag(data)},"dragend":function($event){return _vm.dragend(data)}}},[_vm._v("\n        "+_vm._s(node.label)+"\n      ")])}}],null,false,1013578930)})],1),_c('div',{staticClass:"relative h-full"},[_c('el-card',{attrs:{"body-style":{ padding: '10px' }}},[_c('div',{staticClass:"flex justify-between items-center"},[_c('div',{staticClass:"border-l-3 border-color-primary pl-10px text-18px h-24px leading-24px"},[_vm._v("\n          "+_vm._s(_vm.layoutName)+"布局\n        ")]),_c('div',[(_vm.queryMode !== 'read' && _vm.layoutType !== '1' && _vm.isHomeColumn !== '1')?_c('el-button',{staticClass:"iconfont icon-save",attrs:{"type":"primary","size":"medium"},on:{"click":_vm.autoLayout}},[_vm._v("自动布局")]):_vm._e(),(_vm.queryMode !== 'read')?_c('el-button',{staticClass:"iconfont icon-save",attrs:{"type":"primary","size":"medium","loading":_vm.saveLoading},on:{"click":_vm.save}},[_vm._v("保存")]):_vm._e(),_c('el-button',{staticClass:"ml-20px",attrs:{"size":"small"},on:{"click":_vm.backup}},[_vm._v("返回")])],1)])]),_c('div',{staticClass:"h-[calc(100%-66px)] mt-10px relative",attrs:{"id":"gridContainer"},on:{"click":function($event){$event.stopPropagation();return _vm.layoutClick($event)}}},[_c('el-card',{staticClass:"h-full",class:_vm.layoutType === '1' ? 'w-375px m-x-auto' : '',attrs:{"body-style":{
          padding: '0px',
          height: '100%',
          overflow: 'hidden auto',
          backgroundSize: ((_vm.layoutDetail.gridSize) + "px " + (_vm.layoutDetail.gridSize) + "px"),
        },"id":"gridContent"}},[_c('grid-layout',{ref:"gridlayout",staticStyle:{"touch-action":"none"},attrs:{"layout":_vm.layout,"col-num":_vm.defaultParams.colNum,"row-height":_vm.defaultParams.rowHeight,"is-draggable":_vm.queryMode === 'read' ? false : _vm.defaultParams.isDraggable,"is-resizable":_vm.queryMode === 'read' ? false : _vm.defaultParams.isResizable,"vertical-compact":_vm.defaultParams.verticalCompact,"margin":_vm.defaultParams.margin,"use-css-transforms":true,"preventCollision":_vm.defaultParams.preventCollision},on:{"update:layout":function($event){_vm.layout=$event}}},_vm._l((_vm.layout),function(item){return _c('grid-item',{key:item.i,class:{
              'z-10': item.component === 'BayWindow' || item.component === 'NavigationBar',
            },attrs:{"x":item.x,"y":item.y,"w":item.w,"h":item.h,"i":item.i,"is-draggable":_vm.queryMode === 'read' ? false : item.isDraggable,"is-resizable":_vm.queryMode === 'read' ? false : item.isResizable},on:{"moved":_vm.gridItemMoved}},[_c('div',{staticClass:"h-full",style:({
                paddingTop: _vm.layoutType === '0' ? '0' : '12px',
              })},[_c('div',{staticClass:"h-full relative bg-hex-$contentBgColor",class:{
                  'grid-item': _vm.layoutType === '0',
                },on:{"click":function($event){return _vm.clickGridItem(item)}}},[(item.component !== 'NavigationBar')?_c('span',{staticClass:"iconfont icon-line-delete absolute right-0 top-0 z-10 cursor-pointer bg-hex-$portalPrimaryColor text-hex-$portalPrimaryTextColor px-5px",on:{"click":function($event){$event.stopPropagation();return _vm.deleteLayoutItem(item)}}}):_vm._e(),_c(item.component,{ref:item.i,refInFor:true,tag:"component",attrs:{"i":item.i,"data":item.data,"mode":"update"},on:{"changeLayout":_vm.changeLayout}})],1)])])}),1)],1)],1)],1),_c('el-card',{staticClass:"h-[calc(100%-66px)] absolute !overflow-visible p-20px right-0 top-66px z-20",class:_vm.rightVisible ? 'w-300px' : 'w-0px !p-0',attrs:{"body-style":{ height: '100%', padding: '0px', overflow: 'hidden' }}},[_c('div',{staticClass:"iconfont icon-line-right absolute -left-24px top-60px bg-hex-$buttonPrimaryBg h-24px w-24px text-hex-$colorLumpText !leading-24px cursor-pointer text-center text-12px z-10",on:{"click":_vm.setRightVisible}}),_c('div',[_c('span',{staticClass:"border-l-3 border-color-primary flex-1 pl-10px text-18px"},[_vm._v("展示设置")])]),_c('div',{staticClass:"h-[calc(100%-34px)] mt-10px overflow-y-auto overflow-x-hidden"},[_c(_vm.configComponent,{tag:"component",attrs:{"configData":_vm.currentItem.data,"layoutData":_vm.currentItem,"mode":_vm.queryMode === 'read' ? 'view' : 'update',"layoutWidth":_vm.defaultParams.colNum,"layout":_vm.layout},on:{"configChange":_vm.configChange,"layoutChange":_vm.layoutChange,"globalChange":_vm.globalChange}})],1)])],1):_vm._e()}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/portal-management/views/portal-config/LayoutConfig.vue?vue&type=template&id=80774b92&scoped=true

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__("c7eb");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
var slicedToArray = __webpack_require__("3835");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("1da1");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js + 1 modules
var objectSpread2 = __webpack_require__("5530");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.at.js
var es_array_at = __webpack_require__("33d1");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
var es_array_filter = __webpack_require__("4de4");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__("7db0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__("c740");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("caad");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__("d81d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__("14d9");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
var es_json_stringify = __webpack_require__("e9c4");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
var es_object_keys = __webpack_require__("b64b");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.at-alternative.js
var es_string_at_alternative = __webpack_require__("ea98");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("2532");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
var es_string_replace = __webpack_require__("5319");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");

// EXTERNAL MODULE: ./node_modules/vue-grid-layout/dist/vue-grid-layout.common.js
var vue_grid_layout_common = __webpack_require__("7be8");
var vue_grid_layout_common_default = /*#__PURE__*/__webpack_require__.n(vue_grid_layout_common);

// EXTERNAL MODULE: ./node_modules/@wiz-api/workbench-std/lib/workbench-std.umd.js
var workbench_std_umd = __webpack_require__("78a9");

// EXTERNAL MODULE: ./src/assets/js/Common.js
var Common = __webpack_require__("2b76");

// EXTERNAL MODULE: ./src/modules/portal-management/js/config.js
var config = __webpack_require__("e2d8");

// EXTERNAL MODULE: ./src/modules/portal-management/js/appConfig.js
var appConfig = __webpack_require__("ecef");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__("e260");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
var es_promise = __webpack_require__("e6cf");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__("3ca3");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__("ddb0");

// CONCATENATED MODULE: ./src/modules/portal-management/js/exportComponents.js





/* harmony default export */ var exportComponents = ({
  // pc
  NavigationBar: function NavigationBar() {
    return __webpack_require__.e(/* import() */ 82).then(__webpack_require__.bind(null, "0aea"));
  },
  NavigationBarConfig: function NavigationBarConfig() {
    return __webpack_require__.e(/* import() */ 111).then(__webpack_require__.bind(null, "ca3b"));
  },
  NewsOne: function NewsOne() {
    return __webpack_require__.e(/* import() */ 54).then(__webpack_require__.bind(null, "113e"));
  },
  NewsTwo: function NewsTwo() {
    return __webpack_require__.e(/* import() */ 55).then(__webpack_require__.bind(null, "5c06"));
  },
  NewsThree: function NewsThree() {
    return __webpack_require__.e(/* import() */ 66).then(__webpack_require__.bind(null, "6978"));
  },
  NewsFour: function NewsFour() {
    return __webpack_require__.e(/* import() */ 53).then(__webpack_require__.bind(null, "4387"));
  },
  NewsConfig: function NewsConfig() {
    return __webpack_require__.e(/* import() */ 60).then(__webpack_require__.bind(null, "edf2"));
  },
  BayWindow: function BayWindow() {
    return __webpack_require__.e(/* import() */ 93).then(__webpack_require__.bind(null, "e7a4"));
  },
  BayWindowConfig: function BayWindowConfig() {
    return __webpack_require__.e(/* import() */ 104).then(__webpack_require__.bind(null, "e7e8"));
  },
  URLHref: function URLHref() {
    return __webpack_require__.e(/* import() */ 74).then(__webpack_require__.bind(null, "7cba"));
  },
  URLIframe: function URLIframe() {
    return __webpack_require__.e(/* import() */ 94).then(__webpack_require__.bind(null, "a647"));
  },
  HyperLinksConfig: function HyperLinksConfig() {
    return __webpack_require__.e(/* import() */ 106).then(__webpack_require__.bind(null, "b2d7"));
  },
  HorizontalImageWall: function HorizontalImageWall() {
    return __webpack_require__.e(/* import() */ 75).then(__webpack_require__.bind(null, "75bc"));
  },
  VerticalImageWall: function VerticalImageWall() {
    return __webpack_require__.e(/* import() */ 78).then(__webpack_require__.bind(null, "d8c7"));
  },
  TopicConfig: function TopicConfig() {
    return __webpack_require__.e(/* import() */ 110).then(__webpack_require__.bind(null, "0dc8"));
  },
  Carousel: function Carousel() {
    return __webpack_require__.e(/* import() */ 73).then(__webpack_require__.bind(null, "dd82"));
  },
  CarouselConfig: function CarouselConfig() {
    return __webpack_require__.e(/* import() */ 105).then(__webpack_require__.bind(null, "27ef"));
  },
  ImageNews: function ImageNews() {
    return __webpack_require__.e(/* import() */ 76).then(__webpack_require__.bind(null, "03e5"));
  },
  ImageNewsTwo: function ImageNewsTwo() {
    return __webpack_require__.e(/* import() */ 77).then(__webpack_require__.bind(null, "f80d"));
  },
  ImageNewsConfig: function ImageNewsConfig() {
    return __webpack_require__.e(/* import() */ 107).then(__webpack_require__.bind(null, "b6b6"));
  },
  NewsVideo: function NewsVideo() {
    return __webpack_require__.e(/* import() */ 79).then(__webpack_require__.bind(null, "cf95"));
  },
  NewsVideoTwo: function NewsVideoTwo() {
    return __webpack_require__.e(/* import() */ 67).then(__webpack_require__.bind(null, "daa9"));
  },
  NewsVideoConfig: function NewsVideoConfig() {
    return __webpack_require__.e(/* import() */ 109).then(__webpack_require__.bind(null, "c6ea"));
  },
  NewsImageConfig: function NewsImageConfig() {
    return __webpack_require__.e(/* import() */ 108).then(__webpack_require__.bind(null, "178c"));
  },
  BannerLong: function BannerLong() {
    return __webpack_require__.e(/* import() */ 92).then(__webpack_require__.bind(null, "a304"));
  },
  BannerConfig: function BannerConfig() {
    return __webpack_require__.e(/* import() */ 103).then(__webpack_require__.bind(null, "454b"));
  },
  NewsHtml: function NewsHtml() {
    return Promise.all(/* import() */[__webpack_require__.e(6), __webpack_require__.e(80)]).then(__webpack_require__.bind(null, "6958"));
  },
  NewsHtmlConfig: function NewsHtmlConfig() {
    return __webpack_require__.e(/* import() */ 61).then(__webpack_require__.bind(null, "3e77"));
  },
  GlobalConfig: function GlobalConfig() {
    return __webpack_require__.e(/* import() */ 114).then(__webpack_require__.bind(null, "ceef"));
  },
  Breadcrumb: function Breadcrumb() {
    return __webpack_require__.e(/* import() */ 113).then(__webpack_require__.bind(null, "bd9b"));
  },
  // app
  AppNavigationBarConfig: function AppNavigationBarConfig() {
    return __webpack_require__.e(/* import() */ 96).then(__webpack_require__.bind(null, "394f"));
  },
  AppNewsConfig: function AppNewsConfig() {
    return __webpack_require__.e(/* import() */ 59).then(__webpack_require__.bind(null, "b96b"));
  },
  AppCarouselConfig: function AppCarouselConfig() {
    return __webpack_require__.e(/* import() */ 98).then(__webpack_require__.bind(null, "fa87"));
  },
  H5BannerConfig: function H5BannerConfig() {
    return __webpack_require__.e(/* import() */ 99).then(__webpack_require__.bind(null, "0006"));
  },
  H5NewsImageConfig: function H5NewsImageConfig() {
    return __webpack_require__.e(/* import() */ 100).then(__webpack_require__.bind(null, "80d3"));
  },
  H5NewsVideoConfig: function H5NewsVideoConfig() {
    return __webpack_require__.e(/* import() */ 101).then(__webpack_require__.bind(null, "5701"));
  },
  H5TopicConfig: function H5TopicConfig() {
    return __webpack_require__.e(/* import() */ 102).then(__webpack_require__.bind(null, "3391"));
  },
  H5HorizontalImageWall: function H5HorizontalImageWall() {
    return __webpack_require__.e(/* import() */ 70).then(__webpack_require__.bind(null, "f488"));
  },
  H5VerticalImageWall: function H5VerticalImageWall() {
    return __webpack_require__.e(/* import() */ 72).then(__webpack_require__.bind(null, "7f25"));
  },
  H5BannerLong: function H5BannerLong() {
    return __webpack_require__.e(/* import() */ 91).then(__webpack_require__.bind(null, "e373"));
  },
  H5HorizontalNewsVideoList: function H5HorizontalNewsVideoList() {
    return __webpack_require__.e(/* import() */ 65).then(__webpack_require__.bind(null, "d439"));
  },
  H5VerticalNewsVideoList: function H5VerticalNewsVideoList() {
    return __webpack_require__.e(/* import() */ 14).then(__webpack_require__.bind(null, "4cfe"));
  },
  H5HorizontalNewsImageList: function H5HorizontalNewsImageList() {
    return __webpack_require__.e(/* import() */ 71).then(__webpack_require__.bind(null, "942a"));
  },
  H5VerticalNewsImageList: function H5VerticalNewsImageList() {
    return __webpack_require__.e(/* import() */ 15).then(__webpack_require__.bind(null, "cdf1"));
  },
  AppCarousel: function AppCarousel() {
    return __webpack_require__.e(/* import() */ 69).then(__webpack_require__.bind(null, "0b43c"));
  },
  AppList: function AppList() {
    return __webpack_require__.e(/* import() */ 13).then(__webpack_require__.bind(null, "83f2"));
  },
  AppListConfig: function AppListConfig() {
    return __webpack_require__.e(/* import() */ 57).then(__webpack_require__.bind(null, "c462"));
  },
  AppNavigation: function AppNavigation() {
    return __webpack_require__.e(/* import() */ 87).then(__webpack_require__.bind(null, "6aa9"));
  },
  AppLoadMoreConfig: function AppLoadMoreConfig() {
    return __webpack_require__.e(/* import() */ 58).then(__webpack_require__.bind(null, "9cc4"));
  },
  AppLoadMore: function AppLoadMore() {
    return __webpack_require__.e(/* import() */ 112).then(__webpack_require__.bind(null, "203b"));
  }
});
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--12-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/portal-management/views/portal-config/LayoutConfig.vue?vue&type=script&lang=js




















//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//







var columnPageApi = new workbench_std_umd["ColumnPageApi"]();
var systemSettingApi = new workbench_std_umd["SystemSettingApi"]();
var mouseXY = {
  x: null,
  y: null
};
var defaultMouseXY = {
  x: null,
  y: null
};
var DragPos = {
  x: null,
  y: null,
  w: 1,
  h: 1,
  i: null
};
/* harmony default export */ var LayoutConfigvue_type_script_lang_js = ({
  name: 'layoutConfig',
  components: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, exportComponents), {}, {
    GridLayout: vue_grid_layout_common_default.a.GridLayout,
    GridItem: vue_grid_layout_common_default.a.GridItem
  }),
  data: function data() {
    return {
      showLayout: false,
      saveLoading: false,
      treeKeyword: '',
      treeData: config["b" /* default */],
      treeLoading: false,
      leftVisible: true,
      rightVisible: true,
      layout: [{
        x: (window.innerWidth - 1180) / 2,
        y: 0,
        w: 1180,
        h: 50,
        i: '0',
        isDraggable: false,
        isResizable: false,
        component: 'NavigationBar',
        configComps: 'NavigationBarConfig',
        data: {}
      } // 默认显示导航
      ],
      // layout数据
      defaultParams: {
        rowHeight: 1,
        colNum: window.innerWidth,
        isDraggable: true,
        isResizable: true,
        margin: [0, 0],
        verticalCompact: false,
        preventCollision: true
      },
      // layout配置
      configComponent: '',
      // 展示设置组件
      currentItem: {},
      // 当前layout项
      layoutDetail: {
        gridSize: 10,
        windowWidth: window.innerWidth
      }
    };
  },
  computed: {
    // 当前表单类型
    queryMode: function queryMode() {
      return this.$route.query.type;
    },
    // 栏目id
    columnId: function columnId() {
      return this.$route.query.columnId;
    },
    // 数据id
    id: function id() {
      return this.$route.query.id;
    },
    // 布局类型 0:PC 1:APP
    layoutType: function layoutType() {
      return this.$route.query.layoutType;
    },
    // 是否首页栏目 0:否 1:是
    isHomeColumn: function isHomeColumn() {
      return this.$route.query.isHomeColumn;
    },
    // 布局名称
    layoutName: function layoutName() {
      return this.$route.query.name;
    },
    routerBase: function routerBase() {
      if (window.__POWERED_BY_QIANKUN__) {
        return "/".concat(_.get(Wiz, 'globalSettings.globalConfig.routerBase'));
      }
      return '';
    }
  },
  methods: {
    getSystemSetting: function getSystemSetting() {
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$systemSettingA, _yield$systemSettingA2, err, res, currentTheme, ele, mainColor, rootStyle, root, systemColor;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return systemSettingApi.getSystemSetting();
            case 2:
              _yield$systemSettingA = _context.sent;
              _yield$systemSettingA2 = Object(slicedToArray["a" /* default */])(_yield$systemSettingA, 2);
              err = _yield$systemSettingA2[0];
              res = _yield$systemSettingA2[1];
              if (err) {
                _context.next = 18;
                break;
              }
              currentTheme = Wiz.globalSettings.layout.config.defaultTheme;
              ele = document.querySelector(".".concat(currentTheme));
              mainColor = null;
              if (ele) {
                rootStyle = getComputedStyle(document.querySelector(".".concat(currentTheme)));
                mainColor = rootStyle.getPropertyValue('--systemMainColor');
              }
              root = document.querySelector(':root');
              systemColor = res === null || res === void 0 ? void 0 : res.systemColor;
              if (!(!systemColor && !mainColor)) {
                _context.next = 15;
                break;
              }
              return _context.abrupt("return");
            case 15:
              root.style.setProperty('--portalPrimaryColor', systemColor || mainColor);
              root.style.setProperty('--portalPrimaryBgColor', "".concat(systemColor, "14") || false);
              localStorage.setItem('portalPrimaryColor', systemColor || "".concat(mainColor));
            case 18:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    changeLayout: function changeLayout(_ref) {
      var height = _ref.height,
        i = _ref.i;
      this.layout.forEach(function (item) {
        if (item.i === i) {
          item.h = height + 12;
        }
      });
      this.$refs.gridlayout.layoutUpdate();
    },
    layoutClick: function layoutClick(e) {
      // 判断是否点击空白处
      if (e.target.className === 'vue-grid-layout') {
        this.configComponent = 'GlobalConfig';
        this.currentItem = {
          data: {
            gridSize: this.layoutDetail.gridSize
          }
        };
      }
    },
    // 获取配置详情
    getLayoutDetail: function getLayoutDetail() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$columnPageApi$, _yield$columnPageApi$2, err, res, windowWidth;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return columnPageApi.getColumnPageDetail(_this.id);
            case 2:
              _yield$columnPageApi$ = _context2.sent;
              _yield$columnPageApi$2 = Object(slicedToArray["a" /* default */])(_yield$columnPageApi$, 2);
              err = _yield$columnPageApi$2[0];
              res = _yield$columnPageApi$2[1];
              if (!err && res.pageDesign) {
                windowWidth = _this.layoutType === '0' ? window.innerWidth : 375;
                _this.layout = _.map(JSON.parse(res.pageDesign), function (item) {
                  if (res.windowWidth > windowWidth) {
                    item.x = _.ceil(item.x - (res.windowWidth - windowWidth) / 2);
                  } else {
                    item.x = _.ceil((windowWidth - res.windowWidth) / 2 + item.x);
                  }
                  return item;
                });
                _this.layoutDetail = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, res), {}, {
                  windowWidth: windowWidth,
                  gridSize: res.gridSize || 10
                });
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    autoLayout: function autoLayout() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _yield$columnPageApi$3, _yield$columnPageApi$4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return columnPageApi.getColumnPage(1, 1, {
                columnId: _this2.columnId,
                name: _this2.keyword,
                type: _this2.layoutType,
                layoutType: 1
              });
            case 2:
              _yield$columnPageApi$3 = _context3.sent;
              _yield$columnPageApi$4 = Object(slicedToArray["a" /* default */])(_yield$columnPageApi$3, 2);
              err = _yield$columnPageApi$4[0];
              res = _yield$columnPageApi$4[1];
              if (err) {
                _context3.next = 11;
                break;
              }
              if (!(res.items.length === 0)) {
                _context3.next = 10;
                break;
              }
              _this2.$message.warning('当前栏目未生成自动布局!');
              return _context3.abrupt("return");
            case 10:
              _this2.layout = JSON.parse(res.items[0].pageDesign);
            case 11:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 保存
    save: function save() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var api, windowWidth, body;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              api = null;
              windowWidth = _this3.layoutType === '0' ? window.innerWidth : 375;
              body = {
                columnId: _this3.columnId,
                pageDesign: JSON.stringify(_this3.layout),
                name: _this3.layoutName,
                isActive: _this3.layoutDetail.isActive,
                gridSize: _this3.layoutDetail.gridSize,
                windowWidth: windowWidth,
                type: _this3.layoutType
              };
              if (!(_this3.queryMode === 'create')) {
                _context4.next = 10;
                break;
              }
              body.isActive = false;
              _context4.next = 7;
              return columnPageApi.addColumnPage({
                body: body
              });
            case 7:
              api = _context4.sent;
              _context4.next = 14;
              break;
            case 10:
              body.id = _this3.id;
              _context4.next = 13;
              return columnPageApi.updateColumnPage({
                body: body
              });
            case 13:
              api = _context4.sent;
            case 14:
              if (!api[0]) {
                _this3.$message.success('保存成功!');
                if (_this3.queryMode === 'create') {
                  _this3.$router.replace({
                    path: "".concat(_this3.routerBase, "/layout/layout-config"),
                    query: {
                      type: 'update',
                      layoutType: _this3.layoutType,
                      columnId: api[1].columnId,
                      name: _this3.layoutName,
                      id: api[1].id
                    }
                  });
                  _this3.getLayoutDetail();
                }
              }
            case 15:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 返回
    backup: function backup() {
      // this.$router.push('/portal-management/portal-config/layout-management')
      this.$router.go(-1);
    },
    filterTree: function filterTree(value, data) {
      return data.name.includes(value);
    },
    setLeftVisible: function setLeftVisible() {
      this.leftVisible = !this.leftVisible;
    },
    setRightVisible: function setRightVisible() {
      this.rightVisible = !this.rightVisible;
    },
    drag: function drag(data) {
      // 判断查看或未拖动
      if (this.queryMode === 'read' || _.isEqual(defaultMouseXY, mouseXY)) return;
      defaultMouseXY = _.cloneDeep(mouseXY);
      var parentRect = document.getElementById('gridContent').getBoundingClientRect();
      var mouseInGrid = false;
      // pc布局要加上左侧组件类型面板
      var gridLeft = this.layoutType === '0' ? parentRect.left + 300 : parentRect.left;
      if (mouseXY.x > gridLeft && mouseXY.x < parentRect.right && mouseXY.y > parentRect.top && mouseXY.y < parentRect.bottom) {
        mouseInGrid = true;
      }
      if (mouseInGrid && this.layout.findIndex(function (item) {
        return item.i === 'drop';
      }) === -1) {
        var gridCard = document.getElementById('gridContent').children[0];
        var scrollTop = mouseXY.y - parentRect.top + gridCard.scrollTop;
        var scrollLeft = mouseXY.x - parentRect.left > parentRect.right - data.config.w ? parentRect.right - data.config.w : mouseXY.x - parentRect.left;
        // 获取拖拽元素四个角坐标
        var dropRange = {
          x: scrollLeft,
          y: scrollTop,
          x1: scrollLeft + data.config.w,
          y1: scrollTop + data.config.h
        };
        // 判断拖拽元素是否与布局元素碰撞
        if (this.layoutType === '0') {
          var isInRange = _.findIndex(this.layout, function (item) {
            var xInRange = dropRange.x >= item.x && dropRange.x <= item.x + item.w || dropRange.x1 >= item.x && dropRange.x1 <= item.x + item.w || item.x >= dropRange.x && item.x <= dropRange.x1 || item.x + item.w >= dropRange.x && item.x + item.w <= dropRange.x1;
            var yInRange = dropRange.y >= item.y && dropRange.y <= item.y + item.h || dropRange.y1 >= item.y && dropRange.y1 <= item.y + item.h || item.y >= dropRange.y && item.y <= dropRange.y1 || item.y + item.h >= dropRange.y && item.y + item.h <= dropRange.y1;
            return xInRange && yInRange;
          });
          if (isInRange > -1) return;
        }
        this.layout.push({
          x: scrollLeft,
          y: scrollTop,
          w: data.config.w,
          h: data.config.h,
          i: 'drop'
        });
      }
      var index = this.layout.findIndex(function (item) {
        return item.i === 'drop';
      });
      if (index !== -1) {
        try {
          this.$refs.gridlayout.$children[this.layout.length].$refs.item.style.display = 'none';
        } catch (_unused) {
          //
        }
        var _gridCard = document.getElementById('gridContent').children[0];
        var el = this.$refs.gridlayout.$children[index];
        var _scrollTop = mouseXY.y - parentRect.top + _gridCard.scrollTop;
        var _scrollLeft = mouseXY.x - parentRect.left > parentRect.right - data.config.w ? parentRect.right - data.config.w : mouseXY.x - parentRect.left;
        el.dragging = {
          top: _scrollTop,
          left: _scrollLeft
        };
        // const newPos = el.calcXY(scrollTop, scrollLeft)
        if (mouseInGrid === true) {
          this.$refs.gridlayout.dragEvent('dragstart', 'drop', _scrollLeft, _scrollTop, data.config.h, data.config.w);
          DragPos.i = Object(Common["a" /* generateGUID */])();
          DragPos.x = this.layout[index].x;
          DragPos.y = this.layout[index].y;
        }
        if (mouseInGrid === false) {
          this.$refs.gridlayout.dragEvent('dragend', 'drop', _scrollLeft, _scrollTop, data.config.h, data.config.w);
          this.layout = this.layout.filter(function (obj) {
            return obj.i !== 'drop';
          });
        }
      }
    },
    dragend: function dragend(data) {
      var lodeMoreItem = _.find(this.layout, {
        component: 'AppLoadMore'
      });
      if (lodeMoreItem && data.config.componentName === 'AppLoadMore') {
        this.$message.warning('只能存在一个下拉加载组件!');
        this.layout = this.layout.filter(function (obj) {
          return obj.i !== 'drop';
        });
        return;
      }
      var parentRect = document.getElementById('gridContent').getBoundingClientRect();
      var mouseInGrid = false;
      // pc布局要加上左侧组件类型面板
      var gridLeft = this.layoutType === '0' ? parentRect.left + 300 : parentRect.left;
      if (mouseXY.x > gridLeft && mouseXY.x < parentRect.right && mouseXY.y > parentRect.top && mouseXY.y < parentRect.bottom) {
        mouseInGrid = true;
      }
      mouseXY.x = null;
      mouseXY.y = null;
      var index = this.layout.findIndex(function (item) {
        return item.i === 'drop';
      });
      if (mouseInGrid && index !== -1) {
        this.$refs.gridlayout.dragEvent('dragend', 'drop', DragPos.x, DragPos.y, 2, data.config.w);
        this.layout = this.layout.filter(function (obj) {
          return obj.i !== 'drop';
        });
        var layoutItem = {
          x: DragPos.x,
          y: DragPos.y,
          w: data.config.w,
          h: data.config.h,
          i: DragPos.i,
          isDraggable: data.config.isDraggable || false,
          component: data.config.componentName,
          configComps: data.config.configName,
          type: data.config.type,
          data: {}
        };
        if (layoutItem.component === 'Breadcrumb') {
          layoutItem.data = {
            dataSource: this.columnId
          };
        }
        this.layout.push(layoutItem);
        this.$refs.gridlayout.dragEvent('dragend', DragPos.i, DragPos.x, DragPos.y, 2, data.config.w);
        this.configComponent = data.config.configName;
        this.currentItem = _.cloneDeep(this.layout.at(-1));
        try {
          this.$refs.gridlayout.$children[this.layout.length].$refs.item.style.display = 'block';
        } catch (_unused2) {
          //
        }
      }
    },
    dragover: function dragover(e) {
      mouseXY.x = e.clientX;
      mouseXY.y = e.clientY;
    },
    gridItemMoved: function gridItemMoved() {
      var _this4 = this;
      if (this.layoutType === '0') return;
      this.$nextTick(function () {
        var lastItem = _.maxBy(_this4.layout, 'y');
        var loadMoreItemIndex = _.findIndex(_this4.layout, {
          component: 'AppLoadMore'
        });
        if (lastItem.component !== 'AppLoadMore' && loadMoreItemIndex !== -1) {
          _this4.$message.warning('下拉加载组件只能为最后一个组件!');
          var layoutItem = _this4.layout[loadMoreItemIndex];
          layoutItem.y = lastItem.y + lastItem.h;
          _this4.$refs.gridlayout.layoutUpdate();
        }
      });
    },
    // layout组件点击
    clickGridItem: function clickGridItem(item) {
      this.currentItem = _.cloneDeep(item);
      this.configComponent = item.configComps;
    },
    deleteLayoutItem: function deleteLayoutItem(item) {
      this.layout = _.differenceWith(this.layout, [item], _.isEqual);
    },
    // 展示设置组件参数修改
    configChange: function configChange(data) {
      var layoutItem = _.find(this.layout, {
        i: this.currentItem.i
      });
      if (layoutItem) {
        layoutItem.data = _.cloneDeep(data);
      }
      this.currentItem = _.cloneDeep(layoutItem);
    },
    // 展示设置layout修改
    layoutChange: function layoutChange(val) {
      var layoutItem = _.find(this.layout, {
        i: this.currentItem.i
      });
      if (layoutItem) {
        _.assign(layoutItem, val);
      }
      if (this.layoutType === '1') {
        var gridLayout = this.$refs.gridlayout;
        gridLayout.layouts.xxs = _.cloneDeep(this.layout);
        gridLayout.layoutUpdate();
      }
    },
    // 全局设置修改
    globalChange: function globalChange(val) {
      _.assign(this.layoutDetail, val);
    }
  },
  created: function created() {
    var _this5 = this;
    return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
      var windowWidth;
      return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
        while (1) switch (_context5.prev = _context5.next) {
          case 0:
            _context5.next = 2;
            return _this5.getSystemSetting();
          case 2:
            _this5.showLayout = true;
            windowWidth = _this5.layoutType === '0' ? window.innerWidth : 375;
            if (_this5.layoutType === '1') {
              _this5.layout = [];
              _this5.defaultParams.colNum = windowWidth;
              _this5.defaultParams.verticalCompact = true;
              _this5.defaultParams.preventCollision = false;
              _this5.defaultParams.colNum = windowWidth;
              _this5.layoutDetail.windowWidth = windowWidth;
              _this5.treeData = appConfig["a" /* default */];
            }
            if (_this5.id) {
              _this5.getLayoutDetail();
            }
          case 6:
          case "end":
            return _context5.stop();
        }
      }, _callee5);
    }))();
  },
  mounted: function mounted() {
    var _this6 = this;
    document.addEventListener('dragover', this.dragover, false);
    var gridLayout = this.$refs.gridlayout;
    if (gridLayout) {
      gridLayout.updateHeight = function () {
        var height = gridLayout.containerHeight();
        gridLayout.mergedStyle = {
          height: "".concat(+height.replace('px', '') + 300, "px")
        };
      };
    }
    window.onresize = function () {
      var windowWidth = _this6.layoutType === '0' ? window.innerWidth : 375;
      _this6.defaultParams.colNum = windowWidth;
      _this6.layout = _.map(_this6.layout, function (item) {
        if (_this6.layoutDetail.windowWidth > windowWidth) {
          item.x = _.ceil(item.x - (_this6.layoutDetail.windowWidth - windowWidth) / 2);
        } else {
          item.x = _.ceil((windowWidth - _this6.layoutDetail.windowWidth) / 2 + item.x);
        }
        return item;
      });
      _this6.layoutDetail.windowWidth = windowWidth;
    };
  },
  beforeDestroy: function beforeDestroy() {
    document.removeEventListener('dragover', this.dragover);
  },
  deactivated: function deactivated() {
    document.removeEventListener('dragover', this.dragover);
  }
});
// CONCATENATED MODULE: ./src/modules/portal-management/views/portal-config/LayoutConfig.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_config_LayoutConfigvue_type_script_lang_js = (LayoutConfigvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/portal-management/views/portal-config/LayoutConfig.vue?vue&type=style&index=0&id=80774b92&prod&lang=scss&scoped=true
var LayoutConfigvue_type_style_index_0_id_80774b92_prod_lang_scss_scoped_true = __webpack_require__("131b");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/modules/portal-management/views/portal-config/LayoutConfig.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  portal_config_LayoutConfigvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "80774b92",
  null
  
)

/* harmony default export */ var LayoutConfig = __webpack_exports__["default"] = (component.exports);

/***/ })

}]);
//# sourceMappingURL=portal-management-std.umd.64.js.map