/******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ 8422:
/***/ (function(module) {

module.exports = require("@element-plus/icons-vue");

/***/ }),

/***/ 6867:
/***/ (function(module) {

module.exports = require("@zpc_npm/vue-iclient-icons");

/***/ }),

/***/ 2107:
/***/ (function(module) {

module.exports = require("@zpc_npm/vue-iclient-leaflet/_utils/util");

/***/ }),

/***/ 1396:
/***/ (function(module) {

module.exports = require("@zpc_npm/vue-iclient-leaflet/init.js");

/***/ }),

/***/ 637:
/***/ (function(module) {

module.exports = require("vue");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// 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 });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
!function() {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": function() { return /* reexport */ ToolBox; }
});

// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet/_utils/util"
var util_ = __webpack_require__(2107);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-icons"
var vue_iclient_icons_ = __webpack_require__(6867);
// EXTERNAL MODULE: external "@element-plus/icons-vue"
var icons_vue_ = __webpack_require__(8422);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/common/toolbox/ToolBox.vue?vue&type=script&setup=true&lang=js

const _hoisted_1 = {
  class: "title"
};
const _hoisted_2 = {
  class: "childItems"
};
const _hoisted_3 = ["onClick"];
const _hoisted_4 = {
  class: "tit"
};




const __default__ = {
  name: "KqToolBox"
};
/* harmony default export */ var ToolBoxvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
  props: {
    showShadow: {
      type: Boolean,
      default: false
    },

    /**
     * 例："center", {top:'16px',left:'16px'}, {top:16,left:16}
     */
    position: [String, Object],
    tools: {
      type: Array,
      default: () => [{
        label: "常用",
        children: [{
          label: "常用",
          icon: vue_iclient_icons_.IconToolBox,
          value: "ToolCommon"
        }, {
          label: "测量",
          icon: vue_iclient_icons_.IconMeasure2D,
          value: "ToolMeasure"
        }, {
          label: "定位",
          icon: vue_iclient_icons_.IconLocation,
          value: "ToolLocation"
        }, {
          label: "绘图面板",
          icon: vue_iclient_icons_.IconEdit,
          value: "ToolDrawPanel"
        }, {
          label: "选图",
          icon: vue_iclient_icons_.IconSelectLayer,
          value: "ToolSelectLayer"
        }]
      }, {
        label: "对比",
        children: [{
          label: "滤镜",
          icon: vue_iclient_icons_.IconFilter,
          value: "ToolFilter"
        }, {
          label: "时间轴",
          icon: vue_iclient_icons_.IconTimeBar,
          value: "ToolTimeBar"
        }]
      }, {
        label: "更新",
        children: [{
          label: "数据编辑",
          icon: icons_vue_.Edit,
          value: "ToolEdit"
        }, {
          label: "添加数据",
          icon: vue_iclient_icons_.IconAddData,
          value: "ToolAddData"
        }]
      }, {
        label: "分析",
        children: [{
          label: "叠置分析",
          icon: vue_iclient_icons_.IconOverlayAnalysis,
          value: "ToolAnaPane"
        }]
      }, {
        label: "出图",
        children: [{
          label: "截图",
          icon: vue_iclient_icons_.IconScreenshot,
          value: "ToolScreenshot"
        }, {
          label: "打印",
          icon: vue_iclient_icons_.IconPrint,
          value: "ToolPrint"
        }]
      }, {
        label: "渲染",
        children: [{
          label: "行政区遮罩",
          icon: vue_iclient_icons_.IconXzqCover,
          value: "ToolXZQCover"
        }]
      }]
    }
  },
  emits: ["select"],

  setup(__props, {
    emit
  }) {
    const props = __props;

    const selectTools = item => {
      var tool = item.value;
      emit("select", tool);
    };

    let box_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
      (0,util_.updatePosition)(box_ref.value, props);
    });
    return (_ctx, _cache) => {
      const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");

      return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
        class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-tool-box", __props.showShadow ? 'shadow' : null]),
        ref_key: "box_ref",
        ref: box_ref
      }, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(__props.tools, item => {
        return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
          class: "item",
          key: item.label
        }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("h4", _hoisted_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(item.label), 1
        /* TEXT */
        ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(item.children, childItem => {
          return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
            class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["childItem", childItem.active ? 'active' : null]),
            key: childItem.label,
            onClick: $event => selectTools(childItem)
          }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
            color: "#606266",
            size: 16,
            class: "icon"
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)(childItem.icon)))]),
            _: 2
            /* DYNAMIC */

          }, 1024
          /* DYNAMIC_SLOTS */
          ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("h4", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(childItem.label), 1
          /* TEXT */
          )], 10
          /* CLASS, PROPS */
          , _hoisted_3);
        }), 128
        /* KEYED_FRAGMENT */
        ))])]);
      }), 128
      /* KEYED_FRAGMENT */
      ))], 2
      /* CLASS */
      );
    };
  }

}));
;// CONCATENATED MODULE: ./src/common/toolbox/ToolBox.vue?vue&type=script&setup=true&lang=js
 
;// CONCATENATED MODULE: ./src/common/toolbox/ToolBox.vue



const __exports__ = ToolBoxvue_type_script_setup_true_lang_js;

/* harmony default export */ var ToolBox = (__exports__);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet/init.js"
var init_js_ = __webpack_require__(1396);
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
;// CONCATENATED MODULE: ./src/common/toolbox/index.js



ToolBox.install = (Vue, opts) => {
  init_js_default()(Vue, opts);
  Vue.component(ToolBox.name, ToolBox);
};


}();
module.exports = __webpack_exports__;
/******/ })()
;