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

/***/ 0:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ "0789":
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQpSURBVHgB7VlbTttQEJ2ECAQCKRWIN8LhAwmEVLoCygqgKwB20B1AV9DuALqChhVAd5D+gISEYok3AjUIBALx6DlXjrETP64dx0DF+cgF+9o+njmeOzNX5A0iIwlhf39/OpfLzTw+PhqZTCaPQ4Z1ynx6eqpks1mOfwYGBjalQTRE+ujo6DOGBZCZx5jXvKyC+UWM60NDQ0WJgVikYdVFWG5Znq0ZFya8sgLr/4xyUSTStCystCqNk62FeXt7O1soFEydyVnRxMHBwQoIb0jyhAmjra2tzGfoTA61dLlczre2tv6AGxckHRRh9SVYveI3IZC0RXgDhKclRcCjpbu7u1k/4oHygMtW0yZM8Jkw1ne/876kLX3NywsBxBf9NO4pD0QJAy4qSwM4OzuTm5sbaW9vl56eHomLh4eH2ZGRkU3nsZzXRCtKxML9/b3s7u7K1dWVfezi4kIMw5CWlhaJClzDEFtwHquTBxcOiRnWrq+vZXt7WxEeHByUqakp6e3tlUqlIltbW4KoIDFgwPOuyFUnj8PDw3Ic0icnJ5QVtSijo6OSzz+v6qenp7K3t6csPTw8HEcuJoxQ8CQN4c/job8kIkiIxBBtZHx8XPDl181BCJOdnR1lbSzbyhNR4NS2Sx7IJ+YkAkiAbidhWm9iYsKTMMHjfKGuri7lkeoL6ALcbIm4LA1p/BXNbI365QdHC9JqtJ4uSBrPsl+EHgoD01tkhR9cpK1kSCtqUL/4YAX5s4yNjSnrRcX5+bmSFdyudN7X1xd6DXL1T5hbsuUBLX8Mu4jhjA8iYVqHcohDmOju7pbJyUl1H96Plg8DJDKjRnl+CyPsIrqV+iU6Ozt99asLXs/7VO9Ng4TA4I/T0qFapnW4SDQDvG9YKIR8FUdn9DAkBB0dHYp4M8D7cskPAgxrcNQuAl4TnKRNeeWAPEyOOceBiiQELhr8YBnLGR0Yw3VicRggD8XRJs2+BCKIJAEuOkxLSZTJExcgLiIJwOSPLQ/E4N+SEEiYCROzPIa0mNldHWDpEkebNFcaDIlJJE7uHATKFzJThnVFD7xJrI5PSrC5uUhDIpE6PWkCnrNJu8ot5qvIAUwJWWjo+svLS1WR+MmAiRDncCT4txcYYTSkZPb3969X/6mrXKw+3WrQHZwZWhIIS21ZmTv7fZ7VuE7JxTDGqMCxEXDpZnoQAFepRXhW47DgElwWmFszQ2s0y9MBG5O1xzxzD2obIWZFXhjk4NVJDezlodBdS7HxWIsiZPHF60Rglge9fsVQkpTBBiQ7p37nA0mza2lpKrVFB4TXgjqmhPZOAKSyzK0GaSKoYVTc38LmRd2+MJq0G2BasVgrafv/N4pqcXx8PMftuDhbcnjpNV3L1iKxzU9IZ4YdfLYiWDVXi1CWSKw4WGQwZ7dS4He8CfwDDsT81ZaPydkAAAAASUVORK5CYII="

/***/ }),

/***/ "1ffe":
/***/ (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/modules/portal-homepage/views/index.vue?vue&type=template&id=68ea029c
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"homeIndex",staticClass:"h-full overflow-y-auto portal-container overflow-x-hidden homepage-index bg-no-repeat",class:{
    'gray-scale': _vm.systemSetting.homeAsh,
  },style:({
    backgroundImage: _vm.theme,
  }),on:{"scroll":_vm.onScroll}},[_c('Header',{attrs:{"logo":_vm.systemSetting.logo}}),_c('div',{staticClass:"min-h-[calc(100vh-160px)]"},[_c('router-view')],1),_c('Footer'),_c('div',{staticClass:"absolute tool-bar"},[(_vm.$route.path !== '/portal/homepage' || _vm.$route.query.columnId !== _vm.homePageColumnId)?_c('div',{staticClass:"to-home w-45px h-45px cursor-pointer mb-6px",on:{"click":_vm.toHome}}):_vm._e(),(_vm.scrollTop > _vm.pageHeight)?_c('div',{staticClass:"to-top w-45px h-45px cursor-pointer",on:{"click":_vm.toTop}}):_vm._e()])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/portal-homepage/views/index.vue?vue&type=template&id=68ea029c

// 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.concat.js
var es_array_concat = __webpack_require__("99af");

// 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.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.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// 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");

// EXTERNAL MODULE: ./node_modules/@wiz-api/workbench/lib/workbench.umd.js
var workbench_umd = __webpack_require__("c7fe");

// EXTERNAL MODULE: ./node_modules/@wiz-api/eaf-tenant-management/lib/eaf-tenant-management.umd.js
var eaf_tenant_management_umd = __webpack_require__("c944");

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











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



var systemSettingApi = new workbench_umd["SystemSettingApi"]();
var eafTenantApi = new eaf_tenant_management_umd["EafTenantApi"]();
var columnApi = new workbench_umd["ColumApi"]();
var Footer = function Footer() {
  return __webpack_require__.e(/* import() */ 47).then(__webpack_require__.bind(null, "9d16"));
};
var Header = function Header() {
  return __webpack_require__.e(/* import() */ 24).then(__webpack_require__.bind(null, "1ce5"));
};
/* harmony default export */ var viewsvue_type_script_lang_js = ({
  name: 'ProtalHome',
  components: {
    Footer: Footer,
    Header: Header
  },
  data: function data() {
    return {
      systemSetting: {
        themed: ''
      },
      themeBg: {
        newYear: __webpack_require__("607e")
      },
      theme: '',
      defaultTitle: '',
      pageHeight: 0,
      scrollTop: 0,
      homePageColumnId: null
    };
  },
  computed: {
    fileUrl: function fileUrl() {
      var fileServer = Wiz.GetModuleServer('file-management');
      return "".concat(fileServer, "/api/file-management/files/public/image/");
    },
    routerBase: function routerBase() {
      if (window.__POWERED_BY_QIANKUN__) {
        return "/".concat(_.get(Wiz, 'globalSettings.globalConfig.routerBase'));
      }
      return '';
    }
  },
  methods: {
    getColumnTree: function getColumnTree() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$columnApi$tree, _yield$columnApi$tree2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return columnApi.tree(0);
            case 2:
              _yield$columnApi$tree = _context.sent;
              _yield$columnApi$tree2 = Object(slicedToArray["a" /* default */])(_yield$columnApi$tree, 2);
              err = _yield$columnApi$tree2[0];
              res = _yield$columnApi$tree2[1];
              if (!err && res.length) {
                _this.homePageColumnId = res[0].id;
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    getSystemSetting: function getSystemSetting() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$systemSettingA, _yield$systemSettingA2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return systemSettingApi.getSystemSetting();
            case 2:
              _yield$systemSettingA = _context2.sent;
              _yield$systemSettingA2 = Object(slicedToArray["a" /* default */])(_yield$systemSettingA, 2);
              err = _yield$systemSettingA2[0];
              res = _yield$systemSettingA2[1];
              if (!err) {
                _this2.systemSetting = res || {};
                _this2.theme = res.themed ? "url(".concat(_this2.themeBg[res.themed], ")") : 'none';
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    getTenantInfo: function getTenantInfo() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var tenantName, _yield$eafTenantApi$g, _yield$eafTenantApi$g2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              tenantName = Wiz.globalSettings.globalConfig.tenantName;
              if (tenantName) {
                _context3.next = 3;
                break;
              }
              return _context3.abrupt("return");
            case 3:
              _context3.next = 5;
              return eafTenantApi.getPublishByTenantName({
                name: tenantName
              });
            case 5:
              _yield$eafTenantApi$g = _context3.sent;
              _yield$eafTenantApi$g2 = Object(slicedToArray["a" /* default */])(_yield$eafTenantApi$g, 2);
              err = _yield$eafTenantApi$g2[0];
              res = _yield$eafTenantApi$g2[1];
              if (!err && res.detail) {
                if (window.history.length === 1) {
                  // 记录默认title
                  _this3.defaultTitle = res.detail.name;
                }
                // 未登录状态下没有缓存企业信息，需手动设置icon
                document.querySelector("link[rel='icon']").href = "".concat(_this3.fileUrl).concat(res.detail.icon);
              }
            case 10:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    onScroll: function onScroll(e) {
      this.scrollTop = e.target.scrollTop;
    },
    toHome: function toHome() {
      this.$router.push({
        path: "".concat(this.routerBase, "/portal/homepage")
      });
    },
    toTop: function toTop() {
      this.$refs.homeIndex.scrollTop = 0;
    }
  },
  created: function created() {
    if (window.history.length > 1) {
      // 记录默认title
      this.defaultTitle = document.title;
    }
    this.getSystemSetting();
    this.getTenantInfo();
    this.getColumnTree();
  },
  mounted: function mounted() {
    var currentTheme = Wiz.globalSettings.layout.config.defaultTheme;
    document.body.classList.add('h-full', currentTheme);
    this.pageHeight = window.innerHeight;
  },
  deactivated: function deactivated() {
    // 离开门户时还原title
    document.title = this.defaultTitle;
  },
  beforeDestroy: function beforeDestroy() {
    // 离开门户时还原title
    document.title = this.defaultTitle;
  }
});
// CONCATENATED MODULE: ./src/modules/portal-homepage/views/index.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_homepage_viewsvue_type_script_lang_js = (viewsvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/portal-homepage/views/index.vue?vue&type=style&index=0&id=68ea029c&prod&socped=true&lang=scss
var viewsvue_type_style_index_0_id_68ea029c_prod_socped_true_lang_scss = __webpack_require__("f9a5");

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

// CONCATENATED MODULE: ./src/modules/portal-homepage/views/index.vue






/* normalize component */

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

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

/***/ }),

/***/ 3:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

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

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


// module
exports.push([module.i, ".gray-scale{filter:grayscale(100%);-webkit-filter:grayscale(100%);-webkit-transition:-webkit-filter .5s;transition:-webkit-filter .5s;transition:filter .5s;transition:filter .5s,-webkit-filter .5s}.homepage-index{background-size:100% 77%}.homepage-index .tool-bar{right:calc(50% - 645px);bottom:110px}.homepage-index .tool-bar>div{background-size:100% 100%}.homepage-index .tool-bar>div.to-top{background:url(" + escape(__webpack_require__("5647")) + ") 0 0 no-repeat}.homepage-index .tool-bar>div.to-home{background:url(" + escape(__webpack_require__("0789")) + ") 0 0 no-repeat}", ""]);

// exports


/***/ }),

/***/ "5647":
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANrSURBVHgB7ZlLbuJAEIYLghIpUiKkRMpbaZZZTW6Q5ASTOUHIDeYGYU4wcwOYG5AThNyAWSGxoSXeG8QKiff8ZdlOY7Dxo+OQ0XySadNu45/qcndXNdEnJEGaaDQa16lU6mY2m4lEIpFGlTAvyfl83k8mk1z+OTk5KVFEIolut9u3KB4g5h5l2udtfbQvonw+OzsrUghCiYZVs7DcE71ZMywSvZKD9X8HuSmQaLYsrJSn6GKdyOFweJfJZKSfxknySbPZzEHwC+kXzIidnZ0aP8NP47WWrtVq6e3t7V/oxgeKhyKs/gir990aeIo2Bb9A8DXFCHq0PBqN7tyEe7oHuiwft2CGnwlj/XS77ira9K97+iAgPOvm4yvdA6OEQBfVaAOYTqd3FxcXJbVupaXNUWIj2NrayjvrlkTzxEHvM6yFRaDnF0auJfdotVrsFsLtF7rdLvX7rqNRKHZ3dwku4NVEnp6eZqwvKfUKHJ9fPOF1d6/Xo8FgQDoZj8frRIt6vX5r+faCaKwnvsKfvW6mq6sr+gigjV2kZJyrF8zVmhYmk4lxaMTWZos2l5l+l5eeYBqmSqViHHyuA16j85qdz5NK5RfSAIusVquEadg4+FyXcLjIjVFaFRxxUERUwRaahQv+UC0dyTVUwYeHh3b9wcGBNuF45wyN6osoKCROwZeXl28/KoQ24TCs4NJ3EOCGl2ALncIZVbSkgPgRbKFDONxDkiqaw3wKiJTSl2ALVTiGLwoK3MPQaM+InJfACEJBODo6ov39fUI07fseFo4FPu3t7VEIJH/YojF7vUI4BSGdThtHULD4oTDA0mUubZXn5+dcoXf5phF2X/ToK58vmBb/JFTGJyZsbQui4SKBMj1xgghmtWhzvSpp85DHx8fP1pelNw8jyA/aMDjfp35fEo0XskAarI3uJE1IZ4IytaoVwvZHPDRSRM7hkw7hnJh01iVdHljCEJOjCPDMF2YMV2ENqzKpnrk8BLqFGBOPToqYhL6tuuA5BWKN8B1FmWKGE5CcOXW77imas5amT8U26UBwwStjyvjeCYCrPDmHHt2wD2MfZu2QG3T7QrzTbgDvvWSttcU6/v2NIiedToczUvdhtuTwpwt+LetE2+YnXOeGM/iciuCo2QpCOUTiiIODDF6zm0vg/3wK/gJ3mL0oM7HMnQAAAABJRU5ErkJggg=="

/***/ }),

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

module.exports = __webpack_require__.p + "img/newYearBg.a7d6fe1c.png";

/***/ }),

/***/ "b041b":
/***/ (function(module, exports) {

module.exports = function escape(url) {
    if (typeof url !== 'string') {
        return url
    }
    // If url is already wrapped in quotes, remove them
    if (/^['"].*['"]$/.test(url)) {
        url = url.slice(1, -1);
    }
    // Should url be wrapped?
    // See https://drafts.csswg.org/css-values-3/#urls
    if (/["'() \t\n]/.test(url)) {
        return '"' + url.replace(/"/g, '\\"').replace(/\n/g, '\\n') + '"'
    }

    return url
}


/***/ }),

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

/***/ }),

/***/ "f9a5":
/***/ (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_index_vue_vue_type_style_index_0_id_68ea029c_prod_socped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ef55");
/* 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_index_vue_vue_type_style_index_0_id_68ea029c_prod_socped_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_index_vue_vue_type_style_index_0_id_68ea029c_prod_socped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ })

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