(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory();
	else if(typeof define === 'function' && define.amd)
		define([], factory);
	else if(typeof exports === 'object')
		exports["firefly-menu"] = factory();
	else
		root["firefly-menu"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 433);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 433:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/main.vue?vue&type=template&id=28eb920a&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      staticClass: "menu_item",
      class: [_vm.isCollapse ? "hideSide" : "openSide"],
      style: [
        _vm.isCollapse
          ? { width: _vm.sideHideWidth }
          : { width: _vm.sideOpenWidth },
      ],
    },
    [
      _c(
        "div",
        {
          class: [
            "logo_title",
            {
              paddingLeft31: _vm.isCollapse,
              paddingLeftInstance: !_vm.isChildren,
            },
          ],
          style: [
            _vm.isCollapse
              ? { width: _vm.sideHideWidth }
              : { width: _vm.sideOpenWidth },
          ],
          on: {
            click: function ($event) {
              return _vm.onTitle()
            },
          },
        },
        [
          _c("div", { staticClass: "menu_change_container" }, [
            _vm.isChildren && !_vm.isCollapse
              ? _c("img", {
                  staticClass: "menu_change_image",
                  attrs: { src: _vm.logoImage },
                })
              : _vm._e(),
            _vm._v(" "),
            _vm.isChildren && !_vm.isCollapse
              ? _c("div", { staticClass: "slider" })
              : _vm._e(),
          ]),
          _vm._v(" "),
          _c("img", { attrs: { src: _vm.logoImg, alt: "" } }),
          _vm._v(" "),
          _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.sysName))]),
        ]
      ),
      _vm._v(" "),
      _c(
        "el-scrollbar",
        {
          staticClass: "scrollbar_box",
          attrs: { "wrap-class": "scrollbar-wrap" },
        },
        [
          _c(
            "el-menu",
            {
              staticClass: "menu_box el-menu-vertical-demo",
              attrs: {
                "unique-opened": _vm.uniqueOpened,
                collapse: _vm.isCollapse,
                mode: "vertical",
                "background-color": _vm.menuBg,
                "active-text-color": _vm.menuActiveText,
                "text-color": _vm.menuText,
                "default-active": _vm.activePath,
              },
            },
            [
              _c("menu-item", {
                attrs: {
                  data: _vm.menuData,
                  title: _vm.title,
                  children: _vm.children,
                  sideHideWidth: _vm.sideHideWidth,
                  sideOpenWidth: _vm.sideOpenWidth,
                  isCollapse: _vm.isCollapse,
                  visible: _vm.visible,
                  visibleContrary: _vm.visibleContrary,
                },
                on: { activeIndex: _vm.toRouterPath },
              }),
            ],
            1
          ),
        ],
        1
      ),
      _vm._v(" "),
      _vm.isChildren
        ? _c(
            "el-drawer",
            {
              attrs: {
                direction: "ltr",
                "append-to-body": "",
                visible: _vm.showDrawer,
                size: 360,
                "close-on-press-escape": false,
                "with-header": false,
              },
              on: {
                "update:visible": function ($event) {
                  _vm.showDrawer = $event
                },
              },
            },
            [
              _c("div", { staticClass: "drawer_container" }, [
                _c("div", { staticClass: "drawer_header" }, [
                  _c(
                    "div",
                    {
                      staticClass: "back_to_base_app",
                      on: { click: _vm.backToGp3 },
                    },
                    [
                      _c("i", { staticClass: "el-icon-home" }),
                      _vm._v(" "),
                      _c("span", { staticClass: "back_text" }, [
                        _vm._v("工作台"),
                      ]),
                    ]
                  ),
                  _vm._v(" "),
                  _c("i", {
                    staticClass: "el-icon-close",
                    on: { click: _vm.closeDrawer },
                  }),
                ]),
                _vm._v(" "),
                _c(
                  "div",
                  { staticClass: "drawer_search" },
                  [
                    _c("el-input", {
                      attrs: {
                        placeholder: "输入名称来搜索",
                        "prefix-icon": "el-icon-search",
                        clearable: "",
                      },
                      model: {
                        value: _vm.searchAppName,
                        callback: function ($$v) {
                          _vm.searchAppName = $$v
                        },
                        expression: "searchAppName",
                      },
                    }),
                  ],
                  1
                ),
                _vm._v(" "),
                _c("div", { staticClass: "app_handle_container" }, [
                  _c("div", { staticClass: "my_app_text marginTop0" }, [
                    _vm._v("我的应用"),
                  ]),
                  _vm._v(" "),
                  _c(
                    "div",
                    { staticClass: "drawer_app_container" },
                    [
                      _vm._l(_vm.appList, function (group, groupIndex) {
                        return _c(
                          "div",
                          {
                            key: group.groupId,
                            staticClass: "collapse_content",
                          },
                          [
                            _c(
                              "div",
                              {
                                staticClass: "collapse_group_name",
                                on: {
                                  click: function ($event) {
                                    $event.stopPropagation()
                                    group.showCollapse = !group.showCollapse
                                  },
                                },
                              },
                              [
                                _c("i", {
                                  class: [
                                    "el-icon-caret-right",
                                    { rorate_90: group.showCollapse },
                                  ],
                                }),
                                _vm._v(" "),
                                _c("span", { staticClass: "app_name" }, [
                                  _vm._v(_vm._s(group.groupName)),
                                ]),
                              ]
                            ),
                            _vm._v(" "),
                            group.showCollapse
                              ? _c(
                                  "div",
                                  { staticClass: "collapse_item_content" },
                                  _vm._l(group.apps, function (app, appIndex) {
                                    return _c(
                                      "div",
                                      {
                                        key: app.id,
                                        staticClass: "collapse_item",
                                        on: {
                                          click: function ($event) {
                                            $event.stopPropagation()
                                            return _vm.handoffApp(app)
                                          },
                                        },
                                      },
                                      [
                                        _c(
                                          "div",
                                          {
                                            staticClass: "app_icon_bg",
                                            style: {
                                              background: app.appThemeColor,
                                            },
                                          },
                                          [
                                            _c("i", {
                                              class: [
                                                "firefly-el-icon",
                                                app.appIcon
                                                  ? app.appIcon
                                                  : "el-icon-ff-resources",
                                              ],
                                            }),
                                          ]
                                        ),
                                        _vm._v(" "),
                                        _c(
                                          "span",
                                          { staticClass: "app_name" },
                                          [_vm._v(_vm._s(app.appName))]
                                        ),
                                      ]
                                    )
                                  }),
                                  0
                                )
                              : _vm._e(),
                          ]
                        )
                      }),
                      _vm._v(" "),
                      _vm.appList.length <= 0
                        ? _c("div", { staticClass: "has_nodata" }, [
                            _vm._v("暂无数据"),
                          ])
                        : _vm._e(),
                    ],
                    2
                  ),
                  _vm._v(" "),
                  _vm.lastUseList.length > 0
                    ? _c("div", { staticClass: "my_app_text" }, [
                        _vm._v("最近使用"),
                      ])
                    : _vm._e(),
                  _vm._v(" "),
                  _c("div", { staticClass: "drawer_app_container" }, [
                    _c("div", { staticClass: "collapse_content" }, [
                      _c(
                        "div",
                        { staticClass: "collapse_item_content" },
                        _vm._l(_vm.lastUseList, function (app, appIndex) {
                          return _c(
                            "div",
                            {
                              key: app.serviceId,
                              staticClass: "collapse_item",
                              on: {
                                click: function ($event) {
                                  $event.stopPropagation()
                                  return _vm.handoffApp(app)
                                },
                              },
                            },
                            [
                              _c(
                                "div",
                                {
                                  staticClass: "app_icon_bg",
                                  style: { background: app.appThemeColor },
                                },
                                [
                                  _c("i", {
                                    class: [
                                      "firefly-el-icon",
                                      app.appIcon
                                        ? app.appIcon
                                        : "el-icon-ff-resources",
                                    ],
                                  }),
                                ]
                              ),
                              _vm._v(" "),
                              _c("span", { staticClass: "app_name" }, [
                                _vm._v(_vm._s(app.appName)),
                              ]),
                            ]
                          )
                        }),
                        0
                      ),
                    ]),
                  ]),
                ]),
              ]),
            ]
          )
        : _vm._e(),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/main.vue?vue&type=template&id=28eb920a&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/menuItem.vue?vue&type=template&id=d115987e&scoped=true&
var menuItemvue_type_template_id_d115987e_scoped_true_render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    _vm._l(_vm.data, function (item, index) {
      return _c(
        "div",
        { key: index, staticClass: "menu_group" },
        [
          item[_vm.children].length > 0 &&
          (_vm.visibleContrary ? !item[_vm.visible] : item[_vm.visible])
            ? _c(
                "el-submenu",
                {
                  class: _vm.isCollapse ? "nest_menu" : "",
                  attrs: { index: item.path },
                },
                [
                  _c("template", { slot: "title" }, [
                    _c("div", { staticClass: "menu_title" }, [
                      item.level == 1
                        ? _c("i", {
                            staticClass: "fireflyiconLevel1",
                            class: item.icon
                              ? "el-icon-" + item.icon
                              : "el-icon-default",
                          })
                        : _c("i", {
                            staticClass: "firefly-el-icon",
                            class: "el-icon-" + item.icon,
                          }),
                      _vm._v(" "),
                      _c(
                        "span",
                        {
                          style: {
                            fontWeight: item.level == 1 ? "bold" : "normal",
                          },
                          attrs: { slot: "title" },
                          slot: "title",
                        },
                        [_vm._v(_vm._s(item[_vm.title]))]
                      ),
                    ]),
                  ]),
                  _vm._v(" "),
                  _c("menu-item", {
                    key: index,
                    staticClass: "menu_list",
                    attrs: {
                      data: item[_vm.children],
                      children: _vm.children,
                      title: _vm.title,
                      sideHideWidth: _vm.sideHideWidth,
                      sideOpenWidth: _vm.sideOpenWidth,
                      isCollapse: _vm.isCollapse,
                      visible: _vm.visible,
                      visibleContrary: _vm.visibleContrary,
                    },
                    on: { activeIndex: _vm.toRouterPath },
                  }),
                ],
                2
              )
            : _vm._e(),
          _vm._v(" "),
          item[_vm.children].length == 0 &&
          (_vm.visibleContrary ? !item[_vm.visible] : item[_vm.visible])
            ? _c(
                "el-menu-item",
                {
                  key: index,
                  staticClass: "noChildMenu",
                  attrs: { index: item.path },
                },
                [
                  _c(
                    "div",
                    {
                      staticClass: "menu_title",
                      on: {
                        click: function ($event) {
                          return _vm.toRouterPath(item.path)
                        },
                      },
                    },
                    [
                      item.level == 1
                        ? _c("i", {
                            staticClass: "fireflyiconLevel1",
                            class: item.icon
                              ? "el-icon-" + item.icon
                              : "el-icon-default",
                          })
                        : _c("i", {
                            staticClass: "firefly-el-icon",
                            class: "el-icon-" + item.icon,
                          }),
                      _vm._v(" "),
                      _c(
                        "span",
                        {
                          style: {
                            fontWeight: item.level == 1 ? "bold" : "normal",
                          },
                          attrs: { slot: "title" },
                          slot: "title",
                        },
                        [_vm._v(_vm._s(item[_vm.title]))]
                      ),
                    ]
                  ),
                ]
              )
            : _vm._e(),
        ],
        1
      )
    }),
    0
  )
}
var menuItemvue_type_template_id_d115987e_scoped_true_staticRenderFns = []
menuItemvue_type_template_id_d115987e_scoped_true_render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/menuItem.vue?vue&type=template&id=d115987e&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/menuItem.vue?vue&type=script&lang=js&

/* harmony default export */ var menuItemvue_type_script_lang_js_ = ({
  name: 'menuItem',
  created() {},
  methods: {
    toRouterPath(path) {
      this.$emit('activeIndex', path);
    },
    // 点击title的方法
    onTitle() {
      this.$emit('titleClick');
    }
  },
  props: {
    // 判断是否取反
    visibleContrary: {
      type: Boolean,
      default: true
    },
    // 菜单是否隐藏(必填)
    visible: {
      type: String,
      default: null,
      require: true
    },
    // 控制菜单是收起还是展开(非必填)
    isCollapse: {
      type: Boolean,
      default: true
    },
    // 侧边宽度隐藏(非必填)
    sideHideWidth: {
      type: String,
      default: '88px'
    },
    // 侧边宽度打开(非必填)
    sideOpenWidth: {
      type: String,
      default: ''
    },
    // 路由子节点 默认children(非必填)
    children: {
      type: String,
      default: 'children'
    },
    title: {
      type: String,
      default: 'title'
    },
    data: {
      type: Array,
      default: []
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/menuItem.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_menuItemvue_type_script_lang_js_ = (menuItemvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/menuItem.vue?vue&type=style&index=0&id=d115987e&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/menuItem.vue?vue&type=style&index=0&id=d115987e&prod&lang=scss&scoped=true&

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

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/menuItem.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  src_menuItemvue_type_script_lang_js_,
  menuItemvue_type_template_id_d115987e_scoped_true_render,
  menuItemvue_type_template_id_d115987e_scoped_true_staticRenderFns,
  false,
  null,
  "d115987e",
  null
  
)

/* harmony default export */ var menuItem = (component.exports);
// CONCATENATED MODULE: ./utils/debounce.js
function debounceFun(fn, wait = 500) {
  let timer;
  return function () {
    let context = this;
    let args = arguments;
    if (timer) clearTimeout(timer);
    timer = setTimeout(() => {
      fn.apply(context, args);
    }, wait);
  };
}

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/main.vue?vue&type=script&lang=js&


// import './iconfont/iconfont.css';


const GP3_APP_USE_LIST = 'GP3_APP_USE_LIST';
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'FireflyMenu',
  components: { MenuItem: menuItem },
  data() {
    return {
      showDrawer: false,
      searchAppName: '',
      logoImage:  __webpack_require__(454),
      appList: [],
      copyAppList: [],
      lastUseList: []
    };
  },
  props: {
    // 判断是否是子应用用的菜单组件
    isChildren: {
      type: Boolean,
      default: true
    },
    // lastUseList 最近使用的列表
    useList: {
      type: Array,
      default: () => []
    },
    // 判断是否取反
    visibleContrary: {
      type: Boolean,
      default: false
    },
    // 菜单是否隐藏(必填)
    visible: {
      type: String,
      default: null,
      require: true
    },
    // logo图(非必填)
    logoImg: {
      type: String,
      default: () => __webpack_require__(455)
    },
    // 系统名称(必填)
    sysName: {
      type: String,
      default: '',
      require: true
    },
    // 控制菜单是收起还是展开(非必填)
    isCollapse: {
      type: Boolean,
      default: true
    },
    // 菜单背景色(非必填)
    menuBg: {
      type: String,
      defalut: '#ffffff'
    },
    // 菜单的文字颜色(非必填)
    menuText: {
      type: String,
      default: '#444'
    },
    // 激活菜单的文字颜色(非必填)
    menuActiveText: {
      type: String,
      default: '#45b2ff'
    },
    // 菜单路由(必填)
    menuData: {
      type: Array,
      default: '',
      require: true
    },
    // 侧边宽度隐藏(非必填)
    sideHideWidth: {
      type: String,
      default: '88px'
    },
    // 侧边宽度打开(非必填)
    sideOpenWidth: {
      type: String,
      default: ''
    },
    // 当前路由(非必填)
    activeIndex: {
      type: String,
      default: ''
    },
    // title的背景图片
    titleBgImg: {
      type: String,
      default: () => __webpack_require__(456)
    },
    // 路由子节点 默认children(非必填)
    children: {
      type: String,
      default: 'children'
    },
    // 菜单传值
    title: {
      type: String,
      default: 'title'
    },
    // // 默认展开的菜单
    // opends: {
    //   type: Array,
    //   default: [],
    // },
    // 当前点击的path(非必填)
    activePath: {
      type: String,
      default: ''
    },
    uniqueOpened: {
      type: Boolean,
      default: false
    }
  },

  watch: {
    searchAppName: debounceFun(function (newV, oldV) {
      this.searchAppByName();
    }),
    useList(newV, oldV) {
      this.lastUseList = newV
    }
  },

  created() {
    if (this.isChildren) {
      const appList = localStorage.getItem(GP3_APP_USE_LIST) && localStorage.getItem(GP3_APP_USE_LIST) != '[]' ? JSON.parse(localStorage.getItem(GP3_APP_USE_LIST)) : [];
      appList.forEach(app => {
        app.showCollapse = false;
      });
      this.appList = appList;
      this.copyAppList = appList;
    }
  },
  methods: {
    toRouterPath(path) {
      this.$emit('activeIndex', path);
    },
    // 点击title的方法
    onTitle() {
      this.showDrawer = true;
    },

    // 点击返回 gp3
    backToGp3() {
      this.$emit('titleClick');
    },

    // 切换 app
    handoffApp(app) {
      this.$emit('handoffApp', app);
    },

    // 处理鼠标事件
    handleMouseEvent(type) {
      if (!this.isChildren) return;
      // if (type == 'over') {
      //   this.logoImage = require('../../../image/fireflyMenu/d-arrow-left.png');
      // } else {
      //   this.logoImage = require('../../../image/fireflyMenu/d-arrow-left.png');
      // }
    },

    // 关闭抽屉
    closeDrawer() {
      this.showDrawer = false;
      this.$emit('closeDrawer');
    },

    searchAppByName() {
      const appName = this.searchAppName;
      if (!appName) {
        return (this.appList = this.copyAppList);
      }
      const copyAppList = JSON.parse(JSON.stringify(this.copyAppList));
      const filterList = copyAppList.filter(appInstance => {
        const appList = appInstance.apps.filter(app => app.appName.includes(appName));
        if (appList.length > 0) {
          appInstance.apps = appList;
          return appInstance;
        }
      });
      this.appList = filterList;
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/main.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyMenu/src/main.vue?vue&type=style&index=0&id=28eb920a&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/main.vue?vue&type=style&index=0&id=28eb920a&prod&lang=scss&scoped=true&

// CONCATENATED MODULE: ./components/lib/fireflyMenu/src/main.vue






/* normalize component */

var main_component = Object(componentNormalizer["a" /* default */])(
  src_mainvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "28eb920a",
  null
  
)

/* harmony default export */ var main = (main_component.exports);
// CONCATENATED MODULE: ./components/lib/fireflyMenu/index.js


// eslint-disable-next-line func-names
main.install = function (Vue) {
    Vue.component(main.name, main)
}

/* harmony default export */ var fireflyMenu = __webpack_exports__["default"] = (main);

/***/ }),

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

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACSSURBVFiF7dWxCYAwEAXQi5UIkgV0rFshA1laCNZZxxGygBPEwspcCGIgJvBf+f2Bs/pEAJCkwoDZ6HHoD1I0PT54ctu+zKX7XRhYu57i8f0rMivQFwfWBgfmEgcyG02enGjGsgL9KGaj32Sl+gCQgC3O7be3JLVp70Bs8Yc+ACRgi3P77S1Jbdo7EFv8oQ/wpwua7pJQGz2kFwAAAABJRU5ErkJggg=="

/***/ }),

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

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAVtSURBVFiFtZldbFRFFMf/M3M/dtnttnwVxKahpBVkYaFSkyqrbWNSSIhR46MSicKLGktJgSAxaYPRpNH4qlFjTRqfqST48eAukVQ0qC0JtNgSMWmAwEa3tHR378ccH8rSr7137122/8eZc8795c6ZM+feYVik2LGxGspMHmIMrxLZNWSb2mIbNz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CLgau/7jRLhNKJt0yXyYdfxa5VWbuqUad57GyQfrLfQQq5+JSw9u14KnG2a7bY11WLcu/06SXtRwWRwK/ZASaC00YtVrOPPT0iab5C0Qrmpm64pJvSKot9OvkEZ0FzsXNjeMdQjzWnPeezla9T/ZgK24GpijasF2Yf8BFRDrocSgNJAAduIu00zIOc1lBKoKrrjgVJBOW9xm5awz3oNpYWKtrGzjwTYLa9B82JEjn0jAAgR8PSdL7QIlOBqL6YTHIDvsxmEJlxOhB2n1WDBLn6xZn/wenkcxjmRPeARb04MCrjV5DR9qbdhggt90i2EGloHRa/09jyJAY6c3gfAsaF1kWueEugHpzkudASq6rw9hZDSLfRxNLalSaLTH+NsPXU3UH8vOMyE39/knclulp7d9dH2fgL1+AEFKI5EwvHA4IHKZKHxwKp67zclhJ78zchceXp8TzdJ7If3NAijesax8A/3bvoNXDHmRhgCVXVQg+5nxX3A1P1Lhu780MI6Gm3vp6zaQCQ7AZYEw4RDqCwDPkN0n2tpEyLQC3ACGIKrH4MWdv25PUFAkiQ6NRMN8++YAOB/yBPi9N8kQ90AAAAASUVORK5CYII="

/***/ }),

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

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAABsCAYAAACM2MyJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAu5JREFUeNrs3P1q01AYwOE3a90XouJQr8hr9Q4EL0cQBBkDmVu3fiSeQzen27J64rom9nn+LG3oCufXtydZquNJ0wRAsuMjAAQBEARAEABBAAQBEARAEABBAAQBEARAEABBAAQBEARAEABBAAQBEARAEABBAAQBEARAEABBAAQBEARAEABBABAEQBAAQQAEARAEQBAAQQAEARAEQBAAQQAEARAEQBAAQQAEARAEQBAAQQAEARAEQBAAQQAEARAEQBAAQQAEARAEAEEABAEQBEAQAEEAyo19BNDdxeL+b9ndUdlxLtNxmtsPpgd2qvJjCQJsSNPcfazueJzmbg/ich4xSwc8GC/jIA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