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

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

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

/***/ }),

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

module.exports = require("xe-utils");

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

module.exports = require("vue");

/***/ }),

/***/ 8270:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Z": function() { return /* binding */ _defineProperty; }
/* harmony export */ });
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// 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__, {
  "AddDataViewModel": function() { return /* reexport */ AddDataViewModel; },
  "default": function() { return /* reexport */ AddData; }
});

// 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 "@element-plus/icons-vue"
var icons_vue_ = __webpack_require__(8422);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet/_utils/util"
var util_ = __webpack_require__(2107);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(8270);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet/_utils/gis-utils"
var gis_utils_ = __webpack_require__(257);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet/_utils/webmapservice"
var webmapservice_ = __webpack_require__(3763);
var webmapservice_default = /*#__PURE__*/__webpack_require__.n(webmapservice_);
// EXTERNAL MODULE: external "xe-utils"
var external_xe_utils_ = __webpack_require__(6869);
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_);
// EXTERNAL MODULE: external "@zpc_npm/vue-iclient-leaflet"
var vue_iclient_leaflet_ = __webpack_require__(7025);
;// CONCATENATED MODULE: ./src/leaflet/adddata/AddDataViewModel.js







class AddDataViewModel extends L.Evented {
  constructor(mapTarget, geometryServerUrl, geometryServerToken) {
    super();

    (0,defineProperty/* default */.Z)(this, "_props", null);

    (0,defineProperty/* default */.Z)(this, "webMap", null);

    this._props = {
      mapTarget,
      geometryServerUrl,
      geometryServerToken
    };
    this._loadedAsync = this._loadedAsync.bind(this);
    this._loadedSync = this._loadedSync.bind(this);

    this._registerEvents();
  }

  _registerEvents() {
    // 监听地图初始化完成事件
    // 异步
    gis_utils_.mapViewUtils.bindViewEvents("mounted", this._loadedAsync, this._props.mapTarget); // 同步

    gis_utils_.utils.getWebMap(this._props.mapTarget, this._loadedSync);
  }

  _loadedAsync(e) {
    // 如果图层变化事件是自己触发的 则不继续执行 避免死循环
    if (e.eventTarget && e.eventTarget === this) {
      return;
    }

    this.webMap = e.target;
  }

  _loadedSync(e) {
    this.webMap = e;
  } // 单个导入文件


  uploadFile(file) {
    return new Promise((resolve, reject) => {
      if (file.status === "ready") {
        let fileType = file.name.substring(file.name.lastIndexOf("."));

        if (fileType.toUpperCase() === ".ZIP" || fileType.toUpperCase() === ".RAR") {
          (0,util_.uploadSHP)(this._props.geometryServerUrl, file.raw, this._props.geometryServerToken).then(res => {
            this._addMapLayer(res, file.name);

            resolve("success");
          }).catch(err => {
            reject(file.uid);
          });
        } else if (fileType.toUpperCase() === ".TXT") {
          (0,util_.readTxT)(file.raw, res => {
            if (res) {
              this._addMapLayer(res, file.name);

              resolve("success");
            } else {
              reject(file.uid);
            }
          });
        } else if (fileType.toUpperCase() === ".JSON" || fileType.toUpperCase() === ".GEOJSON") {
          (0,util_.readJSON)(file.raw, res => {
            if (res) {
              this._addMapLayer(res, file.name);

              resolve("success");
            } else {
              reject(file.uid);
            }
          });
        }
      }
    });
  } // 批量导入文件


  uploadFiles(files) {
    var arr = [];
    files.forEach(file => {
      arr.push(this.uploadFile(file));
    });
    return Promise.all(arr);
  } // 添加图层到地图


  _addMapLayer(geojson, filename) {
    let gc = (0,util_.featureCollection2GeometryCollection)(geojson);
    var layers = [{
      name: filename.split(".")[0],
      guid: external_xe_utils_default().uniqueId("addData_"),
      data: gc
    }];
    this.webMap.addTempData(layers, true);
  }
  /**
   * URL添加数据
   * @param {string} type
   * @param {string} url - 服务地址，例：http://support.kqgeo.com:29800/china3857-proxy/kqgis/rest/services/china3857/map
   * @param {string} [name] - 服务图层名称
   */


  loadURL(params) {
    return new Promise((resolve, reject) => {
      var serverName = params.name ? params.name : params.url.split("services/")[1].split("/")[0];
      var serverUrl = params.url.split("services/")[0] + "services/";
      let webMapService = new (webmapservice_default())(serverName, {
        token: this._props.geometryServerToken,
        serverUrl: serverUrl
      });
      webMapService.getMapInfo().then(mapInfo => {
        if (mapInfo.resultcode === "error") {
          reject(error);
          (0,vue_iclient_leaflet_.KqMessage)({
            message: mapInfo.message,
            grouping: true,
            type: "error",
            duration: 6000
          });
          return;
        } // 存储地图的名称以及描述等信息，返回给用户


        const webMapInfo = (0,util_.formatKQMapInfo)(mapInfo, serverUrl, serverName, this._props.geometryServerToken, null, true);
        this.webMap.addTempData(webMapInfo.layerTreeData, true, webMapInfo.layers_show);
        console.log(this.webMap);
        resolve(webMapInfo);
      }, error => {
        throw error;
      });
    });
  }

  destroy() {
    this.off();
  }

}
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/leaflet/adddata/AddData.vue?vue&type=script&setup=true&lang=js

const _hoisted_1 = {
  class: "kq-add-data-desc"
};

const _hoisted_2 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("文件格式说明");

const _hoisted_3 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("支持上传.zip、.rar、.txt、.json、.geojson文件");

const _hoisted_4 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
  class: "kq-add-data-upload_text"
}, "将文件拖拽至此区域", -1
/* HOISTED */
);

const _hoisted_5 = {
  class: "kq-add-data-filelist"
};
const _hoisted_6 = {
  class: "kq-add-data-file"
};
const _hoisted_7 = ["title"];
const _hoisted_8 = {
  class: "kq-add-data-footer"
};

const _hoisted_9 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)(" 选择文件 ");

const _hoisted_10 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)(" 清空文件 ");

const _hoisted_11 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)(" 加载 ");

const _hoisted_12 = {
  class: "kq-add-data-tip"
};
const _hoisted_13 = {
  key: 0,
  class: "kq-add-data-tip"
};
const _hoisted_14 = {
  class: "kq-add-data-footer"
};

const _hoisted_15 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)(" 加载 ");

const _hoisted_16 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)(" 重置 ");





 // 获取组件传参

const __default__ = {
  name: "Kq2dAddData"
};
/* harmony default export */ var AddDatavue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
  props: {
    // 每个地图相关组件的必须参数 非必传 指定组件绑定的map对象的div的id
    mapTarget: String,
    // 是否显示阴影
    showShadow: {
      type: Boolean,
      default: false
    },

    /**
     * 例："center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
     */
    position: [String, Object],
    // 几何服务地址前缀，例：http://support.kqgeo.com:29800/geometry-proxy/kqgis/rest/services/geometry
    geometryServerUrl: {
      type: String,
      required: true
    },
    // 几何服务token，例：eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJob3N0IiwiY3JlYXRlZCI6MTY1NTk2MzU1NzUyMywiZXhwIjoxNzY3MTEwNDAwfQ.BiNOr6vL6liHzlMK89XSvqmFY9fuWiYqDEwYmWxk-6vFKBgLeMC8FloBXyKcxOCl9Rd28y_pX4PhVRYP5cZTwA
    geometryServerToken: {
      type: String,
      required: true
    }
  },

  setup(__props) {
    const props = __props; // 组件容器

    let box_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
    let viewModel = null; // 文件拖拽区容器

    let upload_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 文件存储区容器

    let upload_btn_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 文件缓存数组

    let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 当前显示的pane

    let activeName = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("upload"); // 通过URL添加数据的类型

    let types = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
      name: "KQGIS REST服务",
      value: "KQGIS REST"
    } // {
    //   name: "OGC WMS服务",
    //   value: "OGC WMS"
    // },
    // {
    //   name: "OGC WMTS服务",
    //   value: "OGC WMTS"
    // },
    ]);
    let URLForm = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
      type: "KQGIS REST",
      url: "",
      name: ""
    });
    const rules = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
      url: [{
        required: true,
        message: '请输入URL地址',
        trigger: 'blur'
      }]
    });
    const ruleFormRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
    let typeTip = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("由苍穹服务程序(KQGIS Server)发布的二维地图服务");
    let urlFormat = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("格式:http://<host>:<port>/kqgis/rest/services/<servername>/map");
    let operatorArray = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
      let array = [];
      let list = [...fileList.value];
      let len = list.length;

      for (let i = 0, j = 0; i < len; i += 3, j++) {
        array[j] = list.splice(0, 3);
      }

      return array;
    });
    let disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
      let flag = true;

      if (fileList.value.length > 0) {
        flag = false;
      }

      return flag;
    });
    let loading_file = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
    let loading_URL = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
      (0,util_.updatePosition)(box_ref.value, props);
      viewModel = new AddDataViewModel(props.mapTarget, props.geometryServerUrl, props.geometryServerToken);
    }); // 销毁

    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
      clear();
      viewModel = null;
    }); // 切换tab页

    function handleChange(pane) {
      if (pane === "upload") {
        removeFiles();
      } else {
        reset(ruleFormRef.value);
      }
    } // 切换URL数据类型


    function changeType(val) {
      switch (val) {
        case "KQGIS REST":
          typeTip.value = "由苍穹服务程序(KQGIS Server)发布的二维地图服务";
          urlFormat.value = "格式:http://<host>:<port>/kqgis/rest/services/<servername>/map";
          break;

        case "OGC WMS":
          typeTip.value = "符合OGC WMS服务标准的二维地图服务";
          urlFormat.value = "格式:http://<host>:<port>/arcgis/rest/services/<servername>/map/WMS";
          break;

        case "OGC WMTS":
          typeTip.value = "符合OGC WMTS服务标准的二维地图服务";
          urlFormat.value = "格式: http://<host>:<port>/arcgis/rest/services/<servername>/map/WMTS";
          break;

        default:
          break;
      }
    } //上传数据-选择文件


    function changeFile(file) {
      fileList.value.push(file);
    } // 删除文件


    function removeFile(file) {
      fileList.value.forEach((item, index) => {
        if (item.uid === file.uid) {
          fileList.value.splice(index, 1);
        }
      });
    } // 上传数据-清空所有文件


    function removeFiles() {
      upload_ref.value.$refs.child.clearFiles();
      upload_btn_ref.value.$refs.child.clearFiles();
      fileList.value = [];
    } //上传数据-加载文件


    function loadFiles() {
      loading_file.value = true;
      viewModel.uploadFiles(fileList.value).then(() => {
        removeFiles();
        loading_file.value = false;
      }).catch(err => {
        let result = external_xe_utils_default().filter(fileList.value, item => item.uid == err);
        fileList.value = result;
        loading_file.value = false;
      });
    } // 通过URL添加数据-加载服务


    function loadURL(formEl) {
      if (!formEl || !formEl.$refs.child) return;
      formEl.$refs.child.validate((valid, fields) => {
        if (valid) {
          loading_URL.value = true;
          viewModel.loadURL({
            url: URLForm.url,
            name: URLForm.name
          }).then(() => {
            loading_URL.value = false;
          }).catch(err => {
            loading_URL.value = false;
          });
        } else {}
      });
    } // 通过URL添加数据-重置


    function reset(formEl) {
      if (formEl && formEl.$refs.child) {
        formEl.$refs.child.resetFields();
      }

      loading_URL.value = false;
      typeTip.value = "由苍穹服务程序(KQGIS Server)发布的二维地图服务";
      urlFormat.value = "格式:http://<host>:<port>/KQGis/rest/services/<servername>/map";
      URLForm.type = "KQGIS REST";
      URLForm.url = "";
      URLForm.name = "";
    }

    function clear() {
      viewModel.destroy();
    }

    return (_ctx, _cache) => {
      const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");

      const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");

      const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");

      const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");

      const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");

      const _component_kq_tab_pane = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tab-pane");

      const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");

      const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");

      const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");

      const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");

      const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");

      const _component_kq_tabs = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tabs");

      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-add-data", __props.showShadow ? 'shadow' : null]),
        ref_key: "box_ref",
        ref: box_ref
      }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tabs, {
        modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(activeName),
        "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(activeName) ? activeName.value = $event : activeName = $event),
        onTabChange: handleChange
      }, {
        default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" 上传数据 "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tab_pane, {
          label: "上传数据",
          name: "upload"
        }, {
          default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
            class: ""
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_2]),
            _: 1
            /* STABLE */

          }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
            class: "kq-add-data-tip"
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_3]),
            _: 1
            /* STABLE */

          })]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
            drag: "",
            action: "",
            accept: ".zip,.rar,.txt,.json,.geojson",
            multiple: true,
            "show-file-list": false,
            "auto-upload": false,
            "file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
            "onUpdate:file-list": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(fileList) ? fileList.value = $event : fileList = $event),
            "on-change": changeFile,
            ref_key: "upload_ref",
            ref: upload_ref
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_4]),
            _: 1
            /* STABLE */

          }, 8
          /* PROPS */
          , ["file-list"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length === 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [((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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(operatorArray), (rowItem, i) => {
            return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
              key: i,
              gutter: 20
            }, {
              default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((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)(rowItem, (file, j) => {
                return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_col, {
                  span: 8,
                  key: j
                }, {
                  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
                    class: "kq-add-data-doc"
                  }, {
                    default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Document))]),
                    _: 1
                    /* STABLE */

                  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", {
                    title: file.name
                  }, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(file.name), 9
                  /* TEXT, PROPS */
                  , _hoisted_7), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
                    class: "kq-add-data-close",
                    onClick: $event => removeFile(file)
                  }, {
                    default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.CircleClose))]),
                    _: 2
                    /* DYNAMIC */

                  }, 1032
                  /* PROPS, DYNAMIC_SLOTS */
                  , ["onClick"])])]),
                  _: 2
                  /* DYNAMIC */

                }, 1024
                /* DYNAMIC_SLOTS */
                );
              }), 128
              /* KEYED_FRAGMENT */
              ))]),
              _: 2
              /* DYNAMIC */

            }, 1024
            /* DYNAMIC_SLOTS */
            );
          }), 128
          /* KEYED_FRAGMENT */
          ))], 512
          /* NEED_PATCH */
          ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length > 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
            action: "",
            multiple: true,
            "show-file-list": false,
            "auto-upload": false,
            accept: ".zip,.rar,.txt,.json,.geojson",
            ref_key: "upload_btn_ref",
            ref: upload_btn_ref,
            class: "kq-add-data-footer-upload",
            "on-change": changeFile
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
              title: "选择文件",
              type: "primary"
            }, {
              default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_9]),
              _: 1
              /* STABLE */

            })]),
            _: 1
            /* STABLE */

          }, 512
          /* NEED_PATCH */
          ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
            onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
            title: "清空文件",
            type: "primary"
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_10]),
            _: 1
            /* STABLE */

          }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
            onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadFiles(), ["stop"])),
            title: "加载",
            type: "primary",
            disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled),
            loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading_file)
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_11]),
            _: 1
            /* STABLE */

          }, 8
          /* PROPS */
          , ["disabled", "loading"])])]),
          _: 1
          /* STABLE */

        }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" 通过URL添加 "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tab_pane, {
          label: "通过URL添加",
          name: "url"
        }, {
          default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
            "label-width": "80px",
            "label-position": "left",
            model: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm),
            rules: rules,
            ref_key: "ruleFormRef",
            ref: ruleFormRef
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
              default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
                label: "类型"
              }, {
                default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
                  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).type,
                  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).type = $event),
                  onChange: changeType
                }, {
                  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(types), item => {
                    return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
                      key: item.value,
                      label: item.name,
                      value: item.value
                    }, {
                      default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(item.name), 1
                      /* TEXT */
                      )]),
                      _: 2
                      /* DYNAMIC */

                    }, 1032
                    /* PROPS, DYNAMIC_SLOTS */
                    , ["label", "value"]);
                  }), 128
                  /* KEYED_FRAGMENT */
                  ))]),
                  _: 1
                  /* STABLE */

                }, 8
                /* PROPS */
                , ["modelValue"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typeTip)), 1
                /* TEXT */
                )]),
                _: 1
                /* STABLE */

              })]),
              _: 1
              /* STABLE */

            }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
              default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
                label: "URL地址",
                prop: "url"
              }, {
                default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input, {
                  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).url,
                  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).url = $event),
                  placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(urlFormat)
                }, null, 8
                /* PROPS */
                , ["modelValue", "placeholder"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).type ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("span", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(urlFormat)), 1
                /* TEXT */
                )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
                _: 1
                /* STABLE */

              })]),
              _: 1
              /* STABLE */

            }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
              default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
                label: "图层名称"
              }, {
                default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input, {
                  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).name,
                  "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(URLForm).name = $event),
                  placeholder: "未命名的图层"
                }, null, 8
                /* PROPS */
                , ["modelValue"])]),
                _: 1
                /* STABLE */

              })]),
              _: 1
              /* STABLE */

            })]),
            _: 1
            /* STABLE */

          }, 8
          /* PROPS */
          , ["model", "rules"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_14, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
            onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadURL(ruleFormRef.value), ["stop"])),
            title: "加载",
            type: "primary",
            loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading_URL)
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_15]),
            _: 1
            /* STABLE */

          }, 8
          /* PROPS */
          , ["loading"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
            onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => reset(ruleFormRef.value), ["stop"])),
            title: "重置"
          }, {
            default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_16]),
            _: 1
            /* STABLE */

          })])]),
          _: 1
          /* STABLE */

        })]),
        _: 1
        /* STABLE */

      }, 8
      /* PROPS */
      , ["modelValue"])], 2
      /* CLASS */
      );
    };
  }

}));
;// CONCATENATED MODULE: ./src/leaflet/adddata/AddData.vue?vue&type=script&setup=true&lang=js
 
;// CONCATENATED MODULE: ./src/leaflet/adddata/AddData.vue



const __exports__ = AddDatavue_type_script_setup_true_lang_js;

/* harmony default export */ var AddData = (__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/leaflet/adddata/index.js




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


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