((typeof self !== 'undefined' ? self : this)["webpackJsonpportal_homepage_nanhai"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpportal_homepage_nanhai"] || []).push([[33,3],{

/***/ "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":"628455f4-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=0bae89d5&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 border-b-1px border-[#e6e6e6] microsoftYaHei"},[_c('div',{staticClass:"text-hex-333 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-hex-1A1A1A 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=0bae89d5&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: ./src/components/portal/ColumnHeader.vue?vue&type=style&index=0&id=0bae89d5&prod&scoped=true&lang=scss
var ColumnHeadervue_type_style_index_0_id_0bae89d5_prod_scoped_true_lang_scss = __webpack_require__("a3be");

// 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,
  "0bae89d5",
  null
  
)

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

/***/ }),

/***/ "a3be":
/***/ (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_ColumnHeader_vue_vue_type_style_index_0_id_0bae89d5_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bde7");
/* 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_ColumnHeader_vue_vue_type_style_index_0_id_0bae89d5_prod_scoped_true_lang_scss__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_ColumnHeader_vue_vue_type_style_index_0_id_0bae89d5_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "a647":
/***/ (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":"628455f4-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/URLIframe.vue?vue&type=template&id=84cfe3e2&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.data.showTitle)?_c('column-header',{staticClass:"mb-5px",attrs:{"title":_vm.title,"showMore":false}}):_vm._e(),_c('div',{staticClass:"w-full h-[calc(100%-43px)] relative",class:_vm.data.showTitle ? 'h-[calc(100%-43px)]' : 'h-full'},[_c('iframe',{ref:"iframe",staticClass:"w-full h-full",attrs:{"src":_vm.iframeUrl,"frameborder":"0"}})])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/portal/URLIframe.vue?vue&type=template&id=84cfe3e2&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/@wiz-api/workbench/lib/workbench.umd.js
var workbench_umd = __webpack_require__("c7fe");

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



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




var columnTableApi = new workbench_umd["ColumnTableApi"]();
/* harmony default export */ var URLIframevue_type_script_lang_js = ({
  components: {
    ColumnHeader: ColumnHeader["default"]
  },
  props: {
    data: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  watch: {
    data: {
      immediate: true,
      deep: true,
      handler: function handler(val, oldVal) {
        if (!_.isEmpty(val)) {
          if (val.title) this.title = val.title;
          if (val.dataSource && val.dataSource !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.dataSource)) {
            this.getCompentsData(val.dataSource);
          }
        }
      }
    }
  },
  data: function data() {
    return {
      title: '',
      iframeUrl: ''
    };
  },
  methods: {
    getCompentsData: function getCompentsData(id) {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _res$items;
        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, 99, 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 && (res === null || res === void 0 ? void 0 : (_res$items = res.items) === null || _res$items === void 0 ? void 0 : _res$items.length) > 0) {
                _this.title = _this.data.title || res.items[0].title;
                _this.iframeUrl = res.items[0].url;
              }
            case 8:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./src/components/portal/URLIframe.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_URLIframevue_type_script_lang_js = (URLIframevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

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





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  portal_URLIframevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "84cfe3e2",
  null
  
)

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

/***/ }),

/***/ "bde7":
/***/ (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__("cd32");
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("46d8603d", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

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

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


// module
exports.push([module.i, ".microsoftYaHei[data-v-0bae89d5]{font-family:Microsoft YaHei regular}", ""]);

// 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_dananhai_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_dananhai_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_dananhai_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_dananhai_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_dananhai_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_dananhai_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_dananhai_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_dananhai_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();
  });
}

/***/ })

}]);
//# sourceMappingURL=portal-homepage-nanhai.umd.33.js.map