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

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

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


// module
exports.push([module.i, ".scrollbar[data-v-2e015422]::-webkit-scrollbar{width:0!important;display:none!important}.active[data-v-2e015422]{color:var(--portalPrimaryColor)}.active[data-v-2e015422]:before{content:\"\";position:absolute;width:100%;height:3px;background-color:var(--portalPrimaryColor);bottom:-7px}.sub-nav-item[data-v-2e015422]:hover{color:var(--portalPrimaryColor)}", ""]);

// exports


/***/ }),

/***/ "6aa9":
/***/ (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/appPortal/AppNavigation.vue?vue&type=template&id=2e015422&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"relative h-full"},[_c('div',{ref:"nav",staticClass:"flex h-full text-[#666666] font-400 text-14px w-full overflow-x-auto flex-nowrap scrollbar"},_vm._l((_vm.navList),function(item,index){return _c('div',{key:index,staticClass:"h-full text-center  flex-shrink-0 flex items-center mx-5px"},[_c('span',{staticClass:"relative",class:{
          active: _vm.currentNav === item.id,
        },attrs:{"title":item.name},on:{"click":function($event){return _vm.navbarClick(item)}}},[_vm._v("\n        "+_vm._s(item.name)+"\n      ")])])}),0)])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/appPortal/AppNavigation.vue?vue&type=template&id=2e015422&scoped=true

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

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

// 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.push.js
var es_array_push = __webpack_require__("14d9");

// 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/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");

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

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







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


var columnApi = new workbench_std_umd["ColumApi"]();
/* harmony default export */ var AppNavigationvue_type_script_lang_js = ({
  props: {
    data: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    mode: {
      type: String,
      default: 'view'
    }
  },
  data: function data() {
    return {
      subNavbarVisible: false,
      // 二级导航栏菜单box, 显示二级菜单的
      navbar: {},
      subNavbarChildren: [],
      subNavbar: {},
      // 当前二级菜单子项
      columnData: [],
      currentNav: '',
      translateX: 0,
      navList: []
    };
  },
  computed: {
    columnId: function columnId() {
      return this.$route.query.columnId;
    },
    routerBase: function routerBase() {
      if (window.__POWERED_BY_QIANKUN__) {
        return "/".concat(_.get(Wiz, 'globalSettings.globalConfig.routerBase'));
      }
      return '';
    }
  },
  watch: {
    data: {
      deep: true,
      immediate: true,
      handler: function handler(val, oldVal) {
        var _this = this;
        return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
          return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                if (_.isEqual(val === null || val === void 0 ? void 0 : val.columnIds, oldVal === null || oldVal === void 0 ? void 0 : oldVal.columnIds)) {
                  _context.next = 4;
                  break;
                }
                _context.next = 3;
                return _this.getNavList();
              case 3:
                _this.navList = _context.sent;
              case 4:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }))();
      }
    },
    columnId: {
      immediate: true,
      handler: function handler(val) {
        this.currentNav = val;
      }
    }
  },
  methods: {
    getNavList: function getNavList() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _this2$data;
        var list;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              if (!(_this2.columnData.length === 0)) {
                _context2.next = 3;
                break;
              }
              _context2.next = 3;
              return _this2.getColumnData();
            case 3:
              if ((_this2$data = _this2.data) !== null && _this2$data !== void 0 && _this2$data.columnIds) {
                _context2.next = 5;
                break;
              }
              return _context2.abrupt("return", []);
            case 5:
              list = [];
              _.forEach(_this2.data.columnIds, function (item) {
                var column = _.find(_this2.columnData, {
                  id: item
                });
                if (column) {
                  list.push(column);
                }
              });
              return _context2.abrupt("return", list);
            case 8:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 一级navbar-click
    navbarClick: function navbarClick(navbar) {
      if (this.mode === 'update') return;
      this.currentNav = navbar.id;
      this.$router.push({
        path: "".concat(this.routerBase, "/integration/portal/homepage"),
        query: {
          columnId: navbar.id
        }
      });
    },
    getColumnData: function getColumnData() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _yield$columnApi$tree, _yield$columnApi$tree2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return columnApi.tree(0, {
                isExistPage: true
              });
            case 2:
              _yield$columnApi$tree = _context3.sent;
              _yield$columnApi$tree2 = Object(slicedToArray["a" /* default */])(_yield$columnApi$tree, 2);
              err = _yield$columnApi$tree2[0];
              res = _yield$columnApi$tree2[1];
              if (!err) {
                _this3.columnData = res;
              }
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./src/components/appPortal/AppNavigation.vue?vue&type=script&lang=js
 /* harmony default export */ var appPortal_AppNavigationvue_type_script_lang_js = (AppNavigationvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/components/appPortal/AppNavigation.vue?vue&type=style&index=0&id=2e015422&prod&scoped=true&lang=scss
var AppNavigationvue_type_style_index_0_id_2e015422_prod_scoped_true_lang_scss = __webpack_require__("b875");

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

// CONCATENATED MODULE: ./src/components/appPortal/AppNavigation.vue






/* normalize component */

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

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

/***/ }),

/***/ "ad8b":
/***/ (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__("277b");
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("1f83aae1", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "b875":
/***/ (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_AppNavigation_vue_vue_type_style_index_0_id_2e015422_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ad8b");
/* 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_AppNavigation_vue_vue_type_style_index_0_id_2e015422_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_AppNavigation_vue_vue_type_style_index_0_id_2e015422_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ })

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