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

/***/ "151c":
/***/ (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/components/portal/ColumnHeader.vue?vue&type=template&id=2aadf2ad&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"py-8px pr-10px flex justify-between items-center bg-[#f7f7f7]"},[_c('div',{staticClass:"text-[#333] font-700 text-18px border-l-4px border-$portalPrimaryColor pl-10px flex-1 truncate !leading-23px"},[_vm._v("\n    "+_vm._s(_vm.title)+"\n  ")]),(_vm.showMore)?_c('div',{staticClass:"text-[#666] text-14px cursor-pointer truncate",on:{"click":_vm.loadMore}},[_vm._v("\n    更多\n  ")]):_vm._e()])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/portal/ColumnHeader.vue?vue&type=template&id=2aadf2ad&scoped=true

// 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/components/portal/ColumnHeader.vue?vue&type=script&lang=js
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var ColumnHeadervue_type_script_lang_js = ({
  name: 'ColumnHeader',
  props: {
    title: {
      type: String,
      default: '新闻'
    },
    showMore: {
      type: Boolean,
      default: true
    }
  },
  methods: {
    loadMore: function loadMore() {
      this.$emit('loadMore');
    }
  }
});
// CONCATENATED MODULE: ./src/components/portal/ColumnHeader.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_ColumnHeadervue_type_script_lang_js = (ColumnHeadervue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/portal/ColumnHeader.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  portal_ColumnHeadervue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "2aadf2ad",
  null
  
)

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

/***/ }),

/***/ "7cba":
/***/ (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/components/portal/URLHref.vue?vue&type=template&id=59dc0502&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"w-full h-full overflow-hidden"},[(_vm.showTitle)?_c('column-header',{attrs:{"title":_vm.title,"showMore":false}}):_vm._e(),_c('div',{staticClass:"w-full  flex justify-between items-center",class:_vm.showTitle ? 'h-[calc(100%-38px)]' : 'h-full'},[_c('div',{staticClass:"flex-1 h-full overflow-hidden"},[_c('el-carousel',{ref:"nop",attrs:{"interval":5000,"trigger":"click","indicator-position":"none","arrow":'never',"height":"100%","autoplay":false}},_vm._l((_vm.carouselList),function(items,i){return _c('el-carousel-item',{key:i},_vm._l((items),function(item,index){return _c('div',{key:index,staticClass:"inline-flex justify-center items-center relative cursor-pointer px-10px",class:_vm.filterWidth(),style:({ width: ("calc(100% /" + (_vm.data.colNum > 1 ? _vm.data.colNum : 1)) }),on:{"click":function($event){return _vm.toHref(item)}}},[_c('span',{staticClass:"text-14px color-hex-333333 max-w-190px overflow-hidden text-center truncate"},[_vm._v(_vm._s(item.title))]),_c('img',{staticClass:"w-12px h-12px",attrs:{"src":"http://diycode04.wiz.top:9010/huizhou-public/huarun/img/20231025/frame.png","alt":"","srcset":""}}),(
                index !== _vm.colNum - 1 && index !== _vm.colNum * 2 - 1 && index !== items.length - 1
              )?_c('span',{staticClass:"w-2px h-14px bg-hex-D71318 rounded-10px absolute right-0"}):_vm._e()])}),0)}),1)],1)])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/portal/URLHref.vue?vue&type=template&id=59dc0502&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/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__("14d9");

// 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/RequestQueue.js
var RequestQueue = __webpack_require__("cfba");

// EXTERNAL MODULE: ./src/components/portal/ColumnHeader.vue + 4 modules
var ColumnHeader = __webpack_require__("151c");

// 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/components/portal/URLHref.vue?vue&type=script&lang=js




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




var columnTableApi = new workbench_std_umd["ColumnTableApi"]();
/* harmony default export */ var URLHrefvue_type_script_lang_js = ({
  props: {
    data: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    mode: {
      type: String,
      default: ''
    }
  },
  components: {
    ColumnHeader: ColumnHeader["default"]
  },
  watch: {
    data: {
      immediate: true,
      deep: true,
      handler: function handler(val, oldVal) {
        if (!_.isEmpty(val)) {
          this.showTitle = val.showTitle;
          if (val.title) this.title = val.title;
          this.colNum = val.colNum;
          this.filterWidth();
          if (val.dataSource && val.dataSource !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.dataSource)) {
            this.getCompentsData(val.dataSource, val.pageSize, val.colNum);
          }
        }
      }
    },
    urlList: {
      immediate: true,
      handler: function handler(val) {
        if (val && val.length > this.colNum * 2) {
          var row = Math.ceil(val.length / (this.colNum * 2));
          this.carouselList = [];
          for (var i = 0; i < row; i += 1) {
            this.carouselList[i] = [];
            for (var j = 0; j < this.colNum * 2; j += 1) {
              var index = i * this.colNum * 2 + j;
              if (index < val.length) {
                this.carouselList[i][j] = val[index];
              }
            }
          }
        } else {
          this.carouselList = [];
          this.carouselList.push(val);
        }
      }
    }
  },
  data: function data() {
    return {
      carouselList: [],
      urlList: [],
      colNum: 5,
      showTitle: true,
      title: '友情链接'
    };
  },
  methods: {
    getCompentsData: function getCompentsData(id, pageSize, col) {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var param, _yield$addRequestQueu, _yield$addRequestQueu2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              param = {
                columnId: id,
                isShow: true
              };
              _context.next = 3;
              return Object(RequestQueue["a" /* default */])(function () {
                return columnTableApi.getLinkColumnTable(1, pageSize * col, param);
              });
            case 3:
              _yield$addRequestQueu = _context.sent;
              _yield$addRequestQueu2 = Object(slicedToArray["a" /* default */])(_yield$addRequestQueu, 2);
              err = _yield$addRequestQueu2[0];
              res = _yield$addRequestQueu2[1];
              if (!err && res) {
                _this.urlList = res.items;
              }
            case 8:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    filterWidth: function filterWidth() {
      var str = '';
      this.urlList.length > this.data.colNum ? str = "".concat(str, " h-1/2") : str = "".concat(str, " h-full");
      return str;
    },
    toHref: function toHref(row) {
      if (this.mode === 'view') {
        row.skipMode === 1 ? window.open(row.url) : window.location.href = row.url;
      }
    }
  }
});
// CONCATENATED MODULE: ./src/components/portal/URLHref.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_URLHrefvue_type_script_lang_js = (URLHrefvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/components/portal/URLHref.vue?vue&type=style&index=0&id=59dc0502&prod&lang=scss&scoped=true
var URLHrefvue_type_style_index_0_id_59dc0502_prod_lang_scss_scoped_true = __webpack_require__("f377");

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

// CONCATENATED MODULE: ./src/components/portal/URLHref.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  portal_URLHrefvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "59dc0502",
  null
  
)

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

/***/ }),

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

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


// module
exports.push([module.i, "[data-v-59dc0502] .el-carousel{height:100%}.link-title[data-v-59dc0502]{white-space:nowrap;text-overflow:ellipsis}", ""]);

// exports


/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addRequestQueue; });
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c7eb");
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1da1");
/* 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_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6cf");
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__);





var queue = [];
var runningCount = 0;
var maxRequestsNum = 3;
function processNextRequest() {
  return _processNextRequest.apply(this, arguments);
}
function _processNextRequest() {
  _processNextRequest = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().mark(function _callee2() {
    var request;
    return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          if (!(runningCount >= maxRequestsNum || queue.length === 0)) {
            _context2.next = 2;
            break;
          }
          return _context2.abrupt("return");
        case 2:
          runningCount += 1;
          request = queue.shift();
          _context2.prev = 4;
          _context2.next = 7;
          return request();
        case 7:
          _context2.next = 11;
          break;
        case 9:
          _context2.prev = 9;
          _context2.t0 = _context2["catch"](4);
        case 11:
          _context2.prev = 11;
          runningCount -= 1;
          processNextRequest();
          return _context2.finish(11);
        case 15:
        case "end":
          return _context2.stop();
      }
    }, _callee2, null, [[4, 9, 11, 15]]);
  }));
  return _processNextRequest.apply(this, arguments);
}
function addRequestQueue(request) {
  return new Promise(function (resolve, reject) {
    queue.push( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().mark(function _callee() {
      var result;
      return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_std_2_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            _context.prev = 0;
            _context.next = 3;
            return request();
          case 3:
            result = _context.sent;
            resolve(result);
            _context.next = 10;
            break;
          case 7:
            _context.prev = 7;
            _context.t0 = _context["catch"](0);
            reject(_context.t0);
          case 10:
          case "end":
            return _context.stop();
        }
      }, _callee, null, [[0, 7]]);
    })));
    processNextRequest();
  });
}

/***/ }),

/***/ "f377":
/***/ (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_URLHref_vue_vue_type_style_index_0_id_59dc0502_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fcdf");
/* 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_URLHref_vue_vue_type_style_index_0_id_59dc0502_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_URLHref_vue_vue_type_style_index_0_id_59dc0502_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "fcdf":
/***/ (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__("a988");
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("db046272", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

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