(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[23],{
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/control.vue?vue&type=script&setup=true&lang=ts":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/control.vue?vue&type=script&setup=true&lang=ts ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _components_control_panl_index_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/control-panl/index.vue */ "./src/components/control-panl/index.vue");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./src/views/earthwork/constant.ts");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/store */ "./src/store/index.ts");
/* harmony import */ var _sdk_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/sdk/index */ "./src/sdk/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _store_dataset__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store/dataset */ "./src/store/dataset.ts");
/* harmony import */ var _kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @kankan/components/src/expose-common */ "../kankan-components/src/expose-common.js");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _components_coord_type_constant__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/coord-type/constant */ "./src/components/coord-type/constant.ts");
/* harmony import */ var _sceneMap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./sceneMap */ "./src/views/earthwork/sceneMap.ts");
/* harmony import */ var _store_controlPoint__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/store/controlPoint */ "./src/store/controlPoint.ts");
var __assign = undefined && undefined.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'control',
props: {
show: {
type: Boolean,
required: true
},
unit: {
type: null,
required: true
},
count: {
type: Number,
required: true
},
current: {
type: null,
required: true
},
getTitle: {
type: Function,
required: true
}
},
emits: ["addEarthwork", "startEarthwork", "endEarthwork", "deleteEarthwork"],
setup: function (__props, _c) {
var _this = this;
var expose = _c.expose,
emit = _c.emit;
var props = __props;
var laser = Object(_hook__WEBPACK_IMPORTED_MODULE_8__["useSDK"])();
var runs = Object(vue__WEBPACK_IMPORTED_MODULE_2__["shallowRef"])([]);
var tempEarthwork = {};
var currentEarthwork = Object(vue__WEBPACK_IMPORTED_MODULE_2__["shallowRef"])(null);
var ce = Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])(function () {
var _c;
return ((_c = currentEarthwork.value) === null || _c === void 0 ? void 0 : _c.canvas) || props.current && Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(props.current);
});
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function (onClean) {
var _c;
if (!((_c = currentEarthwork.value) === null || _c === void 0 ? void 0 : _c.canvas)) return;
onClean(Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
// currentEarthwork.value.canvas.setHeight(
// currentEarthwork.value.raw.heightType,
// currentEarthwork.value.raw.height
// );
}));
});
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
var d = !(props.current && Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(props.current));
_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][2].ctrls[1].disabled = _constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][2].ctrls[2].disabled = d;
_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][3].ctrls[0].disabled = runs.value.some(function (t) {
return t.value === "viewMode";
}) || d;
});
var useSetting = function (ctrl) {
if (ctrl.value === "crop-delete") {
selectShape.value.delete();
} else if (ctrl.value === "crop-exclude") {
quitHook["crop-exclude"] = ce.value.crop.excludeMode();
}
};
var endEarthwork = function () {
var type = Object.keys(tempEarthwork).find(function (key) {
return tempEarthwork[key] === currentEarthwork.value;
});
emit("endEarthwork");
if (currentEarthwork.value) {
currentEarthwork.value.canvas.clear();
currentEarthwork.value.canvas.bus.off("end", endHandler);
currentEarthwork.value.canvas.bus.off("quit", quitHandler);
currentEarthwork.value = null;
}
delete tempEarthwork[type];
};
var quitEarthwork = function () {
if (currentEarthwork.value) {
currentEarthwork.value.canvas.quit();
endEarthwork();
}
};
var repeat = function () {
var newRuns = runs.value.filter(function (item) {
return item.makeup;
});
if (Object(_utils__WEBPACK_IMPORTED_MODULE_7__["inRevise"])(runs.value, newRuns)) {
ctrlsHandler(runs.value, newRuns);
}
};
var isShowTip = false;
var endHandler = function () {
currentEarthwork.value.raw.points = currentEarthwork.value.canvas.getPoints();
currentEarthwork.value.raw.dataset_points = currentEarthwork.value.canvas.getDatasetLocations();
currentEarthwork.value.raw.datasetIds = currentEarthwork.value.canvas.getDatasets();
var datasetId = currentEarthwork.value.canvas.getDatasetId();
currentEarthwork.value.raw.dataSet = datasetId ? _store__WEBPACK_IMPORTED_MODULE_5__["store"].dataset.list.find(function (_c) {
var id = _c.id;
return id === datasetId;
}) : _store_dataset__WEBPACK_IMPORTED_MODULE_9__["unTemp"];
var data = currentEarthwork.value.raw;
endEarthwork();
emit("addEarthwork", data);
runs.value = runs.value.filter(function (item) {
return item.value !== "AREA";
});
if (!isShowTip) {
isShowTip = true;
var atom = runs.value.find(function (_c) {
var icon = _c.icon;
return Object.values(_constant__WEBPACK_IMPORTED_MODULE_4__["infos"]).some(function (info) {
return info.icon === icon;
});
});
if (atom && _utils__WEBPACK_IMPORTED_MODULE_7__["os"].isPc && !_utils__WEBPACK_IMPORTED_MODULE_7__["os"].isTablet) {
atom.key = "measure-area";
atom.guide = _lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.toolTip");
}
}
};
var quitHandler = function () {
quitEarthwork();
repeat();
};
var selectShape = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(null);
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function (onClean) {
var _c;
if ((_c = ce.value) === null || _c === void 0 ? void 0 : _c.crop) {
var crop_1 = ce.value.crop;
crop_1.bus.on("selectShape", function (e) {
return selectShape.value = e;
});
crop_1.bus.on("unSelectShape", function () {
return selectShape.value = null;
});
onClean(function () {
crop_1.bus.off("selectShape");
crop_1.bus.off("unSelectShape");
});
}
onClean(function () {});
});
_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][1].ctrls[0].children[1].disabled = _store_controlPoint__WEBPACK_IMPORTED_MODULE_14__["unSetScene"].value;
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
var vdisable = runs.value.some(function (t) {
return t.value === "viewMode";
});
_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][3].ctrls.forEach(function (ctrl) {
if (vdisable) {
ctrl.disabled = vdisable;
} else if (ctrl.value !== "crop-exclude") {
ctrl.disabled = !selectShape.value;
}
});
if (vdisable) {
var ndx = runs.value.findIndex(function (item) {
return item.value === "crop-exclude";
});
console.log(vdisable, ndx, __spreadArray([], runs.value, true));
if (~ndx) {
runs.value = runs.value.filter(function (item) {
return item.value !== "crop-exclude";
});
}
}
});
var quitHook = {};
var ctrlsHandler = function (ctrls, oldCtrls) {
return __awaiter(_this, void 0, void 0, function () {
var delCtrls, _i, delCtrls_1, ctrl, type, addCtrls, _loop_1, _c, addCtrls_1, ctrl, state_1;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
if (oldCtrls) {
delCtrls = oldCtrls.filter(function (item) {
return !ctrls.includes(item);
});
for (_i = 0, delCtrls_1 = delCtrls; _i < delCtrls_1.length; _i++) {
ctrl = delCtrls_1[_i];
type = ctrl.value;
if (ctrl.children) {
continue;
}
quitHook[type] && quitHook[type]();
delete quitHook[type];
switch (type) {
case "crop-exclude":
case "crop-move":
case "crop-rotate":
case "crop-scale":
case "gis":
case "local":
break;
case "crop-delete":
break;
case "add-point":
ce.value.leaveAddPoint();
break;
case "del-point":
quitHook["del-point"]();
break;
case "magnifier":
// hotDisabledStack.pop();
// magnifierModeStack.pop();
break;
case "viewMode":
// spiltViewModeStack.pop();
break;
default:
quitEarthwork();
}
}
}
addCtrls = oldCtrls ? ctrls.filter(function (item) {
return !oldCtrls.includes(item);
}) : ctrls;
_loop_1 = function (ctrl) {
var type, _e, quit_1, old1_1, old2_1, old21_1, stop_1, custom, _f, earthwork, raw;
return __generator(this, function (_g) {
switch (_g.label) {
case 0:
type = ctrl.value;
if (ctrl.children) {
return [2 /*return*/, "continue"];
}
_e = type;
switch (_e) {
case "crop-exclude":
return [3 /*break*/, 1];
case "crop-move":
return [3 /*break*/, 2];
case "crop-rotate":
return [3 /*break*/, 3];
case "crop-scale":
return [3 /*break*/, 4];
case "crop-delete":
return [3 /*break*/, 5];
case "gis":
return [3 /*break*/, 6];
case "local":
return [3 /*break*/, 7];
case "add-point":
return [3 /*break*/, 8];
case "del-point":
return [3 /*break*/, 9];
case "magnifier":
return [3 /*break*/, 10];
case "viewMode":
return [3 /*break*/, 11];
}
return [3 /*break*/, 12];
case 1:
quit_1 = ce.value.crop.excludeMode();
ce.value.crop.bus.on("cancelExclude", function () {
quit_1 = null;
runs.value = runs.value.filter(function (item) {
return item.value !== "crop-exclude";
});
});
quitHook["crop-exclude"] = function () {
quit_1 && quit_1();
};
return [3 /*break*/, 17];
case 2:
quitHook["crop-move"] = ce.value.crop.moveMode();
return [3 /*break*/, 17];
case 3:
quitHook["crop-rotate"] = ce.value.crop.rotateMode();
return [3 /*break*/, 17];
case 4:
quitHook["crop-scale"] = ce.value.crop.scaleMode();
return [3 /*break*/, 17];
case 5:
selectShape.value.delete();
return [3 /*break*/, 17];
case 6:
if (quitHook["local"]) {
quitHook["local"]();
delete quitHook["local"];
runs.value = runs.value.filter(function (item) {
return item.value !== "local";
});
console.log(runs.value);
}
old1_1 = _hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord;
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord = _components_coord_type_constant__WEBPACK_IMPORTED_MODULE_12__["coordTypes"][_hook__WEBPACK_IMPORTED_MODULE_8__["CoordinateType"].GIS].options.value[0].value;
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = false;
quitHook["gis"] = function () {
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord = old1_1;
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = true;
};
return [3 /*break*/, 17];
case 7:
if (quitHook["gis"]) {
quitHook["gis"]();
delete quitHook["gis"];
runs.value = runs.value.filter(function (item) {
return item.value !== "gis";
});
}
old2_1 = _hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord;
old21_1 = _hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coordOutType;
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord = _hook__WEBPACK_IMPORTED_MODULE_8__["LocalCoord"].LOCAL;
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coordOutType = _hook__WEBPACK_IMPORTED_MODULE_8__["CoordOutType"].LN;
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = false;
quitHook["local"] = function () {
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coord = old2_1;
_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].coordOutType = old21_1;
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = true;
};
return [3 /*break*/, 17];
case 8:
ce.value.enterAddPoint();
return [3 /*break*/, 17];
case 9:
ce.value.enterDelPoint();
stop_1 = Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
var _c, _d;
if (((_d = (_c = props.current) === null || _c === void 0 ? void 0 : _c.points) === null || _d === void 0 ? void 0 : _d.length) === 2) {
console.log("点位不足重建");
props.current.points.length = 0;
var newRuns = runs.value.filter(function (item) {
return item.value !== "del-point";
});
newRuns.push(_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][2].ctrls[0]);
runs.value = newRuns;
}
});
quitHook["del-point"] = function () {
ce.value.leaveDelPoint();
stop_1();
};
return [3 /*break*/, 17];
case 10:
quitHook["magnifier"] = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["genSingle"])(_hook__WEBPACK_IMPORTED_MODULE_8__["hotDisabledStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)), _hook__WEBPACK_IMPORTED_MODULE_8__["magnifierModeStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)));
return [3 /*break*/, 17];
case 11:
quitHook["viewMode"] = _hook__WEBPACK_IMPORTED_MODULE_8__["spiltViewModeStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(0.5));
if (!_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord) {
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = true;
Object(vue__WEBPACK_IMPORTED_MODULE_2__["nextTick"])(function () {
_hook__WEBPACK_IMPORTED_MODULE_8__["disabledMap"].coord = false;
});
}
return [3 /*break*/, 17];
case 12:
custom = {
height: 1,
heightType: _sdk_index__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom,
title: props.getTitle(),
heightPercentage: 1,
modelInfo: null,
cropInfo: null,
resource: null
};
if (!props.current) return [3 /*break*/, 15];
_f = props.current.points.length === 0;
if (_f) return [3 /*break*/, 14];
return [4 /*yield*/, Object(_hook__WEBPACK_IMPORTED_MODULE_8__["useConfirm"])({
title: _lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.repeatTitle"),
content: _lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.repeatContent")
})];
case 13:
_f = _g.sent();
_g.label = 14;
case 14:
if (_f) {
emit("deleteEarthwork");
custom.height = props.current.height;
custom.heightType = props.current.heightType;
custom.title = props.current.title;
custom.modelInfo = props.current.modelInfo;
custom.cropInfo = props.current.cropInfo;
custom.resource = props.current.resource;
} else {
runs.value = runs.value.filter(function (item) {
return item !== _constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][2].ctrls[0];
});
return [2 /*return*/, {
value: void 0
}];
}
_g.label = 15;
case 15:
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_7__["asyncTimeout"])(1)];
case 16:
_g.sent();
earthwork = laser.scene.startEarthwork(props.unit);
raw = Object(vue__WEBPACK_IMPORTED_MODULE_2__["reactive"])(__assign({
id: _store__WEBPACK_IMPORTED_MODULE_5__["TemploraryID"].get(),
dataSet: _store__WEBPACK_IMPORTED_MODULE_5__["store"].dataset.list[0],
type: type,
height: 0,
heightType: _sdk_index__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom,
resource: [],
title: "",
points: [],
show: true,
dataset_points: null,
datasetIds: null
}, custom));
emit("startEarthwork", raw);
currentEarthwork.value = tempEarthwork[type] = {
raw: raw,
canvas: earthwork
};
tempEarthwork[type].canvas.bus.on("quit", quitHandler);
tempEarthwork[type].canvas.bus.on("end", endHandler);
tempEarthwork[type].canvas.bus.on("invalidPoint", function (msg) {
if (msg === void 0) {
msg = _lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.invalidPoint");
}
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].warning(msg);
});
setTimeout(function () {
if (!runs.value.some(function (item) {
return item.value === "magnifier";
})) {
runs.value = __spreadArray([_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][0].ctrls[0]], runs.value, true);
}
}, 500);
_g.label = 17;
case 17:
console.log(quitHook);
return [2 /*return*/];
}
});
};
_c = 0, addCtrls_1 = addCtrls;
_d.label = 1;
case 1:
if (!(_c < addCtrls_1.length)) return [3 /*break*/, 4];
ctrl = addCtrls_1[_c];
return [5 /*yield**/, _loop_1(ctrl)];
case 2:
state_1 = _d.sent();
if (typeof state_1 === "object") return [2 /*return*/, state_1.value];
_d.label = 3;
case 3:
_c++;
return [3 /*break*/, 1];
case 4:
return [2 /*return*/];
}
});
});
};
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(runs, ctrlsHandler, {
immediate: true
});
var exportObject = {
stopEarthwork: function () {
if (currentEarthwork.value) {
currentEarthwork.value.canvas.end();
setTimeout(function () {
quitEarthwork();
runs.value = [];
}, 100);
}
},
earthworkIng: Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])(function () {
return runs.value.some(function (atom) {
return atom.value === "AREA";
});
})
};
var keyupHandler = function (ev) {
if (ev.code === "Escape") {
quitHandler();
}
};
var inSet = false;
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(function () {
return props.show;
}, function (_a, _b, onCleanup) {
var canvas = props.current && Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(props.current);
if (props.show) {
runs.value = props.current ? [] : [_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][0].ctrls[0], _constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][2].ctrls[0]];
var pops = [];
if (_hook__WEBPACK_IMPORTED_MODULE_8__["customMap"].full === "map") {
runs.value.push(_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"][4].ctrls[0]);
}
document.documentElement.addEventListener("keydown", keyupHandler);
pops.push(_hook__WEBPACK_IMPORTED_MODULE_8__["fullViewStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])("scene")));
pops.push(_hook__WEBPACK_IMPORTED_MODULE_8__["mapDisabledStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)));
pops.push(_hook__WEBPACK_IMPORTED_MODULE_8__["laserModeStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(_sdk_index__WEBPACK_IMPORTED_MODULE_6__["Mode"].cloud)));
onCleanup(_utils__WEBPACK_IMPORTED_MODULE_7__["genSingle"].apply(void 0, pops));
laser.scene.enterEarthwork(canvas);
} else {
runs.value = [];
document.documentElement.removeEventListener("keydown", keyupHandler);
laser.scene.quitEarthwork(canvas);
// if (inSet) {
// mapDisabledStack.pop();
// fullViewStack.pop();
// laserModeStack.pop();
// inSet = false;
// }
_constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"].forEach(function (atom) {
atom.ctrls.forEach(function (atom) {
delete atom.key;
delete atom.guide;
});
});
}
});
expose(exportObject);
var __returned__ = {
laser: laser,
runs: runs,
props: props,
emit: emit,
tempEarthwork: tempEarthwork,
currentEarthwork: currentEarthwork,
ce: ce,
useSetting: useSetting,
endEarthwork: endEarthwork,
quitEarthwork: quitEarthwork,
repeat: repeat,
isShowTip: isShowTip,
endHandler: endHandler,
quitHandler: quitHandler,
selectShape: selectShape,
quitHook: quitHook,
ctrlsHandler: ctrlsHandler,
exportObject: exportObject,
keyupHandler: keyupHandler,
inSet: inSet,
ContrlPanl: _components_control_panl_index_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
ctrolGroup: _constant__WEBPACK_IMPORTED_MODULE_4__["ctrolGroup"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/download.vue?vue&type=script&setup=true&lang=ts":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/download.vue?vue&type=script&setup=true&lang=ts ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _download_select_coord_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../download/select-coord.vue */ "./src/views/download/select-coord.vue");
/* harmony import */ var _download_help__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../download/help */ "./src/views/download/help.ts");
/* harmony import */ var _store_dataset__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/store/dataset */ "./src/store/dataset.ts");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/request */ "./src/request/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _store_download__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/store/download */ "./src/store/download.ts");
var __assign = undefined && undefined.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
var typeEnum;
(function (typeEnum) {
typeEnum[typeEnum["dat"] = 0] = "dat";
typeEnum[typeEnum["clout"] = 1] = "clout";
})(typeEnum || (typeEnum = {}));
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'download',
props: {
list: {
type: null,
required: true
}
},
emits: ["close"],
setup: function (__props, _a) {
var _this = this;
var expose = _a.expose,
emit = _a.emit;
expose();
var props = __props;
var options = Object(_download_help__WEBPACK_IMPORTED_MODULE_4__["getFormatOptionsByDatasets"])([_store_dataset__WEBPACK_IMPORTED_MODULE_5__["main"].value], false);
var typeOptions = [{
label: _lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("earthwork.datLabel"),
value: typeEnum.dat
}, {
label: _lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("scene.cloud"),
value: typeEnum.clout
}];
var type = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(typeOptions[0].value);
var dis = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(1);
var setDis = function (val) {
if (!val || isNaN(Number(val))) {
val = 1;
}
dis.value = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["round"])(Math.max(0.01, Math.min(1000, val)), 2);
};
var downHandler = function (downFormat) {
return __awaiter(_this, void 0, void 0, function () {
var data, info;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
data = {
epsg: downFormat.coord,
format: typeEnum.clout === type.value ? downFormat.format : null,
type: type.value,
dis: typeEnum.dat === type.value ? dis.value : null,
datasetId: _store_dataset__WEBPACK_IMPORTED_MODULE_5__["main"].value.id
};
info = Object(_hook__WEBPACK_IMPORTED_MODULE_6__["useSDK"])().scene.getEarthworkmentsDownloadInfo(props.list.sort(function (a, b) {
return a.raw.id && b.raw.id && a.raw.id.toString().localeCompare(b.raw.id.toString());
}).map(function (item) {
return item.canvas;
}), data);
return [4 /*yield*/, Object(_store_download__WEBPACK_IMPORTED_MODULE_10__["useDownload"])({
epsg: downFormat.coord === "un" ? null : downFormat.coord,
datasetId: _store_dataset__WEBPACK_IMPORTED_MODULE_5__["main"].value.id,
dis: typeEnum.dat === type.value ? dis.value : null,
info: info,
paths: {
type: data.format || "dat"
}
}, function (data, md5) {
return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
return [4 /*yield*/, _request__WEBPACK_IMPORTED_MODULE_8__["default"].post(_request__WEBPACK_IMPORTED_MODULE_8__["URL"].downloadEarthwork, __assign(__assign({}, data), {
md5: md5
}), {
paths: data.paths
})];
case 1:
_a.sent();
return [2 /*return*/];
}
});
});
})];
case 1:
_a.sent();
emit("close");
return [2 /*return*/];
}
});
});
};
var __returned__ = {
options: options,
typeEnum: typeEnum,
typeOptions: typeOptions,
type: type,
dis: dis,
setDis: setDis,
props: props,
emit: emit,
downHandler: downHandler,
SelectCoord: _download_select_coord_vue__WEBPACK_IMPORTED_MODULE_3__["default"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/edit.vue?vue&type=script&setup=true&lang=ts":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/edit.vue?vue&type=script&setup=true&lang=ts ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _hook_useUploadPropress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/hook/useUploadPropress */ "./src/hook/useUploadPropress.ts");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/sdk/types/earthwork */ "./src/sdk/types/earthwork.ts");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/store */ "./src/store/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _kankan_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @kankan/components */ "../kankan-components/src/index.js");
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'edit',
props: {
value: {
type: Object,
required: true
},
height: {
type: [null, Number],
required: true
},
showSlide: {
type: Boolean,
required: true
}
},
emits: ["update:value", "showModel", "hideModel"],
setup: function (__props, _a) {
var _b, _c;
var _this = this;
var expose = _a.expose,
emit = _a.emit;
expose();
var props = __props;
var showModel = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false);
var modeShowHandler = function () {
if (showModel.value) {
// emit("hideModel");
} else {
// emit("showModel");
}
showModel.value = !showModel.value;
};
var hideModelHandler = function () {
if (props.value.heightType === _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].cad && showModel.value) {
modeShowHandler();
}
};
var heightStr = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(props.value.heightType === _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom && typeof props.height === "number" ? props.height.toString() : "1");
var oldHeight = props.height;
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
if (props.value.heightType === _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom) {
if (props.height && oldHeight !== props.height) {
heightStr.value = props.height.toString();
oldHeight = props.height;
}
}
});
var resourceMap = Object(vue__WEBPACK_IMPORTED_MODULE_2__["reactive"])((_b = {}, _b[_sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].cad] = [null, null], _b[_sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].model] = [null], _b[props.value.heightType] = props.value.resource, _b));
console.log(resourceMap);
// accept: ".dxf"
var uploadOptions = (_c = {}, _c[_sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].cad] = [{
text: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.files.cad[0]"),
accept: ".dxf",
maxSize: 1 * 1024 * 1024
}, {
text: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.files.cad[1]"),
accept: ".dxf",
maxSize: 1 * 1024 * 1024
}], _c[_sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].model] = [{
text: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.files.model"),
accept: ".obj",
maxSize: 10 * 1024 * 1024
}], _c);
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
var _a;
if (props.value.heightType === _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom) {
var h = ((_a = heightStr.value) === null || _a === void 0 ? void 0 : _a.length) === 0 ? 1 : Number(heightStr.value);
if (!isNaN(h)) {
emit("update:value", {
height: h
});
oldHeight = h;
}
} else if ([_sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].hig, _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].low].includes(props.value.heightType)) {
emit("update:value", {
heightType: _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom
});
}
});
var normalHeight = function () {
heightStr.value = oldHeight.toString();
};
var mount = Object(_hook__WEBPACK_IMPORTED_MODULE_3__["useSDK"])().scene.el.parentElement;
var typeOptions = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([{
label: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.heightTypes[0]"),
value: _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].custom
}, {
label: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.heightTypes[3]"),
value: _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].cad
}, {
label: _lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("earthwork.heightTypes[4]"),
value: _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"].model
}
// { label: ui18n.t("earthwork.heightTypes[1]"), value: EarthworkHeightType.hig },
// { label: ui18n.t("earthwork.heightTypes[2]"), value: EarthworkHeightType.low },
]);
var uploadHandler = function (file, ndx) {
return __awaiter(_this, void 0, void 0, function () {
var propress, url;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!/[\/\:\?\[\<\+\=\;\,\¥\%\&]/.test(file.name)) return [3 /*break*/, 1];
_kankan_components__WEBPACK_IMPORTED_MODULE_9__["Message"].warning(_lang__WEBPACK_IMPORTED_MODULE_5__["ui18n"].t("dataset.uploadCheck"));
return [3 /*break*/, 3];
case 1:
propress = Object(_hook_useUploadPropress__WEBPACK_IMPORTED_MODULE_4__["useUploadPropress"])(file, "earthwork");
return [4 /*yield*/, propress.promise];
case 2:
url = _a.sent();
if (!resourceMap[props.value.heightType]) {
resourceMap[props.value.heightType] = [];
}
resourceMap[props.value.heightType][ndx] = {
name: file.name,
url: url
};
emit("update:value", {
resource: JSON.parse(JSON.stringify(resourceMap[props.value.heightType]))
});
hideModelHandler();
_a.label = 3;
case 3:
return [2 /*return*/];
}
});
});
};
var delHandler = function (ndx) {
if (_store__WEBPACK_IMPORTED_MODULE_7__["TemploraryID"].is(props.value.id)) {
// 删除文件信息
}
resourceMap[props.value.heightType][ndx] = null;
emit("update:value", {
resource: JSON.parse(JSON.stringify(resourceMap[props.value.heightType]))
});
showModel.value = false;
// hideModelHandler();
};
var __returned__ = {
showModel: showModel,
modeShowHandler: modeShowHandler,
hideModelHandler: hideModelHandler,
props: props,
emit: emit,
heightStr: heightStr,
oldHeight: oldHeight,
resourceMap: resourceMap,
uploadOptions: uploadOptions,
normalHeight: normalHeight,
mount: mount,
typeOptions: typeOptions,
uploadHandler: uploadHandler,
delHandler: delHandler,
EarthworkHeightType: _sdk_types_earthwork__WEBPACK_IMPORTED_MODULE_6__["EarthworkHeightType"],
round: _utils__WEBPACK_IMPORTED_MODULE_8__["round"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/index.vue?vue&type=script&lang=ts&setup=true":
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/index.vue?vue&type=script&lang=ts&setup=true ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _tree_manage_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tree-manage.vue */ "./src/views/earthwork/tree-manage.vue");
/* harmony import */ var _control_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./control.vue */ "./src/views/earthwork/control.vue");
/* harmony import */ var _share_index_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./share/index.vue */ "./src/views/earthwork/share/index.vue");
/* harmony import */ var _components_propress_index_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/propress/index.vue */ "./src/components/propress/index.vue");
/* harmony import */ var _store_earthwork__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/store/earthwork */ "./src/store/earthwork.ts");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constant */ "./src/views/earthwork/constant.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/store */ "./src/store/index.ts");
/* harmony import */ var _kankan_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @kankan/components */ "../kankan-components/src/index.js");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _sceneMap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./sceneMap */ "./src/views/earthwork/sceneMap.ts");
/* harmony import */ var _edit_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./edit.vue */ "./src/views/earthwork/edit.vue");
/* harmony import */ var _download_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./download.vue */ "./src/views/earthwork/download.vue");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _sys_head_help__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../sys/head/help */ "./src/views/sys/head/help.ts");
/* harmony import */ var _store_setting__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/store/setting */ "./src/store/setting.ts");
var __assign = undefined && undefined.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'index',
setup: function (__props, _a) {
var _this = this;
var expose = _a.expose;
expose();
var laser = Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useSDK"])();
var earthworkIng = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false);
var shareList = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var downList = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var ctrlRef = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])();
var earthworks = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var selectIds = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var selects = Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])({
get: function () {
var cs = selectIds.value.map(function (id) {
return earthworks.value.find(function (i) {
return i.raw.id === id;
});
}).filter(function (item) {
return !!item;
});
return cs;
},
set: function (val) {
selectIds.value = val.map(function (item) {
return item.raw.id;
});
}
});
var getDefaultTitle = function () {
var name = _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.defaultTitle");
var index = earthworks.value.length + 1;
return name + index;
};
// 数据发生增删
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(function () {
return _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.map(function (item) {
return item.id;
});
}, function (nData, oData) {
var delIds = oData.filter(function (item) {
return !nData.includes(item);
});
var addIds = nData.filter(function (item) {
return !oData.includes(item);
});
earthworks.value = earthworks.value.filter(function (item) {
return !delIds.includes(item.raw.id) && !addIds.includes(item.raw.id);
});
var ndxs = addIds.map(function (id) {
return _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.findIndex(function (item) {
return item.id === id;
});
});
ndxs.forEach(function (ndx) {
var raw = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value[ndx];
var item = {
raw: raw,
canvas: Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["createSceneEarthwork"])(raw)
};
if (raw === currentUpdate.value) {
item.canvas.showBoundLine();
}
earthworks.value.splice(ndx, 0, item);
});
}, {
flush: "sync"
});
var isedit = false;
setTimeout(function () {
return isedit = true;
}, 2000);
// 监听数据变化,数据发生变动就进入单个编辑模式
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(function () {
return {
list: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.map(function (item) {
return {
id: item.id,
points: __spreadArray([], item.points, true)
};
}),
mark: _hook__WEBPACK_IMPORTED_MODULE_12__["mark"]
};
}, function (_a, _b) {
var newData = _a.list;
var oldData = _b.list;
if (currentUpdate.value) return;
var _loop_1 = function (i) {
var newItem = newData[i];
var oldItem = oldData.find(function (item) {
return item.id === newItem.id;
});
// update
if (oldItem && Object(_utils__WEBPACK_IMPORTED_MODULE_9__["inRevise"])(newItem, oldItem) && isedit) {
earthworkEditHandler(_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.find(function (item) {
return item.id === newItem.id;
}));
}
};
for (var i = 0; i < newData.length; i++) {
_loop_1(i);
}
}, {
flush: "post"
});
var calcCheckError = function (item) {
if (!item.title || item.title.trim().length === 0) {
return _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.nameNullTip");
} else if (!item.heightType) {
return _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.baseNullTip");
}
if (item.heightType === _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].custom) {
if (typeof item.height !== "number") {
item.height = 1;
// return ui18n.t("earthwork.heightNullTip");
}
} else {
delete item.height;
if (item.resource.some(function (res) {
return !res;
})) {
if (item.heightType === _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].cad) {
return _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.files.uncad");
} else {
return _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.files.unmodel");
}
}
}
return false;
};
var saveStatus = Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useDesaveAssist"])(_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"], {
auto: true,
save: function () {
return __awaiter(_this, void 0, void 0, function () {
var i, item, msg;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
i = 0;
_a.label = 1;
case 1:
if (!(i < _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.length)) return [3 /*break*/, 5];
item = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value[i];
msg = calcCheckError(item);
if (!msg) return [3 /*break*/, 3];
console.log(item);
return [4 /*yield*/, Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useAlert"])(msg)];
case 2:
_a.sent();
throw msg;
case 3:
item.maxHeight = _sceneMap__WEBPACK_IMPORTED_MODULE_13__["earthworkInfo"][item.id].maxHeightRaw;
item.minHeight = _sceneMap__WEBPACK_IMPORTED_MODULE_13__["earthworkInfo"][item.id].minHeightRaw;
_a.label = 4;
case 4:
i++;
return [3 /*break*/, 1];
case 5:
return [4 /*yield*/, Object(_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["storeSave"])()];
case 6:
_a.sent();
return [2 /*return*/];
}
});
});
},
intercept: function () {
return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_9__["asyncTimeout"])(100)];
case 1:
_a.sent();
return [2 /*return*/, _store__WEBPACK_IMPORTED_MODULE_10__["isLogin"].value && !currentCalc.value && Object(_utils__WEBPACK_IMPORTED_MODULE_9__["inRevise"])(Object(_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["getBackups"])().list.map(function (item) {
return __assign(__assign({}, item), {
show: true
});
}), _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.map(function (item) {
return __assign(__assign({}, item), {
show: true
});
}), true)];
}
});
});
},
backup: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["backups"],
recovery: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["recovery"]
});
var menusDisabled = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false);
var earthworkMode = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false);
var old;
var injectModeHandler = function () {
if (earthworkMode.value) {
var handler_1 = function () {
earthworkMode.value = false;
currentInfo.value = null;
setTimeout(function () {
return currentUpdate.value = null;
});
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].off("leave", handler_1, {
last: true
});
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].off("save", saveHandler_1, {
last: true
});
};
var saveHandler_1 = function () {
if (earthworkMode.value) {
if (!isCalc) {
setTimeout(function () {
injectModeHandler();
});
} else {
return handler_1();
}
}
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].off("leave", handler_1, {
last: true
});
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].off("save", saveHandler_1, {
last: true
});
};
Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useEdit"])();
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].on("leave", handler_1, {
last: true
});
_hook__WEBPACK_IMPORTED_MODULE_12__["editBus"].on("save", saveHandler_1, {
last: true
});
menusDisabled.value = true;
var pops = [function () {
old = null;
}];
pops.push(_hook__WEBPACK_IMPORTED_MODULE_12__["joinMeshDisabled"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)));
if (!_utils__WEBPACK_IMPORTED_MODULE_9__["os"].isPc) {
pops.push(_hook__WEBPACK_IMPORTED_MODULE_12__["toolDisabled"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)), _hook__WEBPACK_IMPORTED_MODULE_12__["searchDisabledStack"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true)));
}
old = _utils__WEBPACK_IMPORTED_MODULE_9__["genSingle"].apply(void 0, pops);
} else {
if (!saveStatus.desave.value) {
// useEmitLeave();
}
menusDisabled.value = false;
old && old();
}
};
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(earthworkMode, injectModeHandler);
var clickAction = function () {
// if ([5, 6].includes(locationRaw.value)) {
// Message.warning(ui18n.t("earthwork.slamWring"));
// return;
// }
currentUpdate.value = null;
currentInfo.value = null;
if (!earthworkMode.value) {
earthworkMode.value = true;
} else {
ctrlRef.value.stopEarthwork();
}
};
var currentCalc = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(null);
var currentUpdate = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(null);
var currentInfo = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(null);
var currentCanvas = Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])(function () {
var _a;
return currentInfo.value && ((_a = earthworks.value.find(function (item) {
return item.raw === currentInfo.value;
})) === null || _a === void 0 ? void 0 : _a.canvas);
});
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function (onCleanup) {
if (currentInfo.value && currentCanvas.value && earthworkMode.value && [_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].model, _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].cad].includes(currentInfo.value.heightType)
// currentInfo.value.heightType === EarthworkHeightType.model
) {
var data = currentInfo.value;
var load_1 = Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["loadSceneEarthworkModel"])(data);
onCleanup(function () {
load_1 && load_1.hide();
});
}
});
// 编辑模式只看自己
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(function () {
return [currentUpdate.value, earthworkMode.value];
}, function (_a, _, onCleanup) {
var _b;
var nUpdate = _a[0],
edit = _a[1];
// 显示自己,其他都隐藏
if (edit) {
var otherItems_1 = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.filter(function (item) {
return item !== nUpdate;
});
var oldOtherItemsShow_1 = otherItems_1.map(function (item) {
return item.show;
});
otherItems_1.forEach(function (item) {
return item.show = false;
});
var oldShow_1 = false;
if (nUpdate) {
oldShow_1 = nUpdate.show;
nUpdate.show = true;
(_b = Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(nUpdate)) === null || _b === void 0 ? void 0 : _b.showBoundLine();
}
// 隐藏多楼层
var popFloors_1 = _hook__WEBPACK_IMPORTED_MODULE_12__["floorsDisabled"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true));
onCleanup(function () {
var _a;
if (nUpdate) {
nUpdate.show = oldShow_1;
(_a = Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(nUpdate)) === null || _a === void 0 ? void 0 : _a.hideBoundLine();
}
otherItems_1.forEach(function (item, i) {
var raw = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value[_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.findIndex(function (i) {
return i.id === item.id;
})];
if (raw) {
raw.show = oldOtherItemsShow_1[i];
}
});
popFloors_1();
});
} else {
onCleanup(function () {});
}
}, {
flush: "post"
});
// 整体数据变更,直接重建
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watch"])(_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"], function (nData, oData) {
earthworks.value = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.map(function (raw) {
return {
raw: raw,
canvas: Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["createSceneEarthwork"])(raw, true)
};
});
}, {
immediate: true
});
var propress = Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])(function () {
var keys = Object.keys(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["calcProgress"]);
if (keys.length === 0) {
return;
}
var progress = _sceneMap__WEBPACK_IMPORTED_MODULE_13__["calcProgress"][keys[0]];
return {
id: keys[0],
title: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcTitle"),
setp: progress,
content: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcContent"),
notClose: false,
notHide: true,
closeText: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcClose")
};
});
// 单个编辑模式,查看是否又挖方填方,如果没有则放开计算按钮让用户可以计算
var earthworkEditHandler = function (data) {
Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useFlyEarthwork"])(data.points, Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(data));
clickAction();
currentUpdate.value = data;
currentInfo.value = data;
};
var startEarthwork = function (data) {
earthworkIng.value = true;
currentInfo.value = data;
currentUpdate.value = data;
};
var endEarthwork = function () {
earthworkIng.value = false;
};
var addEarthworkHandler = function (data) {
var ndata = __assign({}, data);
_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.splice(0, 0, ndata);
currentUpdate.value = ndata;
currentInfo.value = ndata;
};
var execItem = function (list, fn) {
list.forEach(fn);
};
var deleteAtom = function (item) {
var listIndex = _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.indexOf(item);
~listIndex && _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"].value.splice(listIndex, 1);
};
var deleteList = function (delList) {
execItem(delList, function (item) {
return deleteAtom(item.raw);
});
};
var enterCalcAtom = function (raw) {
return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
return [4 /*yield*/, calcAtom(raw)];
case 1:
// earthworkEditHandler(raw);
if (!_a.sent()) {
if (!_hook__WEBPACK_IMPORTED_MODULE_12__["mark"].isdesave) {
Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useEmitLeave"])();
}
}
return [2 /*return*/];
}
});
});
};
var isCalc = false;
var calcAtom = Object(_hook__WEBPACK_IMPORTED_MODULE_12__["genUseLoading"])(function (raw) {
return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
currentCalc.value = raw;
if (raw.heightType === _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].cad) {
if (raw.resource.some(function (item) {
return !item;
})) {
return [2 /*return*/, Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useAlert"])(_lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.files.uncad"))];
}
} else if (raw.heightType === _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"].model) {
if (raw.resource.some(function (item) {
return !item;
})) {
return [2 /*return*/, Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useAlert"])(_lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.files.unmodel"))];
}
}
return [4 /*yield*/, Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useConfirm"])({
title: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcConfirmTitle"),
content: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcConfirmMsg")
})];
case 1:
if (!_a.sent()) return [3 /*break*/, 8];
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_9__["asyncTimeout"])(16)];
case 2:
_a.sent();
return [4 /*yield*/, Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["calcDigFill"])(raw)];
case 3:
_a.sent();
Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["updateEarthwork"])(Object(_sceneMap__WEBPACK_IMPORTED_MODULE_13__["getSceneEarthwork"])(raw), raw);
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_9__["asyncTimeout"])(50)];
case 4:
_a.sent();
currentCalc.value = null;
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_9__["asyncTimeout"])(300)];
case 5:
_a.sent();
isCalc = true;
return [4 /*yield*/, Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useEmitSave"])()];
case 6:
_a.sent();
_kankan_components__WEBPACK_IMPORTED_MODULE_11__["Message"].success(_lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calcSuccess"));
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_9__["asyncTimeout"])(640)];
case 7:
_a.sent();
isCalc = false;
return [2 /*return*/, true];
case 8:
currentCalc.value = null;
return [2 /*return*/, false];
}
});
});
});
Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useViewStack"])(function () {
laser.scene.enterEarthworkment();
_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["show"].value = true;
var oldEditActions = _sys_head_help__WEBPACK_IMPORTED_MODULE_17__["editActions"].value;
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["editActions"].value = [];
var stopCalcWatch = Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function (onCleanup) {
var data = currentUpdate.value;
if (data && _sceneMap__WEBPACK_IMPORTED_MODULE_13__["earthworkInfo"][data.id] && !calcCheckError(data) && _sceneMap__WEBPACK_IMPORTED_MODULE_13__["earthworkInfo"][data.id].fill === null) {
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["saveClass"].value = [];
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["editActions"].value.push({
label: _lang__WEBPACK_IMPORTED_MODULE_16__["ui18n"].t("earthwork.calc"),
action: function () {
return calcAtom(currentUpdate.value);
}
});
onCleanup(function () {
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["editActions"].value = [];
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["saveClass"].value = null;
});
}
});
return function () {
stopCalcWatch();
_sys_head_help__WEBPACK_IMPORTED_MODULE_17__["editActions"].value = oldEditActions;
laser.scene.leaveEarthworkment();
_store_earthwork__WEBPACK_IMPORTED_MODULE_7__["show"].value = false;
};
});
Object(_hook__WEBPACK_IMPORTED_MODULE_12__["useViewStack"])(function () {
var oldShowHotImage = _store_setting__WEBPACK_IMPORTED_MODULE_18__["showHotImage"].value;
_store_setting__WEBPACK_IMPORTED_MODULE_18__["showHotImage"].value = false;
return function () {
_store_setting__WEBPACK_IMPORTED_MODULE_18__["showHotImage"].value = oldShowHotImage;
};
});
var __returned__ = {
laser: laser,
earthworkIng: earthworkIng,
shareList: shareList,
downList: downList,
ctrlRef: ctrlRef,
earthworks: earthworks,
selectIds: selectIds,
selects: selects,
getDefaultTitle: getDefaultTitle,
isedit: isedit,
calcCheckError: calcCheckError,
saveStatus: saveStatus,
menusDisabled: menusDisabled,
earthworkMode: earthworkMode,
old: old,
injectModeHandler: injectModeHandler,
clickAction: clickAction,
currentCalc: currentCalc,
currentUpdate: currentUpdate,
currentInfo: currentInfo,
currentCanvas: currentCanvas,
propress: propress,
earthworkEditHandler: earthworkEditHandler,
startEarthwork: startEarthwork,
endEarthwork: endEarthwork,
addEarthworkHandler: addEarthworkHandler,
execItem: execItem,
deleteAtom: deleteAtom,
deleteList: deleteList,
enterCalcAtom: enterCalcAtom,
isCalc: isCalc,
calcAtom: calcAtom,
TreeManage: _tree_manage_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
Control: _control_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
Share: _share_index_vue__WEBPACK_IMPORTED_MODULE_5__["default"],
Propress: _components_propress_index_vue__WEBPACK_IMPORTED_MODULE_6__["default"],
list: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["list"],
unit: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["unit"],
show: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["show"],
EarthworkHeightType: _store_earthwork__WEBPACK_IMPORTED_MODULE_7__["EarthworkHeightType"],
unitOptions: _constant__WEBPACK_IMPORTED_MODULE_8__["unitOptions"],
round: _utils__WEBPACK_IMPORTED_MODULE_9__["round"],
showToolbox: _store__WEBPACK_IMPORTED_MODULE_10__["showToolbox"],
cancelCalcDigFill: _sceneMap__WEBPACK_IMPORTED_MODULE_13__["cancelCalcDigFill"],
EditEarthwork: _edit_vue__WEBPACK_IMPORTED_MODULE_14__["default"],
DowloadEarthwork: _download_vue__WEBPACK_IMPORTED_MODULE_15__["default"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/index.vue?vue&type=script&lang=ts&setup=true":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/index.vue?vue&type=script&lang=ts&setup=true ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _item_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./item.vue */ "./src/views/earthwork/share/item.vue");
/* harmony import */ var _summary_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./summary.vue */ "./src/views/earthwork/share/summary.vue");
/* harmony import */ var _pdf_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pdf.vue */ "./src/views/earthwork/share/pdf.vue");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _kankan_components_src__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @kankan/components/src */ "../kankan-components/src/index.js");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/store */ "./src/store/index.ts");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @kankan/components/src/expose-common */ "../kankan-components/src/expose-common.js");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _help_platform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/help/platform */ "./src/help/platform.ts");
/* harmony import */ var _store_setup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/store/setup */ "./src/store/setup.ts");
/* harmony import */ var _sceneMap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../sceneMap */ "./src/views/earthwork/sceneMap.ts");
var __assign = undefined && undefined.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'index',
props: {
list: {
type: null,
required: true
},
earthworks: {
type: null,
required: true
}
},
emits: ["close"],
setup: function (__props, _a) {
var _this = this;
var expose = _a.expose,
emit = _a.emit;
expose();
var props = __props;
var laser = Object(_hook__WEBPACK_IMPORTED_MODULE_9__["useSDK"])();
var shareList = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var summaryInfo = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])();
var inputAuthor = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false);
var authorContent = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])("");
_utils__WEBPACK_IMPORTED_MODULE_6__["os"].isWX && Object(vue__WEBPACK_IMPORTED_MODULE_2__["onMounted"])(function () {
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].warning(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.wxError"));
});
Object(vue__WEBPACK_IMPORTED_MODULE_2__["watchEffect"])(function () {
return __awaiter(_this, void 0, void 0, function () {
var shares, loadModels, hideModels, isAllCalc, _i, _a, earthwork, info, isCalc, img, _b, load, info;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_6__["asyncTimeout"])()];
case 1:
_c.sent();
_hook__WEBPACK_IMPORTED_MODULE_9__["laserLoadingDisabled"].push(Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(false));
_kankan_components_src__WEBPACK_IMPORTED_MODULE_7__["Loading"].show({}, Math.random());
shares = [];
loadModels = [];
hideModels = [];
isAllCalc = true;
_i = 0, _a = props.list;
_c.label = 2;
case 2:
if (!(_i < _a.length)) return [3 /*break*/, 7];
earthwork = _a[_i].earthwork;
info = _sceneMap__WEBPACK_IMPORTED_MODULE_14__["earthworkInfo"][earthwork.raw.id];
isCalc = !(info.fillRaw === null || info.digRaw === null);
if (!isCalc) return [3 /*break*/, 4];
return [4 /*yield*/, earthwork.canvas.toDataURL(900, 600)];
case 3:
_b = _c.sent().dataUrl;
return [3 /*break*/, 5];
case 4:
_b = undefined;
_c.label = 5;
case 5:
img = _b;
shares.push(__assign(__assign({
title: earthwork.raw.title,
heightType: earthwork.raw.heightType
}, info), {
img: img
}));
if (isCalc) {
load = Object(_sceneMap__WEBPACK_IMPORTED_MODULE_14__["loadSceneEarthworkModel"])(earthwork.raw);
if (load) {
loadModels.push(load.promise);
hideModels.push(load.hide);
}
}
if (!isCalc) {
isAllCalc = false;
}
_c.label = 6;
case 6:
_i++;
return [3 /*break*/, 2];
case 7:
return [4 /*yield*/, Object(_hook__WEBPACK_IMPORTED_MODULE_9__["useLoading"])(Promise.all(loadModels))];
case 8:
_c.sent();
shareList.value = shares;
summaryInfo.value = {
author: _lang__WEBPACK_IMPORTED_MODULE_11__["lang"] === _lang__WEBPACK_IMPORTED_MODULE_11__["langNameEum"].en ? _store__WEBPACK_IMPORTED_MODULE_8__["user"].value.nickNameEn || _store__WEBPACK_IMPORTED_MODULE_8__["user"].value.nickName : _store__WEBPACK_IMPORTED_MODULE_8__["user"].value.nickName,
time: Object(_utils__WEBPACK_IMPORTED_MODULE_6__["formatDate"])(new Date(), _lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.timeFormat"))
};
authorContent.value = summaryInfo.value.author;
if (!(isAllCalc && shareList.value.length > 1)) return [3 /*break*/, 10];
return [4 /*yield*/, laser.scene.getEarthworkmentsSummary(props.list.map(function (item) {
return item.earthwork.canvas;
}), 1000, 500)];
case 9:
info = _c.sent();
summaryInfo.value = __assign(__assign({}, summaryInfo.value), info);
_c.label = 10;
case 10:
Object(vue__WEBPACK_IMPORTED_MODULE_2__["nextTick"])(function () {
_hook__WEBPACK_IMPORTED_MODULE_9__["laserLoadingDisabled"].pop();
_kankan_components_src__WEBPACK_IMPORTED_MODULE_7__["Loading"].hideAll();
hideModels.forEach(function (hide) {
return hide();
});
});
return [2 /*return*/];
}
});
});
});
var pdfvm = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(null);
var showDownPdf = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])(true);
var downPDF = function () {
return __awaiter(_this, void 0, void 0, function () {
var pdf, time;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
showDownPdf.value = true;
_kankan_components_src__WEBPACK_IMPORTED_MODULE_7__["Loading"].show();
return [4 /*yield*/, Object(_utils__WEBPACK_IMPORTED_MODULE_6__["asyncTimeout"])(100)];
case 1:
_a.sent();
return [4 /*yield*/, pdfvm.value.downPDF()];
case 2:
pdf = _a.sent();
_kankan_components_src__WEBPACK_IMPORTED_MODULE_7__["Loading"].hide();
showDownPdf.value = false;
time = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["formatDate"])(new Date(), "yyyy-MM-dd-hh-mm-ss");
Object(_utils__WEBPACK_IMPORTED_MODULE_6__["saveAs"])(pdf.output("blob"), "".concat(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("earthwork.downloadName") + "-" + _store_setup__WEBPACK_IMPORTED_MODULE_13__["title"].value + "-" + time, ".pdf"));
if (_utils__WEBPACK_IMPORTED_MODULE_6__["os"].isWX) {
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].success(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("sys.downloadWXSuccess"));
} else if (_help_platform__WEBPACK_IMPORTED_MODULE_12__["isApp"]) {
if (_utils__WEBPACK_IMPORTED_MODULE_6__["os"].isIOS) {
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].success(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("sys.downloadIosSuccess"));
} else {
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].success(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("sys.downloadAndroidSuccess"));
}
} else {
_kankan_components_src_expose_common__WEBPACK_IMPORTED_MODULE_10__["Message"].success(_lang__WEBPACK_IMPORTED_MODULE_11__["ui18n"].t("sys.downloadSuccess"));
}
return [2 /*return*/];
}
});
});
};
var __returned__ = {
props: props,
emit: emit,
laser: laser,
shareList: shareList,
summaryInfo: summaryInfo,
inputAuthor: inputAuthor,
authorContent: authorContent,
pdfvm: pdfvm,
showDownPdf: showDownPdf,
downPDF: downPDF,
ShareItem: _item_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
Summary: _summary_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
PdfTemp: _pdf_vue__WEBPACK_IMPORTED_MODULE_5__["default"],
os: _utils__WEBPACK_IMPORTED_MODULE_6__["os"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/item.vue?vue&type=script&lang=ts&setup=true":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/item.vue?vue&type=script&lang=ts&setup=true ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/sdk */ "./src/sdk/index.ts");
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_0__["defineComponent"])({
__name: 'item',
props: {
data: {
type: null,
required: true
},
isPdf: {
type: Boolean,
required: false
}
},
setup: function (__props, _a) {
var expose = _a.expose;
expose();
var props = __props;
var __returned__ = {
props: props,
EarthworkHeightType: _sdk__WEBPACK_IMPORTED_MODULE_1__["EarthworkHeightType"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/pdf.vue?vue&type=script&lang=ts&setup=true":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/pdf.vue?vue&type=script&lang=ts&setup=true ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "../../node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _item_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./item.vue */ "./src/views/earthwork/share/item.vue");
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! jspdf */ "../../node_modules/jspdf/dist/jspdf.es.min.js");
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! html2canvas */ "../../node_modules/html2canvas/dist/html2canvas.js");
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _summary_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./summary.vue */ "./src/views/earthwork/share/summary.vue");
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = undefined && undefined.__generator || function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
};
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_2__["defineComponent"])({
__name: 'pdf',
props: {
list: {
type: null,
required: true
},
summaryInfo: {
type: null,
required: true
}
},
setup: function (__props, _a) {
var _b;
var _this = this;
var expose = _a.expose;
var props = __props;
var logo = (_b = {}, _b[_lang__WEBPACK_IMPORTED_MODULE_6__["langNameEum"].zh] = __webpack_require__(/*! @/assets/images/logo_4dage_cn.png */ "./src/assets/images/logo_4dage_cn.png"), _b[_lang__WEBPACK_IMPORTED_MODULE_6__["langNameEum"].en] = __webpack_require__(/*! @/assets/images/logo_4dage_en.png */ "./src/assets/images/logo_4dage_en.png"),
// [langNameEum.ja]: require("@/assets/images/logo_4dage_en.png"),
_b[_lang__WEBPACK_IMPORTED_MODULE_6__["langNameEum"].kr] = __webpack_require__(/*! @/assets/images/logo_4dage_en.png */ "./src/assets/images/logo_4dage_en.png"), _b[_lang__WEBPACK_IMPORTED_MODULE_6__["langNameEum"].jp] = __webpack_require__(/*! @/assets/images/logo_4dage_en.png */ "./src/assets/images/logo_4dage_en.png"), _b);
var groups = Object(vue__WEBPACK_IMPORTED_MODULE_2__["computed"])(function () {
var groups = [];
for (var i = 0; i < props.list.length; i++) {
var group = [props.list[i]];
if (i + 1 < props.list.length && i !== 0) {
group.push(props.list[++i]);
}
groups.push(group);
}
return groups;
});
var vms = Object(vue__WEBPACK_IMPORTED_MODULE_2__["ref"])([]);
var SCALE = 1.5;
var WIDTH = 595.28 * SCALE;
var HEIGHT = 841.89 * SCALE;
var getLinkText = function (str) {
if (str.length > 100) {
return str.substring(0, 100) + "...";
} else {
return str;
}
};
var downPDF = function () {
return __awaiter(_this, void 0, void 0, function () {
var pdf, i, canvas, contentWidth, contentHeight, pageHeight, leftHeight, position, imgWidth, imgHeight, pageData;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
pdf = new jspdf__WEBPACK_IMPORTED_MODULE_4__["jsPDF"]("p", "px", [WIDTH, HEIGHT]);
pdf.setFontSize(12 * SCALE);
pdf.setTextColor("rgb(0, 200, 175)");
i = 0;
_a.label = 1;
case 1:
if (!(i < vms.value.length)) return [3 /*break*/, 4];
return [4 /*yield*/, html2canvas__WEBPACK_IMPORTED_MODULE_5___default()(vms.value[i])];
case 2:
canvas = _a.sent();
contentWidth = canvas.width;
contentHeight = canvas.height;
pageHeight = contentWidth / WIDTH * HEIGHT;
leftHeight = contentHeight;
position = 0;
imgWidth = WIDTH;
imgHeight = WIDTH / contentWidth * contentHeight;
pageData = canvas.toDataURL("image/jpeg", 1.0);
pdf.addImage(pageData, "JPEG", 0, 0, imgWidth, imgHeight);
if (i !== vms.value.length - 1) {
pdf.addPage();
}
_a.label = 3;
case 3:
i++;
return [3 /*break*/, 1];
case 4:
return [2 /*return*/, pdf];
}
});
});
};
expose({
downPDF: downPDF
});
var __returned__ = {
logo: logo,
props: props,
groups: groups,
vms: vms,
SCALE: SCALE,
WIDTH: WIDTH,
HEIGHT: HEIGHT,
getLinkText: getLinkText,
downPDF: downPDF,
ShareItem: _item_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
lang: _lang__WEBPACK_IMPORTED_MODULE_6__["lang"],
os: _utils__WEBPACK_IMPORTED_MODULE_7__["os"],
Summary: _summary_vue__WEBPACK_IMPORTED_MODULE_8__["default"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/summary.vue?vue&type=script&setup=true&lang=ts":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/summary.vue?vue&type=script&setup=true&lang=ts ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./src/views/earthwork/share/constant.ts");
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_0__["defineComponent"])({
__name: 'summary',
props: {
value: {
type: null,
required: true
},
isPdf: {
type: Boolean,
required: false
}
},
emits: ["update:value"],
setup: function (__props, _a) {
var expose = _a.expose;
expose();
var __returned__ = {
summaryLabels: _constant__WEBPACK_IMPORTED_MODULE_1__["summaryLabels"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/tree-manage.vue?vue&type=script&setup=true&lang=ts":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/tree-manage.vue?vue&type=script&setup=true&lang=ts ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "../../node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store */ "./src/store/index.ts");
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/hook */ "./src/hook/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils */ "./src/utils/index.ts");
/* harmony import */ var _sceneMap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sceneMap */ "./src/views/earthwork/sceneMap.ts");
/* harmony import */ var _kankan_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @kankan/components */ "../kankan-components/src/index.js");
/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/lang */ "./src/lang/index.ts");
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(vue__WEBPACK_IMPORTED_MODULE_1__["defineComponent"])({
__name: 'tree-manage',
props: {
list: {
type: null,
required: true
}
},
emits: ["changeShow", "delete", "calc", "enterEdit", "share", "download", "updateTitle"],
setup: function (__props, _a) {
var expose = _a.expose,
emit = _a.emit;
expose();
var props = __props;
var enterHandler = function (earthwork) {
_sceneMap__WEBPACK_IMPORTED_MODULE_5__["hightEarthwork"].value = earthwork;
getRaw(earthwork).canvas.highlight(true);
};
var leaveHandler = function (earthwork) {
_sceneMap__WEBPACK_IMPORTED_MODULE_5__["hightEarthwork"].value = null;
getRaw(earthwork).canvas.highlight(false);
};
var clickHandler = function (earthwork) {
Object(_hook__WEBPACK_IMPORTED_MODULE_3__["useFlyEarthwork"])(earthwork.points, getRaw(earthwork).canvas);
};
var editEarthworks = Object(vue__WEBPACK_IMPORTED_MODULE_1__["ref"])([]);
var earthworks = Object(vue__WEBPACK_IMPORTED_MODULE_1__["computed"])(function () {
return props.list.map(function (item) {
return item.raw;
});
});
var selects = Object(vue__WEBPACK_IMPORTED_MODULE_1__["computed"])(function () {
return earthworks.value.filter(function (item) {
return item.show;
});
});
var allSelect = Object(vue__WEBPACK_IMPORTED_MODULE_1__["computed"])({
get: function () {
if (selects.value.length === earthworks.value.length) {
var sRaws = getRaws(selects.value);
var _loop_1 = function (item) {
if (!sRaws.some(function (sRaw) {
return sRaw.raw.id === item.id;
})) {
return {
value: false
};
}
};
for (var _i = 0, _a = earthworks.value; _i < _a.length; _i++) {
var item = _a[_i];
var state_1 = _loop_1(item);
if (typeof state_1 === "object") return state_1.value;
}
return true;
} else {
return false;
}
},
set: function (selected) {
emit("changeShow", getRaws(earthworks.value), selected);
}
});
var downloadHandler = function () {
var downloadItems = filterUnCalc(selects.value);
emit("download", getRaws(downloadItems));
if (selects.value.length !== downloadItems.length) {
setTimeout(function () {
_kankan_components__WEBPACK_IMPORTED_MODULE_6__["Message"].warning(_lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("earthwork.uncalcs", {
name: _lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("earthwork.downTitle")
}));
}, 50);
}
};
var filterUnCalc = function (items) {
return items.filter(function (item) {
return item.fill !== null && item.dig !== null;
});
};
var shareHandler = function () {
var shareItems = filterUnCalc(selects.value);
emit("share", shareItems.map(function (select) {
return {
earthwork: getRaw(select),
local: [select.dataSet, select]
};
}));
if (selects.value.length !== shareItems.length) {
setTimeout(function () {
_kankan_components__WEBPACK_IMPORTED_MODULE_6__["Message"].warning(_lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("earthwork.uncalcs", {
name: _lang__WEBPACK_IMPORTED_MODULE_7__["ui18n"].t("earthwork.export")
}));
}, 50);
}
};
var enterEditTitle = function (earthwork) {
editEarthworks.value.push(earthwork);
if (_utils__WEBPACK_IMPORTED_MODULE_4__["os"].isPc) {
Object(_hook__WEBPACK_IMPORTED_MODULE_3__["useEdit"])();
}
setTimeout(function () {
var ancestor = _store__WEBPACK_IMPORTED_MODULE_2__["appEl"].value;
var quitHandler = function () {
editEarthworks.value.splice(editEarthworks.value.indexOf(earthwork), 1);
ancestor.removeEventListener("click", quitHandler);
};
ancestor.addEventListener("click", quitHandler);
}, 100);
};
var getRaw = function (item) {
return props.list.find(function (_a) {
var raw = _a.raw;
return raw === item;
});
};
var getRaws = function (items) {
return items.map(getRaw);
};
var __returned__ = {
props: props,
emit: emit,
enterHandler: enterHandler,
leaveHandler: leaveHandler,
clickHandler: clickHandler,
editEarthworks: editEarthworks,
earthworks: earthworks,
selects: selects,
allSelect: allSelect,
downloadHandler: downloadHandler,
filterUnCalc: filterUnCalc,
shareHandler: shareHandler,
enterEditTitle: enterEditTitle,
getRaw: getRaw,
getRaws: getRaws,
earthworkInfo: _sceneMap__WEBPACK_IMPORTED_MODULE_5__["earthworkInfo"],
hightEarthwork: _sceneMap__WEBPACK_IMPORTED_MODULE_5__["hightEarthwork"]
};
Object.defineProperty(__returned__, '__isScriptSetup', {
enumerable: false,
value: true
});
return __returned__;
}
}));
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/control.vue?vue&type=template&id=05eebe7f&scoped=true&ts=true":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/control.vue?vue&type=template&id=05eebe7f&scoped=true&ts=true ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["ContrlPanl"], {
class: "measure-control",
modelValue: $setup.runs,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return $setup.runs = $event;
}),
group: $setup.ctrolGroup,
show: $props.show,
full: true,
count: $props.count,
onSelect: $setup.useSetting
}, null, 8 /* PROPS */, ["modelValue", "group", "show", "count"]);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/download.vue?vue&type=template&id=5d60fb56&ts=true":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/download.vue?vue&type=template&id=5d60fb56&ts=true ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
function render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ui_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-input");
var _component_ui_group_option = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-group-option");
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["SelectCoord"], {
"down-options": $setup.options,
onSubmit: $setup.downHandler,
title: _ctx.$t('earthwork.downTitle'),
onQuit: _cache[3] || (_cache[3] = function ($event) {
return _ctx.$emit('close');
}),
"show-options": $setup.type === $setup.typeEnum.clout,
"hide-coord": $setup.type === $setup.typeEnum.dat,
foreDownload: $setup.type === $setup.typeEnum.dat
}, {
prev: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_group_option, {
label: _ctx.$t('earthwork.downFormatType')
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
type: "select",
options: $setup.typeOptions,
unplaceholder: _ctx.$t('sys.unData'),
modelValue: $setup.type,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return $setup.type = $event;
}),
width: "100%",
stopEl: "div",
ref: "selectRef",
placeholder: _ctx.$t('sys.selectPic')
}, null, 8 /* PROPS */, ["unplaceholder", "modelValue", "placeholder"])];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["label"]), $setup.type === $setup.typeEnum.dat ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_group_option, {
key: 0,
label: _ctx.$t('earthwork.downFormatDis')
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
style: {
"width": "100%"
},
class: "input",
placeholder: _ctx.$t('coord.edit.placeholder'),
modelValue: $setup.dis,
"onUpdate:modelValue": _cache[1] || (_cache[1] = function (height) {
return $setup.dis = height;
}),
onBlur: _cache[2] || (_cache[2] = function ($event) {
return $setup.setDis($setup.dis);
})
}, {
icon: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(" m ")];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["placeholder", "modelValue"])];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["label"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["down-options", "title", "show-options", "hide-coord", "foreDownload"]);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/edit.vue?vue&type=template&id=81acca50&scoped=true&ts=true":
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/edit.vue?vue&type=template&id=81acca50&scoped=true&ts=true ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-81acca50"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "info"
};
var _hoisted_2 = {
class: "item"
};
var _hoisted_3 = {
class: "title"
};
var _hoisted_4 = {
class: "item"
};
var _hoisted_5 = {
class: "title"
};
var _hoisted_6 = ["title"];
var _hoisted_7 = {
class: "height-slide strengthen"
};
var _hoisted_8 = {
class: "label"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ui_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-input");
var _component_ui_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-icon");
var _component_ui_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-button");
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", _hoisted_3, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.nameLabel")), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
style: {
"width": "100%"
},
modelValue: $props.value.title,
placeholder: _ctx.$t('sys.inputPlc'),
"onUpdate:modelValue": _cache[0] || (_cache[0] = function (title) {
return _ctx.$emit('update:value', {
title: title
});
}),
type: "text",
maxlength: 50,
class: "input earthwork-title-input"
}, null, 8 /* PROPS */, ["modelValue", "placeholder"])]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_4, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", _hoisted_5, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.baseLabel")), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
style: {
"width": "100%"
},
type: "select",
class: "input",
unplaceholder: _ctx.$t('sys.unData'),
options: $setup.typeOptions,
modelValue: $props.value.heightType,
"onUpdate:modelValue": _cache[1] || (_cache[1] = function (heightType) {
$setup.hideModelHandler();
_ctx.$emit('update:value', {
heightType: heightType,
resource: JSON.parse(JSON.stringify($setup.resourceMap[heightType] || []))
});
})
}, null, 8 /* PROPS */, ["unplaceholder", "options", "modelValue"]), $props.value.heightType === $setup.EarthworkHeightType.custom ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_input, {
key: 0,
style: {
"width": "100%"
},
type: "input",
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])({
input: true,
disabled: $props.value.heightType !== $setup.EarthworkHeightType.custom
}),
right: "",
placeholder: $props.value.heightType !== $setup.EarthworkHeightType.custom ? _ctx.$t('earthwork.uncalc') : _ctx.$t('coord.edit.placeholder'),
onBlur: $setup.normalHeight,
modelValue: $props.value.heightType === $setup.EarthworkHeightType.custom ? $setup.heightStr : $props.height,
"onUpdate:modelValue": _cache[2] || (_cache[2] = function (h) {
return $setup.heightStr = h;
})
}, {
preIcon: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.heightLabel")) + ":", 1 /* TEXT */)];
}),
icon: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(" m ")];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["class", "placeholder", "modelValue"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), $setup.uploadOptions[$props.value.heightType] ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], {
key: 1
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])(" accept=\".dxf\" "), (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])($setup.uploadOptions[$props.value.heightType], function (option, ndx) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, [!$setup.resourceMap[$props.value.heightType][ndx] ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_input, {
key: 0,
style: {
"width": "100%",
"margin-top": "10px",
"height": "34px"
},
type: "file",
class: "fun-ctrl",
accept: option.accept,
maxSize: option.maxSize,
toastErr: function (type, info) {
return _ctx.$t("sys.uploadErr.".concat(type), info);
},
"onUpdate:modelValue": function (file) {
return $setup.uploadHandler(file, ndx);
}
}, {
replace: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_button, {
style: {
"flex": "none",
"height": "34px",
"color": "currentColor",
"border-color": "currentColor"
}
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
type: "uploading",
class: "icon"
}), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(" " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(option.text), 1 /* TEXT */)];
}),
_: 2 /* DYNAMIC */
}, 1024 /* DYNAMIC_SLOTS */)];
}),
_: 2 /* DYNAMIC */
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accept", "maxSize", "toastErr", "onUpdate:modelValue"])) : (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_button, {
key: 1,
style: {
"flex": "none",
"height": "34px",
"margin-top": "10px"
},
class: "del-btn",
onClick: function ($event) {
return $setup.delHandler(ndx);
}
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
type: "del",
class: "icon",
style: {
"margin-right": "4px"
}
}), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", {
title: $setup.resourceMap[$props.value.heightType][ndx].name
}, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.resourceMap[$props.value.heightType][ndx].name), 9 /* TEXT, PROPS */, _hoisted_6)];
}),
_: 2 /* DYNAMIC */
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]))], 64 /* STABLE_FRAGMENT */);
}), 256 /* UNKEYED_FRAGMENT */))], 64 /* STABLE_FRAGMENT */)) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])(" t === null)\"\r\n @click=\"modeShowHandler\"\r\n >\r\n \r\n {{ showModel ? \"表面模型\" : \"生成表面\" }}\r\n ")])]), $props.showSlide ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Teleport"], {
key: 0,
to: $setup.mount
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_7, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
type: "vrange",
modelValue: $props.value.heightPercentage || 0,
"onUpdate:modelValue": _cache[3] || (_cache[3] = function (heightPercentage) {
return _ctx.$emit('update:value', {
heightPercentage: heightPercentage
});
}),
min: 0,
max: 1,
step: 0.01,
modelLabel: "".concat($setup.round(($props.value.heightPercentage || 0) * 100, 0), "%"),
height: "300px",
input: false
}, null, 8 /* PROPS */, ["modelValue", "step", "modelLabel"]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", _hoisted_8, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.heightSlice")), 1 /* TEXT */)])], 8 /* PROPS */, ["to"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)], 64 /* STABLE_FRAGMENT */);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/index.vue?vue&type=template&id=67c179f4&scoped=true&ts=true":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/index.vue?vue&type=template&id=67c179f4&scoped=true&ts=true ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-67c179f4"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "btns header-btns"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ui_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-button");
var _component_ui_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-input");
var _component_ui_editor_toolbox = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-editor-toolbox");
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_editor_toolbox, {
toolbox: $setup.showToolbox,
"onUpdate:toolbox": _cache[11] || (_cache[11] = function ($event) {
return $setup.showToolbox = $event;
}),
disabledAnimation: "",
class: "measure"
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_button, {
class: "start-measure",
disabled: $setup.earthworkMode && !$setup.ctrlRef.earthworkIng,
type: !$setup.earthworkMode ? 'primary' : void 0,
onClick: $setup.clickAction
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.earthworkMode ? _ctx.$t("earthwork.stop") : _ctx.$t("earthwork.start")), 1 /* TEXT */)];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["disabled", "type"]), !$setup.earthworkMode ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_input, {
key: 0,
class: "unit",
type: "select",
unplaceholder: _ctx.$t('sys.unData'),
placeholder: _ctx.$t('sys.selectPic'),
options: $setup.unitOptions,
width: "120px",
modelValue: $setup.unit,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return $setup.unit = $event;
})
}, null, 8 /* PROPS */, ["unplaceholder", "placeholder", "options", "modelValue"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)]), $setup.earthworks && $setup.earthworks.length && !$setup.earthworkMode ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["TreeManage"], {
key: 0,
selects: $setup.selects,
"onUpdate:selects": _cache[1] || (_cache[1] = function ($event) {
return $setup.selects = $event;
}),
list: $setup.earthworks,
onChangeShow: _cache[2] || (_cache[2] = function (list, show) {
return $setup.execItem(list, function (_a) {
var raw = _a.raw;
return raw.show = show;
});
}),
onDelete: $setup.deleteList,
onCalc: _cache[3] || (_cache[3] = function (e) {
return $setup.enterCalcAtom(e.raw);
}),
onDownload: _cache[4] || (_cache[4] = function (data) {
return $setup.downList = data;
}),
onEnterEdit: _cache[5] || (_cache[5] = function (data) {
return $setup.earthworkEditHandler(data.raw);
}),
onUpdateTitle: _cache[6] || (_cache[6] = function (item, val) {
return item.raw.title = val;
}),
onShare: _cache[7] || (_cache[7] = function (data) {
return $setup.shareList = data;
})
}, null, 8 /* PROPS */, ["selects", "list"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])(" :showSlide=\"currentInfo.points.length > 0\" "), $setup.currentInfo && $setup.currentCanvas && $setup.earthworkMode ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["EditEarthwork"], {
key: 1,
"show-slide": false,
height: $setup.currentInfo.heightType !== $setup.EarthworkHeightType.custom ? $setup.round($setup.currentCanvas.getHeight(), 2) : $setup.currentInfo.height,
value: $setup.currentInfo,
"onUpdate:value": _cache[8] || (_cache[8] = function (data) {
return $setup.currentInfo && Object.assign($setup.currentInfo, data);
}),
onShowModel: _cache[9] || (_cache[9] = function ($event) {
return $setup.currentCanvas.showModel();
}),
onHideModel: _cache[10] || (_cache[10] = function ($event) {
return $setup.currentCanvas.hideModel();
})
}, null, 8 /* PROPS */, ["height", "value"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)];
}),
_: 1 /* STABLE */
}, 8 /* PROPS */, ["toolbox"]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])($setup["Control"], {
ref: function (ctrl) {
return $setup.ctrlRef = ctrl;
},
show: $setup.earthworkMode,
unit: $setup.unit,
current: $setup.currentUpdate,
"get-title": $setup.getDefaultTitle,
onDeleteEarthwork: _cache[12] || (_cache[12] = function ($event) {
return $setup.currentUpdate && $setup.deleteAtom($setup.currentUpdate);
}),
onAddEarthwork: $setup.addEarthworkHandler,
onStartEarthwork: $setup.startEarthwork,
onEndEarthwork: $setup.endEarthwork,
count: $setup.earthworks.length
}, null, 8 /* PROPS */, ["show", "unit", "current", "count"]), $setup.shareList.length ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["Share"], {
key: 0,
list: $setup.shareList,
earthworks: $setup.earthworks,
onClose: _cache[13] || (_cache[13] = function ($event) {
return $setup.shareList = [];
})
}, null, 8 /* PROPS */, ["list", "earthworks"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), $setup.downList.length ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["DowloadEarthwork"], {
key: 1,
list: $setup.downList,
onClose: _cache[14] || (_cache[14] = function ($event) {
return $setup.downList = [];
})
}, null, 8 /* PROPS */, ["list"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), $setup.propress ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["Propress"], {
key: 2,
propress: $setup.propress,
onHide: _cache[15] || (_cache[15] = function () {
return $setup.currentCalc && $setup.cancelCalcDigFill($setup.currentCalc);
})
}, null, 8 /* PROPS */, ["propress"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)], 64 /* STABLE_FRAGMENT */);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/index.vue?vue&type=template&id=31bb9778&scoped=true&ts=true":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/index.vue?vue&type=template&id=31bb9778&scoped=true&ts=true ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-31bb9778"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
key: 0,
class: "share-show-layout"
};
var _hoisted_2 = {
class: "share-show-content"
};
var _hoisted_3 = {
class: "foot"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ui_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-icon");
var _component_ui_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-button");
var _component_ui_dialog = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-dialog");
var _component_ui_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-input");
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, [$props.list.length ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_dialog, {
key: 0
}, {
header: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.export")) + " ", 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
type: "close",
ctrl: "",
onClick: _cache[0] || (_cache[0] = function ($event) {
return $setup.emit('close');
})
})];
}),
footer: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_button, {
type: "submit",
onClick: _cache[3] || (_cache[3] = function ($event) {
return $setup.emit('close');
})
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("sys.cancel")), 1 /* TEXT */)];
}),
_: 1 /* STABLE */
}), !$setup.os.isWX ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_button, {
key: 0,
type: "primary",
onClick: _cache[4] || (_cache[4] = function ($event) {
return $setup.downPDF();
})
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.exportPDF")), 1 /* TEXT */)];
}),
_: 1 /* STABLE */
})) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)];
}),
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["share-content", {
pc: $setup.os.isPc
}])
}, [$setup.summaryInfo ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [$setup.shareList.length > 1 ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["Summary"], {
key: 0,
value: $setup.summaryInfo,
"onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
return $setup.summaryInfo = $event;
})
}, null, 8 /* PROPS */, ["value"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])($setup.shareList, function (item) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["ShareItem"], {
data: item
}, null, 8 /* PROPS */, ["data"]);
}), 256 /* UNKEYED_FRAGMENT */))]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_3, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.calcTime")) + " :" + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.summaryInfo.time), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", {
class: "fun-ctrl",
onClick: _cache[2] || (_cache[2] = function ($event) {
return $setup.inputAuthor = true;
})
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.calcAuthor")) + ":" + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.summaryInfo.author), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
type: "edit",
style: {
"margin-left": "6px"
}
})])])])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), $setup.summaryInfo && $setup.showDownPdf ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["PdfTemp"], {
key: 1,
list: $setup.shareList,
ref: "pdfvm",
summaryInfo: $setup.summaryInfo
}, null, 8 /* PROPS */, ["list", "summaryInfo"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)], 2 /* CLASS */)])];
}),
_: 1 /* STABLE */
})) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), $setup.inputAuthor ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_dialog, {
key: 1
}, {
header: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.inputAuthor")) + " ", 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
type: "close",
ctrl: "",
onClick: _cache[5] || (_cache[5] = function ($event) {
return $setup.inputAuthor = false;
})
})];
}),
footer: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_button, {
type: "submit",
onClick: _cache[7] || (_cache[7] = function ($event) {
return $setup.inputAuthor = false;
})
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("sys.cancel")), 1 /* TEXT */)];
}),
_: 1 /* STABLE */
}), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_button, {
type: "primary",
onClick: _cache[8] || (_cache[8] = function () {
$setup.summaryInfo.author = $setup.authorContent;
$setup.inputAuthor = false;
})
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("sys.enter")), 1 /* TEXT */)];
}),
_: 1 /* STABLE */
})];
}),
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
style: {
"width": "300px"
},
modelValue: $setup.authorContent,
"onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) {
return $setup.authorContent = $event;
}),
type: "text",
placeholder: _ctx.$t('sys.inputPlc'),
maxlength: 50,
class: "input user-input"
}, null, 8 /* PROPS */, ["modelValue", "placeholder"])])];
}),
_: 1 /* STABLE */
})) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)], 64 /* STABLE_FRAGMENT */);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/item.vue?vue&type=template&id=1552b711&scoped=true&ts=true":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/item.vue?vue&type=template&id=1552b711&scoped=true&ts=true ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-1552b711"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "share-item"
};
var _hoisted_2 = {
class: "cover"
};
var _hoisted_3 = ["src"];
var _hoisted_4 = {
key: 1
};
var _hoisted_5 = {
class: "info"
};
var _hoisted_6 = {
key: 0
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [$props.data.img ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("img", {
key: 0,
src: $props.data.img
}, null, 8 /* PROPS */, _hoisted_3)) : (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", _hoisted_4))]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_5, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("h4", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.title), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.avgArea")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.area), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.minHeight")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.minHeight), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.maxHeight")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.maxHeight), 1 /* TEXT */), $props.data.heightType === $setup.EarthworkHeightType.custom ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("p", _hoisted_6, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.avgHeight")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.flatHeight), 1 /* TEXT */)) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.fill")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.dig || _ctx.$t("earthwork.uncalc")), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.dig")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.data.fill || _ctx.$t("earthwork.uncalc")), 1 /* TEXT */)])])]);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/pdf.vue?vue&type=template&id=2e565ae4&scoped=true&ts=true":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/pdf.vue?vue&type=template&id=2e565ae4&scoped=true&ts=true ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-2e565ae4"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "group"
};
var _hoisted_2 = {
class: "header"
};
var _hoisted_3 = ["src"];
var _hoisted_4 = {
class: "footer"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["pdf-temp", {
pc: $setup.os.isPc && !$setup.os.isTablet
}])
}, [(Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])($setup.groups, function (group, i) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", {
ref_for: true,
ref: function (vm) {
return $setup.vms[i] = vm;
}
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", {
style: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeStyle"])({
paddingTop: $setup.HEIGHT / $setup.WIDTH * 100 + '%'
}),
class: "group-layout"
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("h1", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.downloadTitle")), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("img", {
src: $setup.logo[$setup.lang],
alt: ""
}, null, 8 /* PROPS */, _hoisted_3)]), i === 0 && $props.list.length > 1 ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["Summary"], {
key: 0,
value: $props.summaryInfo,
"is-pdf": ""
}, null, 8 /* PROPS */, ["value"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])(group, function (item) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])($setup["ShareItem"], {
data: item,
"is-pdf": ""
}, null, 8 /* PROPS */, ["data"]);
}), 256 /* UNKEYED_FRAGMENT */)), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_4, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.calcTime")) + ":" + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.summaryInfo.time), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])(" {{ $t(\"measure.pageMark\", { index: i + 1, length: groups.length }) }} "), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.calcAuthor")) + ":" + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.summaryInfo.author), 1 /* TEXT */)])])])], 4 /* STYLE */)], 512 /* NEED_PATCH */);
}), 256 /* UNKEYED_FRAGMENT */))], 2 /* CLASS */);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/summary.vue?vue&type=template&id=4f2d1a98&scoped=true&ts=true":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/summary.vue?vue&type=template&id=4f2d1a98&scoped=true&ts=true ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-4f2d1a98"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "summary"
};
var _hoisted_2 = {
class: "labels"
};
var _hoisted_3 = ["src"];
var _hoisted_4 = {
key: 1,
class: "div-cover"
};
var _hoisted_5 = {
key: 2,
class: "info"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("h3", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])({
isPdf: $props.isPdf
})
}, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.pdfTitle")), 3 /* TEXT, CLASS */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [(Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])($setup.summaryLabels, function (label) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("span", {
style: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeStyle"])({
'--bcolor': label.color
})
}, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(label.text), 5 /* TEXT, STYLE */);
}), 256 /* UNKEYED_FRAGMENT */))]), $props.value.url ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("img", {
key: 0,
src: $props.value.url
}, null, 8 /* PROPS */, _hoisted_3)) : (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", _hoisted_4)), 'fill' in $props.value ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])("div", _hoisted_5, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.zarea")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.value.area), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.zdig")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.value.dig), 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.zfill")) + " = " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($props.value.fill), 1 /* TEXT */)])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)])], 64 /* STABLE_FRAGMENT */);
}
/***/ }),
/***/ "../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js?!../../node_modules/vue-loader-v16/dist/templateLoader.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/tree-manage.vue?vue&type=template&id=7a0f71d4&scoped=true&ts=true":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--14-0!D:/web_src/4dkankan_v4/node_modules/babel-loader/lib!D:/web_src/4dkankan_v4/node_modules/ts-loader??ref--14-2!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/tree-manage.vue?vue&type=template&id=7a0f71d4&scoped=true&ts=true ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.runtime.esm-bundler.js");
var _withScopeId = function (n) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["pushScopeId"])("data-v-7a0f71d4"), n = n(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["popScopeId"])(), n;
};
var _hoisted_1 = {
class: "ctrl-more"
};
var _hoisted_2 = {
class: "info-item head"
};
var _hoisted_3 = {
class: "info-item area first-area"
};
var _hoisted_4 = {
class: "name"
};
var _hoisted_5 = {
class: "value"
};
var _hoisted_6 = {
class: "info-item area"
};
var _hoisted_7 = {
class: "name"
};
var _hoisted_8 = {
class: "value"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ui_input = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-input");
var _component_ui_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-icon");
var _component_ui_group_option = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-group-option");
var _component_ui_group = Object(vue__WEBPACK_IMPORTED_MODULE_0__["resolveComponent"])("ui-group");
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_group, {
class: "tree-measure"
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_group_option, {
class: "head-ctrl"
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
type: "checkbox",
modelValue: $setup.allSelect,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return $setup.allSelect = $event;
})
}, null, 8 /* PROPS */, ["modelValue"]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_1, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["fun-ctrl", {
disabled: $setup.filterUnCalc($setup.selects).length === 0
}]),
onClick: $setup.shareHandler
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
class: "icon",
type: "download",
style: {
"color": "inherit"
}
}), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(" " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.shareName")), 1 /* TEXT */)], 2 /* CLASS */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["fun-ctrl", {
disabled: $setup.filterUnCalc($setup.selects).length === 0
}]),
onClick: $setup.downloadHandler
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
class: "icon",
type: "download",
style: {
"color": "inherit"
}
}), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createTextVNode"])(" " + Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.downName")), 1 /* TEXT */)], 2 /* CLASS */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["icon", {
disabled: $setup.selects.length === 0
}]),
type: "del",
onClick: _cache[1] || (_cache[1] = function ($event) {
return $setup.emit('delete', $setup.getRaws($setup.selects));
}),
ctrl: ""
}, null, 8 /* PROPS */, ["class"])])];
}),
_: 1 /* STABLE */
}), (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__["renderList"])($setup.earthworks, function (earthwork, j) {
return Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_group_option, {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["measures", {
'first-children': j === 0,
'last-children': j === $setup.earthworks.length - 1
}]),
key: earthwork.id,
onMouseenter: function ($event) {
return $setup.enterHandler(earthwork);
},
onMouseleave: function ($event) {
return $setup.leaveHandler(earthwork);
},
onClick: function ($event) {
return $setup.clickHandler(earthwork);
}
}, {
default: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withCtx"])(function () {
return [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["info", {
select: $setup.hightEarthwork === earthwork
}])
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_input, {
type: "checkbox",
onClick: _cache[2] || (_cache[2] = Object(vue__WEBPACK_IMPORTED_MODULE_0__["withModifiers"])(function () {}, ["stop"])),
modelValue: earthwork.show,
"onUpdate:modelValue": function (selected) {
return $setup.emit('changeShow', $setup.getRaws([earthwork]), selected);
},
class: "checkbox"
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_2, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])(["name item-name", {
disabled: !earthwork.show
}])
}, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(earthwork.title || _ctx.$t("earthwork.unTitle")), 3 /* TEXT, CLASS */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("p", {
class: Object(vue__WEBPACK_IMPORTED_MODULE_0__["normalizeClass"])([{
disabled: !earthwork.show
}, "value"])
}, [!$setup.earthworkInfo[earthwork.id].dig ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createBlock"])(_component_ui_icon, {
key: 0,
style: {
"margin-right": "20px"
},
class: "icon",
tip: _ctx.$t('earthwork.start'),
type: "a-a-calculate",
onClick: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withModifiers"])(function ($event) {
return $setup.emit('calc', $setup.getRaw(earthwork));
}, ["stop"]),
ctrl: ""
}, null, 8 /* PROPS */, ["tip", "onClick"])) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
style: {
"margin-right": "20px"
},
class: "icon",
type: "edit",
onClick: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withModifiers"])(function ($event) {
return $setup.emit('enterEdit', $setup.getRaw(earthwork));
}, ["stop"]),
ctrl: ""
}, null, 8 /* PROPS */, ["onClick"]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createVNode"])(_component_ui_icon, {
class: "icon",
type: "del",
onClick: Object(vue__WEBPACK_IMPORTED_MODULE_0__["withModifiers"])(function ($event) {
return $setup.emit('delete', $setup.getRaws([earthwork]));
}, ["stop"]),
ctrl: ""
}, null, 8 /* PROPS */, ["onClick"])], 2 /* CLASS */)]), $setup.hightEarthwork === earthwork && $setup.earthworkInfo[earthwork.id] ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__["openBlock"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementBlock"])(vue__WEBPACK_IMPORTED_MODULE_0__["Fragment"], {
key: 0
}, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_3, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", _hoisted_4, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.digV")) + ":", 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", _hoisted_5, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.earthworkInfo[earthwork.id].dig || _ctx.$t("earthwork.uncalc")), 1 /* TEXT */)]), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("div", _hoisted_6, [Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", _hoisted_7, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])(_ctx.$t("earthwork.fillV")) + ":", 1 /* TEXT */), Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("span", _hoisted_8, Object(vue__WEBPACK_IMPORTED_MODULE_0__["toDisplayString"])($setup.earthworkInfo[earthwork.id].fill || _ctx.$t("earthwork.uncalc")), 1 /* TEXT */)])], 64 /* STABLE_FRAGMENT */)) : Object(vue__WEBPACK_IMPORTED_MODULE_0__["createCommentVNode"])("v-if", true)], 2 /* CLASS */)];
}),
_: 2 /* DYNAMIC */
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "onMouseenter", "onMouseleave", "onClick"]);
}), 128 /* KEYED_FRAGMENT */))];
}),
_: 1 /* STABLE */
});
}
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/edit.vue?vue&type=style&index=1&id=81acca50&lang=css":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--7-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/edit.vue?vue&type=style&index=1&id=81acca50&lang=css ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.earthwork-title-input .text.suffix input {\r\n padding-right: 60px;\n}\r\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/index.vue?vue&type=style&index=2&id=31bb9778&lang=css":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--7-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/index.vue?vue&type=style&index=2&id=31bb9778&lang=css ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.user-input.ui-input .text.suffix input {\r\n padding-right: 50px;\n}\r\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/control.vue?vue&type=style&index=0&id=05eebe7f&lang=sass&scoped=true":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/control.vue?vue&type=style&index=0&id=05eebe7f&lang=sass&scoped=true ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".measure[data-v-05eebe7f] {\n padding: 0;\n}\n.btns[data-v-05eebe7f] {\n display: flex;\n}\n.btns .unit[data-v-05eebe7f],\n.btns .start-measure[data-v-05eebe7f] {\n height: 38px;\n}\n.btns .unit[data-v-05eebe7f] {\n flex: none;\n margin-left: 10px;\n}\n.btns .start-measure[data-v-05eebe7f] {\n flex: 1;\n}\n.header-btns[data-v-05eebe7f] {\n padding: 20px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 20px;\n}\n.tree-measure[data-v-05eebe7f] {\n padding-left: 20px;\n padding-right: 20px;\n overflow: hidden;\n}\n.head-ctrl[data-v-05eebe7f] {\n display: flex;\n justify-content: space-between;\n}\n.head-ctrl .ctrl-more[data-v-05eebe7f] {\n transition: opacity 0.3s ease;\n}\n.head-ctrl .ctrl-more span[data-v-05eebe7f] {\n margin-right: 20px;\n}\n.head-ctrl .ctrl-more .icon[data-v-05eebe7f] {\n font-size: 16px;\n color: inherit;\n cursor: pointer;\n transition: color 0.3s ease;\n}\n.head-ctrl .ctrl-more .icon[data-v-05eebe7f]:not(:first-child) {\n margin-left: 20;\n}\n.head-ctrl .ctrl-more .icon[data-v-05eebe7f]:hover {\n color: var(--color-main-normal);\n}\n.measures[data-v-05eebe7f] {\n display: flex;\n justify-content: space-between;\n border-top: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 0;\n padding: 20px 0;\n}\n.measures[data-v-05eebe7f]:last-child {\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n}\n.info[data-v-05eebe7f] {\n color: rgba(255, 255, 255, 0.7);\n padding-left: 26px;\n position: relative;\n flex: 1;\n cursor: pointer;\n}\n.info .info-item[data-v-05eebe7f] {\n display: flex;\n}\n.info .info-item .name[data-v-05eebe7f] {\n flex: 1;\n word-break: break-all;\n}\n.info .info-item .value[data-v-05eebe7f] {\n flex: none;\n margin-left: 10px;\n}\n.info.select[data-v-05eebe7f]::after {\n content: \"\";\n position: absolute;\n top: -20px;\n bottom: -20px;\n left: -200px;\n right: -200px;\n background-color: rgba(var(--colors-primary-base-fill), 0.16);\n pointer-events: none;\n}\n.info .checkbox[data-v-05eebe7f] {\n position: absolute;\n left: 0;\n top: 0;\n}\n.info .item-name[data-v-05eebe7f] {\n color: #fff;\n}\n.info .first-area[data-v-05eebe7f] {\n margin-top: 10px;\n}\n.info .area[data-v-05eebe7f] {\n line-height: 1.2;\n}\n.info .area .value[data-v-05eebe7f] {\n color: #fff;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/edit.vue?vue&type=style&index=0&id=81acca50&lang=scss&scoped=true":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--9-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/edit.vue?vue&type=style&index=0&id=81acca50&lang=scss&scoped=true ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".info[data-v-81acca50] {\n padding: 0 20px;\n}\n.item[data-v-81acca50] {\n margin-bottom: 20px;\n}\n.item .title[data-v-81acca50] {\n margin-bottom: 14px;\n font-size: 16px;\n font-weight: bold;\n color: rgba(255, 255, 255, 0.7);\n}\n.item .input[data-v-81acca50] {\n margin-bottom: 10px;\n}\n.height-slide[data-v-81acca50] {\n position: absolute;\n right: calc(var(--editor-menu-right) + var(--editor-toolbox-width));\n top: calc(50% - (var(--header-top) + var(--editor-head-height)) / 2);\n margin-right: 30px;\n z-index: 999;\n background: rgba(27, 27, 28, 0.8);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n padding: 15px;\n transform: translateY(-50%);\n border-radius: 6px;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 40px;\n border-radius: 20px;\n}\n.del-btn[data-v-81acca50] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding-left: 10px;\n padding-right: 10px;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/index.vue?vue&type=style&index=0&id=67c179f4&lang=sass&scoped=true":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/index.vue?vue&type=style&index=0&id=67c179f4&lang=sass&scoped=true ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".measure[data-v-67c179f4] {\n padding: 0;\n}\n.btns[data-v-67c179f4] {\n display: flex;\n}\n.btns .unit[data-v-67c179f4],\n.btns .start-measure[data-v-67c179f4] {\n height: 38px;\n}\n.btns .unit[data-v-67c179f4] {\n flex: none;\n margin-left: 10px;\n}\n.btns .start-measure[data-v-67c179f4] {\n flex: 1;\n}\n.header-btns[data-v-67c179f4] {\n padding: 20px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 20px;\n}\n.tree-measure[data-v-67c179f4] {\n padding-left: 20px;\n padding-right: 20px;\n overflow: hidden;\n}\n.head-ctrl[data-v-67c179f4] {\n display: flex;\n justify-content: space-between;\n}\n.head-ctrl .ctrl-more[data-v-67c179f4] {\n transition: opacity 0.3s ease;\n}\n.head-ctrl .ctrl-more span[data-v-67c179f4] {\n margin-right: 20px;\n}\n.head-ctrl .ctrl-more .icon[data-v-67c179f4] {\n font-size: 16px;\n color: inherit;\n cursor: pointer;\n transition: color 0.3s ease;\n}\n.head-ctrl .ctrl-more .icon[data-v-67c179f4]:not(:first-child) {\n margin-left: 20;\n}\n.head-ctrl .ctrl-more .icon[data-v-67c179f4]:hover {\n color: var(--color-main-normal);\n}\n.measures[data-v-67c179f4] {\n display: flex;\n justify-content: space-between;\n border-top: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 0;\n padding: 20px 0;\n}\n.measures[data-v-67c179f4]:last-child {\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n}\n.info[data-v-67c179f4] {\n color: rgba(255, 255, 255, 0.7);\n padding-left: 26px;\n position: relative;\n flex: 1;\n cursor: pointer;\n}\n.info .info-item[data-v-67c179f4] {\n display: flex;\n}\n.info .info-item .name[data-v-67c179f4] {\n flex: 1;\n word-break: break-all;\n}\n.info .info-item .value[data-v-67c179f4] {\n flex: none;\n margin-left: 10px;\n}\n.info.select[data-v-67c179f4]::after {\n content: \"\";\n position: absolute;\n top: -20px;\n bottom: -20px;\n left: -200px;\n right: -200px;\n background-color: rgba(var(--colors-primary-base-fill), 0.16);\n pointer-events: none;\n}\n.info .checkbox[data-v-67c179f4] {\n position: absolute;\n left: 0;\n top: 0;\n}\n.info .item-name[data-v-67c179f4] {\n color: #fff;\n}\n.info .first-area[data-v-67c179f4] {\n margin-top: 10px;\n}\n.info .area[data-v-67c179f4] {\n line-height: 1.2;\n}\n.info .area .value[data-v-67c179f4] {\n color: #fff;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/index.vue?vue&type=style&index=0&id=31bb9778&lang=sass&scoped=true":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/index.vue?vue&type=style&index=0&id=31bb9778&lang=sass&scoped=true ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".share-content[data-v-31bb9778] {\n --scale: 1.4;\n --borderColor: rgba(255, 255, 255, 0.3);\n text-align: left;\n overflow-y: auto;\n padding-right: 20px;\n margin-right: -20px;\n color: #fff;\n}\n.share-content.pc[data-v-31bb9778] {\n width: 840px;\n height: 640px;\n max-width: 90vw;\n max-height: calc(90vh - 220px);\n}\n.share-content[data-v-31bb9778]:not(.pc) {\n width: 90vw;\n max-width: 840px;\n max-height: calc(90vh - 220px);\n}\n.share-item[data-v-31bb9778] {\n border: 1px solid var(--borderColor);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: calc(268px * var(--scale));\n padding: 0 calc(19.2px * var(--scale));\n padding-left: calc(40px * var(--scale));\n}\n.share-item[data-v-31bb9778]:not(:first-child) {\n margin-top: calc(19.2px * var(--scale));\n}\n.share-item .cover[data-v-31bb9778] {\n flex: 1;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.share-item .cover img[data-v-31bb9778] {\n max-width: 100%;\n max-height: 100%;\n}\n.share-item .info[data-v-31bb9778] {\n flex: 1;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n.share-item .info h4[data-v-31bb9778] {\n font-size: calc(12px * var(--scale));\n}\n.share-item .info p[data-v-31bb9778] {\n font-size: calc(10px * var(--scale));\n}\n.share-item .info h4[data-v-31bb9778],\n.share-item .info p[data-v-31bb9778] {\n margin: calc(10px * var(--scale));\n}\n.pdf-temp[data-v-31bb9778] {\n --borderColor: #cccccc;\n --fontColor: #333333;\n position: absolute;\n left: -10000px;\n top: -100000px;\n width: calc(595px * var(--scale));\n background-color: #fff;\n color: #333333;\n}\n.pdf-temp *[data-v-31bb9778] {\n line-height: 1.2em;\n}\n.pdf-temp.pc[data-v-31bb9778] {\n --scale: 4;\n}\n.pdf-temp[data-v-31bb9778]:not(.pc) {\n --scale: 1.2;\n}\n.pdf-temp > div[data-v-31bb9778] {\n box-sizing: border-box;\n padding: calc(20px * var(--scale)) calc(20px * var(--scale)) calc(10px * var(--scale));\n}\n.pdf-temp > div:not(:first-child) .share-item[data-v-31bb9778] {\n height: calc(318px * var(--scale));\n}\n.pdf-temp .group-layout[data-v-31bb9778] {\n position: relative;\n}\n.pdf-temp .group-layout .group[data-v-31bb9778] {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n.pdf-temp .header[data-v-31bb9778] {\n padding-bottom: calc(10px * var(--scale));\n border-bottom: 1px solid #cccccc;\n margin-bottom: calc(10px * var(--scale));\n overflow: hidden;\n height: calc(24px * var(--scale) * 1.6);\n}\n.pdf-temp .header h1[data-v-31bb9778] {\n font-size: calc(24px * var(--scale));\n float: left;\n max-width: 80%;\n margin-top: 0;\n}\n.pdf-temp .header img[data-v-31bb9778] {\n max-width: 40%;\n float: right;\n height: calc(24px * var(--scale));\n margin-top: calc(4px * var(--scale));\n}\n.pdf-temp .footer[data-v-31bb9778] {\n position: absolute;\n bottom: 0;\n width: 100%;\n color: #333;\n margin-top: calc(10px * var(--scale));\n padding-top: calc(10px * var(--scale));\n border-top: 1px solid #cccccc;\n font-size: calc(7px * var(--scale));\n display: flex;\n justify-content: space-between;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/index.vue?vue&type=style&index=1&id=31bb9778&lang=scss&scoped=true":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--9-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/index.vue?vue&type=style&index=1&id=31bb9778&lang=scss&scoped=true ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".share-show-layout[data-v-31bb9778] {\n height: 100%;\n position: relative;\n}\n.share-show-layout .share-show-content[data-v-31bb9778] {\n height: calc(100% - 44px);\n overflow-y: scroll;\n width: calc(100% + 20px);\n padding-right: 16px;\n}\n.share-show-layout .foot[data-v-31bb9778] {\n color: #ffffff;\n font-size: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 20px;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/item.vue?vue&type=style&index=0&id=1552b711&lang=sass&scoped=true":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/item.vue?vue&type=style&index=0&id=1552b711&lang=sass&scoped=true ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".share-content[data-v-1552b711] {\n --scale: 1.4;\n --borderColor: rgba(255, 255, 255, 0.3);\n text-align: left;\n overflow-y: auto;\n padding-right: 20px;\n margin-right: -20px;\n color: #fff;\n}\n.share-content.pc[data-v-1552b711] {\n width: 840px;\n height: 640px;\n max-width: 90vw;\n max-height: calc(90vh - 220px);\n}\n.share-content[data-v-1552b711]:not(.pc) {\n width: 90vw;\n max-width: 840px;\n max-height: calc(90vh - 220px);\n}\n.share-item[data-v-1552b711] {\n border: 1px solid var(--borderColor);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: calc(268px * var(--scale));\n padding: 0 calc(19.2px * var(--scale));\n padding-left: calc(40px * var(--scale));\n}\n.share-item[data-v-1552b711]:not(:first-child) {\n margin-top: calc(19.2px * var(--scale));\n}\n.share-item .cover[data-v-1552b711] {\n flex: 1;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.share-item .cover img[data-v-1552b711] {\n max-width: 100%;\n max-height: 100%;\n}\n.share-item .info[data-v-1552b711] {\n flex: 1;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n.share-item .info h4[data-v-1552b711] {\n font-size: calc(12px * var(--scale));\n}\n.share-item .info p[data-v-1552b711] {\n font-size: calc(10px * var(--scale));\n}\n.share-item .info h4[data-v-1552b711],\n.share-item .info p[data-v-1552b711] {\n margin: calc(10px * var(--scale));\n}\n.pdf-temp[data-v-1552b711] {\n --borderColor: #cccccc;\n --fontColor: #333333;\n position: absolute;\n left: -10000px;\n top: -100000px;\n width: calc(595px * var(--scale));\n background-color: #fff;\n color: #333333;\n}\n.pdf-temp *[data-v-1552b711] {\n line-height: 1.2em;\n}\n.pdf-temp.pc[data-v-1552b711] {\n --scale: 4;\n}\n.pdf-temp[data-v-1552b711]:not(.pc) {\n --scale: 1.2;\n}\n.pdf-temp > div[data-v-1552b711] {\n box-sizing: border-box;\n padding: calc(20px * var(--scale)) calc(20px * var(--scale)) calc(10px * var(--scale));\n}\n.pdf-temp > div:not(:first-child) .share-item[data-v-1552b711] {\n height: calc(318px * var(--scale));\n}\n.pdf-temp .group-layout[data-v-1552b711] {\n position: relative;\n}\n.pdf-temp .group-layout .group[data-v-1552b711] {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n.pdf-temp .header[data-v-1552b711] {\n padding-bottom: calc(10px * var(--scale));\n border-bottom: 1px solid #cccccc;\n margin-bottom: calc(10px * var(--scale));\n overflow: hidden;\n height: calc(24px * var(--scale) * 1.6);\n}\n.pdf-temp .header h1[data-v-1552b711] {\n font-size: calc(24px * var(--scale));\n float: left;\n max-width: 80%;\n margin-top: 0;\n}\n.pdf-temp .header img[data-v-1552b711] {\n max-width: 40%;\n float: right;\n height: calc(24px * var(--scale));\n margin-top: calc(4px * var(--scale));\n}\n.pdf-temp .footer[data-v-1552b711] {\n position: absolute;\n bottom: 0;\n width: 100%;\n color: #333;\n margin-top: calc(10px * var(--scale));\n padding-top: calc(10px * var(--scale));\n border-top: 1px solid #cccccc;\n font-size: calc(7px * var(--scale));\n display: flex;\n justify-content: space-between;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/pdf.vue?vue&type=style&index=0&id=2e565ae4&lang=sass&scoped=true":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/pdf.vue?vue&type=style&index=0&id=2e565ae4&lang=sass&scoped=true ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".share-content[data-v-2e565ae4] {\n --scale: 1.4;\n --borderColor: rgba(255, 255, 255, 0.3);\n text-align: left;\n overflow-y: auto;\n padding-right: 20px;\n margin-right: -20px;\n color: #fff;\n}\n.share-content.pc[data-v-2e565ae4] {\n width: 840px;\n height: 640px;\n max-width: 90vw;\n max-height: calc(90vh - 220px);\n}\n.share-content[data-v-2e565ae4]:not(.pc) {\n width: 90vw;\n max-width: 840px;\n max-height: calc(90vh - 220px);\n}\n.share-item[data-v-2e565ae4] {\n border: 1px solid var(--borderColor);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: calc(268px * var(--scale));\n padding: 0 calc(19.2px * var(--scale));\n padding-left: calc(40px * var(--scale));\n}\n.share-item[data-v-2e565ae4]:not(:first-child) {\n margin-top: calc(19.2px * var(--scale));\n}\n.share-item .cover[data-v-2e565ae4] {\n flex: 1;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.share-item .cover img[data-v-2e565ae4] {\n max-width: 100%;\n max-height: 100%;\n}\n.share-item .info[data-v-2e565ae4] {\n flex: 1;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n.share-item .info h4[data-v-2e565ae4] {\n font-size: calc(12px * var(--scale));\n}\n.share-item .info p[data-v-2e565ae4] {\n font-size: calc(10px * var(--scale));\n}\n.share-item .info h4[data-v-2e565ae4],\n.share-item .info p[data-v-2e565ae4] {\n margin: calc(10px * var(--scale));\n}\n.pdf-temp[data-v-2e565ae4] {\n --borderColor: #cccccc;\n --fontColor: #333333;\n position: absolute;\n left: -10000px;\n top: -100000px;\n width: calc(595px * var(--scale));\n background-color: #fff;\n color: #333333;\n}\n.pdf-temp *[data-v-2e565ae4] {\n line-height: 1.2em;\n}\n.pdf-temp.pc[data-v-2e565ae4] {\n --scale: 4;\n}\n.pdf-temp[data-v-2e565ae4]:not(.pc) {\n --scale: 1.2;\n}\n.pdf-temp > div[data-v-2e565ae4] {\n box-sizing: border-box;\n padding: calc(20px * var(--scale)) calc(20px * var(--scale)) calc(10px * var(--scale));\n}\n.pdf-temp > div:not(:first-child) .share-item[data-v-2e565ae4] {\n height: calc(318px * var(--scale));\n}\n.pdf-temp .group-layout[data-v-2e565ae4] {\n position: relative;\n}\n.pdf-temp .group-layout .group[data-v-2e565ae4] {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n.pdf-temp .header[data-v-2e565ae4] {\n padding-bottom: calc(10px * var(--scale));\n border-bottom: 1px solid #cccccc;\n margin-bottom: calc(10px * var(--scale));\n overflow: hidden;\n height: calc(24px * var(--scale) * 1.6);\n}\n.pdf-temp .header h1[data-v-2e565ae4] {\n font-size: calc(24px * var(--scale));\n float: left;\n max-width: 80%;\n margin-top: 0;\n}\n.pdf-temp .header img[data-v-2e565ae4] {\n max-width: 40%;\n float: right;\n height: calc(24px * var(--scale));\n margin-top: calc(4px * var(--scale));\n}\n.pdf-temp .footer[data-v-2e565ae4] {\n position: absolute;\n bottom: 0;\n width: 100%;\n color: #333;\n margin-top: calc(10px * var(--scale));\n padding-top: calc(10px * var(--scale));\n border-top: 1px solid #cccccc;\n font-size: calc(7px * var(--scale));\n display: flex;\n justify-content: space-between;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/share/summary.vue?vue&type=style&index=0&id=4f2d1a98&scoped=true&lang=scss":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--9-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/share/summary.vue?vue&type=style&index=0&id=4f2d1a98&scoped=true&lang=scss ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "h3[data-v-4f2d1a98] {\n font-size: calc(17px * var(--scale));\n font-weight: bold;\n color: var(--fontColor);\n text-align: center;\n margin-bottom: calc(14px * var(--scale));\n}\nh3.isPdf[data-v-4f2d1a98] {\n margin-top: calc(30px * var(--scale));\n}\n.summary[data-v-4f2d1a98] {\n border: 1px solid var(--borderColor);\n padding: calc(22px * var(--scale)) calc(20px * var(--scale));\n}\n.summary .labels span[data-v-4f2d1a98] {\n display: inline-block;\n margin-right: calc(18px * var(--scale));\n color: var(--fontColor);\n font-size: calc(10px * var(--scale));\n vertical-align: middle;\n line-height: 1.8;\n}\n.summary .labels span[data-v-4f2d1a98]::before {\n content: \"\";\n width: calc(18px * var(--scale));\n height: calc(12px * var(--scale));\n display: inline-block;\n background-color: var(--bcolor);\n margin-right: calc(4px * var(--scale));\n vertical-align: middle;\n}\n.summary img[data-v-4f2d1a98] {\n display: block;\n width: 100%;\n margin: calc(8px * var(--scale)) 0 calc(16px * var(--scale));\n}\n.summary .info[data-v-4f2d1a98] {\n display: flex;\n align-items: center;\n justify-content: space-around;\n color: var(--fontColor);\n font-size: calc(12px * var(--scale));\n}\n.div-cover[data-v-4f2d1a98] {\n width: 100%;\n padding-top: 50%;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/tree-manage.vue?vue&type=style&index=0&id=7a0f71d4&lang=sass&scoped=true":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--10-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/tree-manage.vue?vue&type=style&index=0&id=7a0f71d4&lang=sass&scoped=true ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".measure[data-v-7a0f71d4] {\n padding: 0;\n}\n.btns[data-v-7a0f71d4] {\n display: flex;\n}\n.btns .unit[data-v-7a0f71d4],\n.btns .start-measure[data-v-7a0f71d4] {\n height: 38px;\n}\n.btns .unit[data-v-7a0f71d4] {\n flex: none;\n margin-left: 10px;\n}\n.btns .start-measure[data-v-7a0f71d4] {\n flex: 1;\n}\n.header-btns[data-v-7a0f71d4] {\n padding: 20px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 20px;\n}\n.tree-measure[data-v-7a0f71d4] {\n padding-left: 20px;\n padding-right: 20px;\n overflow: hidden;\n}\n.head-ctrl[data-v-7a0f71d4] {\n display: flex;\n justify-content: space-between;\n}\n.head-ctrl .ctrl-more[data-v-7a0f71d4] {\n transition: opacity 0.3s ease;\n}\n.head-ctrl .ctrl-more span[data-v-7a0f71d4] {\n margin-right: 20px;\n}\n.head-ctrl .ctrl-more .icon[data-v-7a0f71d4] {\n font-size: 16px;\n color: inherit;\n cursor: pointer;\n transition: color 0.3s ease;\n}\n.head-ctrl .ctrl-more .icon[data-v-7a0f71d4]:not(:first-child) {\n margin-left: 20;\n}\n.head-ctrl .ctrl-more .icon[data-v-7a0f71d4]:hover {\n color: var(--color-main-normal);\n}\n.measures[data-v-7a0f71d4] {\n display: flex;\n justify-content: space-between;\n border-top: 1px solid rgba(255, 255, 255, 0.16);\n margin-bottom: 0;\n padding: 20px 0;\n}\n.measures[data-v-7a0f71d4]:last-child {\n border-bottom: 1px solid rgba(255, 255, 255, 0.16);\n}\n.info[data-v-7a0f71d4] {\n color: rgba(255, 255, 255, 0.7);\n padding-left: 26px;\n position: relative;\n flex: 1;\n cursor: pointer;\n}\n.info .info-item[data-v-7a0f71d4] {\n display: flex;\n}\n.info .info-item .name[data-v-7a0f71d4] {\n flex: 1;\n word-break: break-all;\n}\n.info .info-item .value[data-v-7a0f71d4] {\n flex: none;\n margin-left: 10px;\n}\n.info.select[data-v-7a0f71d4]::after {\n content: \"\";\n position: absolute;\n top: -20px;\n bottom: -20px;\n left: -200px;\n right: -200px;\n background-color: rgba(var(--colors-primary-base-fill), 0.16);\n pointer-events: none;\n}\n.info .checkbox[data-v-7a0f71d4] {\n position: absolute;\n left: 0;\n top: 0;\n}\n.info .item-name[data-v-7a0f71d4] {\n color: #fff;\n}\n.info .first-area[data-v-7a0f71d4] {\n margin-top: 10px;\n}\n.info .area[data-v-7a0f71d4] {\n line-height: 1.2;\n}\n.info .area .value[data-v-7a0f71d4] {\n color: #fff;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/dist/cjs.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/tree-manage.vue?vue&type=style&index=1&id=7a0f71d4&lang=scss":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--9-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/tree-manage.vue?vue&type=style&index=1&id=7a0f71d4&lang=scss ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".tree-group-measure div.group-title .group-icon {\n right: 20px;\n}\n.tree-group-measure .measure-header {\n margin-left: 20px;\n margin-right: 20px;\n}\n.tree-group-measure .group-content {\n display: block;\n}\n.measure-input .text.suffix input {\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 70px;\n line-height: 30px;\n}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "../../node_modules/vue-style-loader/index.js?!../../node_modules/css-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js?!../../node_modules/cache-loader/dist/cjs.js?!../../node_modules/vue-loader-v16/dist/index.js?!./src/views/earthwork/edit.vue?vue&type=style&index=1&id=81acca50&lang=css":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** D:/web_src/4dkankan_v4/node_modules/vue-style-loader??ref--7-oneOf-1-0!D:/web_src/4dkankan_v4/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist/stylePostLoader.js!D:/web_src/4dkankan_v4/node_modules/postcss-loader/src??ref--7-oneOf-1-2!D:/web_src/4dkankan_v4/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/web_src/4dkankan_v4/node_modules/vue-loader-v16/dist??ref--1-1!./src/views/earthwork/edit.vue?vue&type=style&index=1&id=81acca50&lang=css ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a