(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
	else if(typeof define === 'function' && define.amd)
		define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
	else {
		var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
	}
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
return /******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ 1349:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
/*
 * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
 * All rights reserved.
 */


element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
  _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
};
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);

/***/ }),

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

module.exports = require("@kq_npm/client_icons_vue");

/***/ }),

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

module.exports = require("core-js/modules/es.array.push.js");

/***/ }),

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

module.exports = require("element-plus/dist/index.full.js");

/***/ }),

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

module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");

/***/ }),

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

module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;

/***/ }),

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

module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;

/***/ }),

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

module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;

/***/ }),

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

module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;

/***/ }),

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


// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "Z": function() { return /* binding */ _defineProperty; }
});

;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
function _typeof(o) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
    return typeof o;
  } : function (o) {
    return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  }, _typeof(o);
}

;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js

function toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}

;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js


function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}

;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js

function _defineProperty(e, r, t) {
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
    value: t,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[r] = t, e;
}


/***/ })

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

// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
var gis_utils_ = __webpack_require__(7135);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
var defineProperty = __webpack_require__(5301);
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
var es_array_push_js_ = __webpack_require__(2118);
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
var message = __webpack_require__(1349);
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js


/*
 * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
 * All rights reserved.
 */
//模型开挖逻辑类

class ModelExcavateViewModel {
  constructor(scenceView, options) {
    (0,defineProperty/* default */.Z)(this, "_viewer", null);
    //三维viewer对象
    (0,defineProperty/* default */.Z)(this, "_options", {});
    //Box裁剪存储参数对象
    (0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
    (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
    //绘制完成监听事件
    (0,defineProperty/* default */.Z)(this, "_measureHandler", null);
    //测量三维对象
    (0,defineProperty/* default */.Z)(this, "_measureResult", null);
    //测量结果
    (0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
    //Kq3dWallPrimitive
    (0,defineProperty/* default */.Z)(this, "entity0", null);
    (0,defineProperty/* default */.Z)(this, "_language", {});
    (0,defineProperty/* default */.Z)(this, "wall", null);
    (0,defineProperty/* default */.Z)(this, "ratio", 0.01);
    (0,defineProperty/* default */.Z)(this, "ii", 1);
    (0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
    (0,defineProperty/* default */.Z)(this, "intervalId", null);
    (0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
    this._language = scenceView._language;
    this._viewer = scenceView._viewer;
    this._options = options;
    this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
    var that = this;
    if (scenceView.g_flattenedPolygonTexture) {
      this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
    } else {
      let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
      this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
      var models = this._viewer.scene.primitives._primitives;
      for (let i = 0; i < models.length; i++) {
        if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
          models[i].enableFlattenning = true;
          models[i].flattenDiscard = true;
          models[i].readyPromise.then(function (tileset) {
            that.g_flattenedPolygonTexture.attachTileset(tileset);
          });
        }
      }
    }
    this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
    this._measureHandler.measureEvent.addEventListener(function (result) {
      that._measureResult = result;
      result.measureResult.label.show = false;
    });
    this._measureHandler.activeEvent.addEventListener(function (ret) {
      if (ret == false) {
        if (that._measureResult) {
          that._options.positions = that._measureResult.positions;
          that.createDynamicExcavationEffect();
          that._measureResult.measureResult.destroy();
        }
      }
    });
  }

  // 创建开挖模型
  createDynamicExcavationEffect() {
    this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
    this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
      viewer: this._viewer,
      height: this._options.height,
      positions: this._options.positions,
      hasWall: false
    });
    if (this._wallPrimitive) {
      this._viewer.scene.primitives.remove(this._wallPrimitive);
      this._wallPrimitive = undefined;
    }
    this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
      viewer: this._viewer,
      height: this._options.height,
      positions: this._options.positions,
      elevationOnTerrain: false
    });
    this._viewer.scene.primitives.add(this._wallPrimitive);
    let that = this;
    this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
      if (eventType != "Ready") {
        return;
      }
      that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
      var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
        positions: that._options.positions,
        height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
      });
      that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);

      // that.intervalId = setInterval(function () {
      //   if (that.ii > 100) {
      //     if (that.entity0) {
      //       that._viewer.scene.primitives.remove(that.entity0);
      //       that.entity0 = undefined;
      //     }
      //     if (that.wall) {
      //       that._viewer.scene.primitives.remove(that.wall);
      //       that.wall = undefined;
      //     }
      //     clearInterval(that.intervalId);
      //     that.ii = 0;
      //     return;
      //   }

      //   var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
      //   var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);

      //   if (that.entity0) {
      //     that._viewer.scene.primitives.remove(that.entity0);
      //     that.entity0 = undefined;
      //   }

      //   that.entity0 = that.createPolyline([carto2, carto3]);

      //   that.ii++;
      //   that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();

      //   var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
      //     positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
      //     height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
      //   });
      //   that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
      // }, 100);
    });
  }
  createPolyline(positions) {
    var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
    if (this.wall) {
      this._viewer.scene.primitives.remove(this.wall);
      this.wall = undefined;
    }
    var geometryInstances = [];
    geometryInstances.push(new window.Cesium.GeometryInstance({
      geometry: new window.Cesium.WallGeometry({
        positions: positions,
        maximumHeights: [10, 10],
        minimumHeights: [-10, -10],
        vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
      })
    }));
    this.wall = new window.Cesium.Primitive({
      geometryInstances: geometryInstances,
      appearance: new window.Cesium.MaterialAppearance({
        material: material
      })
    });
    this._viewer.scene.primitives.add(this.wall);
    var geo = new window.Cesium.GroundPolylineGeometry({
      positions: positions,
      width: 40.0,
      vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
    });
    var primitive = new window.Cesium.GroundPolylinePrimitive({
      asynchronous: false,
      classificationType: window.Cesium.ClassificationType.BOTH,
      geometryInstances: new window.Cesium.GeometryInstance({
        geometry: geo
      }),
      appearance: new window.Cesium.PolylineMaterialAppearance({
        material: material
      })
    });
    return this._viewer.scene.primitives.add(primitive);
  }
  start() {
    // 判断是否添加了模型
    var flag = false;
    var that = this;
    var models = this._viewer.scene.primitives._primitives;
    for (let i = 0; i < models.length; i++) {
      if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
        models[i].enableFlattenning = true;
        models[i].flattenDiscard = true;
        // models[i].readyPromise.then(function (tileset) {
        //   that.g_flattenedPolygonTexture.attachTileset(tileset);
        // });
        flag = true;
      }
    }
    if (flag) {
      this.remove();
      this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
    } else {
      (0,message/* default */.Z)({
        message: this._language["addModelTips"],
        type: "warning"
      });
    }
  }
  // 切换高度重新计算
  setHeight(val) {
    this._options.height = Number(val);
  }
  remove() {
    // 销毁地形开挖
    if (this.intervalId) {
      clearInterval(this.intervalId);
      this.ii = 0;
      if (this.entity0) {
        this._viewer.scene.primitives.remove(this.entity0);
        this.entity0 = undefined;
      }
      if (this.wall) {
        this._viewer.scene.primitives.remove(this.wall);
        this.wall = undefined;
      }
    }
    if (this._wallPrimitive) {
      this._viewer.scene.primitives.remove(this._wallPrimitive);
      this._wallPrimitive = undefined;
    }
    this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
    this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
  }
  // 清除
  clear() {
    this._measureResult = null;
    this._measureHandler.clear();
    this.remove();
  }
  //销毁
  destroy() {
    this.clear();
    // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
    // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
    this._measureHandler && this._measureHandler.destroy();
    this._measureHandler = null;
  }
}
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
var client_icons_vue_ = __webpack_require__(348);
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
var util_ = __webpack_require__(3458);
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
var vue_i18n_cjs_js_ = __webpack_require__(7080);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js

const _hoisted_1 = {
  class: "kq3d-model-excavate-box",
  ref: "ref_box"
};
const _hoisted_2 = {
  class: "kq3d-model-excavate-span"
};
const _hoisted_3 = {
  class: "kq3d-model-excavate-footer"
};






//语言

const __default__ = {
  name: "Kq3dModelExcavate"
};
/* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
  props: {
    //指定组件绑定的viewer对象的div的id
    mapTarget: String,
    // 设置参数
    settingParams: {
      type: Object
    },
    // 是否显示阴影效果
    showShadow: {
      type: Boolean,
      default: true
    },
    /**
     * 例："center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
     */
    position: [String, Object],
    // 是否生成HeaderTemp
    showHeaderTemp: {
      type: Boolean,
      default: false
    },
    // 是否折叠HeaderTemp，showHeaderTemp为true时生效
    isCollapseHeaderTemp: {
      type: Boolean,
      default: false
    },
    // HeaderTemp标题
    headerTempTitle: {
      type: String
    },
    // HeaderTemp图标
    headerTempIcon: {
      type: [Object, String],
      default: client_icons_vue_.IconModelExcavation
    },
    // HeaderTemp Title&Icon的位置
    isRight: {
      type: Boolean,
      default: true
    }
  },
  setup(__props, {
    expose: __expose
  }) {
    const props = __props;
    const {
      proxy
    } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
    let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
    let viewModel = null;
    let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale);

    // 获取组件传参

    let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
      excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
      // 地形开挖深度
      minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
      // 地形开挖深度范围最小值
      maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
    });

    // 组件容器Ref
    let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);

    // 生成组件默认header
    let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
    let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();

    // 国际化
    let {
      locale,
      messages
    } = (0,vue_i18n_cjs_js_.useI18n)();
    let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
      language.value = messages.value[newVal]["webgl"];
      headerTempTitle.value = language.value.modelExcavateTitle;
    });
    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
      (0,util_.updatePosition)(boxRef.value, props);
      (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
        (0,util_.updatePosition)(boxRef.value, props);
      });
      watchCreateHeaderTemp();
      (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
        (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
          watchCreateHeaderTemp();
        });
      });

      //父组件ScenceView初始化完成后执行
      gis_utils_.utils.getWebMap(null, scenceView => {
        if (scenceView) {
          viewModel = new ModelExcavateViewModel(scenceView, {
            height: formItem.excavationDepth
          });
          window.scenceView = scenceView;
        }
      });
    });

    /**
     * @description 监听header生成
     */
    const watchCreateHeaderTemp = () => {
      if (props.showHeaderTemp) {
        // 生成headerTemp
        headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
      }
    };
    // 调整开挖深度
    function changeHeight() {
      viewModel && viewModel.setHeight(formItem.excavationDepth);
    }
    // 开始分析
    function startOperation() {
      viewModel && viewModel.start();
    }
    // 清除
    function clear() {
      viewModel && viewModel.clear();
    }

    // 销毁
    (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
      viewModel && viewModel.destroy();
    });
    __expose({
      clear
    });
    return (_ctx, _cache) => {
      const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
      const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
      const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
      const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
      const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
      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)(["kq3d-model-excavate", {
          'kq-box-shadow': __props.showShadow
        }]),
        ref_key: "boxRef",
        ref: boxRef
      }, [__props.showHeaderTemp ? ((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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
        key: 0,
        ref_key: "headerTempRef",
        ref: headerTempRef
      }, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (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, {
        gutter: 10
      }, {
        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_col, {
          span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
        }, {
          default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavationDepth), 1 /* TEXT */)]),
          _: 1 /* STABLE */
        }, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
          span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
        }, {
          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_slider, {
            modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
            "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
            step: 1,
            min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
            max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
            onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
            onClick: _cache[2] || (_cache[2] = $event => changeHeight())
          }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
          _: 1 /* STABLE */
        }, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
          span: 6,
          style: {
            "text-align": "end"
          }
        }, {
          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_number, {
            modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
            "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
            min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
            step: 1,
            max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
            "controls-position": "right",
            onInput: _cache[4] || (_cache[4] = $event => changeHeight())
          }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
          _: 1 /* STABLE */
        })]),
        _: 1 /* STABLE */
      }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
        class: "kq3d-model-excavate-tip"
      }, {
        default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1 /* TEXT */)]),
        _: 1 /* STABLE */
      }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
        onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
        title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
        type: "primary"
      }, {
        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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation), 1 /* TEXT */)]),
        _: 1 /* STABLE */
      }, 8 /* PROPS */, ["title"]), (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 => clear(), ["stop"])),
        title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
      }, {
        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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1 /* TEXT */)]),
        _: 1 /* STABLE */
      }, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
    };
  }
}));
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
 
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue



const __exports__ = ModelExcavatevue_type_script_setup_true_lang_js;

/* harmony default export */ var ModelExcavate = (__exports__);
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
var init_js_ = __webpack_require__(7997);
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
/*
 * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
 * All rights reserved.
 */



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

}();
/******/ 	return __webpack_exports__;
/******/ })()
;
});