ss-component-new 1.1.367 → 1.1.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/{array-I0ed2wow.js → array-DXRXxc5V.js} +2 -2
  2. package/dist/{array-Cs_qeJ2m.cjs → array-p4U660c6.cjs} +1 -1
  3. package/dist/{cloneDeep-GOtDTHJH.js → cloneDeep-CXyhaNiz.js} +1 -1
  4. package/dist/{cloneDeep-CYcGhlzG.cjs → cloneDeep-DSrEtC3V.cjs} +1 -1
  5. package/dist/{index-Od7_9YnM.js → index-0OFxCEb4.js} +4 -4
  6. package/dist/{index-Uzbrsz3o.js → index-5RC8h9AM.js} +4 -4
  7. package/dist/{index-BVtKkvlP.cjs → index-5RR-uv25.cjs} +1 -1
  8. package/dist/{index-BCKmCfQY.js → index-6kRv3SaH.js} +3 -3
  9. package/dist/{index-D6rdau3q.cjs → index-AADEPW1m.cjs} +1 -1
  10. package/dist/{index-fULzuqL0.cjs → index-B-GE1ADP.cjs} +1 -1
  11. package/dist/{index-CdOw3chz.js → index-B1LMqzHp.js} +3 -3
  12. package/dist/{index-DPBA1Q25.cjs → index-B3riNZW2.cjs} +1 -1
  13. package/dist/{index-CFOUGn9U.cjs → index-B4AKDa76.cjs} +1 -1
  14. package/dist/{index-C4arHEk-.cjs → index-B6eopOge.cjs} +1 -1
  15. package/dist/{index-BpmoTHTK.js → index-BDfz3KpW.js} +894 -917
  16. package/dist/{index-NnlO4vSZ.js → index-BKd7OSBi.js} +7 -7
  17. package/dist/{index-BPWbJd07.js → index-BTJpQg0y.js} +1 -1
  18. package/dist/{index-BTsOEEe8.js → index-BYMXpbdQ.js} +5 -5
  19. package/dist/{index-BUmHqNSQ.js → index-BaMIs_Xw.js} +5 -5
  20. package/dist/{index-Qx0GuwHr.js → index-BoQBLh4s.js} +1 -1
  21. package/dist/{index-8EjfXioS.js → index-BrZd3miB.js} +1 -1
  22. package/dist/{index-CUw8elUc.js → index-Bw1IeheF.js} +3 -3
  23. package/dist/{index-Dkb7lD6V.js → index-BwjaHuRt.js} +9 -9
  24. package/dist/{index-BvA8vJuJ.cjs → index-Bx4DquWJ.cjs} +1 -1
  25. package/dist/{index-DPpVsGw9.js → index-C0J1dJP0.js} +7 -7
  26. package/dist/{index-OCvy-QIo.cjs → index-C1KexSFx.cjs} +1 -1
  27. package/dist/{index-CKLAjhdz.cjs → index-C76AHG4f.cjs} +1 -1
  28. package/dist/{index-DRUsyai9.js → index-C8WBjRju.js} +5 -5
  29. package/dist/{index-C_LjwD8t.js → index-CCry0tAM.js} +65 -63
  30. package/dist/{index-B7Wi5BZf.cjs → index-CL8EokGp.cjs} +1 -1
  31. package/dist/{index-mhef-1Zo.cjs → index-CM1KG4hZ.cjs} +1 -1
  32. package/dist/{index-B5VuM8l5.js → index-CMcke6or.js} +8 -8
  33. package/dist/{index-CDkcPYW6.cjs → index-C_x3pc-5.cjs} +1 -1
  34. package/dist/{index-Bt3Ruo-D.js → index-CdYuSKeI.js} +4 -4
  35. package/dist/{index-Dqzy8-xb.cjs → index-Crft9XAJ.cjs} +1 -1
  36. package/dist/{index-UKfyjk2G.cjs → index-Cyyvnoy5.cjs} +1 -1
  37. package/dist/{index-DGFAibP8.js → index-Czqs-JUN.js} +6 -6
  38. package/dist/{index-BqCSda61.js → index-D2aMfmep.js} +3 -3
  39. package/dist/{index-DmyMy020.js → index-D4gBB4Xq.js} +9 -9
  40. package/dist/{index-d44crVNl.js → index-DK3YYMqm.js} +6 -6
  41. package/dist/{index-CpCocC41.js → index-DOQKFJaF.js} +1 -1
  42. package/dist/{index-c9nu1Oxk.js → index-DVW05d1i.js} +4 -4
  43. package/dist/{index-DH0ET7m4.cjs → index-DjYG1iMR.cjs} +1 -1
  44. package/dist/{index-D7RMQttr.cjs → index-Dkhqb-cY.cjs} +1 -1
  45. package/dist/{index-zvArGV4H.cjs → index-DogyvuWq.cjs} +166 -166
  46. package/dist/{index-DTxixBDx.js → index-DpwvWrwM.js} +1 -1
  47. package/dist/{index-Bwgh1tDh.cjs → index-Ds9PKdQt.cjs} +1 -1
  48. package/dist/{index-xjuo15AK.cjs → index-F-8JUdjA.cjs} +1 -1
  49. package/dist/{index-8OLisgK0.cjs → index-GHlejw5s.cjs} +1 -1
  50. package/dist/{index-wAG1B1TR.cjs → index-H6L4a7FD.cjs} +1 -1
  51. package/dist/{index-BDDKdGJX.cjs → index-JB9JUdhC.cjs} +1 -1
  52. package/dist/{index-PCCtRzDJ.js → index-Jg50Cins.js} +4 -4
  53. package/dist/{index-D9bPG3j0.cjs → index-Ltq2aZEY.cjs} +1 -1
  54. package/dist/{index-sRwTHKAL.cjs → index-SnS2j8VB.cjs} +1 -1
  55. package/dist/{index-BWLxiwts.js → index-atmXvfEM.js} +4 -4
  56. package/dist/index-c_iT7yiL.cjs +1 -0
  57. package/dist/{index-DoPfcd5q.cjs → index-g7S_DTj_.cjs} +1 -1
  58. package/dist/{index-kxN4kJ1s.cjs → index-kamk_cc2.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-D8xCoFmH.js → index.vue_vue_type_script_setup_true_lang-BWj64RRw.js} +1 -1
  60. package/dist/{index.vue_vue_type_script_setup_true_lang-CfJGn5rz.cjs → index.vue_vue_type_script_setup_true_lang-CqFAbdmu.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_23015cb0_lang-Db_d3OS1.cjs → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-CKf9GB8F.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_23015cb0_lang-DDredAHL.js → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-atPRKw8g.js} +13 -13
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-i5FsC2rm.cjs → index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-CXo3L8X-.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-Cs21Q0vD.js → index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-LJVg3Lt-.js} +30 -30
  65. package/dist/{login-CDUTeSY_.cjs → login-B-eAhMEz.cjs} +1 -1
  66. package/dist/{login-DMbjMzkS.js → login-BlwwLIDJ.js} +2 -2
  67. package/dist/{main-D2KxIY0t.js → main-BBM5wrkJ.js} +7 -7
  68. package/dist/{main-CRtBg87K.cjs → main-qobuJ_uH.cjs} +1 -1
  69. package/dist/{menu-D_3gHkG4.js → menu-B0pyBhYY.js} +1 -1
  70. package/dist/{menu-Da5Ht5hG.cjs → menu-C9NMDJ1-.cjs} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +7 -7
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/index-CeWS20go.cjs +0 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as yt, resolveComponent as ee, createElementBlock as V, openBlock as w, createVNode as u, ref as T, watch as De, onMounted as Kt, nextTick as ut, onBeforeUnmount as co, createBlock as J, createCommentVNode as ue, createElementVNode as p, unref as c, normalizeClass as dt, withDirectives as et, isRef as pt, vModelRadio as mt, toDisplayString as Ue, withCtx as b, Fragment as St, renderList as Dt, normalizeStyle as ho, resolveDirective as Zt, createTextVNode as Ee, renderSlot as nt, resolveDynamicComponent as Xt, computed as uo } from "vue";
2
- import { m as Rt, a as At, b as Bt } from "./index-B5VuM8l5.js";
3
- import gt from "./index-BPWbJd07.js";
4
- import { _ as po, o as Wt, c as qt, a as Gt, b as Jt, s as Fe, g as Qt, d as eo, e as to, f as oo, h as mo, i as fo } from "./index.vue_vue_type_style_index_0_scoped_23015cb0_lang-DDredAHL.js";
5
- import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { s as Le, u as wt, b as _e, g as _o, E as Pt } from "./menu-D_3gHkG4.js";
7
- import { u as ao } from "./login-DMbjMzkS.js";
8
- import { S as Ne } from "./index-BHtNKL1L.js";
9
- import { C as go, V as L, M as at, T as tt, Q as Ot, S as zt, a as ze, R as yo, P as _t, b as wo, c as bo, d as vo, e as Co, W as ko, f as Po, A as To, g as Mo, X as Eo, h as xo, D as Tt, H as So, i as Nt, B as Ft, j as Mt, k as Do, l as Ro, m as Ao, E as Et, n as Bo, o as Lt, u as bt, p as Fo, I as Ut, q as so } from "./index-C_LjwD8t.js";
10
- import { p as je } from "./index-Qx0GuwHr.js";
11
- import { _ as st } from "./index-Od7_9YnM.js";
12
- import { s as no } from "./index-DmyMy020.js";
13
- import { c as ot } from "./cloneDeep-GOtDTHJH.js";
14
- import { u as Lo } from "./index-DPpVsGw9.js";
15
- import { d as $t } from "./index-CpCocC41.js";
16
- import { i as jo, e as Oo, b as It, c as Vt, a as zo } from "./array-I0ed2wow.js";
17
- import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-Cs21Q0vD.js";
18
- const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
1
+ import { defineComponent as gt, resolveComponent as Q, createElementBlock as W, openBlock as v, createVNode as d, ref as T, watch as Ee, onMounted as Kt, nextTick as ht, onBeforeUnmount as co, createBlock as ee, createCommentVNode as me, createElementVNode as u, unref as c, normalizeClass as ut, withDirectives as et, isRef as dt, vModelRadio as pt, toDisplayString as Oe, withCtx as b, Fragment as St, renderList as Dt, normalizeStyle as ho, resolveDirective as Zt, createTextVNode as Te, renderSlot as st, resolveDynamicComponent as Xt, computed as uo } from "vue";
2
+ import { m as Rt, a as At, b as Bt } from "./index-CMcke6or.js";
3
+ import _t from "./index-BTJpQg0y.js";
4
+ import { _ as po, o as Wt, c as qt, a as Gt, b as Jt, s as Re, g as Qt, d as eo, e as to, f as oo, h as mo, i as fo } from "./index.vue_vue_type_style_index_0_scoped_23015cb0_lang-atPRKw8g.js";
5
+ import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { s as Ae, u as yt, b as pe, g as _o, E as kt } from "./menu-B0pyBhYY.js";
7
+ import { u as ao } from "./login-BlwwLIDJ.js";
8
+ import { S as je } from "./index-BHtNKL1L.js";
9
+ import { C as go, V as j, M as at, T as tt, Q as Ot, S as zt, a as Le, R as yo, P as ft, b as wo, c as bo, d as vo, e as Co, W as ko, f as Po, A as To, g as Mo, X as xo, h as Eo, D as Pt, H as So, i as Nt, B as Ft, j as Tt, k as Do, l as Ro, m as Ao, E as Mt, n as Bo, o as Lt, u as wt, p as Fo, I as Ut, q as so } from "./index-CCry0tAM.js";
10
+ import { p as Be } from "./index-BoQBLh4s.js";
11
+ import { s as no } from "./index-D4gBB4Xq.js";
12
+ import { c as ot } from "./cloneDeep-CXyhaNiz.js";
13
+ import { _ as xt } from "./index-0OFxCEb4.js";
14
+ import { u as Lo } from "./index-C0J1dJP0.js";
15
+ import { d as $t } from "./index-DOQKFJaF.js";
16
+ import { i as jo, e as Oo, b as It, c as Vt, a as zo } from "./array-DXRXxc5V.js";
17
+ import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-LJVg3Lt-.js";
18
+ const $o = { class: "tree-container" }, Io = /* @__PURE__ */ gt({
19
19
  __name: "index",
20
20
  props: {
21
21
  treeData: Array,
@@ -29,30 +29,30 @@ const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
29
29
  const t = e, o = a, l = {
30
30
  children: "children",
31
31
  label: "label"
32
- }, s = (n) => {
33
- t("nodeClick", n);
32
+ }, n = (s) => {
33
+ t("nodeClick", s);
34
34
  };
35
- return (n, i) => {
36
- const r = ee("el-tree");
37
- return w(), V("div", $o, [
38
- u(r, {
35
+ return (s, i) => {
36
+ const r = Q("el-tree");
37
+ return v(), W("div", $o, [
38
+ d(r, {
39
39
  data: o == null ? void 0 : o.treeData,
40
40
  props: l,
41
41
  "default-expand-all": a.expand,
42
- onNodeClick: s
42
+ onNodeClick: n
43
43
  }, null, 8, ["data", "default-expand-all"])
44
44
  ]);
45
45
  };
46
46
  }
47
- }), Vo = /* @__PURE__ */ Ve(Io, [["__scopeId", "data-v-b4bd4658"]]), Yo = { class: "client-robot-side" }, Ho = /* @__PURE__ */ yt({
47
+ }), Vo = /* @__PURE__ */ Ue(Io, [["__scopeId", "data-v-b4bd4658"]]), Yo = { class: "client-robot-side" }, Ho = /* @__PURE__ */ gt({
48
48
  __name: "robotMenu",
49
49
  props: {
50
50
  model: Object
51
51
  },
52
52
  setup(a) {
53
- const e = a, t = T(0), o = T([]), l = (n) => {
53
+ const e = a, t = T(0), o = T([]), l = (s) => {
54
54
  let i = [];
55
- return Array.isArray(n) && (n == null ? void 0 : n.length) > 0 && (t.value++, n.forEach((r) => {
55
+ return Array.isArray(s) && (s == null ? void 0 : s.length) > 0 && (t.value++, s.forEach((r) => {
56
56
  !(r != null && r.isMesh) && ((r == null ? void 0 : r.type) === "URDFJoint" || (r == null ? void 0 : r.type) === "URDFLink") && i.push({
57
57
  name: r == null ? void 0 : r.name,
58
58
  label: r == null ? void 0 : r.name,
@@ -66,35 +66,35 @@ const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
66
66
  path: r == null ? void 0 : r.name
67
67
  });
68
68
  })), i;
69
- }, s = (n) => {
69
+ }, n = (s) => {
70
70
  let i = [];
71
71
  return t.value++, i.push({
72
- name: n == null ? void 0 : n.name,
73
- label: n == null ? void 0 : n.name,
72
+ name: s == null ? void 0 : s.name,
73
+ label: s == null ? void 0 : s.name,
74
74
  show: !0,
75
75
  level: t.value,
76
76
  isPenultimate: !1,
77
- type: n == null ? void 0 : n.type,
78
- id: n == null ? void 0 : n.id,
79
- limit: (n == null ? void 0 : n.limit) ?? "",
80
- children: l(n == null ? void 0 : n.children),
81
- path: n == null ? void 0 : n.name
77
+ type: s == null ? void 0 : s.type,
78
+ id: s == null ? void 0 : s.id,
79
+ limit: (s == null ? void 0 : s.limit) ?? "",
80
+ children: l(s == null ? void 0 : s.children),
81
+ path: s == null ? void 0 : s.name
82
82
  }), i;
83
83
  };
84
- return De(
84
+ return Ee(
85
85
  () => e == null ? void 0 : e.model,
86
86
  () => {
87
- e != null && e.model && (o.value = s(e == null ? void 0 : e.model));
87
+ e != null && e.model && (o.value = n(e == null ? void 0 : e.model));
88
88
  },
89
89
  { deep: !0, immediate: !0 }
90
- ), (n, i) => (w(), V("div", Yo, [
91
- u(Vo, {
90
+ ), (s, i) => (v(), W("div", Yo, [
91
+ d(Vo, {
92
92
  treeData: o.value,
93
93
  expand: !0
94
94
  }, null, 8, ["treeData"])
95
95
  ]));
96
96
  }
97
- }), Ko = /* @__PURE__ */ Ve(Ho, [["__scopeId", "data-v-0411c59a"]]), Yt = { type: "change" }, jt = { type: "start" }, io = { type: "end" }, ft = new yo(), Ht = new _t(), Zo = Math.cos(70 * wo.DEG2RAD), fe = new L(), Se = 2 * Math.PI, Z = {
97
+ }), Ko = /* @__PURE__ */ Ue(Ho, [["__scopeId", "data-v-0411c59a"]]), Yt = { type: "change" }, jt = { type: "start" }, io = { type: "end" }, mt = new yo(), Ht = new ft(), Zo = Math.cos(70 * wo.DEG2RAD), de = new j(), xe = 2 * Math.PI, K = {
98
98
  NONE: -1,
99
99
  ROTATE: 0,
100
100
  DOLLY: 1,
@@ -103,7 +103,7 @@ const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
103
103
  TOUCH_PAN: 4,
104
104
  TOUCH_DOLLY_PAN: 5,
105
105
  TOUCH_DOLLY_ROTATE: 6
106
- }, xt = 1e-6;
106
+ }, Et = 1e-6;
107
107
  class Xo extends go {
108
108
  /**
109
109
  * Constructs a new controls instance.
@@ -112,7 +112,7 @@ class Xo extends go {
112
112
  * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
113
113
  */
114
114
  constructor(e, t = null) {
115
- super(e, t), this.state = Z.NONE, this.target = new L(), this.cursor = new L(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: at.ROTATE, MIDDLE: at.DOLLY, RIGHT: at.PAN }, this.touches = { ONE: tt.ROTATE, TWO: tt.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new L(), this._lastQuaternion = new Ot(), this._lastTargetPosition = new L(), this._quat = new Ot().setFromUnitVectors(e.up, new L(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new zt(), this._sphericalDelta = new zt(), this._scale = 1, this._panOffset = new L(), this._rotateStart = new ze(), this._rotateEnd = new ze(), this._rotateDelta = new ze(), this._panStart = new ze(), this._panEnd = new ze(), this._panDelta = new ze(), this._dollyStart = new ze(), this._dollyEnd = new ze(), this._dollyDelta = new ze(), this._dollyDirection = new L(), this._mouse = new ze(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = qo.bind(this), this._onPointerDown = Wo.bind(this), this._onPointerUp = Go.bind(this), this._onContextMenu = sa.bind(this), this._onMouseWheel = ea.bind(this), this._onKeyDown = ta.bind(this), this._onTouchStart = oa.bind(this), this._onTouchMove = aa.bind(this), this._onMouseDown = Jo.bind(this), this._onMouseMove = Qo.bind(this), this._interceptControlDown = na.bind(this), this._interceptControlUp = ia.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
115
+ super(e, t), this.state = K.NONE, this.target = new j(), this.cursor = new j(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: at.ROTATE, MIDDLE: at.DOLLY, RIGHT: at.PAN }, this.touches = { ONE: tt.ROTATE, TWO: tt.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new j(), this._lastQuaternion = new Ot(), this._lastTargetPosition = new j(), this._quat = new Ot().setFromUnitVectors(e.up, new j(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new zt(), this._sphericalDelta = new zt(), this._scale = 1, this._panOffset = new j(), this._rotateStart = new Le(), this._rotateEnd = new Le(), this._rotateDelta = new Le(), this._panStart = new Le(), this._panEnd = new Le(), this._panDelta = new Le(), this._dollyStart = new Le(), this._dollyEnd = new Le(), this._dollyDelta = new Le(), this._dollyDirection = new j(), this._mouse = new Le(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = qo.bind(this), this._onPointerDown = Wo.bind(this), this._onPointerUp = Go.bind(this), this._onContextMenu = sa.bind(this), this._onMouseWheel = ea.bind(this), this._onKeyDown = ta.bind(this), this._onTouchStart = oa.bind(this), this._onTouchMove = aa.bind(this), this._onMouseDown = Jo.bind(this), this._onMouseMove = Qo.bind(this), this._interceptControlDown = na.bind(this), this._interceptControlUp = ia.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
116
116
  }
117
117
  connect(e) {
118
118
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -173,45 +173,45 @@ class Xo extends go {
173
173
  * was called, or the initial state.
174
174
  */
175
175
  reset() {
176
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Yt), this.update(), this.state = Z.NONE;
176
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Yt), this.update(), this.state = K.NONE;
177
177
  }
178
178
  update(e = null) {
179
179
  const t = this.object.position;
180
- fe.copy(t).sub(this.target), fe.applyQuaternion(this._quat), this._spherical.setFromVector3(fe), this.autoRotate && this.state === Z.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
180
+ de.copy(t).sub(this.target), de.applyQuaternion(this._quat), this._spherical.setFromVector3(de), this.autoRotate && this.state === K.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
181
181
  let o = this.minAzimuthAngle, l = this.maxAzimuthAngle;
182
- isFinite(o) && isFinite(l) && (o < -Math.PI ? o += Se : o > Math.PI && (o -= Se), l < -Math.PI ? l += Se : l > Math.PI && (l -= Se), o <= l ? this._spherical.theta = Math.max(o, Math.min(l, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (o + l) / 2 ? Math.max(o, this._spherical.theta) : Math.min(l, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
183
- let s = !1;
182
+ isFinite(o) && isFinite(l) && (o < -Math.PI ? o += xe : o > Math.PI && (o -= xe), l < -Math.PI ? l += xe : l > Math.PI && (l -= xe), o <= l ? this._spherical.theta = Math.max(o, Math.min(l, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (o + l) / 2 ? Math.max(o, this._spherical.theta) : Math.min(l, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
183
+ let n = !1;
184
184
  if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
185
185
  this._spherical.radius = this._clampDistance(this._spherical.radius);
186
186
  else {
187
- const n = this._spherical.radius;
188
- this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), s = n != this._spherical.radius;
187
+ const s = this._spherical.radius;
188
+ this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), n = s != this._spherical.radius;
189
189
  }
190
- if (fe.setFromSpherical(this._spherical), fe.applyQuaternion(this._quatInverse), t.copy(this.target).add(fe), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
191
- let n = null;
190
+ if (de.setFromSpherical(this._spherical), de.applyQuaternion(this._quatInverse), t.copy(this.target).add(de), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
191
+ let s = null;
192
192
  if (this.object.isPerspectiveCamera) {
193
- const i = fe.length();
194
- n = this._clampDistance(i * this._scale);
195
- const r = i - n;
196
- this.object.position.addScaledVector(this._dollyDirection, r), this.object.updateMatrixWorld(), s = !!r;
193
+ const i = de.length();
194
+ s = this._clampDistance(i * this._scale);
195
+ const r = i - s;
196
+ this.object.position.addScaledVector(this._dollyDirection, r), this.object.updateMatrixWorld(), n = !!r;
197
197
  } else if (this.object.isOrthographicCamera) {
198
- const i = new L(this._mouse.x, this._mouse.y, 0);
198
+ const i = new j(this._mouse.x, this._mouse.y, 0);
199
199
  i.unproject(this.object);
200
200
  const r = this.object.zoom;
201
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), s = r !== this.object.zoom;
202
- const k = new L(this._mouse.x, this._mouse.y, 0);
203
- k.unproject(this.object), this.object.position.sub(k).add(i), this.object.updateMatrixWorld(), n = fe.length();
201
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), n = r !== this.object.zoom;
202
+ const M = new j(this._mouse.x, this._mouse.y, 0);
203
+ M.unproject(this.object), this.object.position.sub(M).add(i), this.object.updateMatrixWorld(), s = de.length();
204
204
  } else
205
205
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
206
- n !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(n).add(this.object.position) : (ft.origin.copy(this.object.position), ft.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(ft.direction)) < Zo ? this.object.lookAt(this.target) : (Ht.setFromNormalAndCoplanarPoint(this.object.up, this.target), ft.intersectPlane(Ht, this.target))));
206
+ s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (mt.origin.copy(this.object.position), mt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(mt.direction)) < Zo ? this.object.lookAt(this.target) : (Ht.setFromNormalAndCoplanarPoint(this.object.up, this.target), mt.intersectPlane(Ht, this.target))));
207
207
  } else if (this.object.isOrthographicCamera) {
208
- const n = this.object.zoom;
209
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), n !== this.object.zoom && (this.object.updateProjectionMatrix(), s = !0);
208
+ const s = this.object.zoom;
209
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), s !== this.object.zoom && (this.object.updateProjectionMatrix(), n = !0);
210
210
  }
211
- return this._scale = 1, this._performCursorZoom = !1, s || this._lastPosition.distanceToSquared(this.object.position) > xt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > xt || this._lastTargetPosition.distanceToSquared(this.target) > xt ? (this.dispatchEvent(Yt), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
211
+ return this._scale = 1, this._performCursorZoom = !1, n || this._lastPosition.distanceToSquared(this.object.position) > Et || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Et || this._lastTargetPosition.distanceToSquared(this.target) > Et ? (this.dispatchEvent(Yt), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
212
212
  }
213
213
  _getAutoRotationAngle(e) {
214
- return e !== null ? Se / 60 * this.autoRotateSpeed * e : Se / 60 / 60 * this.autoRotateSpeed;
214
+ return e !== null ? xe / 60 * this.autoRotateSpeed * e : xe / 60 / 60 * this.autoRotateSpeed;
215
215
  }
216
216
  _getZoomScale(e) {
217
217
  const t = Math.abs(e * 0.01);
@@ -224,19 +224,19 @@ class Xo extends go {
224
224
  this._sphericalDelta.phi -= e;
225
225
  }
226
226
  _panLeft(e, t) {
227
- fe.setFromMatrixColumn(t, 0), fe.multiplyScalar(-e), this._panOffset.add(fe);
227
+ de.setFromMatrixColumn(t, 0), de.multiplyScalar(-e), this._panOffset.add(de);
228
228
  }
229
229
  _panUp(e, t) {
230
- this.screenSpacePanning === !0 ? fe.setFromMatrixColumn(t, 1) : (fe.setFromMatrixColumn(t, 0), fe.crossVectors(this.object.up, fe)), fe.multiplyScalar(e), this._panOffset.add(fe);
230
+ this.screenSpacePanning === !0 ? de.setFromMatrixColumn(t, 1) : (de.setFromMatrixColumn(t, 0), de.crossVectors(this.object.up, de)), de.multiplyScalar(e), this._panOffset.add(de);
231
231
  }
232
232
  // deltaX and deltaY are in pixels; right and down are positive
233
233
  _pan(e, t) {
234
234
  const o = this.domElement;
235
235
  if (this.object.isPerspectiveCamera) {
236
236
  const l = this.object.position;
237
- fe.copy(l).sub(this.target);
238
- let s = fe.length();
239
- s *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * s / o.clientHeight, this.object.matrix), this._panUp(2 * t * s / o.clientHeight, this.object.matrix);
237
+ de.copy(l).sub(this.target);
238
+ let n = de.length();
239
+ n *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * n / o.clientHeight, this.object.matrix), this._panUp(2 * t * n / o.clientHeight, this.object.matrix);
240
240
  } else this.object.isOrthographicCamera ? (this._panLeft(e * (this.object.right - this.object.left) / this.object.zoom / o.clientWidth, this.object.matrix), this._panUp(t * (this.object.top - this.object.bottom) / this.object.zoom / o.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
241
241
  }
242
242
  _dollyOut(e) {
@@ -249,8 +249,8 @@ class Xo extends go {
249
249
  if (!this.zoomToCursor)
250
250
  return;
251
251
  this._performCursorZoom = !0;
252
- const o = this.domElement.getBoundingClientRect(), l = e - o.left, s = t - o.top, n = o.width, i = o.height;
253
- this._mouse.x = l / n * 2 - 1, this._mouse.y = -(s / i) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
252
+ const o = this.domElement.getBoundingClientRect(), l = e - o.left, n = t - o.top, s = o.width, i = o.height;
253
+ this._mouse.x = l / s * 2 - 1, this._mouse.y = -(n / i) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
254
254
  }
255
255
  _clampDistance(e) {
256
256
  return Math.max(this.minDistance, Math.min(this.maxDistance, e));
@@ -270,7 +270,7 @@ class Xo extends go {
270
270
  _handleMouseMoveRotate(e) {
271
271
  this._rotateEnd.set(e.clientX, e.clientY), this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
272
272
  const t = this.domElement;
273
- this._rotateLeft(Se * this._rotateDelta.x / t.clientHeight), this._rotateUp(Se * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
273
+ this._rotateLeft(xe * this._rotateDelta.x / t.clientHeight), this._rotateUp(xe * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
274
274
  }
275
275
  _handleMouseMoveDolly(e) {
276
276
  this._dollyEnd.set(e.clientX, e.clientY), this._dollyDelta.subVectors(this._dollyEnd, this._dollyStart), this._dollyDelta.y > 0 ? this._dollyOut(this._getZoomScale(this._dollyDelta.y)) : this._dollyDelta.y < 0 && this._dollyIn(this._getZoomScale(this._dollyDelta.y)), this._dollyStart.copy(this._dollyEnd), this.update();
@@ -285,16 +285,16 @@ class Xo extends go {
285
285
  let t = !1;
286
286
  switch (e.code) {
287
287
  case this.keys.UP:
288
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(Se * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
288
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(xe * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
289
289
  break;
290
290
  case this.keys.BOTTOM:
291
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-Se * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
291
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-xe * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
292
292
  break;
293
293
  case this.keys.LEFT:
294
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(Se * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
294
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(xe * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
295
295
  break;
296
296
  case this.keys.RIGHT:
297
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-Se * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
297
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-xe * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
298
298
  break;
299
299
  }
300
300
  t && (e.preventDefault(), this.update());
@@ -316,8 +316,8 @@ class Xo extends go {
316
316
  }
317
317
  }
318
318
  _handleTouchStartDolly(e) {
319
- const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, s = Math.sqrt(o * o + l * l);
320
- this._dollyStart.set(0, s);
319
+ const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, n = Math.sqrt(o * o + l * l);
320
+ this._dollyStart.set(0, n);
321
321
  }
322
322
  _handleTouchStartDollyPan(e) {
323
323
  this.enableZoom && this._handleTouchStartDolly(e), this.enablePan && this._handleTouchStartPan(e);
@@ -329,12 +329,12 @@ class Xo extends go {
329
329
  if (this._pointers.length == 1)
330
330
  this._rotateEnd.set(e.pageX, e.pageY);
331
331
  else {
332
- const o = this._getSecondPointerPosition(e), l = 0.5 * (e.pageX + o.x), s = 0.5 * (e.pageY + o.y);
333
- this._rotateEnd.set(l, s);
332
+ const o = this._getSecondPointerPosition(e), l = 0.5 * (e.pageX + o.x), n = 0.5 * (e.pageY + o.y);
333
+ this._rotateEnd.set(l, n);
334
334
  }
335
335
  this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
336
336
  const t = this.domElement;
337
- this._rotateLeft(Se * this._rotateDelta.x / t.clientHeight), this._rotateUp(Se * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
337
+ this._rotateLeft(xe * this._rotateDelta.x / t.clientHeight), this._rotateUp(xe * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
338
338
  }
339
339
  _handleTouchMovePan(e) {
340
340
  if (this._pointers.length === 1)
@@ -346,10 +346,10 @@ class Xo extends go {
346
346
  this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
347
347
  }
348
348
  _handleTouchMoveDolly(e) {
349
- const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, s = Math.sqrt(o * o + l * l);
350
- this._dollyEnd.set(0, s), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
351
- const n = (e.pageX + t.x) * 0.5, i = (e.pageY + t.y) * 0.5;
352
- this._updateZoomParameters(n, i);
349
+ const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, n = Math.sqrt(o * o + l * l);
350
+ this._dollyEnd.set(0, n), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
351
+ const s = (e.pageX + t.x) * 0.5, i = (e.pageY + t.y) * 0.5;
352
+ this._updateZoomParameters(s, i);
353
353
  }
354
354
  _handleTouchMoveDollyPan(e) {
355
355
  this.enableZoom && this._handleTouchMoveDolly(e), this.enablePan && this._handleTouchMovePan(e);
@@ -376,7 +376,7 @@ class Xo extends go {
376
376
  }
377
377
  _trackPointer(e) {
378
378
  let t = this._pointerPositions[e.pointerId];
379
- t === void 0 && (t = new ze(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
379
+ t === void 0 && (t = new Le(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
380
380
  }
381
381
  _getSecondPointerPosition(e) {
382
382
  const t = e.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
@@ -409,7 +409,7 @@ function qo(a) {
409
409
  function Go(a) {
410
410
  switch (this._removePointer(a), this._pointers.length) {
411
411
  case 0:
412
- this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(io), this.state = Z.NONE;
412
+ this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(io), this.state = K.NONE;
413
413
  break;
414
414
  case 1:
415
415
  const e = this._pointers[0], t = this._pointerPositions[e];
@@ -435,49 +435,49 @@ function Jo(a) {
435
435
  switch (e) {
436
436
  case at.DOLLY:
437
437
  if (this.enableZoom === !1) return;
438
- this._handleMouseDownDolly(a), this.state = Z.DOLLY;
438
+ this._handleMouseDownDolly(a), this.state = K.DOLLY;
439
439
  break;
440
440
  case at.ROTATE:
441
441
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
442
442
  if (this.enablePan === !1) return;
443
- this._handleMouseDownPan(a), this.state = Z.PAN;
443
+ this._handleMouseDownPan(a), this.state = K.PAN;
444
444
  } else {
445
445
  if (this.enableRotate === !1) return;
446
- this._handleMouseDownRotate(a), this.state = Z.ROTATE;
446
+ this._handleMouseDownRotate(a), this.state = K.ROTATE;
447
447
  }
448
448
  break;
449
449
  case at.PAN:
450
450
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
451
451
  if (this.enableRotate === !1) return;
452
- this._handleMouseDownRotate(a), this.state = Z.ROTATE;
452
+ this._handleMouseDownRotate(a), this.state = K.ROTATE;
453
453
  } else {
454
454
  if (this.enablePan === !1) return;
455
- this._handleMouseDownPan(a), this.state = Z.PAN;
455
+ this._handleMouseDownPan(a), this.state = K.PAN;
456
456
  }
457
457
  break;
458
458
  default:
459
- this.state = Z.NONE;
459
+ this.state = K.NONE;
460
460
  }
461
- this.state !== Z.NONE && this.dispatchEvent(jt);
461
+ this.state !== K.NONE && this.dispatchEvent(jt);
462
462
  }
463
463
  function Qo(a) {
464
464
  switch (this.state) {
465
- case Z.ROTATE:
465
+ case K.ROTATE:
466
466
  if (this.enableRotate === !1) return;
467
467
  this._handleMouseMoveRotate(a);
468
468
  break;
469
- case Z.DOLLY:
469
+ case K.DOLLY:
470
470
  if (this.enableZoom === !1) return;
471
471
  this._handleMouseMoveDolly(a);
472
472
  break;
473
- case Z.PAN:
473
+ case K.PAN:
474
474
  if (this.enablePan === !1) return;
475
475
  this._handleMouseMovePan(a);
476
476
  break;
477
477
  }
478
478
  }
479
479
  function ea(a) {
480
- this.enabled === !1 || this.enableZoom === !1 || this.state !== Z.NONE || (a.preventDefault(), this.dispatchEvent(jt), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(io));
480
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== K.NONE || (a.preventDefault(), this.dispatchEvent(jt), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(io));
481
481
  }
482
482
  function ta(a) {
483
483
  this.enabled !== !1 && this._handleKeyDown(a);
@@ -488,55 +488,55 @@ function oa(a) {
488
488
  switch (this.touches.ONE) {
489
489
  case tt.ROTATE:
490
490
  if (this.enableRotate === !1) return;
491
- this._handleTouchStartRotate(a), this.state = Z.TOUCH_ROTATE;
491
+ this._handleTouchStartRotate(a), this.state = K.TOUCH_ROTATE;
492
492
  break;
493
493
  case tt.PAN:
494
494
  if (this.enablePan === !1) return;
495
- this._handleTouchStartPan(a), this.state = Z.TOUCH_PAN;
495
+ this._handleTouchStartPan(a), this.state = K.TOUCH_PAN;
496
496
  break;
497
497
  default:
498
- this.state = Z.NONE;
498
+ this.state = K.NONE;
499
499
  }
500
500
  break;
501
501
  case 2:
502
502
  switch (this.touches.TWO) {
503
503
  case tt.DOLLY_PAN:
504
504
  if (this.enableZoom === !1 && this.enablePan === !1) return;
505
- this._handleTouchStartDollyPan(a), this.state = Z.TOUCH_DOLLY_PAN;
505
+ this._handleTouchStartDollyPan(a), this.state = K.TOUCH_DOLLY_PAN;
506
506
  break;
507
507
  case tt.DOLLY_ROTATE:
508
508
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
509
- this._handleTouchStartDollyRotate(a), this.state = Z.TOUCH_DOLLY_ROTATE;
509
+ this._handleTouchStartDollyRotate(a), this.state = K.TOUCH_DOLLY_ROTATE;
510
510
  break;
511
511
  default:
512
- this.state = Z.NONE;
512
+ this.state = K.NONE;
513
513
  }
514
514
  break;
515
515
  default:
516
- this.state = Z.NONE;
516
+ this.state = K.NONE;
517
517
  }
518
- this.state !== Z.NONE && this.dispatchEvent(jt);
518
+ this.state !== K.NONE && this.dispatchEvent(jt);
519
519
  }
520
520
  function aa(a) {
521
521
  switch (this._trackPointer(a), this.state) {
522
- case Z.TOUCH_ROTATE:
522
+ case K.TOUCH_ROTATE:
523
523
  if (this.enableRotate === !1) return;
524
524
  this._handleTouchMoveRotate(a), this.update();
525
525
  break;
526
- case Z.TOUCH_PAN:
526
+ case K.TOUCH_PAN:
527
527
  if (this.enablePan === !1) return;
528
528
  this._handleTouchMovePan(a), this.update();
529
529
  break;
530
- case Z.TOUCH_DOLLY_PAN:
530
+ case K.TOUCH_DOLLY_PAN:
531
531
  if (this.enableZoom === !1 && this.enablePan === !1) return;
532
532
  this._handleTouchMoveDollyPan(a), this.update();
533
533
  break;
534
- case Z.TOUCH_DOLLY_ROTATE:
534
+ case K.TOUCH_DOLLY_ROTATE:
535
535
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
536
536
  this._handleTouchMoveDollyRotate(a), this.update();
537
537
  break;
538
538
  default:
539
- this.state = Z.NONE;
539
+ this.state = K.NONE;
540
540
  }
541
541
  }
542
542
  function sa(a) {
@@ -549,15 +549,15 @@ function ia(a) {
549
549
  a.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
550
550
  }
551
551
  function la(a) {
552
- let e = null, t = null, o = null, l = null, s = null, n = null;
553
- const i = T([]), r = T(new L()), k = T(new L()), z = () => {
552
+ let e = null, t = null, o = null, l = null, n = null, s = null;
553
+ const i = T([]), r = T(new j()), M = T(new j()), $ = () => {
554
554
  if (!a.value) return;
555
555
  e = new bo(), e.background = new vo(15790320);
556
556
  const _ = a.value;
557
557
  t = new Co(75, _.clientWidth / _.clientHeight, 0.1, 1e4), o = new ko({
558
558
  antialias: !0,
559
559
  alpha: !0
560
- }), o.setSize(_.clientWidth, _.clientHeight), o.localClippingEnabled = !0, o.shadowMap.enabled = !0, o.shadowMap.type = Po, o.toneMapping = To, o.toneMappingExposure = 1, o.outputColorSpace = Mo, _.appendChild(o.domElement), l = new Xo(t, o.domElement), l.enableDamping = !0, l.dampingFactor = 0.05, s = new Eo(t, o, {
560
+ }), o.setSize(_.clientWidth, _.clientHeight), o.localClippingEnabled = !0, o.shadowMap.enabled = !0, o.shadowMap.type = Po, o.toneMapping = To, o.toneMappingExposure = 1, o.outputColorSpace = Mo, _.appendChild(o.domElement), l = new Xo(t, o.domElement), l.enableDamping = !0, l.dampingFactor = 0.05, n = new xo(t, o, {
561
561
  container: _,
562
562
  type: "cube",
563
563
  placement: "bottom-left",
@@ -568,25 +568,25 @@ function la(a) {
568
568
  background: {
569
569
  color: "#D1D1D1"
570
570
  }
571
- }), s.attachControls(l), se(), te();
572
- }, se = () => {
573
- const _ = new xo(4210752, 0.6);
571
+ }), n.attachControls(l), ae(), B();
572
+ }, ae = () => {
573
+ const _ = new Eo(4210752, 0.6);
574
574
  e.add(_);
575
- const g = new Tt(16777215, 2);
576
- g.position.set(10, 10, 8), g.castShadow = !0, g.shadow.mapSize.width = 2048, g.shadow.mapSize.height = 2048, g.shadow.camera.near = 0.5, g.shadow.camera.far = 50, e.add(g);
577
- const M = new Tt(16777215, 0.8);
578
- M.position.set(-8, -8, 6), e.add(M);
579
- const P = new Tt(16777215, 0.6);
580
- P.position.set(0, -15, 2), e.add(P);
581
- const U = new So(16777215, 4473924, 0.8);
582
- e.add(U);
583
- const Y = new Nt(16777215, 1, 50);
584
- Y.position.set(15, 15, 15), e.add(Y);
585
- const H = new Nt(16777215, 0.5, 50);
586
- H.position.set(-15, -15, 15), e.add(H);
587
- }, te = () => {
588
- n = requestAnimationFrame(te), l && l.update(), o && e && t && o.render(e, t), s && s.render();
589
- }, ne = (_) => {
575
+ const w = new Pt(16777215, 2);
576
+ w.position.set(10, 10, 8), w.castShadow = !0, w.shadow.mapSize.width = 2048, w.shadow.mapSize.height = 2048, w.shadow.camera.near = 0.5, w.shadow.camera.far = 50, e.add(w);
577
+ const x = new Pt(16777215, 0.8);
578
+ x.position.set(-8, -8, 6), e.add(x);
579
+ const g = new Pt(16777215, 0.6);
580
+ g.position.set(0, -15, 2), e.add(g);
581
+ const m = new So(16777215, 4473924, 0.8);
582
+ e.add(m);
583
+ const N = new Nt(16777215, 1, 50);
584
+ N.position.set(15, 15, 15), e.add(N);
585
+ const I = new Nt(16777215, 0.5, 50);
586
+ I.position.set(-15, -15, 15), e.add(I);
587
+ }, B = () => {
588
+ s = requestAnimationFrame(B), l && l.update(), o && e && t && o.render(e, t), n && n.render();
589
+ }, J = (_) => {
590
590
  [
591
591
  "map",
592
592
  "normalMap",
@@ -599,204 +599,204 @@ function la(a) {
599
599
  "lightMap",
600
600
  "aoMap",
601
601
  "displacementMap"
602
- ].forEach((M) => {
603
- _[M] && _[M].dispose && _[M].dispose();
602
+ ].forEach((x) => {
603
+ _[x] && _[x].dispose && _[x].dispose();
604
604
  }), _.dispose && _.dispose();
605
- }, W = (_) => {
606
- _.traverse((g) => {
607
- g.geometry && g.geometry.dispose(), g.material && (Array.isArray(g.material) ? g.material.forEach((M) => {
608
- ne(M);
609
- }) : ne(g.material));
605
+ }, Z = (_) => {
606
+ _.traverse((w) => {
607
+ w.geometry && w.geometry.dispose(), w.material && (Array.isArray(w.material) ? w.material.forEach((x) => {
608
+ J(x);
609
+ }) : J(w.material));
610
610
  });
611
611
  };
612
612
  return {
613
613
  // 响应式数据
614
614
  currentModels: i,
615
615
  initialCameraPosition: r,
616
- initialTargetPosition: k,
616
+ initialTargetPosition: M,
617
617
  // 方法
618
- initThreeJS: z,
618
+ initThreeJS: $,
619
619
  handleResize: () => {
620
- if (!a.value || !t || !o || !s) return;
621
- const _ = a.value, g = _.clientWidth, M = _.clientHeight;
622
- t.aspect = g / M, t.updateProjectionMatrix(), o.setSize(g, M), s.update();
620
+ if (!a.value || !t || !o || !n) return;
621
+ const _ = a.value, w = _.clientWidth, x = _.clientHeight;
622
+ t.aspect = w / x, t.updateProjectionMatrix(), o.setSize(w, x), n.update();
623
623
  },
624
624
  fitCameraToAllModels: () => {
625
625
  if (!t || !l || i.value.length === 0) return;
626
626
  const _ = new Ft();
627
- i.value.forEach((ge) => {
628
- _.expandByObject(ge);
627
+ i.value.forEach((fe) => {
628
+ _.expandByObject(fe);
629
629
  });
630
- const g = _.getSize(new L()), M = _.getCenter(new L()), U = Math.max(g.x, g.y, g.z) * 0.8, Y = new L(M.x + U, M.y + U, M.z + U), H = M.clone();
631
- t.position.copy(Y), t.lookAt(H), l.target.copy(H), l.update(), r.value.copy(Y), k.value.copy(H);
630
+ const w = _.getSize(new j()), x = _.getCenter(new j()), m = Math.max(w.x, w.y, w.z) * 0.8, N = new j(x.x + m, x.y + m, x.z + m), I = x.clone();
631
+ t.position.copy(N), t.lookAt(I), l.target.copy(I), l.update(), r.value.copy(N), M.value.copy(I);
632
632
  },
633
633
  getThreeJSObjects: () => ({
634
634
  scene: e,
635
635
  camera: t,
636
636
  renderer: o,
637
637
  controls: l,
638
- gizmo: s
638
+ gizmo: n
639
639
  }),
640
640
  clearAllModels: () => {
641
641
  if (!e) return;
642
- i.value.forEach((g) => {
643
- e.remove(g), W(g);
642
+ i.value.forEach((w) => {
643
+ e.remove(w), Z(w);
644
644
  });
645
645
  const _ = [];
646
- e.children.forEach((g) => {
647
- !g.isLight && !g.isCamera && _.push(g);
648
- }), _.forEach((g) => {
649
- e.remove(g), W(g);
646
+ e.children.forEach((w) => {
647
+ !w.isLight && !w.isCamera && _.push(w);
648
+ }), _.forEach((w) => {
649
+ e.remove(w), Z(w);
650
650
  }), i.value = [];
651
651
  },
652
652
  cleanup: () => {
653
- n && cancelAnimationFrame(n), o && o.dispose(), l && l.dispose(), s && s.dispose();
653
+ s && cancelAnimationFrame(s), o && o.dispose(), l && l.dispose(), n && n.dispose();
654
654
  }
655
655
  };
656
656
  }
657
657
  function ra(a, e) {
658
658
  const t = T(!1);
659
- let o = null, l = 12700, s = new L(), n = new L(), i = new L(), r = 0, k = null;
660
- const z = (h) => h < 0.5 ? 4 * h * h * h : 1 - Math.pow(-2 * h + 2, 3) / 2, se = (h) => {
661
- const v = new L(), d = r * 1.2, S = new L(i.x + d, i.y, i.z), _ = new L(i.x, i.y + d, i.z), g = new L(i.x, i.y - d, i.z);
659
+ let o = null, l = 12700, n = new j(), s = new j(), i = new j(), r = 0, M = null;
660
+ const $ = (h) => h < 0.5 ? 4 * h * h * h : 1 - Math.pow(-2 * h + 2, 3) / 2, ae = (h) => {
661
+ const P = new j(), k = r * 1.2, A = new j(i.x + k, i.y, i.z), _ = new j(i.x, i.y + k, i.z), w = new j(i.x, i.y - k, i.z);
662
662
  if (h <= 0.567) {
663
- const P = h / 0.567 * Math.PI * 2;
664
- v.x = i.x + Math.cos(P) * d, v.z = i.z + Math.sin(P) * d, v.y = i.y;
663
+ const g = h / 0.567 * Math.PI * 2;
664
+ P.x = i.x + Math.cos(g) * k, P.z = i.z + Math.sin(g) * k, P.y = i.y;
665
665
  } else if (h <= 0.724) {
666
- const M = (h - 0.567) / 0.157, P = z(M);
667
- v.lerpVectors(S, _, P);
666
+ const x = (h - 0.567) / 0.157, g = $(x);
667
+ P.lerpVectors(A, _, g);
668
668
  } else if (h <= 0.881) {
669
- const M = (h - 0.724) / 0.157, U = z(M) * Math.PI;
670
- v.x = i.x + Math.sin(U) * d, v.y = i.y + Math.cos(U) * d, v.z = i.z;
669
+ const x = (h - 0.724) / 0.157, m = $(x) * Math.PI;
670
+ P.x = i.x + Math.sin(m) * k, P.y = i.y + Math.cos(m) * k, P.z = i.z;
671
671
  } else {
672
- const M = (h - 0.881) / 0.119, P = z(M);
673
- v.lerpVectors(g, s, P);
672
+ const x = (h - 0.881) / 0.119, g = $(x);
673
+ P.lerpVectors(w, n, g);
674
674
  }
675
- return v;
676
- }, te = () => {
677
- const { camera: h, controls: v } = a();
678
- if (!h || !v) return;
675
+ return P;
676
+ }, B = () => {
677
+ const { camera: h, controls: P } = a();
678
+ if (!h || !P) return;
679
679
  o || (o = Date.now());
680
- const d = Date.now() - o, S = Math.min(d / l, 1);
681
- if (S >= 1) {
682
- W();
680
+ const k = Date.now() - o, A = Math.min(k / l, 1);
681
+ if (A >= 1) {
682
+ Z();
683
683
  return;
684
684
  }
685
- const _ = se(S);
686
- h.position.copy(_), h.lookAt(i), v.target.copy(i), k = requestAnimationFrame(te);
687
- }, ne = () => {
685
+ const _ = ae(A);
686
+ h.position.copy(_), h.lookAt(i), P.target.copy(i), M = requestAnimationFrame(B);
687
+ }, J = () => {
688
688
  if (e.value.length === 0) return;
689
- const { camera: h, controls: v } = a();
690
- if (!h || !v) return;
691
- s.copy(h.position), n.copy(v.target);
692
- const d = new Ft();
693
- e.value.forEach((Y) => {
694
- d.expandByObject(Y);
689
+ const { camera: h, controls: P } = a();
690
+ if (!h || !P) return;
691
+ n.copy(h.position), s.copy(P.target);
692
+ const k = new Ft();
693
+ e.value.forEach((N) => {
694
+ k.expandByObject(N);
695
695
  });
696
- const S = d.getSize(new L());
697
- i = d.getCenter(new L()), r = Math.max(S.x, S.y, S.z) * 1.2;
698
- const _ = new L(i.x + r * 1.2, i.y, i.z);
699
- v.enabled = !1;
700
- const g = h.position.clone(), M = 1e3, P = Date.now(), U = () => {
701
- const Y = Date.now() - P, H = Math.min(Y / M, 1), ge = z(H);
702
- h.position.lerpVectors(g, _, ge), h.lookAt(i), v.target.copy(i), H < 1 ? requestAnimationFrame(U) : (t.value = !0, o = null, te());
696
+ const A = k.getSize(new j());
697
+ i = k.getCenter(new j()), r = Math.max(A.x, A.y, A.z) * 1.2;
698
+ const _ = new j(i.x + r * 1.2, i.y, i.z);
699
+ P.enabled = !1;
700
+ const w = h.position.clone(), x = 1e3, g = Date.now(), m = () => {
701
+ const N = Date.now() - g, I = Math.min(N / x, 1), fe = $(I);
702
+ h.position.lerpVectors(w, _, fe), h.lookAt(i), P.target.copy(i), I < 1 ? requestAnimationFrame(m) : (t.value = !0, o = null, B());
703
703
  };
704
- U();
705
- }, W = () => {
706
- t.value = !1, o = null, k && (cancelAnimationFrame(k), k = null);
704
+ m();
705
+ }, Z = () => {
706
+ t.value = !1, o = null, M && (cancelAnimationFrame(M), M = null);
707
707
  const { controls: h } = a();
708
- h && (h.enabled = !0, h.target.copy(n));
708
+ h && (h.enabled = !0, h.target.copy(s));
709
709
  };
710
710
  return {
711
711
  isAnimating: t,
712
712
  toggleAnimation: () => {
713
713
  if (t.value) {
714
- t.value = !1, o = null, k && (cancelAnimationFrame(k), k = null);
715
- const { camera: h, controls: v } = a();
716
- if (!h || !v) return;
717
- v.enabled = !0;
718
- const d = h.position.clone(), S = v.target.clone(), _ = 1500, g = Date.now(), M = () => {
719
- const P = Date.now() - g, U = Math.min(P / _, 1), Y = z(U);
720
- h.position.lerpVectors(d, s, Y), v.target.lerpVectors(S, n, Y), U < 1 && requestAnimationFrame(M);
714
+ t.value = !1, o = null, M && (cancelAnimationFrame(M), M = null);
715
+ const { camera: h, controls: P } = a();
716
+ if (!h || !P) return;
717
+ P.enabled = !0;
718
+ const k = h.position.clone(), A = P.target.clone(), _ = 1500, w = Date.now(), x = () => {
719
+ const g = Date.now() - w, m = Math.min(g / _, 1), N = $(m);
720
+ h.position.lerpVectors(k, n, N), P.target.lerpVectors(A, s, N), m < 1 && requestAnimationFrame(x);
721
721
  };
722
- M();
722
+ x();
723
723
  } else
724
- ne();
724
+ J();
725
725
  },
726
- startAnimation: ne,
727
- stopAnimation: W
726
+ startAnimation: J,
727
+ stopAnimation: Z
728
728
  };
729
729
  }
730
730
  function ca(a, e) {
731
731
  const t = T(!1), o = T("none");
732
- let l = [], s = [], n = new Ft(), i = new L();
732
+ let l = [], n = [], s = new Ft(), i = new j();
733
733
  const r = () => {
734
734
  l = [
735
- new _t(new L(1, 0, 0), 0),
735
+ new ft(new j(1, 0, 0), 0),
736
736
  // X轴平面
737
- new _t(new L(0, 1, 0), 0),
737
+ new ft(new j(0, 1, 0), 0),
738
738
  // Y轴平面
739
- new _t(new L(0, 0, 1), 0)
739
+ new ft(new j(0, 0, 1), 0)
740
740
  // Z轴平面
741
741
  ];
742
- }, k = () => {
743
- n.makeEmpty(), e.value.forEach((N) => {
744
- n.expandByObject(N);
745
- }), i = n.getCenter(new L());
746
- }, z = (N) => {
747
- const h = n.getSize(new L());
748
- let v, d, S;
749
- N === "x" ? (v = new Mt(h.z * 1.2, h.y * 1.2), d = new L(i.x, i.y, i.z), S = new Et(0, Math.PI / 2, 0)) : N === "y" ? (v = new Mt(h.x * 1.2, h.z * 1.2), d = new L(i.x, i.y, i.z), S = new Et(Math.PI / 2, 0, 0)) : N === "z" && (v = new Mt(h.x * 1.2, h.y * 1.2), d = new L(i.x, i.y, i.z), S = new Et(0, 0, 0));
742
+ }, M = () => {
743
+ s.makeEmpty(), e.value.forEach((z) => {
744
+ s.expandByObject(z);
745
+ }), i = s.getCenter(new j());
746
+ }, $ = (z) => {
747
+ const h = s.getSize(new j());
748
+ let P, k, A;
749
+ z === "x" ? (P = new Tt(h.z * 1.2, h.y * 1.2), k = new j(i.x, i.y, i.z), A = new Mt(0, Math.PI / 2, 0)) : z === "y" ? (P = new Tt(h.x * 1.2, h.z * 1.2), k = new j(i.x, i.y, i.z), A = new Mt(Math.PI / 2, 0, 0)) : z === "z" && (P = new Tt(h.x * 1.2, h.y * 1.2), k = new j(i.x, i.y, i.z), A = new Mt(0, 0, 0));
750
750
  const _ = new Do({
751
751
  color: 8900331,
752
752
  transparent: !0,
753
753
  opacity: 0.3,
754
754
  side: Ro,
755
755
  depthWrite: !1
756
- }), g = new Ao(v, _);
757
- return g.position.copy(d), g.rotation.copy(S), g;
758
- }, se = () => {
759
- if (te(), ne(), o.value === "none")
756
+ }), w = new Ao(P, _);
757
+ return w.position.copy(k), w.rotation.copy(A), w;
758
+ }, ae = () => {
759
+ if (B(), J(), o.value === "none")
760
760
  return;
761
- k();
762
- let N = null;
763
- if (o.value === "x" ? (l[0].constant = -i.x, N = l[0]) : o.value === "y" ? (l[1].constant = -i.y, N = l[1]) : o.value === "z" && (l[2].constant = -i.z, N = l[2]), N) {
764
- e.value.forEach((v) => {
765
- v.traverse((d) => {
766
- d.isMesh && d.material && (Array.isArray(d.material) ? d.material.forEach((S) => {
767
- S.clippingPlanes = [N];
768
- }) : d.material.clippingPlanes = [N]);
761
+ M();
762
+ let z = null;
763
+ if (o.value === "x" ? (l[0].constant = -i.x, z = l[0]) : o.value === "y" ? (l[1].constant = -i.y, z = l[1]) : o.value === "z" && (l[2].constant = -i.z, z = l[2]), z) {
764
+ e.value.forEach((P) => {
765
+ P.traverse((k) => {
766
+ k.isMesh && k.material && (Array.isArray(k.material) ? k.material.forEach((A) => {
767
+ A.clippingPlanes = [z];
768
+ }) : k.material.clippingPlanes = [z]);
769
769
  });
770
770
  });
771
771
  const { scene: h } = a();
772
772
  if (h) {
773
- const v = z(o.value);
774
- h.add(v), s.push(v);
773
+ const P = $(o.value);
774
+ h.add(P), n.push(P);
775
775
  }
776
776
  }
777
- }, te = () => {
778
- e.value.forEach((N) => {
779
- N.traverse((h) => {
780
- h.isMesh && h.material && (Array.isArray(h.material) ? h.material.forEach((v) => {
781
- v.clippingPlanes = [];
777
+ }, B = () => {
778
+ e.value.forEach((z) => {
779
+ z.traverse((h) => {
780
+ h.isMesh && h.material && (Array.isArray(h.material) ? h.material.forEach((P) => {
781
+ P.clippingPlanes = [];
782
782
  }) : h.material.clippingPlanes = []);
783
783
  });
784
784
  });
785
- }, ne = () => {
786
- const { scene: N } = a();
787
- N && s.forEach((h) => {
788
- N.remove(h), h.geometry.dispose(), h.material.dispose();
789
- }), s = [];
785
+ }, J = () => {
786
+ const { scene: z } = a();
787
+ z && n.forEach((h) => {
788
+ z.remove(h), h.geometry.dispose(), h.material.dispose();
789
+ }), n = [];
790
790
  };
791
791
  return {
792
792
  isClipping: t,
793
793
  activeClippingAxis: o,
794
794
  toggleClipping: () => {
795
- t.value = !t.value, t.value ? (r(), e.value.length > 0 && k()) : (o.value = "none", te(), ne());
795
+ t.value = !t.value, t.value ? (r(), e.value.length > 0 && M()) : (o.value = "none", B(), J());
796
796
  },
797
- updateClippingPlanes: se,
798
- clearClippingPlanes: te,
799
- clearClippingMeshes: ne
797
+ updateClippingPlanes: ae,
798
+ clearClippingPlanes: B,
799
+ clearClippingMeshes: J
800
800
  };
801
801
  }
802
802
  const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls" }, da = ["disabled"], pa = ["disabled", "title"], ma = {
@@ -826,161 +826,161 @@ const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls"
826
826
  }, ba = {
827
827
  key: 1,
828
828
  class: "clipping-panel"
829
- }, va = { class: "panel-content" }, Ca = { class: "radio-group" }, ka = { class: "radio-label" }, Pa = { class: "radio-label" }, Ta = { class: "radio-label" }, Ma = { class: "radio-label" }, Ea = {
829
+ }, va = { class: "panel-content" }, Ca = { class: "radio-group" }, ka = { class: "radio-label" }, Pa = { class: "radio-label" }, Ta = { class: "radio-label" }, Ma = { class: "radio-label" }, xa = {
830
830
  key: 2,
831
831
  class: "loading-overlay"
832
- }, xa = {
832
+ }, Ea = {
833
833
  __name: "threeModel",
834
834
  setup(a, { expose: e }) {
835
- const t = T(null), o = T(!1), l = T(""), s = T(!1), n = T(!1), {
835
+ const t = T(null), o = T(!1), l = T(""), n = T(!1), s = T(!1), {
836
836
  currentModels: i,
837
837
  initialCameraPosition: r,
838
- initialTargetPosition: k,
839
- initThreeJS: z,
840
- handleResize: se,
841
- fitCameraToAllModels: te,
842
- getThreeJSObjects: ne,
843
- clearAllModels: W,
844
- cleanup: N
845
- } = la(t), { isAnimating: h, toggleAnimation: v, stopAnimation: d } = ra(ne, i), { isClipping: S, activeClippingAxis: _, toggleClipping: g, updateClippingPlanes: M } = ca(
846
- ne,
838
+ initialTargetPosition: M,
839
+ initThreeJS: $,
840
+ handleResize: ae,
841
+ fitCameraToAllModels: B,
842
+ getThreeJSObjects: J,
843
+ clearAllModels: Z,
844
+ cleanup: z
845
+ } = la(t), { isAnimating: h, toggleAnimation: P, stopAnimation: k } = ra(J, i), { isClipping: A, activeClippingAxis: _, toggleClipping: w, updateClippingPlanes: x } = ca(
846
+ J,
847
847
  i
848
- ), { addModelsFromUrls: P, loadModelByDefaultPath: U, urdfModel: Y } = Bo(
849
- ne,
848
+ ), { addModelsFromUrls: g, loadModelByDefaultPath: m, urdfModel: N } = Bo(
849
+ J,
850
850
  i,
851
851
  o,
852
852
  l,
853
- W
854
- ), H = () => {
855
- if (n.value || i.value.length === 0) return;
856
- n.value = !0, h.value && d();
857
- const { camera: Q, controls: C } = ne();
858
- if (!Q || !C) return;
853
+ Z
854
+ ), I = () => {
855
+ if (s.value || i.value.length === 0) return;
856
+ s.value = !0, h.value && k();
857
+ const { camera: he, controls: C } = J();
858
+ if (!he || !C) return;
859
859
  C.enabled = !0;
860
- const K = (E) => E < 0.5 ? 4 * E * E * E : 1 - Math.pow(-2 * E + 2, 3) / 2, vt = Q.position.clone(), it = C.target.clone(), Ct = 1500, f = Date.now(), m = () => {
861
- const E = Date.now() - f, I = Math.min(E / Ct, 1), A = K(I);
862
- Q.position.lerpVectors(vt, r.value, A), C.target.lerpVectors(it, k.value, A), I < 1 ? requestAnimationFrame(m) : n.value = !1;
860
+ const H = (E) => E < 0.5 ? 4 * E * E * E : 1 - Math.pow(-2 * E + 2, 3) / 2, bt = he.position.clone(), nt = C.target.clone(), vt = 1500, f = Date.now(), p = () => {
861
+ const E = Date.now() - f, Y = Math.min(E / vt, 1), R = H(Y);
862
+ he.position.lerpVectors(bt, r.value, R), C.target.lerpVectors(nt, M.value, R), Y < 1 ? requestAnimationFrame(p) : s.value = !1;
863
863
  };
864
- m();
865
- }, ge = () => {
864
+ p();
865
+ }, fe = () => {
866
866
  document.fullscreenElement ? document.exitFullscreen().then(() => {
867
- s.value = !1, ut(() => {
868
- se();
867
+ n.value = !1, ht(() => {
868
+ ae();
869
869
  });
870
- }).catch((Q) => {
871
- console.error("无法退出全屏:", Q);
870
+ }).catch((he) => {
871
+ console.error("无法退出全屏:", he);
872
872
  }) : t.value.requestFullscreen().then(() => {
873
- s.value = !0, ut(() => {
874
- se();
873
+ n.value = !0, ht(() => {
874
+ ae();
875
875
  });
876
- }).catch((Q) => {
877
- console.error("无法进入全屏:", Q);
876
+ }).catch((he) => {
877
+ console.error("无法进入全屏:", he);
878
878
  });
879
- }, pe = () => {
880
- s.value = !!document.fullscreenElement, s.value || ut(() => {
881
- se();
879
+ }, _e = () => {
880
+ n.value = !!document.fullscreenElement, n.value || ht(() => {
881
+ ae();
882
882
  });
883
- }, Ce = async (Q, C) => {
883
+ }, He = async (he, C) => {
884
884
  try {
885
- h.value && d(), S.value && g();
886
- const K = await C(Q);
887
- return te(), K;
888
- } catch (K) {
889
- throw console.error("加载模型失败:", K), K;
885
+ h.value && k(), A.value && w();
886
+ const H = await C(he);
887
+ return B(), H;
888
+ } catch (H) {
889
+ throw console.error("加载模型失败:", H), H;
890
890
  }
891
- }, D = async (Q) => Ce(Q, P), Re = async (Q) => Ce(Q, U);
891
+ }, $e = async (he) => He(he, g), Xe = async (he) => He(he, m);
892
892
  return Kt(async () => {
893
- await ut(), z(), window.addEventListener("resize", se), document.addEventListener("fullscreenchange", pe);
893
+ await ht(), $(), window.addEventListener("resize", ae), document.addEventListener("fullscreenchange", _e);
894
894
  }), co(() => {
895
- window.removeEventListener("resize", se), document.removeEventListener("fullscreenchange", pe), h.value && d(), N();
895
+ window.removeEventListener("resize", ae), document.removeEventListener("fullscreenchange", _e), h.value && k(), z();
896
896
  }), e({
897
- addModelsFromUrls: D,
898
- loadModelByDefaultPath: Re
899
- }), (Q, C) => (w(), V("div", ha, [
900
- c(Y) ? (w(), J(Ko, {
897
+ addModelsFromUrls: $e,
898
+ loadModelByDefaultPath: Xe
899
+ }), (he, C) => (v(), W("div", ha, [
900
+ c(N) ? (v(), ee(Ko, {
901
901
  key: 0,
902
902
  class: "client-robot-side",
903
- model: c(Y)
904
- }, null, 8, ["model"])) : ue("", !0),
905
- p("div", {
903
+ model: c(N)
904
+ }, null, 8, ["model"])) : me("", !0),
905
+ u("div", {
906
906
  ref_key: "threejsContainer",
907
907
  ref: t,
908
908
  class: "threejs-container"
909
909
  }, null, 512),
910
- p("div", ua, [
911
- p("button", {
912
- onClick: H,
913
- class: dt(["control-btn", "reset-btn"]),
914
- disabled: o.value || c(i).length === 0 || n.value,
910
+ u("div", ua, [
911
+ u("button", {
912
+ onClick: I,
913
+ class: ut(["control-btn", "reset-btn"]),
914
+ disabled: o.value || c(i).length === 0 || s.value,
915
915
  title: "重置"
916
916
  }, C[10] || (C[10] = [
917
- p("svg", {
917
+ u("svg", {
918
918
  viewBox: "0 0 24 24",
919
919
  fill: "none",
920
920
  stroke: "currentColor",
921
921
  "stroke-width": "2"
922
922
  }, [
923
- p("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
924
- p("polyline", { points: "9,22 9,12 15,12 15,22" })
923
+ u("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
924
+ u("polyline", { points: "9,22 9,12 15,12 15,22" })
925
925
  ], -1)
926
926
  ]), 8, da),
927
- p("button", {
928
- onClick: C[0] || (C[0] = (...K) => c(v) && c(v)(...K)),
929
- class: dt(["control-btn", "animation-btn", { active: c(h) }]),
927
+ u("button", {
928
+ onClick: C[0] || (C[0] = (...H) => c(P) && c(P)(...H)),
929
+ class: ut(["control-btn", "animation-btn", { active: c(h) }]),
930
930
  disabled: o.value || c(i).length === 0,
931
931
  title: c(h) ? "停止动画" : "动画视图"
932
932
  }, [
933
- c(h) ? (w(), V("svg", fa, C[12] || (C[12] = [
934
- p("circle", {
933
+ c(h) ? (v(), W("svg", fa, C[12] || (C[12] = [
934
+ u("circle", {
935
935
  cx: "12",
936
936
  cy: "12",
937
937
  r: "10"
938
938
  }, null, -1),
939
- p("rect", {
939
+ u("rect", {
940
940
  x: "9.5",
941
941
  y: "8",
942
942
  width: "2",
943
943
  height: "8",
944
944
  fill: "currentColor"
945
945
  }, null, -1),
946
- p("rect", {
946
+ u("rect", {
947
947
  x: "12.5",
948
948
  y: "8",
949
949
  width: "2",
950
950
  height: "8",
951
951
  fill: "currentColor"
952
952
  }, null, -1)
953
- ]))) : (w(), V("svg", ma, C[11] || (C[11] = [
954
- p("circle", {
953
+ ]))) : (v(), W("svg", ma, C[11] || (C[11] = [
954
+ u("circle", {
955
955
  cx: "12",
956
956
  cy: "12",
957
957
  r: "10"
958
958
  }, null, -1),
959
- p("polygon", {
959
+ u("polygon", {
960
960
  points: "10,8 16,12 10,16",
961
961
  fill: "currentColor"
962
962
  }, null, -1)
963
963
  ])))
964
964
  ], 10, pa),
965
- p("button", {
966
- onClick: C[1] || (C[1] = (...K) => c(g) && c(g)(...K)),
967
- class: dt(["control-btn", "clipping-btn", { active: c(S) }]),
965
+ u("button", {
966
+ onClick: C[1] || (C[1] = (...H) => c(w) && c(w)(...H)),
967
+ class: ut(["control-btn", "clipping-btn", { active: c(A) }]),
968
968
  disabled: o.value || c(i).length === 0,
969
969
  title: "剖面视图"
970
970
  }, C[13] || (C[13] = [
971
- p("svg", {
971
+ u("svg", {
972
972
  viewBox: "0 0 24 24",
973
973
  fill: "none",
974
974
  stroke: "currentColor",
975
975
  "stroke-width": "2"
976
976
  }, [
977
- p("rect", {
977
+ u("rect", {
978
978
  x: "3",
979
979
  y: "3",
980
980
  width: "18",
981
981
  height: "18"
982
982
  }),
983
- p("line", {
983
+ u("line", {
984
984
  x1: "-14",
985
985
  y1: "12",
986
986
  x2: "30",
@@ -989,82 +989,82 @@ const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls"
989
989
  })
990
990
  ], -1)
991
991
  ]), 10, _a),
992
- p("button", {
993
- onClick: ge,
994
- class: dt(["control-btn", "fullscreen-btn"]),
995
- title: s.value ? "退出全屏" : "全屏"
992
+ u("button", {
993
+ onClick: fe,
994
+ class: ut(["control-btn", "fullscreen-btn"]),
995
+ title: n.value ? "退出全屏" : "全屏"
996
996
  }, [
997
- s.value ? (w(), V("svg", wa, C[15] || (C[15] = [
998
- p("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)
999
- ]))) : (w(), V("svg", ya, C[14] || (C[14] = [
1000
- p("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }, null, -1)
997
+ n.value ? (v(), W("svg", wa, C[15] || (C[15] = [
998
+ u("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)
999
+ ]))) : (v(), W("svg", ya, C[14] || (C[14] = [
1000
+ u("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }, null, -1)
1001
1001
  ])))
1002
1002
  ], 8, ga)
1003
1003
  ]),
1004
- c(S) ? (w(), V("div", ba, [
1005
- p("div", va, [
1006
- p("div", Ca, [
1007
- p("label", ka, [
1008
- et(p("input", {
1004
+ c(A) ? (v(), W("div", ba, [
1005
+ u("div", va, [
1006
+ u("div", Ca, [
1007
+ u("label", ka, [
1008
+ et(u("input", {
1009
1009
  type: "radio",
1010
1010
  name: "clipping-axis",
1011
1011
  value: "none",
1012
- "onUpdate:modelValue": C[2] || (C[2] = (K) => pt(_) ? _.value = K : null),
1013
- onChange: C[3] || (C[3] = (...K) => c(M) && c(M)(...K))
1012
+ "onUpdate:modelValue": C[2] || (C[2] = (H) => dt(_) ? _.value = H : null),
1013
+ onChange: C[3] || (C[3] = (...H) => c(x) && c(x)(...H))
1014
1014
  }, null, 544), [
1015
- [mt, c(_)]
1015
+ [pt, c(_)]
1016
1016
  ]),
1017
- C[16] || (C[16] = p("span", { class: "radio-text" }, "无切割", -1))
1017
+ C[16] || (C[16] = u("span", { class: "radio-text" }, "无切割", -1))
1018
1018
  ]),
1019
- p("label", Pa, [
1020
- et(p("input", {
1019
+ u("label", Pa, [
1020
+ et(u("input", {
1021
1021
  type: "radio",
1022
1022
  name: "clipping-axis",
1023
1023
  value: "x",
1024
- "onUpdate:modelValue": C[4] || (C[4] = (K) => pt(_) ? _.value = K : null),
1025
- onChange: C[5] || (C[5] = (...K) => c(M) && c(M)(...K))
1024
+ "onUpdate:modelValue": C[4] || (C[4] = (H) => dt(_) ? _.value = H : null),
1025
+ onChange: C[5] || (C[5] = (...H) => c(x) && c(x)(...H))
1026
1026
  }, null, 544), [
1027
- [mt, c(_)]
1027
+ [pt, c(_)]
1028
1028
  ]),
1029
- C[17] || (C[17] = p("span", { class: "radio-text" }, "X轴切割", -1))
1029
+ C[17] || (C[17] = u("span", { class: "radio-text" }, "X轴切割", -1))
1030
1030
  ]),
1031
- p("label", Ta, [
1032
- et(p("input", {
1031
+ u("label", Ta, [
1032
+ et(u("input", {
1033
1033
  type: "radio",
1034
1034
  name: "clipping-axis",
1035
1035
  value: "y",
1036
- "onUpdate:modelValue": C[6] || (C[6] = (K) => pt(_) ? _.value = K : null),
1037
- onChange: C[7] || (C[7] = (...K) => c(M) && c(M)(...K))
1036
+ "onUpdate:modelValue": C[6] || (C[6] = (H) => dt(_) ? _.value = H : null),
1037
+ onChange: C[7] || (C[7] = (...H) => c(x) && c(x)(...H))
1038
1038
  }, null, 544), [
1039
- [mt, c(_)]
1039
+ [pt, c(_)]
1040
1040
  ]),
1041
- C[18] || (C[18] = p("span", { class: "radio-text" }, "Y轴切割", -1))
1041
+ C[18] || (C[18] = u("span", { class: "radio-text" }, "Y轴切割", -1))
1042
1042
  ]),
1043
- p("label", Ma, [
1044
- et(p("input", {
1043
+ u("label", Ma, [
1044
+ et(u("input", {
1045
1045
  type: "radio",
1046
1046
  name: "clipping-axis",
1047
1047
  value: "z",
1048
- "onUpdate:modelValue": C[8] || (C[8] = (K) => pt(_) ? _.value = K : null),
1049
- onChange: C[9] || (C[9] = (...K) => c(M) && c(M)(...K))
1048
+ "onUpdate:modelValue": C[8] || (C[8] = (H) => dt(_) ? _.value = H : null),
1049
+ onChange: C[9] || (C[9] = (...H) => c(x) && c(x)(...H))
1050
1050
  }, null, 544), [
1051
- [mt, c(_)]
1051
+ [pt, c(_)]
1052
1052
  ]),
1053
- C[19] || (C[19] = p("span", { class: "radio-text" }, "Z轴切割", -1))
1053
+ C[19] || (C[19] = u("span", { class: "radio-text" }, "Z轴切割", -1))
1054
1054
  ])
1055
1055
  ])
1056
1056
  ])
1057
- ])) : ue("", !0),
1058
- o.value ? (w(), V("div", Ea, [
1059
- C[20] || (C[20] = p("div", { class: "loading-spinner" }, null, -1)),
1060
- p("p", null, Ue(l.value), 1)
1061
- ])) : ue("", !0)
1057
+ ])) : me("", !0),
1058
+ o.value ? (v(), W("div", xa, [
1059
+ C[20] || (C[20] = u("div", { class: "loading-spinner" }, null, -1)),
1060
+ u("p", null, Oe(l.value), 1)
1061
+ ])) : me("", !0)
1062
1062
  ]));
1063
1063
  }
1064
- }, Sa = /* @__PURE__ */ Ve(xa, [["__scopeId", "data-v-0595ce23"]]);
1065
- function Da(a, e, t, o, l, s) {
1066
- const n = ee("svg-icon"), i = ee("ssMenu");
1067
- return w(), J(i, {
1064
+ }, Sa = /* @__PURE__ */ Ue(Ea, [["__scopeId", "data-v-0595ce23"]]);
1065
+ function Da(a, e, t, o, l, n) {
1066
+ const s = Q("svg-icon"), i = Q("ssMenu");
1067
+ return v(), ee(i, {
1068
1068
  mode: a.mode,
1069
1069
  menuList: a.renderMenuList,
1070
1070
  onClickMenu: a.clickMenu,
@@ -1072,16 +1072,16 @@ function Da(a, e, t, o, l, s) {
1072
1072
  onCloseMenu: a.closeMenu
1073
1073
  }, {
1074
1074
  title: b(({ menu: r }) => [
1075
- u(n, {
1075
+ d(s, {
1076
1076
  name: r.icon ?? "Fold",
1077
1077
  style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
1078
1078
  }, null, 8, ["name"]),
1079
- p("span", null, Ue(r.title ?? ""), 1)
1079
+ u("span", null, Oe(r.title ?? ""), 1)
1080
1080
  ]),
1081
1081
  _: 1
1082
1082
  }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
1083
1083
  }
1084
- const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed2"]]), Ra = { class: "bread-content" }, Aa = ["onClick"], Ba = {
1084
+ const lo = /* @__PURE__ */ Ue(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed2"]]), Ra = { class: "bread-content" }, Aa = ["onClick"], Ba = {
1085
1085
  key: 0,
1086
1086
  class: "split-title"
1087
1087
  }, Fa = {
@@ -1097,43 +1097,37 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1097
1097
  const t = a, o = T([]), l = e;
1098
1098
  Kt(() => {
1099
1099
  o.value = t == null ? void 0 : t.breadArray;
1100
- }), De(
1100
+ }), Ee(
1101
1101
  () => t == null ? void 0 : t.breadArray,
1102
1102
  () => {
1103
1103
  o.value = t == null ? void 0 : t.breadArray;
1104
1104
  },
1105
1105
  { deep: !0, immediate: !0 }
1106
1106
  );
1107
- const s = (n) => {
1108
- l("click", n);
1107
+ const n = (s) => {
1108
+ l("click", s);
1109
1109
  };
1110
- return (n, i) => (w(), V("div", Ra, [
1111
- (w(!0), V(St, null, Dt(o.value, (r, k) => {
1112
- var z;
1113
- return w(), V("div", {
1114
- key: k,
1110
+ return (s, i) => (v(), W("div", Ra, [
1111
+ (v(!0), W(St, null, Dt(o.value, (r, M) => {
1112
+ var $;
1113
+ return v(), W("div", {
1114
+ key: M,
1115
1115
  class: "bread-item"
1116
1116
  }, [
1117
- p("div", {
1117
+ u("div", {
1118
1118
  class: "bread-title",
1119
- onClick: (se) => s(r),
1120
- style: ho({ opacity: ((z = o.value) == null ? void 0 : z.length) - 1 === k ? "0.7" : "1" })
1121
- }, Ue(r.value), 13, Aa),
1122
- k !== o.value.length - 1 && Array.isArray(o.value) ? (w(), V("div", Ba, Ue("/"))) : ue("", !0)
1119
+ onClick: (ae) => n(r),
1120
+ style: ho({ opacity: (($ = o.value) == null ? void 0 : $.length) - 1 === M ? "0.7" : "1" })
1121
+ }, Oe(r.value), 13, Aa),
1122
+ M !== o.value.length - 1 && Array.isArray(o.value) ? (v(), W("div", Ba, Oe("/"))) : me("", !0)
1123
1123
  ]);
1124
1124
  }), 128))
1125
1125
  ]));
1126
1126
  }
1127
- }, ro = /* @__PURE__ */ Ve(Fa, [["__scopeId", "data-v-ded7e2bd"]]), La = { class: "structure-buttons" }, ja = { class: "structure-paths" }, Oa = { class: "client-header-user" }, za = { class: "model-select" }, Na = { class: "model-show" }, Ua = { class: "model-fill" }, $a = { class: "client-header-logo" }, Ia = { class: "client-header-menu" }, Va = { class: "client-header-user" }, Ya = { class: "client-main-operate" }, Ha = {
1127
+ }, ro = /* @__PURE__ */ Ue(Fa, [["__scopeId", "data-v-ded7e2bd"]]), La = { class: "structure-buttons" }, ja = { class: "structure-paths" }, Oa = { class: "client-header-user" }, za = { class: "model-select" }, Na = { class: "model-show" }, Ua = { class: "model-fill" }, $a = { class: "client-header-logo" }, Ia = { class: "client-header-menu" }, Va = { class: "client-header-user" }, Ya = { class: "client-main-operate" }, Ha = {
1128
1128
  key: 0,
1129
1129
  class: "item-view-group"
1130
- }, Ka = {
1131
- key: 0,
1132
- class: "calculator"
1133
- }, Za = {
1134
- key: 1,
1135
- class: "calculator"
1136
- }, Xa = { class: "client-main-operate" }, Wa = /* @__PURE__ */ yt({
1130
+ }, Ka = { class: "client-main-operate" }, Za = /* @__PURE__ */ gt({
1137
1131
  __name: "index2",
1138
1132
  props: {
1139
1133
  windowConfig: {
@@ -1147,63 +1141,69 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1147
1141
  }
1148
1142
  },
1149
1143
  setup(a) {
1150
- const e = Lt(je), t = T(!1), { selectTitle: o } = Le(e), l = T(!1), s = T(!1), n = T(!1), i = T(!1), r = ao(), { loginUserInfo: k } = Le(r), z = bt(je), { isEdit: se } = Le(z), te = wt(je), ne = T(!1), { importLoading: W, platName: N } = Le(te), h = T("");
1151
- return (v, d) => {
1152
- const S = ee("el-button"), _ = ee("el-avatar"), g = ee("el-header"), M = ee("el-container"), P = ee("el-icon"), U = ee("el-input"), Y = ee("el-aside"), H = ee("el-main"), ge = ee("router-view"), pe = Zt("loading");
1153
- return c(se) === "edit" ? (w(), J(M, {
1144
+ const e = Lt(Be);
1145
+ T(!1);
1146
+ const { selectTitle: t } = Ae(e);
1147
+ T(!1), T(!1), T(!1), T(!1);
1148
+ const o = ao(), { loginUserInfo: l } = Ae(o), n = wt(Be), { isEdit: s } = Ae(n), i = yt(Be);
1149
+ T(!1);
1150
+ const { importLoading: r, platName: M } = Ae(i), $ = T("");
1151
+ return (ae, B) => {
1152
+ const J = Q("el-button"), Z = Q("el-avatar"), z = Q("el-header"), h = Q("el-container"), P = Q("el-icon"), k = Q("el-input"), A = Q("el-aside"), _ = Q("el-main"), w = Q("router-view"), x = Zt("loading");
1153
+ return c(s) === "edit" ? (v(), ee(h, {
1154
1154
  key: 0,
1155
1155
  class: "client-container"
1156
1156
  }, {
1157
1157
  default: b(() => [
1158
- u(g, { class: "client-structure-header" }, {
1158
+ d(z, { class: "client-structure-header" }, {
1159
1159
  default: b(() => {
1160
- var Ce;
1160
+ var g;
1161
1161
  return [
1162
- p("div", La, [
1163
- u(S, {
1162
+ u("div", La, [
1163
+ d(J, {
1164
1164
  id: "transparentBgButton",
1165
1165
  onClick: c(Wt)
1166
1166
  }, {
1167
- default: b(() => d[3] || (d[3] = [
1168
- Ee(" 返回页面 ")
1167
+ default: b(() => B[2] || (B[2] = [
1168
+ Te(" 返回页面 ")
1169
1169
  ])),
1170
1170
  _: 1,
1171
- __: [3]
1171
+ __: [2]
1172
1172
  }, 8, ["onClick"]),
1173
- u(S, {
1173
+ d(J, {
1174
1174
  id: "transparentBgButton",
1175
- onClick: d[0] || (d[0] = (D) => {
1176
- var Re, Q;
1177
- return c(qt)((Q = (Re = c(o)) == null ? void 0 : Re.map((C) => C.value)) == null ? void 0 : Q.join("/"));
1175
+ onClick: B[0] || (B[0] = (m) => {
1176
+ var N, I;
1177
+ return c(qt)((I = (N = c(t)) == null ? void 0 : N.map((fe) => fe.value)) == null ? void 0 : I.join("/"));
1178
1178
  })
1179
1179
  }, {
1180
1180
  icon: b(() => [
1181
- u(Ne, { name: "Store" })
1181
+ d(je, { name: "Store" })
1182
1182
  ]),
1183
1183
  default: b(() => [
1184
- d[4] || (d[4] = Ee(" 保存页面 "))
1184
+ B[3] || (B[3] = Te(" 保存页面 "))
1185
1185
  ]),
1186
1186
  _: 1,
1187
- __: [4]
1187
+ __: [3]
1188
1188
  })
1189
1189
  ]),
1190
- p("div", ja, [
1191
- (w(), J(ro, {
1192
- key: c(o),
1193
- breadArray: c(o),
1190
+ u("div", ja, [
1191
+ (v(), ee(ro, {
1192
+ key: c(t),
1193
+ breadArray: c(t),
1194
1194
  onClick: c(Gt)
1195
1195
  }, null, 8, ["breadArray", "onClick"]))
1196
1196
  ]),
1197
- p("div", Oa, [
1198
- nt(v.$slots, "default", {}, void 0, !0),
1199
- u(_, {
1197
+ u("div", Oa, [
1198
+ st(ae.$slots, "default", {}, void 0, !0),
1199
+ d(Z, {
1200
1200
  size: 35,
1201
- src: (Ce = c(k)) == null ? void 0 : Ce.avatarUrl
1201
+ src: (g = c(l)) == null ? void 0 : g.avatarUrl
1202
1202
  }, {
1203
1203
  default: b(() => {
1204
- var D;
1204
+ var m;
1205
1205
  return [
1206
- Ee(Ue(((D = c(k)) == null ? void 0 : D.account) ?? "未知"), 1)
1206
+ Te(Oe(((m = c(l)) == null ? void 0 : m.account) ?? "未知"), 1)
1207
1207
  ];
1208
1208
  }),
1209
1209
  _: 1
@@ -1213,100 +1213,100 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1213
1213
  }),
1214
1214
  _: 3
1215
1215
  }),
1216
- c(se) === "edit" ? (w(), J(M, {
1216
+ c(s) === "edit" ? (v(), ee(h, {
1217
1217
  key: 0,
1218
1218
  class: "model-operate",
1219
1219
  style: { "margin-top": "10px", height: "0px" }
1220
1220
  }, {
1221
1221
  default: b(() => [
1222
- p("div", za, [
1223
- u(Rt)
1222
+ u("div", za, [
1223
+ d(Rt)
1224
1224
  ]),
1225
- p("div", Na, [
1226
- u(At)
1225
+ u("div", Na, [
1226
+ d(At)
1227
1227
  ]),
1228
- p("div", Ua, [
1229
- u(Bt)
1228
+ u("div", Ua, [
1229
+ d(Bt)
1230
1230
  ])
1231
1231
  ]),
1232
1232
  _: 1
1233
- })) : ue("", !0)
1233
+ })) : me("", !0)
1234
1234
  ]),
1235
1235
  _: 3
1236
- })) : et((w(), J(M, {
1236
+ })) : et((v(), ee(h, {
1237
1237
  key: 1,
1238
1238
  class: "client-container",
1239
1239
  "element-loading-text": "正在加载页面数据..."
1240
1240
  }, {
1241
1241
  default: b(() => [
1242
- u(g, { class: "client-header" }, {
1242
+ d(z, { class: "client-header" }, {
1243
1243
  default: b(() => {
1244
- var Ce;
1244
+ var g;
1245
1245
  return [
1246
- p("div", $a, [
1247
- u(Ne, {
1246
+ u("div", $a, [
1247
+ d(je, {
1248
1248
  name: "logo",
1249
1249
  style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
1250
1250
  }),
1251
- d[5] || (d[5] = Ee(" ISIP "))
1251
+ B[4] || (B[4] = Te(" ISIP "))
1252
1252
  ]),
1253
- p("div", Ia, [
1254
- u(lo, { mode: "horizontal" })
1253
+ u("div", Ia, [
1254
+ d(lo, { mode: "horizontal" })
1255
1255
  ]),
1256
- p("div", Va, [
1257
- u(U, {
1258
- modelValue: h.value,
1259
- "onUpdate:modelValue": d[1] || (d[1] = (D) => h.value = D),
1256
+ u("div", Va, [
1257
+ d(k, {
1258
+ modelValue: $.value,
1259
+ "onUpdate:modelValue": B[1] || (B[1] = (m) => $.value = m),
1260
1260
  clearable: "",
1261
1261
  placeholder: "搜索",
1262
1262
  style: { width: "130px" }
1263
1263
  }, {
1264
1264
  prefix: b(() => [
1265
- u(P, { class: "el-input__icon" }, {
1265
+ d(P, { class: "el-input__icon" }, {
1266
1266
  default: b(() => [
1267
- u(c(no))
1267
+ d(c(no))
1268
1268
  ]),
1269
1269
  _: 1
1270
1270
  })
1271
1271
  ]),
1272
1272
  _: 1
1273
1273
  }, 8, ["modelValue"]),
1274
- a.showButton ? (w(), J(S, {
1274
+ a.showButton ? (v(), ee(J, {
1275
1275
  key: 0,
1276
1276
  id: "transparentBgButton"
1277
1277
  }, {
1278
1278
  icon: b(() => [
1279
- u(Ne, { name: "App" })
1279
+ d(je, { name: "App" })
1280
1280
  ]),
1281
1281
  default: b(() => [
1282
- d[6] || (d[6] = Ee(" 生成APP "))
1282
+ B[5] || (B[5] = Te(" 生成APP "))
1283
1283
  ]),
1284
1284
  _: 1,
1285
- __: [6]
1286
- })) : ue("", !0),
1287
- a.showButton && c(se) === "view" ? (w(), J(S, {
1285
+ __: [5]
1286
+ })) : me("", !0),
1287
+ a.showButton && c(s) === "view" ? (v(), ee(J, {
1288
1288
  key: 1,
1289
1289
  id: "transparentBgButton",
1290
1290
  onClick: c(Jt)
1291
1291
  }, {
1292
1292
  icon: b(() => [
1293
- u(Ne, { name: "write" })
1293
+ d(je, { name: "write" })
1294
1294
  ]),
1295
1295
  default: b(() => [
1296
- d[7] || (d[7] = Ee(" 修改布局 "))
1296
+ B[6] || (B[6] = Te(" 修改布局 "))
1297
1297
  ]),
1298
1298
  _: 1,
1299
- __: [7]
1300
- }, 8, ["onClick"])) : ue("", !0),
1301
- nt(v.$slots, "default", {}, void 0, !0),
1302
- u(_, {
1299
+ __: [6]
1300
+ }, 8, ["onClick"])) : me("", !0),
1301
+ st(ae.$slots, "default", {}, void 0, !0),
1302
+ d(Z, {
1303
1303
  size: 35,
1304
- src: (Ce = c(k)) == null ? void 0 : Ce.avatarUrl
1304
+ src: (g = c(l)) == null ? void 0 : g.avatarUrl
1305
1305
  }, {
1306
1306
  default: b(() => {
1307
- var D;
1307
+ var m;
1308
1308
  return [
1309
- Ee(Ue(((D = c(k)) == null ? void 0 : D.account) ?? "未知"), 1)
1309
+ Te(Oe(((m = c(l)) == null ? void 0 : m.account) ?? "未知"), 1)
1310
1310
  ];
1311
1311
  }),
1312
1312
  _: 1
@@ -1316,81 +1316,58 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1316
1316
  }),
1317
1317
  _: 3
1318
1318
  }),
1319
- u(M, { class: "client-body" }, {
1319
+ d(h, { class: "client-body" }, {
1320
1320
  default: b(() => [
1321
- v.$route.path === "/" ? (w(), J(H, {
1321
+ ae.$route.path === "/" ? (v(), ee(_, {
1322
1322
  key: 0,
1323
1323
  class: "client-main"
1324
1324
  }, {
1325
1325
  default: b(() => {
1326
- var Ce;
1326
+ var g;
1327
1327
  return [
1328
- u(Y, { class: "client-aside" }, {
1328
+ d(A, { class: "client-aside" }, {
1329
1329
  default: b(() => [
1330
- u(gt, { mode: "vertical" })
1330
+ d(_t, { mode: "vertical" })
1331
1331
  ]),
1332
1332
  _: 1
1333
1333
  }),
1334
- p("div", Ya, [
1335
- (w(!0), V(St, null, Dt((Ce = c(ot)(c(Fe))) == null ? void 0 : Ce.filter((D) => D.comp !== "FormTop"), (D, Re) => {
1336
- var Q;
1337
- return w(), V("div", {
1334
+ u("div", Ya, [
1335
+ (v(!0), W(St, null, Dt((g = c(ot)(c(Re))) == null ? void 0 : g.filter((m) => m.comp !== "FormTop"), (m, N) => {
1336
+ var I;
1337
+ return v(), W("div", {
1338
1338
  class: "item-view-content",
1339
- key: Re
1339
+ key: N
1340
1340
  }, [
1341
- ((Q = D == null ? void 0 : D.comp) == null ? void 0 : Q.toUpperCase()) !== "TABLE" ? (w(), V("div", Ha, Ue(D.name), 1)) : ue("", !0),
1342
- (w(), J(Xt(c(Qt)(D.comp)), {
1343
- compName: D.name,
1344
- itemData: D == null ? void 0 : D.compData,
1345
- childItemData: D == null ? void 0 : D.itemChildData,
1346
- key: (D == null ? void 0 : D.id) ?? Re,
1341
+ ((I = m == null ? void 0 : m.comp) == null ? void 0 : I.toUpperCase()) !== "TABLE" && m.name ? (v(), W("div", Ha, Oe(m.name), 1)) : me("", !0),
1342
+ (v(), ee(Xt(c(Qt)(m.comp)), {
1343
+ compName: m.name,
1344
+ itemData: m == null ? void 0 : m.compData,
1345
+ childItemData: m == null ? void 0 : m.itemChildData,
1346
+ key: (m == null ? void 0 : m.id) ?? N,
1347
1347
  onChange: c(oo),
1348
- index: (D == null ? void 0 : D.id) ?? Re,
1348
+ index: (m == null ? void 0 : m.id) ?? N,
1349
1349
  onContentChange: c(to),
1350
1350
  onPageChange: c(eo)
1351
1351
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
1352
1352
  ]);
1353
- }), 128)),
1354
- l.value ? (w(), V("div", Ka, [
1355
- s.value ? (w(), J(st, {
1356
- key: 0,
1357
- class: "calculator-content",
1358
- onClickTrigger: v.clickPreview,
1359
- loading: n.value,
1360
- modelValue: "预览"
1361
- }, null, 8, ["onClickTrigger", "loading"])) : ue("", !0),
1362
- u(st, {
1363
- class: "calculator-content",
1364
- onClickTrigger: d[2] || (d[2] = (D) => v.showThreeContent()),
1365
- loading: t.value,
1366
- modelValue: "调用方法"
1367
- }, null, 8, ["loading"])
1368
- ])) : ue("", !0),
1369
- i.value ? (w(), V("div", Za, [
1370
- u(st, {
1371
- class: "calculator-content",
1372
- modelValue: "执行方法",
1373
- onClickTrigger: v.clickExecute,
1374
- loading: ne.value
1375
- }, null, 8, ["onClickTrigger", "loading"])
1376
- ])) : ue("", !0)
1353
+ }), 128))
1377
1354
  ])
1378
1355
  ];
1379
1356
  }),
1380
1357
  _: 1
1381
- })) : (w(), J(H, {
1358
+ })) : (v(), ee(_, {
1382
1359
  key: 1,
1383
1360
  class: "client-main"
1384
1361
  }, {
1385
1362
  default: b(() => [
1386
- u(Y, { class: "client-aside" }, {
1363
+ d(A, { class: "client-aside" }, {
1387
1364
  default: b(() => [
1388
- u(gt, { mode: "vertical" })
1365
+ d(_t, { mode: "vertical" })
1389
1366
  ]),
1390
1367
  _: 1
1391
1368
  }),
1392
- p("div", Xa, [
1393
- u(ge)
1369
+ u("div", Ka, [
1370
+ d(w)
1394
1371
  ])
1395
1372
  ]),
1396
1373
  _: 1
@@ -1401,11 +1378,11 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1401
1378
  ]),
1402
1379
  _: 3
1403
1380
  })), [
1404
- [pe, c(W)]
1381
+ [x, c(r)]
1405
1382
  ]);
1406
1383
  };
1407
1384
  }
1408
- }), qa = /* @__PURE__ */ Ve(Wa, [["__scopeId", "data-v-1f0f879a"]]), j = [
1385
+ }), Xa = /* @__PURE__ */ Ue(Za, [["__scopeId", "data-v-6e9351a1"]]), O = [
1409
1386
  {
1410
1387
  key: "FitCurve_Eleven",
1411
1388
  value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
@@ -1486,16 +1463,16 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1486
1463
  // key: "参数筛选推理",
1487
1464
  // value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
1488
1465
  // }
1489
- ], Ga = { class: "structure-buttons" }, Ja = { class: "structure-paths" }, Qa = { class: "client-header-user" }, es = { class: "model-select" }, ts = { class: "model-show" }, os = { class: "model-fill" }, as = { class: "client-header-logo" }, ss = { class: "client-header-menu" }, ns = { class: "client-header-user" }, is = { class: "client-main-content" }, ls = {
1466
+ ], Wa = { class: "structure-buttons" }, qa = { class: "structure-paths" }, Ga = { class: "client-header-user" }, Ja = { class: "model-select" }, Qa = { class: "model-show" }, es = { class: "model-fill" }, ts = { class: "client-header-logo" }, os = { class: "client-header-menu" }, as = { class: "client-header-user" }, ss = { class: "client-main-content" }, ns = {
1490
1467
  key: 0,
1491
1468
  class: "item-view-group"
1492
- }, rs = {
1469
+ }, is = {
1493
1470
  key: 0,
1494
1471
  class: "calculator"
1495
- }, cs = {
1472
+ }, ls = {
1496
1473
  key: 1,
1497
1474
  class: "calculator"
1498
- }, hs = { class: "router-aside" }, us = { class: "router-main" }, ds = /* @__PURE__ */ yt({
1475
+ }, rs = { class: "router-aside" }, cs = { class: "router-main" }, hs = /* @__PURE__ */ gt({
1499
1476
  __name: "index",
1500
1477
  props: {
1501
1478
  windowConfig: {
@@ -1509,260 +1486,260 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1509
1486
  }
1510
1487
  },
1511
1488
  setup(a) {
1512
- const e = Lt(je), t = T(0), o = T(!1), { selectTitle: l } = Le(e), s = T(!1), n = T(!1), i = T(!1), r = Fo(je), k = T(!1), { tableShowThree: z } = Le(r), se = ao(), { loginUserInfo: te } = Le(se), ne = bt(je), { isEdit: W } = Le(ne), N = wt(je), h = Lo(je), { objUrl: v, blobUrls: d } = Le(h), S = T(null), _ = T(!0), g = T(!1), { importLoading: M, activeMenuPath: P, platName: U } = Le(N), Y = T(!1);
1513
- De(() => P.value, async (f) => {
1514
- f && (Y.value = !0), Qe != null && Qe.find((m) => {
1489
+ const e = Lt(Be), t = T(0), o = T(!1), { selectTitle: l } = Ae(e), n = T(!1), s = T(!1), i = T(!1), r = Fo(Be), M = T(!1), { tableShowThree: $ } = Ae(r), ae = ao(), { loginUserInfo: B } = Ae(ae), J = wt(Be), { isEdit: Z } = Ae(J), z = yt(Be), h = Lo(Be), { objUrl: P, blobUrls: k } = Ae(h), A = T(null), _ = T(!0), w = T(!1), { importLoading: x, activeMenuPath: g, platName: m } = Ae(z), N = T(!1);
1490
+ Ee(() => g.value, async (f) => {
1491
+ f && (N.value = !0), Qe != null && Qe.find((p) => {
1515
1492
  var E;
1516
- return (m == null ? void 0 : m.key) === ((E = f == null ? void 0 : f.split("/")) == null ? void 0 : E[(f == null ? void 0 : f.split("/").length) - 1]);
1517
- }) ? k.value = !0 : k.value = !1;
1493
+ return (p == null ? void 0 : p.key) === ((E = f == null ? void 0 : f.split("/")) == null ? void 0 : E[(f == null ? void 0 : f.split("/").length) - 1]);
1494
+ }) ? M.value = !0 : M.value = !1;
1518
1495
  }, { immediate: !0 });
1519
- const H = async () => {
1520
- var B, y, ie, re, x;
1521
- g.value = !0;
1496
+ const I = async () => {
1497
+ var F, y, se, ie, S;
1498
+ w.value = !0;
1522
1499
  const f = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
1523
- let m = ((ie = (y = (B = Qe == null ? void 0 : Qe.find((ce) => {
1524
- var ke, ye, Ae;
1525
- return (ce == null ? void 0 : ce.key) === ((Ae = (ke = P.value) == null ? void 0 : ke.split("/")) == null ? void 0 : Ae[((ye = P.value) == null ? void 0 : ye.split("/").length) - 1]);
1526
- })) == null ? void 0 : B.value) == null ? void 0 : y.split(",")) == null ? void 0 : ie[0]) ?? "";
1527
- const E = await _e.post(m, null, {
1500
+ let p = ((se = (y = (F = Qe == null ? void 0 : Qe.find((le) => {
1501
+ var ve, ge, Se;
1502
+ return (le == null ? void 0 : le.key) === ((Se = (ve = g.value) == null ? void 0 : ve.split("/")) == null ? void 0 : Se[((ge = g.value) == null ? void 0 : ge.split("/").length) - 1]);
1503
+ })) == null ? void 0 : F.value) == null ? void 0 : y.split(",")) == null ? void 0 : se[0]) ?? "";
1504
+ const E = await pe.post(p, null, {
1528
1505
  responseType: "blob",
1529
1506
  // 必须设置
1530
1507
  headers: {
1531
1508
  Authorization: f,
1532
1509
  "Content-Type": "application/json"
1533
1510
  }
1534
- }), I = new Blob([E.data], {
1511
+ }), Y = new Blob([E.data], {
1535
1512
  type: "application/octet-stream;charset=UTF-8"
1536
1513
  });
1537
- let A = {
1538
- suffix: "." + ((x = m == null ? void 0 : m.split(".")) == null ? void 0 : x[((re = m == null ? void 0 : m.split(".")) == null ? void 0 : re.length) - 1]),
1539
- blob: I,
1514
+ let R = {
1515
+ suffix: "." + ((S = p == null ? void 0 : p.split(".")) == null ? void 0 : S[((ie = p == null ? void 0 : p.split(".")) == null ? void 0 : ie.length) - 1]),
1516
+ blob: Y,
1540
1517
  mtlBlobs: []
1541
1518
  };
1542
- g.value = !1, S.value.loadModelByDefaultPath([A]);
1543
- }, ge = async (f) => {
1544
- var I, A, B, y, ie, re, x;
1545
- const m = (I = f == null ? void 0 : f.split("/")) == null ? void 0 : I[0], E = await _o({
1519
+ w.value = !1, A.value.loadModelByDefaultPath([R]);
1520
+ }, fe = async (f) => {
1521
+ var Y, R, F, y, se, ie, S;
1522
+ const p = (Y = f == null ? void 0 : f.split("/")) == null ? void 0 : Y[0], E = await _o({
1546
1523
  key: {
1547
1524
  type: "mainEquip",
1548
1525
  systemKey: sessionStorage.getItem("systemKey"),
1549
- pageKey: m
1526
+ pageKey: p
1550
1527
  }
1551
1528
  });
1552
- return ((A = E == null ? void 0 : E.data) == null ? void 0 : A.type) === "success" ? ((x = (re = (ie = (y = (B = E == null ? void 0 : E.data) == null ? void 0 : B.result) == null ? void 0 : y[0]) == null ? void 0 : ie.value) == null ? void 0 : re.tableData) == null ? void 0 : x.隐藏三维显示) !== !0 : !0;
1529
+ return ((R = E == null ? void 0 : E.data) == null ? void 0 : R.type) === "success" ? ((S = (ie = (se = (y = (F = E == null ? void 0 : E.data) == null ? void 0 : F.result) == null ? void 0 : y[0]) == null ? void 0 : se.value) == null ? void 0 : ie.tableData) == null ? void 0 : S.隐藏三维显示) !== !0 : !0;
1553
1530
  };
1554
- De(
1555
- () => Fe.value,
1531
+ Ee(
1532
+ () => Re.value,
1556
1533
  () => {
1557
- var f, m, E, I, A;
1558
- if (((f = Fe.value) == null ? void 0 : f.length) === 2 && ((m = Fe.value) != null && m.find((B) => (B == null ? void 0 : B.name) === "输入")) && ((E = Fe.value) != null && E.find((B) => (B == null ? void 0 : B.name) === "输出"))) {
1559
- const B = (I = Fe.value) == null ? void 0 : I.find((y) => (y == null ? void 0 : y.name) === "输出");
1560
- n.value = ((A = B == null ? void 0 : B.comp) == null ? void 0 : A.toUpperCase()) === "FORM", s.value = !0;
1534
+ var f, p, E, Y, R;
1535
+ if (((f = Re.value) == null ? void 0 : f.length) === 2 && ((p = Re.value) != null && p.find((F) => (F == null ? void 0 : F.name) === "输入")) && ((E = Re.value) != null && E.find((F) => (F == null ? void 0 : F.name) === "输出"))) {
1536
+ const F = (Y = Re.value) == null ? void 0 : Y.find((y) => (y == null ? void 0 : y.name) === "输出");
1537
+ s.value = ((R = F == null ? void 0 : F.comp) == null ? void 0 : R.toUpperCase()) === "FORM", n.value = !0;
1561
1538
  } else
1562
- s.value = !1, n.value = !1;
1539
+ n.value = !1, s.value = !1;
1563
1540
  },
1564
1541
  { deep: !0, immediate: !0 }
1565
- ), De(
1566
- () => P.value,
1542
+ ), Ee(
1543
+ () => g.value,
1567
1544
  async () => {
1568
- P.value && (_.value = await ge(P.value));
1545
+ g.value && (_.value = await fe(g.value));
1569
1546
  },
1570
1547
  { deep: !0, immediate: !0 }
1571
- ), De(
1572
- () => [v.value, S.value],
1548
+ ), Ee(
1549
+ () => [P.value, A.value],
1573
1550
  () => {
1574
1551
  var f;
1575
- ((f = v.value) == null ? void 0 : f.length) > 0 && S.value && S.value.addModelsFromUrls(v.value);
1552
+ ((f = P.value) == null ? void 0 : f.length) > 0 && A.value && A.value.addModelsFromUrls(P.value);
1576
1553
  },
1577
1554
  { immediate: !0, deep: !0 }
1578
- ), De(
1579
- () => d == null ? void 0 : d.value,
1555
+ ), Ee(
1556
+ () => k == null ? void 0 : k.value,
1580
1557
  async () => {
1581
- var f, m, E, I;
1582
- if (d != null && d.value && ((f = d == null ? void 0 : d.value) == null ? void 0 : f.length) > 0 && !k.value && !((m = Fe.value) != null && m.find((A) => (A == null ? void 0 : A.name) === "输入") && ((E = Fe.value) != null && E.find((A) => (A == null ? void 0 : A.name) === "输出")))) {
1583
- let A = [];
1584
- const B = await ((I = ot(d == null ? void 0 : d.value)) == null ? void 0 : I.map(async (y) => {
1585
- var ke, ye, Ae, he, R, Te, xe, $e, Ye, He;
1586
- let ie, re;
1587
- const x = (ye = (ke = y == null ? void 0 : y.blob) == null ? void 0 : ke.split("undefined,")) == null ? void 0 : ye[1];
1588
- let ce = x == null ? void 0 : x.split(",");
1589
- if ((ce == null ? void 0 : ce.length) > 1) {
1590
- let Be = await (ce == null ? void 0 : ce.map(async (oe) => {
1591
- var q, lt, Oe, we, O, Me;
1592
- ie = await _e.get(oe, {
1558
+ var f, p, E, Y;
1559
+ if (k != null && k.value && ((f = k == null ? void 0 : k.value) == null ? void 0 : f.length) > 0 && !M.value && !((p = Re.value) != null && p.find((R) => (R == null ? void 0 : R.name) === "输入") && ((E = Re.value) != null && E.find((R) => (R == null ? void 0 : R.name) === "输出")))) {
1560
+ let R = [];
1561
+ const F = await ((Y = ot(k == null ? void 0 : k.value)) == null ? void 0 : Y.map(async (y) => {
1562
+ var ve, ge, Se, re, D, ke, Me, ze, Ie, Ve;
1563
+ let se, ie;
1564
+ const S = (ge = (ve = y == null ? void 0 : y.blob) == null ? void 0 : ve.split("undefined,")) == null ? void 0 : ge[1];
1565
+ let le = S == null ? void 0 : S.split(",");
1566
+ if ((le == null ? void 0 : le.length) > 1) {
1567
+ let De = await (le == null ? void 0 : le.map(async (te) => {
1568
+ var q, it, Fe, ye, U, Pe;
1569
+ se = await pe.get(te, {
1593
1570
  responseType: "blob",
1594
1571
  headers: {
1595
1572
  "Content-Type": "application/json"
1596
1573
  }
1597
1574
  });
1598
- let de = [];
1575
+ let ce = [];
1599
1576
  if (((q = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : q.length) > 0) {
1600
- let We = await ((lt = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : lt.map(async (ae) => {
1601
- let Ke = await _e.get(ae, {
1577
+ let We = await ((it = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : it.map(async (oe) => {
1578
+ let Ye = await pe.get(oe, {
1602
1579
  responseType: "blob",
1603
1580
  headers: {
1604
1581
  "Content-Type": "application/json"
1605
1582
  }
1606
1583
  });
1607
- return de.push(new Blob([Ke.data], {
1584
+ return ce.push(new Blob([Ye.data], {
1608
1585
  type: "application/octet-stream;charset=UTF-8"
1609
- })), Ke;
1586
+ })), Ye;
1610
1587
  }));
1611
1588
  await Promise.all(We);
1612
1589
  }
1613
- return ((we = oe == null ? void 0 : oe.split(".")) == null ? void 0 : we[((Oe = oe == null ? void 0 : oe.split(".")) == null ? void 0 : Oe.length) - 1]) !== "undefined" && A.push({
1614
- suffix: "." + ((Me = oe == null ? void 0 : oe.split(".")) == null ? void 0 : Me[((O = oe == null ? void 0 : oe.split(".")) == null ? void 0 : O.length) - 1]),
1615
- blob: new Blob([ie.data], {
1590
+ return ((ye = te == null ? void 0 : te.split(".")) == null ? void 0 : ye[((Fe = te == null ? void 0 : te.split(".")) == null ? void 0 : Fe.length) - 1]) !== "undefined" && R.push({
1591
+ suffix: "." + ((Pe = te == null ? void 0 : te.split(".")) == null ? void 0 : Pe[((U = te == null ? void 0 : te.split(".")) == null ? void 0 : U.length) - 1]),
1592
+ blob: new Blob([se.data], {
1616
1593
  type: "application/octet-stream;charset=UTF-8"
1617
1594
  }),
1618
- mtlBlobs: de
1619
- }), ie;
1595
+ mtlBlobs: ce
1596
+ }), se;
1620
1597
  }));
1621
- await Promise.all(Be);
1622
- } else if (!(x != null && x.includes("https://")) && !(x != null && x.includes("http://"))) {
1623
- ie = await $t({
1624
- url: x
1598
+ await Promise.all(De);
1599
+ } else if (!(S != null && S.includes("https://")) && !(S != null && S.includes("http://"))) {
1600
+ se = await $t({
1601
+ url: S
1625
1602
  });
1626
- let Be = [];
1627
- if (((Ae = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Ae.length) > 0) {
1628
- let oe = await ((he = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : he.map(async (de) => {
1603
+ let De = [];
1604
+ if (((Se = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Se.length) > 0) {
1605
+ let te = await ((re = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : re.map(async (ce) => {
1629
1606
  let q = await $t({
1630
- url: de
1607
+ url: ce
1631
1608
  });
1632
- return Be.push(new Blob([q.data], {
1609
+ return De.push(new Blob([q.data], {
1633
1610
  type: "application/octet-stream;charset=UTF-8"
1634
1611
  })), q;
1635
1612
  }));
1636
- await Promise.all(oe);
1613
+ await Promise.all(te);
1637
1614
  }
1638
- re = {
1639
- suffix: "." + ((Te = x == null ? void 0 : x.split(".")) == null ? void 0 : Te[((R = x == null ? void 0 : x.split(".")) == null ? void 0 : R.length) - 1]),
1640
- blob: new Blob([ie.data], {
1615
+ ie = {
1616
+ suffix: "." + ((ke = S == null ? void 0 : S.split(".")) == null ? void 0 : ke[((D = S == null ? void 0 : S.split(".")) == null ? void 0 : D.length) - 1]),
1617
+ blob: new Blob([se.data], {
1641
1618
  type: "application/octet-stream;charset=UTF-8"
1642
1619
  }),
1643
- mtlBlobs: Be
1620
+ mtlBlobs: De
1644
1621
  };
1645
1622
  } else {
1646
- ie = await _e.get(x, {
1623
+ se = await pe.get(S, {
1647
1624
  responseType: "blob",
1648
1625
  headers: {
1649
1626
  "Content-Type": "application/json"
1650
1627
  }
1651
1628
  });
1652
- let Be = [];
1653
- if (((xe = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : xe.length) > 0) {
1654
- let oe = await (($e = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : $e.map(async (de) => {
1655
- let q = await _e.get(de, {
1629
+ let De = [];
1630
+ if (((Me = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Me.length) > 0) {
1631
+ let te = await ((ze = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ze.map(async (ce) => {
1632
+ let q = await pe.get(ce, {
1656
1633
  responseType: "blob",
1657
1634
  headers: {
1658
1635
  "Content-Type": "application/json"
1659
1636
  }
1660
1637
  });
1661
- return Be.push(new Blob([q.data], {
1638
+ return De.push(new Blob([q.data], {
1662
1639
  type: "application/octet-stream;charset=UTF-8"
1663
1640
  })), q;
1664
1641
  }));
1665
- await Promise.all(oe);
1642
+ await Promise.all(te);
1666
1643
  }
1667
- re = {
1668
- suffix: "." + ((He = x == null ? void 0 : x.split(".")) == null ? void 0 : He[((Ye = x == null ? void 0 : x.split(".")) == null ? void 0 : Ye.length) - 1]),
1669
- blob: new Blob([ie.data], {
1644
+ ie = {
1645
+ suffix: "." + ((Ve = S == null ? void 0 : S.split(".")) == null ? void 0 : Ve[((Ie = S == null ? void 0 : S.split(".")) == null ? void 0 : Ie.length) - 1]),
1646
+ blob: new Blob([se.data], {
1670
1647
  type: "application/octet-stream;charset=UTF-8"
1671
1648
  }),
1672
- mtlBlobs: Be
1649
+ mtlBlobs: De
1673
1650
  };
1674
1651
  }
1675
- re && A.push(re);
1652
+ ie && R.push(ie);
1676
1653
  }));
1677
- await Promise.all(B), S.value.loadModelByDefaultPath(A);
1654
+ await Promise.all(F), A.value.loadModelByDefaultPath(R);
1678
1655
  }
1679
1656
  },
1680
1657
  { immediate: !0, deep: !0 }
1681
- ), De(
1682
- () => z.value,
1658
+ ), Ee(
1659
+ () => $.value,
1683
1660
  async () => {
1684
- var m, E, I, A;
1685
- if (z.value !== "" && z.value) {
1686
- let B = (m = P.value) == null ? void 0 : m.split("/"), y = B[(B == null ? void 0 : B.length) - 2];
1687
- const re = (((E = j == null ? void 0 : j.find((ye) => (ye == null ? void 0 : ye.key) === y)) == null ? void 0 : E.download) ?? "") + "/" + z.value, x = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), ce = await _e.post(re, null, {
1661
+ var p, E, Y, R;
1662
+ if ($.value !== "" && $.value) {
1663
+ let F = (p = g.value) == null ? void 0 : p.split("/"), y = F[(F == null ? void 0 : F.length) - 2];
1664
+ const ie = (((E = O == null ? void 0 : O.find((ge) => (ge == null ? void 0 : ge.key) === y)) == null ? void 0 : E.download) ?? "") + "/" + $.value, S = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), le = await pe.post(ie, null, {
1688
1665
  responseType: "blob",
1689
1666
  // 必须设置
1690
1667
  headers: {
1691
- Authorization: x,
1668
+ Authorization: S,
1692
1669
  baseURL: "http://139.196.154.85:20025",
1693
1670
  "Content-Type": "application/json"
1694
1671
  }
1695
1672
  });
1696
- var f = new Blob([ce.data], {
1673
+ var f = new Blob([le.data], {
1697
1674
  type: "application/octet-stream;charset=UTF-8"
1698
1675
  });
1699
- const ke = [
1676
+ const ve = [
1700
1677
  {
1701
- suffix: "." + ((A = (I = z.value) == null ? void 0 : I.split(".")) == null ? void 0 : A[1]),
1678
+ suffix: "." + ((R = (Y = $.value) == null ? void 0 : Y.split(".")) == null ? void 0 : R[1]),
1702
1679
  blob: f,
1703
1680
  mtlBlobs: []
1704
1681
  }
1705
1682
  ];
1706
- S.value.loadModelByDefaultPath(ke);
1683
+ A.value.loadModelByDefaultPath(ve);
1707
1684
  }
1708
1685
  },
1709
1686
  { deep: !0, immediate: !0 }
1710
1687
  );
1711
- const pe = async () => {
1712
- var ie, re, x, ce, ke, ye, Ae, he, R, Te, xe, $e, Ye, He, Be, oe, de;
1688
+ const _e = async () => {
1689
+ var se, ie, S, le, ve, ge, Se, re, D, ke, Me, ze, Ie, Ve, De, te, ce;
1713
1690
  o.value = !0;
1714
- let f = (ie = P.value) == null ? void 0 : ie.split("/"), m = f[(f == null ? void 0 : f.length) - 2];
1715
- const E = ((re = j == null ? void 0 : j.find((q) => (q == null ? void 0 : q.key) === m)) == null ? void 0 : re.value) ?? "";
1716
- let I = "";
1717
- const A = await _e.post("http://139.196.154.85:20024/api/sysAuth/login", {
1691
+ let f = (se = g.value) == null ? void 0 : se.split("/"), p = f[(f == null ? void 0 : f.length) - 2];
1692
+ const E = ((ie = O == null ? void 0 : O.find((q) => (q == null ? void 0 : q.key) === p)) == null ? void 0 : ie.value) ?? "";
1693
+ let Y = "";
1694
+ const R = await pe.post("http://139.196.154.85:20024/api/sysAuth/login", {
1718
1695
  account: "superadmin",
1719
1696
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
1720
1697
  codeId: 0,
1721
1698
  code: ""
1722
1699
  });
1723
- ((x = A == null ? void 0 : A.data) == null ? void 0 : x.code) === 200 && (I = `Bearer ${(ke = (ce = A.data) == null ? void 0 : ce.result) == null ? void 0 : ke.accessToken}`, sessionStorage.setItem("magicToken", I));
1724
- const B = I === "" ? "123456" : I, y = await _e.post(E, null, {
1700
+ ((S = R == null ? void 0 : R.data) == null ? void 0 : S.code) === 200 && (Y = `Bearer ${(ve = (le = R.data) == null ? void 0 : le.result) == null ? void 0 : ve.accessToken}`, sessionStorage.setItem("magicToken", Y));
1701
+ const F = Y === "" ? "123456" : Y, y = await pe.post(E, null, {
1725
1702
  headers: {
1726
- Authorization: B,
1703
+ Authorization: F,
1727
1704
  baseURL: "http://139.196.154.85:20025",
1728
1705
  "Content-Type": "multipart/form-data"
1729
1706
  }
1730
1707
  });
1731
- if (((ye = y == null ? void 0 : y.data) == null ? void 0 : ye.type) === "success" && Ut((he = (Ae = y == null ? void 0 : y.data) == null ? void 0 : Ae.result) == null ? void 0 : he.result)) {
1732
- const q = (Ye = ($e = (xe = JSON.parse((Te = (R = y == null ? void 0 : y.data) == null ? void 0 : R.result) == null ? void 0 : Te.result)) == null ? void 0 : xe.lines_file_paths) == null ? void 0 : $e[0]) == null ? void 0 : Ye.split("\\"), Oe = (((He = j == null ? void 0 : j.find((O) => (O == null ? void 0 : O.key) === m)) == null ? void 0 : He.resources) ?? "") + "/" + (((q == null ? void 0 : q[(q == null ? void 0 : q.length) - 2]) === "inputResources" ? "outputResources" : q == null ? void 0 : q[(q == null ? void 0 : q.length) - 2]) ?? "outputResources"), we = await _e.post(Oe, null, {
1708
+ if (((ge = y == null ? void 0 : y.data) == null ? void 0 : ge.type) === "success" && Ut((re = (Se = y == null ? void 0 : y.data) == null ? void 0 : Se.result) == null ? void 0 : re.result)) {
1709
+ const q = (Ie = (ze = (Me = JSON.parse((ke = (D = y == null ? void 0 : y.data) == null ? void 0 : D.result) == null ? void 0 : ke.result)) == null ? void 0 : Me.lines_file_paths) == null ? void 0 : ze[0]) == null ? void 0 : Ie.split("\\"), Fe = (((Ve = O == null ? void 0 : O.find((U) => (U == null ? void 0 : U.key) === p)) == null ? void 0 : Ve.resources) ?? "") + "/" + (((q == null ? void 0 : q[(q == null ? void 0 : q.length) - 2]) === "inputResources" ? "outputResources" : q == null ? void 0 : q[(q == null ? void 0 : q.length) - 2]) ?? "outputResources"), ye = await pe.post(Fe, null, {
1733
1710
  headers: {
1734
- Authorization: B,
1711
+ Authorization: F,
1735
1712
  baseURL: "http://139.196.154.85:20025",
1736
1713
  "Content-Type": "multipart/form-data"
1737
1714
  }
1738
1715
  });
1739
- if (((Be = we == null ? void 0 : we.data) == null ? void 0 : Be.type) === "success") {
1740
- const O = (oe = we == null ? void 0 : we.data) == null ? void 0 : oe.result, Me = Fe.value, We = await ((de = ot(Me)) == null ? void 0 : de.map(async (ae) => {
1741
- var Ke, rt, ct, be, X, Ie;
1742
- if ((ae == null ? void 0 : ae.name) === "输出") {
1743
- if ((ae == null ? void 0 : ae.comp) === "Table")
1744
- ae.compData = (Ke = ae == null ? void 0 : ae.compData) == null ? void 0 : Ke.map((F) => {
1745
- var G, Pe;
1746
- return (F == null ? void 0 : F.key) === "tableContents" && (F.contents = (Pe = (G = F == null ? void 0 : F.contents) == null ? void 0 : G.map((le) => (le = le == null ? void 0 : le.map(($, ve) => {
1747
- var me, Ze, qe;
1748
- return typeof $ == "string" && ve > 1 ? ((me = F == null ? void 0 : F.contents) == null ? void 0 : me.length) > 1 ? $ = ((Ze = O == null ? void 0 : O[ve - 1]) != null && Ze.includes("input") ? $ : O == null ? void 0 : O[ve - 1]) ?? $ : $ = O == null ? void 0 : O[0] : $ = ((qe = O == null ? void 0 : O[ve - 1]) != null && qe.includes("input") ? $ : O == null ? void 0 : O[ve - 1]) ?? $, $;
1749
- }), le))) == null ? void 0 : Pe.filter((le, $) => $ <= (O == null ? void 0 : O.length) - 1)), F;
1716
+ if (((De = ye == null ? void 0 : ye.data) == null ? void 0 : De.type) === "success") {
1717
+ const U = (te = ye == null ? void 0 : ye.data) == null ? void 0 : te.result, Pe = Re.value, We = await ((ce = ot(Pe)) == null ? void 0 : ce.map(async (oe) => {
1718
+ var Ye, lt, rt, we, X, Ne;
1719
+ if ((oe == null ? void 0 : oe.name) === "输出") {
1720
+ if ((oe == null ? void 0 : oe.comp) === "Table")
1721
+ oe.compData = (Ye = oe == null ? void 0 : oe.compData) == null ? void 0 : Ye.map((L) => {
1722
+ var G, Ce;
1723
+ return (L == null ? void 0 : L.key) === "tableContents" && (L.contents = (Ce = (G = L == null ? void 0 : L.contents) == null ? void 0 : G.map((ne) => (ne = ne == null ? void 0 : ne.map((V, be) => {
1724
+ var ue, Ke, qe;
1725
+ return typeof V == "string" && be > 1 ? ((ue = L == null ? void 0 : L.contents) == null ? void 0 : ue.length) > 1 ? V = ((Ke = U == null ? void 0 : U[be - 1]) != null && Ke.includes("input") ? V : U == null ? void 0 : U[be - 1]) ?? V : V = U == null ? void 0 : U[0] : V = ((qe = U == null ? void 0 : U[be - 1]) != null && qe.includes("input") ? V : U == null ? void 0 : U[be - 1]) ?? V, V;
1726
+ }), ne))) == null ? void 0 : Ce.filter((ne, V) => V <= (U == null ? void 0 : U.length) - 1)), L;
1750
1727
  });
1751
- else if ((ae == null ? void 0 : ae.comp) === "Form") {
1752
- let F = "";
1753
- if (O == null || O.forEach((G) => {
1754
- F = F === "" ? F + G : F + "," + G;
1755
- }), ae.compData = (rt = ae == null ? void 0 : ae.compData) == null ? void 0 : rt.map((G) => {
1756
- var Pe;
1757
- return (G == null ? void 0 : G.key) === "formContent" && (G.contents = (Pe = G.contents) == null ? void 0 : Pe.map((le) => (le.value = F, le))), G;
1758
- }), (ct = F == null ? void 0 : F.split(",")) != null && ct.find((G) => G.includes(".obj"))) {
1728
+ else if ((oe == null ? void 0 : oe.comp) === "Form") {
1729
+ let L = "";
1730
+ if (U == null || U.forEach((G) => {
1731
+ L = L === "" ? L + G : L + "," + G;
1732
+ }), oe.compData = (lt = oe == null ? void 0 : oe.compData) == null ? void 0 : lt.map((G) => {
1733
+ var Ce;
1734
+ return (G == null ? void 0 : G.key) === "formContent" && (G.contents = (Ce = G.contents) == null ? void 0 : Ce.map((ne) => (ne.value = L, ne))), G;
1735
+ }), (rt = L == null ? void 0 : L.split(",")) != null && rt.find((G) => G.includes(".obj"))) {
1759
1736
  let G = {};
1760
1737
  G.suffix = ".obj";
1761
- const Pe = [];
1762
- let le = await ((X = (be = F == null ? void 0 : F.split(",")) == null ? void 0 : be.filter(($) => $.includes(".obj") || $.includes(".mtl"))) == null ? void 0 : X.map(async ($) => {
1763
- var me, Ze;
1764
- if ($.includes(".obj")) {
1765
- const ht = (((me = j == null ? void 0 : j.find((Xe) => (Xe == null ? void 0 : Xe.key) === m)) == null ? void 0 : me.download) ?? "") + "/" + $, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await _e.post(ht, null, {
1738
+ const Ce = [];
1739
+ let ne = await ((X = (we = L == null ? void 0 : L.split(",")) == null ? void 0 : we.filter((V) => V.includes(".obj") || V.includes(".mtl"))) == null ? void 0 : X.map(async (V) => {
1740
+ var ue, Ke;
1741
+ if (V.includes(".obj")) {
1742
+ const ct = (((ue = O == null ? void 0 : O.find((Ze) => (Ze == null ? void 0 : Ze.key) === p)) == null ? void 0 : ue.download) ?? "") + "/" + V, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await pe.post(ct, null, {
1766
1743
  responseType: "blob",
1767
1744
  // 必须设置
1768
1745
  headers: {
@@ -1771,12 +1748,12 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1771
1748
  "Content-Type": "application/json"
1772
1749
  }
1773
1750
  });
1774
- var ve = new Blob([Je.data], {
1751
+ var be = new Blob([Je.data], {
1775
1752
  type: "application/octet-stream;charset=UTF-8"
1776
1753
  });
1777
- G.blob = ve;
1778
- } else if ($.includes(".mtl")) {
1779
- const ht = (((Ze = j == null ? void 0 : j.find((kt) => (kt == null ? void 0 : kt.key) === m)) == null ? void 0 : Ze.download) ?? "") + "/" + $, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await _e.post(ht, null, {
1754
+ G.blob = be;
1755
+ } else if (V.includes(".mtl")) {
1756
+ const ct = (((Ke = O == null ? void 0 : O.find((Ct) => (Ct == null ? void 0 : Ct.key) === p)) == null ? void 0 : Ke.download) ?? "") + "/" + V, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await pe.post(ct, null, {
1780
1757
  responseType: "blob",
1781
1758
  // 必须设置
1782
1759
  headers: {
@@ -1785,134 +1762,134 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1785
1762
  "Content-Type": "application/json"
1786
1763
  }
1787
1764
  });
1788
- var ve = new Blob([Je.data], {
1765
+ var be = new Blob([Je.data], {
1789
1766
  type: "application/octet-stream;charset=UTF-8"
1790
1767
  });
1791
- Pe.push(ve);
1768
+ Ce.push(be);
1792
1769
  }
1793
1770
  }));
1794
- await Promise.all(le), G.mtlBlobs = Pe, S.value.loadModelByDefaultPath([G]);
1771
+ await Promise.all(ne), G.mtlBlobs = Ce, A.value.loadModelByDefaultPath([G]);
1795
1772
  } else {
1796
1773
  const G = [];
1797
- let Pe = await ((Ie = F == null ? void 0 : F.split(",")) == null ? void 0 : Ie.map(async (le) => {
1774
+ let Ce = await ((Ne = L == null ? void 0 : L.split(",")) == null ? void 0 : Ne.map(async (ne) => {
1798
1775
  var Ge, Je;
1799
- let $ = {};
1800
- $.suffix = "." + ((Ge = le == null ? void 0 : le.split(".")) == null ? void 0 : Ge[1]);
1801
- const me = (((Je = j == null ? void 0 : j.find((Xe) => (Xe == null ? void 0 : Xe.key) === m)) == null ? void 0 : Je.download) ?? "") + "/" + le, Ze = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), qe = await _e.post(me, null, {
1776
+ let V = {};
1777
+ V.suffix = "." + ((Ge = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Ge[1]);
1778
+ const ue = (((Je = O == null ? void 0 : O.find((Ze) => (Ze == null ? void 0 : Ze.key) === p)) == null ? void 0 : Je.download) ?? "") + "/" + ne, Ke = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), qe = await pe.post(ue, null, {
1802
1779
  responseType: "blob",
1803
1780
  // 必须设置
1804
1781
  headers: {
1805
- Authorization: Ze,
1782
+ Authorization: Ke,
1806
1783
  baseURL: "http://139.196.154.85:20025",
1807
1784
  "Content-Type": "application/json"
1808
1785
  }
1809
1786
  });
1810
- var ht = new Blob([qe.data], {
1787
+ var ct = new Blob([qe.data], {
1811
1788
  type: "application/octet-stream;charset=UTF-8"
1812
1789
  });
1813
- $.blob = ht, G.push($);
1790
+ V.blob = ct, G.push(V);
1814
1791
  }));
1815
- await Promise.all(Pe), S.value.loadModelByDefaultPath(G);
1792
+ await Promise.all(Ce), A.value.loadModelByDefaultPath(G);
1816
1793
  }
1817
1794
  }
1818
1795
  }
1819
- return ae;
1796
+ return oe;
1820
1797
  }));
1821
- Fe.value = await Promise.all(We);
1798
+ Re.value = await Promise.all(We);
1822
1799
  }
1823
1800
  }
1824
1801
  t.value++, o.value = !1;
1825
- }, Ce = T(""), D = T("open"), Re = T("open"), Q = T(!1), C = () => {
1802
+ }, He = T(""), $e = T("open"), Xe = T("open"), he = T(!1), C = () => {
1826
1803
  const f = document.getElementById("menuCollapse");
1827
- D.value === "open" ? (f.style.width = "18.75rem", f.style.height = "96%", f.style.overflow = "auto") : (f.style.width = "50px", f.style.height = "50px", f.style.overflow = "hidden");
1828
- }, K = () => {
1804
+ $e.value === "open" ? (f.style.width = "18.75rem", f.style.height = "96%", f.style.overflow = "auto") : (f.style.width = "50px", f.style.height = "50px", f.style.overflow = "hidden");
1805
+ }, H = () => {
1829
1806
  const f = document.getElementById("operateCollapse");
1830
- Re.value === "open" ? (f.style.width = "25rem", f.style.height = "96%", f.style.overflow = "auto") : (f.style.width = "50px", f.style.height = "50px", f.style.overflow = "hidden");
1831
- }, vt = () => {
1832
- Q.value = !Q.value;
1833
- const f = document.getElementById("operateCollapse"), m = document.getElementById("menuCollapse");
1834
- Q.value ? (m.style.width = "18.75rem", f.style.width = "calc(100% - 24rem)") : f.style.width = "400px";
1835
- }, it = (f) => {
1836
- const m = URL.createObjectURL(f), E = document.createElement("a");
1837
- E.href = m, E.download = "file.txt", document.body.appendChild(E), E.click(), document.body.removeChild(E), URL.revokeObjectURL(m), i.value = !1;
1838
- }, Ct = async () => {
1839
- var ie, re, x, ce, ke, ye, Ae, he, R, Te, xe, $e, Ye, He, Be, oe;
1807
+ Xe.value === "open" ? (f.style.width = "25rem", f.style.height = "96%", f.style.overflow = "auto") : (f.style.width = "50px", f.style.height = "50px", f.style.overflow = "hidden");
1808
+ }, bt = () => {
1809
+ he.value = !he.value;
1810
+ const f = document.getElementById("operateCollapse"), p = document.getElementById("menuCollapse");
1811
+ he.value ? (p.style.width = "18.75rem", f.style.width = "calc(100% - 24rem)") : f.style.width = "400px";
1812
+ }, nt = (f) => {
1813
+ const p = URL.createObjectURL(f), E = document.createElement("a");
1814
+ E.href = p, E.download = "file.txt", document.body.appendChild(E), E.click(), document.body.removeChild(E), URL.revokeObjectURL(p), i.value = !1;
1815
+ }, vt = async () => {
1816
+ var se, ie, S, le, ve, ge, Se, re, D, ke, Me, ze, Ie, Ve, De, te;
1840
1817
  i.value = !0;
1841
- let f = (ie = P.value) == null ? void 0 : ie.split("/"), m = f[(f == null ? void 0 : f.length) - 2];
1842
- const E = ((re = j == null ? void 0 : j.find((de) => (de == null ? void 0 : de.key) === m)) == null ? void 0 : re.value) ?? "";
1843
- let I = "";
1844
- const A = await _e.post("http://139.196.154.85:20024/api/sysAuth/login", {
1818
+ let f = (se = g.value) == null ? void 0 : se.split("/"), p = f[(f == null ? void 0 : f.length) - 2];
1819
+ const E = ((ie = O == null ? void 0 : O.find((ce) => (ce == null ? void 0 : ce.key) === p)) == null ? void 0 : ie.value) ?? "";
1820
+ let Y = "";
1821
+ const R = await pe.post("http://139.196.154.85:20024/api/sysAuth/login", {
1845
1822
  account: "superadmin",
1846
1823
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
1847
1824
  codeId: 0,
1848
1825
  code: ""
1849
1826
  });
1850
- if (((x = A == null ? void 0 : A.data) == null ? void 0 : x.code) === 200)
1851
- I = `Bearer ${(ke = (ce = A.data) == null ? void 0 : ce.result) == null ? void 0 : ke.accessToken}`, sessionStorage.setItem("magicToken", I);
1827
+ if (((S = R == null ? void 0 : R.data) == null ? void 0 : S.code) === 200)
1828
+ Y = `Bearer ${(ve = (le = R.data) == null ? void 0 : le.result) == null ? void 0 : ve.accessToken}`, sessionStorage.setItem("magicToken", Y);
1852
1829
  else
1853
- throw Pt.error("响应出错了"), new Error("响应出错了");
1854
- const B = I === "" ? "123456" : I, y = await _e.post(E, null, {
1830
+ throw kt.error("响应出错了"), new Error("响应出错了");
1831
+ const F = Y === "" ? "123456" : Y, y = await pe.post(E, null, {
1855
1832
  headers: {
1856
- Authorization: B,
1833
+ Authorization: F,
1857
1834
  baseURL: "http://139.196.154.85:20025",
1858
1835
  "Content-Type": "multipart/form-data"
1859
1836
  }
1860
1837
  });
1861
- if (((ye = y == null ? void 0 : y.data) == null ? void 0 : ye.code) === 200) {
1862
- if (Ut((he = (Ae = y == null ? void 0 : y.data) == null ? void 0 : Ae.result) == null ? void 0 : he.result)) {
1863
- const de = (Ye = ($e = (xe = JSON.parse((Te = (R = y == null ? void 0 : y.data) == null ? void 0 : R.result) == null ? void 0 : Te.result)) == null ? void 0 : xe.lines_file_paths) == null ? void 0 : $e[0]) == null ? void 0 : Ye.split("\\"), lt = (((He = j == null ? void 0 : j.find((we) => (we == null ? void 0 : we.key) === m)) == null ? void 0 : He.resources) ?? "") + "/" + ((de == null ? void 0 : de[(de == null ? void 0 : de.length) - 2]) ?? "outputResources"), Oe = await _e.post(lt, null, {
1838
+ if (((ge = y == null ? void 0 : y.data) == null ? void 0 : ge.code) === 200) {
1839
+ if (Ut((re = (Se = y == null ? void 0 : y.data) == null ? void 0 : Se.result) == null ? void 0 : re.result)) {
1840
+ const ce = (Ie = (ze = (Me = JSON.parse((ke = (D = y == null ? void 0 : y.data) == null ? void 0 : D.result) == null ? void 0 : ke.result)) == null ? void 0 : Me.lines_file_paths) == null ? void 0 : ze[0]) == null ? void 0 : Ie.split("\\"), it = (((Ve = O == null ? void 0 : O.find((ye) => (ye == null ? void 0 : ye.key) === p)) == null ? void 0 : Ve.resources) ?? "") + "/" + ((ce == null ? void 0 : ce[(ce == null ? void 0 : ce.length) - 2]) ?? "outputResources"), Fe = await pe.post(it, null, {
1864
1841
  headers: {
1865
- Authorization: B,
1842
+ Authorization: F,
1866
1843
  baseURL: "http://139.196.154.85:20025",
1867
1844
  "Content-Type": "multipart/form-data"
1868
1845
  }
1869
1846
  });
1870
- if (((Be = Oe == null ? void 0 : Oe.data) == null ? void 0 : Be.code) === 200) {
1871
- const we = (oe = Oe == null ? void 0 : Oe.data) == null ? void 0 : oe.result, O = ot(Fe.value);
1872
- O == null || O.map(async (Me) => {
1873
- var We, ae, Ke, rt, ct;
1874
- if ((Me == null ? void 0 : Me.name) === "输出" && (Me == null ? void 0 : Me.comp) === "Form") {
1875
- let be = "";
1876
- we == null || we.forEach((X) => {
1877
- be = be === "" ? be + X : be + "," + X;
1878
- }), Me.compData = (We = Me == null ? void 0 : Me.compData) == null ? void 0 : We.map((X) => {
1879
- var Ie;
1880
- return (X == null ? void 0 : X.key) === "formContent" && (X.contents = (Ie = X.contents) == null ? void 0 : Ie.map((F) => (F.value = be, F))), X;
1881
- }), (ae = be == null ? void 0 : be.split(",")) != null && ae.find((X) => X.includes(".obj")) ? (rt = (Ke = be == null ? void 0 : be.split(",")) == null ? void 0 : Ke.filter((X) => X.includes(".obj") || X.includes(".mtl"))) == null || rt.map(async (X) => {
1882
- var Ie, F;
1847
+ if (((De = Fe == null ? void 0 : Fe.data) == null ? void 0 : De.code) === 200) {
1848
+ const ye = (te = Fe == null ? void 0 : Fe.data) == null ? void 0 : te.result, U = ot(Re.value);
1849
+ U == null || U.map(async (Pe) => {
1850
+ var We, oe, Ye, lt, rt;
1851
+ if ((Pe == null ? void 0 : Pe.name) === "输出" && (Pe == null ? void 0 : Pe.comp) === "Form") {
1852
+ let we = "";
1853
+ ye == null || ye.forEach((X) => {
1854
+ we = we === "" ? we + X : we + "," + X;
1855
+ }), Pe.compData = (We = Pe == null ? void 0 : Pe.compData) == null ? void 0 : We.map((X) => {
1856
+ var Ne;
1857
+ return (X == null ? void 0 : X.key) === "formContent" && (X.contents = (Ne = X.contents) == null ? void 0 : Ne.map((L) => (L.value = we, L))), X;
1858
+ }), (oe = we == null ? void 0 : we.split(",")) != null && oe.find((X) => X.includes(".obj")) ? (lt = (Ye = we == null ? void 0 : we.split(",")) == null ? void 0 : Ye.filter((X) => X.includes(".obj") || X.includes(".mtl"))) == null || lt.map(async (X) => {
1859
+ var Ne, L;
1883
1860
  if (X.includes(".obj")) {
1884
- const Pe = (((Ie = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === m)) == null ? void 0 : Ie.download) ?? "") + "/" + X, le = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), $ = await _e.post(Pe, null, {
1861
+ const Ce = (((Ne = O == null ? void 0 : O.find((ue) => (ue == null ? void 0 : ue.key) === p)) == null ? void 0 : Ne.download) ?? "") + "/" + X, ne = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), V = await pe.post(Ce, null, {
1885
1862
  responseType: "blob",
1886
1863
  // 必须设置
1887
1864
  headers: {
1888
- Authorization: le,
1865
+ Authorization: ne,
1889
1866
  baseURL: "http://139.196.154.85:20025",
1890
1867
  "Content-Type": "application/json"
1891
1868
  }
1892
1869
  });
1893
- let ve = new Blob([$.data], {
1870
+ let be = new Blob([V.data], {
1894
1871
  type: "application/octet-stream;charset=UTF-8"
1895
1872
  });
1896
- it(ve);
1873
+ nt(be);
1897
1874
  } else if (X.includes(".mtl")) {
1898
- const Pe = (((F = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === m)) == null ? void 0 : F.download) ?? "") + "/" + X, le = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), $ = await _e.post(Pe, null, {
1875
+ const Ce = (((L = O == null ? void 0 : O.find((ue) => (ue == null ? void 0 : ue.key) === p)) == null ? void 0 : L.download) ?? "") + "/" + X, ne = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), V = await pe.post(Ce, null, {
1899
1876
  responseType: "blob",
1900
1877
  // 必须设置
1901
1878
  headers: {
1902
- Authorization: le,
1879
+ Authorization: ne,
1903
1880
  baseURL: "http://139.196.154.85:20025",
1904
1881
  "Content-Type": "application/json"
1905
1882
  }
1906
1883
  });
1907
- let ve = new Blob([$.data], {
1884
+ let be = new Blob([V.data], {
1908
1885
  type: "application/octet-stream;charset=UTF-8"
1909
1886
  });
1910
- it(ve);
1887
+ nt(be);
1911
1888
  }
1912
- }) : (ct = be == null ? void 0 : be.split(",")) == null || ct.map(async (X) => {
1913
- var $, ve;
1914
- "" + (($ = X == null ? void 0 : X.split(".")) == null ? void 0 : $[1]);
1915
- const F = (((ve = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === m)) == null ? void 0 : ve.download) ?? "") + "/" + X, G = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Pe = await _e.post(F, null, {
1889
+ }) : (rt = we == null ? void 0 : we.split(",")) == null || rt.map(async (X) => {
1890
+ var V, be;
1891
+ "" + ((V = X == null ? void 0 : X.split(".")) == null ? void 0 : V[1]);
1892
+ const L = (((be = O == null ? void 0 : O.find((ue) => (ue == null ? void 0 : ue.key) === p)) == null ? void 0 : be.download) ?? "") + "/" + X, G = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ce = await pe.post(L, null, {
1916
1893
  responseType: "blob",
1917
1894
  // 必须设置
1918
1895
  headers: {
@@ -1921,75 +1898,75 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1921
1898
  "Content-Type": "application/json"
1922
1899
  }
1923
1900
  });
1924
- let le = new Blob([Pe.data], {
1901
+ let ne = new Blob([Ce.data], {
1925
1902
  type: "application/octet-stream;charset=UTF-8"
1926
1903
  });
1927
- it(le);
1904
+ nt(ne);
1928
1905
  });
1929
1906
  }
1930
1907
  });
1931
1908
  } else
1932
- throw Pt.error("响应出错了"), new Error("响应出错了");
1909
+ throw kt.error("响应出错了"), new Error("响应出错了");
1933
1910
  }
1934
1911
  } else
1935
- throw Pt.error("响应出错了"), new Error("响应出错了");
1912
+ throw kt.error("响应出错了"), new Error("响应出错了");
1936
1913
  };
1937
- return (f, m) => {
1938
- const E = ee("el-button"), I = ee("el-avatar"), A = ee("el-header"), B = ee("el-container"), y = ee("el-icon"), ie = ee("el-input"), re = ee("el-aside"), x = ee("el-collapse-item"), ce = ee("el-collapse"), ke = ee("el-main"), ye = ee("router-view"), Ae = Zt("loading");
1939
- return c(W) === "edit" ? (w(), J(B, {
1914
+ return (f, p) => {
1915
+ const E = Q("el-button"), Y = Q("el-avatar"), R = Q("el-header"), F = Q("el-container"), y = Q("el-icon"), se = Q("el-input"), ie = Q("el-aside"), S = Q("el-collapse-item"), le = Q("el-collapse"), ve = Q("el-main"), ge = Q("router-view"), Se = Zt("loading");
1916
+ return c(Z) === "edit" ? (v(), ee(F, {
1940
1917
  key: 0,
1941
1918
  class: "client-container"
1942
1919
  }, {
1943
1920
  default: b(() => [
1944
- u(A, { class: "client-structure-header" }, {
1921
+ d(R, { class: "client-structure-header" }, {
1945
1922
  default: b(() => {
1946
- var he;
1923
+ var re;
1947
1924
  return [
1948
- p("div", Ga, [
1949
- u(E, {
1925
+ u("div", Wa, [
1926
+ d(E, {
1950
1927
  id: "transparentBgButton",
1951
1928
  onClick: c(Wt)
1952
1929
  }, {
1953
- default: b(() => m[5] || (m[5] = [
1954
- Ee(" 返回页面 ")
1930
+ default: b(() => p[5] || (p[5] = [
1931
+ Te(" 返回页面 ")
1955
1932
  ])),
1956
1933
  _: 1,
1957
1934
  __: [5]
1958
1935
  }, 8, ["onClick"]),
1959
- u(E, {
1936
+ d(E, {
1960
1937
  id: "transparentBgButton",
1961
- onClick: m[0] || (m[0] = (R) => {
1962
- var Te, xe;
1963
- return c(qt)((xe = (Te = c(l)) == null ? void 0 : Te.map(($e) => $e.value)) == null ? void 0 : xe.join("/"));
1938
+ onClick: p[0] || (p[0] = (D) => {
1939
+ var ke, Me;
1940
+ return c(qt)((Me = (ke = c(l)) == null ? void 0 : ke.map((ze) => ze.value)) == null ? void 0 : Me.join("/"));
1964
1941
  })
1965
1942
  }, {
1966
1943
  icon: b(() => [
1967
- u(Ne, { name: "Store" })
1944
+ d(je, { name: "Store" })
1968
1945
  ]),
1969
1946
  default: b(() => [
1970
- m[6] || (m[6] = Ee(" 保存页面 "))
1947
+ p[6] || (p[6] = Te(" 保存页面 "))
1971
1948
  ]),
1972
1949
  _: 1,
1973
1950
  __: [6]
1974
1951
  })
1975
1952
  ]),
1976
- p("div", Ja, [
1977
- (w(), J(ro, {
1953
+ u("div", qa, [
1954
+ (v(), ee(ro, {
1978
1955
  key: c(l),
1979
1956
  breadArray: c(l),
1980
1957
  onClick: c(Gt)
1981
1958
  }, null, 8, ["breadArray", "onClick"]))
1982
1959
  ]),
1983
- p("div", Qa, [
1984
- nt(f.$slots, "default", {}, void 0, !0),
1985
- u(I, {
1960
+ u("div", Ga, [
1961
+ st(f.$slots, "default", {}, void 0, !0),
1962
+ d(Y, {
1986
1963
  size: 35,
1987
- src: (he = c(te)) == null ? void 0 : he.avatarUrl
1964
+ src: (re = c(B)) == null ? void 0 : re.avatarUrl
1988
1965
  }, {
1989
1966
  default: b(() => {
1990
- var R;
1967
+ var D;
1991
1968
  return [
1992
- Ee(Ue(((R = c(te)) == null ? void 0 : R.account) ?? "未知"), 1)
1969
+ Te(Oe(((D = c(B)) == null ? void 0 : D.account) ?? "未知"), 1)
1993
1970
  ];
1994
1971
  }),
1995
1972
  _: 1
@@ -1999,100 +1976,100 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1999
1976
  }),
2000
1977
  _: 3
2001
1978
  }),
2002
- c(W) === "edit" ? (w(), J(B, {
1979
+ c(Z) === "edit" ? (v(), ee(F, {
2003
1980
  key: 0,
2004
1981
  class: "model-operate",
2005
1982
  style: { "margin-top": "10px", height: "0px" }
2006
1983
  }, {
2007
1984
  default: b(() => [
2008
- p("div", es, [
2009
- u(Rt)
1985
+ u("div", Ja, [
1986
+ d(Rt)
2010
1987
  ]),
2011
- p("div", ts, [
2012
- u(At)
1988
+ u("div", Qa, [
1989
+ d(At)
2013
1990
  ]),
2014
- p("div", os, [
2015
- u(Bt)
1991
+ u("div", es, [
1992
+ d(Bt)
2016
1993
  ])
2017
1994
  ]),
2018
1995
  _: 1
2019
- })) : ue("", !0)
1996
+ })) : me("", !0)
2020
1997
  ]),
2021
1998
  _: 3
2022
- })) : et((w(), J(B, {
1999
+ })) : et((v(), ee(F, {
2023
2000
  key: 1,
2024
2001
  class: "client-container",
2025
2002
  "element-loading-text": "正在加载页面数据..."
2026
2003
  }, {
2027
2004
  default: b(() => [
2028
- u(A, { class: "client-header" }, {
2005
+ d(R, { class: "client-header" }, {
2029
2006
  default: b(() => {
2030
- var he;
2007
+ var re;
2031
2008
  return [
2032
- p("div", as, [
2033
- u(Ne, {
2009
+ u("div", ts, [
2010
+ d(je, {
2034
2011
  name: "logo",
2035
2012
  style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
2036
2013
  }),
2037
- Ee(" " + Ue(c(U) === "" ? "CPMPIP" : c(U)), 1)
2014
+ Te(" " + Oe(c(m) === "" ? "CPMPIP" : c(m)), 1)
2038
2015
  ]),
2039
- p("div", ss, [
2040
- u(lo, { mode: "horizontal" })
2016
+ u("div", os, [
2017
+ d(lo, { mode: "horizontal" })
2041
2018
  ]),
2042
- p("div", ns, [
2043
- u(ie, {
2044
- modelValue: Ce.value,
2045
- "onUpdate:modelValue": m[1] || (m[1] = (R) => Ce.value = R),
2019
+ u("div", as, [
2020
+ d(se, {
2021
+ modelValue: He.value,
2022
+ "onUpdate:modelValue": p[1] || (p[1] = (D) => He.value = D),
2046
2023
  clearable: "",
2047
2024
  placeholder: "搜索",
2048
2025
  style: { width: "130px" }
2049
2026
  }, {
2050
2027
  prefix: b(() => [
2051
- u(y, { class: "el-input__icon" }, {
2028
+ d(y, { class: "el-input__icon" }, {
2052
2029
  default: b(() => [
2053
- u(c(no))
2030
+ d(c(no))
2054
2031
  ]),
2055
2032
  _: 1
2056
2033
  })
2057
2034
  ]),
2058
2035
  _: 1
2059
2036
  }, 8, ["modelValue"]),
2060
- a.showButton ? (w(), J(E, {
2037
+ a.showButton ? (v(), ee(E, {
2061
2038
  key: 0,
2062
2039
  id: "transparentBgButton"
2063
2040
  }, {
2064
2041
  icon: b(() => [
2065
- u(Ne, { name: "App" })
2042
+ d(je, { name: "App" })
2066
2043
  ]),
2067
2044
  default: b(() => [
2068
- m[7] || (m[7] = Ee(" 生成APP "))
2045
+ p[7] || (p[7] = Te(" 生成APP "))
2069
2046
  ]),
2070
2047
  _: 1,
2071
2048
  __: [7]
2072
- })) : ue("", !0),
2073
- a.showButton && c(W) === "view" ? (w(), J(E, {
2049
+ })) : me("", !0),
2050
+ a.showButton && c(Z) === "view" ? (v(), ee(E, {
2074
2051
  key: 1,
2075
2052
  id: "transparentBgButton",
2076
2053
  onClick: c(Jt)
2077
2054
  }, {
2078
2055
  icon: b(() => [
2079
- u(Ne, { name: "write" })
2056
+ d(je, { name: "write" })
2080
2057
  ]),
2081
2058
  default: b(() => [
2082
- m[8] || (m[8] = Ee(" 修改布局 "))
2059
+ p[8] || (p[8] = Te(" 修改布局 "))
2083
2060
  ]),
2084
2061
  _: 1,
2085
2062
  __: [8]
2086
- }, 8, ["onClick"])) : ue("", !0),
2087
- nt(f.$slots, "default", {}, void 0, !0),
2088
- u(I, {
2063
+ }, 8, ["onClick"])) : me("", !0),
2064
+ st(f.$slots, "default", {}, void 0, !0),
2065
+ d(Y, {
2089
2066
  size: 35,
2090
- src: (he = c(te)) == null ? void 0 : he.avatarUrl
2067
+ src: (re = c(B)) == null ? void 0 : re.avatarUrl
2091
2068
  }, {
2092
2069
  default: b(() => {
2093
- var R;
2070
+ var D;
2094
2071
  return [
2095
- Ee(Ue(((R = c(te)) == null ? void 0 : R.account) ?? "未知"), 1)
2072
+ Te(Oe(((D = c(B)) == null ? void 0 : D.account) ?? "未知"), 1)
2096
2073
  ];
2097
2074
  }),
2098
2075
  _: 1
@@ -2102,33 +2079,33 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2102
2079
  }),
2103
2080
  _: 3
2104
2081
  }),
2105
- u(B, { class: "client-body" }, {
2082
+ d(F, { class: "client-body" }, {
2106
2083
  default: b(() => [
2107
- f.$route.path === "/" ? (w(), J(ke, {
2084
+ f.$route.path === "/" ? (v(), ee(ve, {
2108
2085
  key: 0,
2109
2086
  class: "client-main"
2110
2087
  }, {
2111
2088
  default: b(() => [
2112
- u(ce, {
2113
- modelValue: D.value,
2114
- "onUpdate:modelValue": m[2] || (m[2] = (he) => D.value = he),
2089
+ d(le, {
2090
+ modelValue: $e.value,
2091
+ "onUpdate:modelValue": p[2] || (p[2] = (re) => $e.value = re),
2115
2092
  accordion: "",
2116
2093
  class: "client-aside",
2117
2094
  id: "menuCollapse",
2118
2095
  onChange: C
2119
2096
  }, {
2120
2097
  default: b(() => [
2121
- u(x, { name: "open" }, {
2098
+ d(S, { name: "open" }, {
2122
2099
  icon: b(() => [
2123
- u(Ne, {
2124
- name: D.value === "" ? "Right" : "Left",
2100
+ d(je, {
2101
+ name: $e.value === "" ? "Right" : "Left",
2125
2102
  style: { width: "20px", height: "20px" }
2126
2103
  }, null, 8, ["name"])
2127
2104
  ]),
2128
2105
  default: b(() => [
2129
- u(re, { style: { width: "100%" } }, {
2106
+ d(ie, { style: { width: "100%" } }, {
2130
2107
  default: b(() => [
2131
- u(gt, { mode: "vertical" })
2108
+ d(_t, { mode: "vertical" })
2132
2109
  ]),
2133
2110
  _: 1
2134
2111
  })
@@ -2138,81 +2115,81 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2138
2115
  ]),
2139
2116
  _: 1
2140
2117
  }, 8, ["modelValue"]),
2141
- p("div", is, [
2142
- u(Sa, {
2143
- isShow: Y.value,
2118
+ u("div", ss, [
2119
+ d(Sa, {
2120
+ isShow: N.value,
2144
2121
  windowConfig: a.windowConfig,
2145
2122
  ref_key: "threeModelRef",
2146
- ref: S
2123
+ ref: A
2147
2124
  }, null, 8, ["isShow", "windowConfig"])
2148
2125
  ]),
2149
- u(ce, {
2150
- modelValue: Re.value,
2151
- "onUpdate:modelValue": m[4] || (m[4] = (he) => Re.value = he),
2126
+ d(le, {
2127
+ modelValue: Xe.value,
2128
+ "onUpdate:modelValue": p[4] || (p[4] = (re) => Xe.value = re),
2152
2129
  accordion: "",
2153
2130
  class: "client-main-operate",
2154
2131
  id: "operateCollapse",
2155
- onChange: K
2132
+ onChange: H
2156
2133
  }, {
2157
2134
  default: b(() => [
2158
- u(x, { name: "open" }, {
2135
+ d(S, { name: "open" }, {
2159
2136
  icon: b(() => [
2160
- u(Ne, {
2161
- name: Re.value === "open" ? "Right" : "Left",
2137
+ d(je, {
2138
+ name: Xe.value === "open" ? "Right" : "Left",
2162
2139
  style: { width: "20px", height: "20px" }
2163
2140
  }, null, 8, ["name"])
2164
2141
  ]),
2165
2142
  default: b(() => {
2166
- var he;
2143
+ var re;
2167
2144
  return [
2168
- p("div", null, [
2169
- u(Ne, {
2145
+ u("div", null, [
2146
+ d(je, {
2170
2147
  class: "fold-icon",
2171
- name: Q.value ? "Right" : "Left",
2172
- onClick: vt
2148
+ name: he.value ? "Right" : "Left",
2149
+ onClick: bt
2173
2150
  }, null, 8, ["name"]),
2174
- (w(!0), V(St, null, Dt((he = c(ot)(c(Fe))) == null ? void 0 : he.filter((R) => R.comp !== "FormTop"), (R, Te) => {
2175
- var xe;
2176
- return w(), V("div", {
2151
+ (v(!0), W(St, null, Dt((re = c(ot)(c(Re))) == null ? void 0 : re.filter((D) => D.comp !== "FormTop"), (D, ke) => {
2152
+ var Me;
2153
+ return v(), W("div", {
2177
2154
  class: "item-view-content",
2178
- key: Te
2155
+ key: ke
2179
2156
  }, [
2180
- ((xe = R == null ? void 0 : R.comp) == null ? void 0 : xe.toUpperCase()) !== "TABLE" ? (w(), V("div", ls, Ue(R.name), 1)) : ue("", !0),
2181
- (w(), J(Xt(c(Qt)(R.comp)), {
2182
- compName: R.name,
2183
- itemData: R == null ? void 0 : R.compData,
2184
- childItemData: R == null ? void 0 : R.itemChildData,
2185
- key: (R == null ? void 0 : R.id) ?? Te,
2157
+ ((Me = D == null ? void 0 : D.comp) == null ? void 0 : Me.toUpperCase()) !== "TABLE" && D.name ? (v(), W("div", ns, Oe(D.name), 1)) : me("", !0),
2158
+ (v(), ee(Xt(c(Qt)(D.comp)), {
2159
+ compName: D.name,
2160
+ itemData: D == null ? void 0 : D.compData,
2161
+ childItemData: D == null ? void 0 : D.itemChildData,
2162
+ key: (D == null ? void 0 : D.id) ?? ke,
2186
2163
  onChange: c(oo),
2187
- index: (R == null ? void 0 : R.id) ?? Te,
2164
+ index: (D == null ? void 0 : D.id) ?? ke,
2188
2165
  onContentChange: c(to),
2189
2166
  onPageChange: c(eo)
2190
2167
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
2191
2168
  ]);
2192
2169
  }), 128)),
2193
- s.value ? (w(), V("div", rs, [
2194
- n.value ? (w(), J(st, {
2170
+ n.value ? (v(), W("div", is, [
2171
+ s.value ? (v(), ee(xt, {
2195
2172
  key: 0,
2196
2173
  class: "calculator-content",
2197
- onClickTrigger: Ct,
2174
+ onClickTrigger: vt,
2198
2175
  loading: i.value,
2199
2176
  modelValue: "预览"
2200
- }, null, 8, ["loading"])) : ue("", !0),
2201
- u(st, {
2177
+ }, null, 8, ["loading"])) : me("", !0),
2178
+ d(xt, {
2202
2179
  class: "calculator-content",
2203
- onClickTrigger: m[3] || (m[3] = (R) => pe()),
2180
+ onClickTrigger: p[3] || (p[3] = (D) => _e()),
2204
2181
  loading: o.value,
2205
2182
  modelValue: "调用方法"
2206
2183
  }, null, 8, ["loading"])
2207
- ])) : ue("", !0),
2208
- k.value ? (w(), V("div", cs, [
2209
- u(st, {
2184
+ ])) : me("", !0),
2185
+ M.value ? (v(), W("div", ls, [
2186
+ d(xt, {
2210
2187
  class: "calculator-content",
2211
2188
  modelValue: "执行方法",
2212
- onClickTrigger: H,
2213
- loading: g.value
2189
+ onClickTrigger: I,
2190
+ loading: w.value
2214
2191
  }, null, 8, ["loading"])
2215
- ])) : ue("", !0)
2192
+ ])) : me("", !0)
2216
2193
  ])
2217
2194
  ];
2218
2195
  }),
@@ -2223,21 +2200,21 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2223
2200
  }, 8, ["modelValue"])
2224
2201
  ]),
2225
2202
  _: 1
2226
- })) : (w(), J(ke, {
2203
+ })) : (v(), ee(ve, {
2227
2204
  key: 1,
2228
2205
  class: "client-router"
2229
2206
  }, {
2230
2207
  default: b(() => [
2231
- p("div", hs, [
2232
- u(re, { width: "300px" }, {
2208
+ u("div", rs, [
2209
+ d(ie, { width: "300px" }, {
2233
2210
  default: b(() => [
2234
- u(gt, { mode: "vertical" })
2211
+ d(_t, { mode: "vertical" })
2235
2212
  ]),
2236
2213
  _: 1
2237
2214
  })
2238
2215
  ]),
2239
- p("div", us, [
2240
- u(ye)
2216
+ u("div", cs, [
2217
+ d(ge)
2241
2218
  ])
2242
2219
  ]),
2243
2220
  _: 1
@@ -2248,11 +2225,11 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2248
2225
  ]),
2249
2226
  _: 3
2250
2227
  })), [
2251
- [Ae, c(M)]
2228
+ [Se, c(x)]
2252
2229
  ]);
2253
2230
  };
2254
2231
  }
2255
- }), ps = /* @__PURE__ */ Ve(ds, [["__scopeId", "data-v-43eddef1"]]), ms = { class: "system-wrap" }, fs = {
2232
+ }), us = /* @__PURE__ */ Ue(hs, [["__scopeId", "data-v-1627a8f8"]]), ds = { class: "system-wrap" }, ps = {
2256
2233
  __name: "index",
2257
2234
  props: {
2258
2235
  windowConfig: {
@@ -2272,67 +2249,67 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2272
2249
  jsonContents: Array
2273
2250
  },
2274
2251
  setup(a) {
2275
- const e = bt(je), t = Lt(je), o = wt();
2252
+ const e = wt(Be), t = Lt(Be), o = yt();
2276
2253
  T(!1);
2277
- const l = T(!0), s = a, n = uo(() => {
2278
- switch (s == null ? void 0 : s.platform) {
2254
+ const l = T(!0), n = a, s = uo(() => {
2255
+ switch (n == null ? void 0 : n.platform) {
2279
2256
  case "browser":
2280
2257
  return Uo;
2281
2258
  case "client":
2282
2259
  return No;
2283
2260
  }
2284
2261
  }), i = (r) => {
2285
- const k = document.documentElement;
2286
- r == null || r.forEach((z) => {
2287
- k.style.setProperty(z.name, z.value);
2262
+ const M = document.documentElement;
2263
+ r == null || r.forEach(($) => {
2264
+ M.style.setProperty($.name, $.value);
2288
2265
  });
2289
2266
  };
2290
- return De(() => s.platform, (r, k) => {
2291
- r && i(n.value);
2292
- }, { immediate: !0 }), De(
2293
- () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
2267
+ return Ee(() => n.platform, (r, M) => {
2268
+ r && i(s.value);
2269
+ }, { immediate: !0 }), Ee(
2270
+ () => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
2294
2271
  async () => {
2295
- var z, se, te, ne;
2296
- if (((z = s == null ? void 0 : s.jsonContents) == null ? void 0 : z.length) > 0) {
2297
- e.setOriginalData(s == null ? void 0 : s.jsonContents);
2272
+ var $, ae, B, J;
2273
+ if ((($ = n == null ? void 0 : n.jsonContents) == null ? void 0 : $.length) > 0) {
2274
+ e.setOriginalData(n == null ? void 0 : n.jsonContents);
2298
2275
  return;
2299
2276
  }
2300
- if (!(s != null && s.content) || ((se = s == null ? void 0 : s.content) == null ? void 0 : se.length) === 0) return;
2277
+ if (!(n != null && n.content) || ((ae = n == null ? void 0 : n.content) == null ? void 0 : ae.length) === 0) return;
2301
2278
  l.value = !0, o.setImportLoading(!0);
2302
- let r = [], k = [];
2303
- t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (ne = (te = s == null ? void 0 : s.content) == null ? void 0 : te.filter((W) => W !== "")) == null || ne.forEach((W) => {
2304
- jo(W) ? k.push(Oo(W)) : It(W) ? k.push(It(W)) : Vt(W) ? k.push(Vt(W)) : k.push(mo(W));
2305
- }), r = k == null ? void 0 : k[0], await fo(r), await so(), e.setOriginalData(r), o.setImportLoading(!1);
2279
+ let r = [], M = [];
2280
+ t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (J = (B = n == null ? void 0 : n.content) == null ? void 0 : B.filter((Z) => Z !== "")) == null || J.forEach((Z) => {
2281
+ jo(Z) ? M.push(Oo(Z)) : It(Z) ? M.push(It(Z)) : Vt(Z) ? M.push(Vt(Z)) : M.push(mo(Z));
2282
+ }), r = M == null ? void 0 : M[0], await fo(r), await so(), e.setOriginalData(r), o.setImportLoading(!1);
2306
2283
  },
2307
2284
  { deep: !0, immediate: !0 }
2308
- ), (r, k) => (w(), V("div", ms, [
2309
- a.platform === "browser" ? (w(), J(qa, {
2285
+ ), (r, M) => (v(), W("div", ds, [
2286
+ a.platform === "browser" ? (v(), ee(Xa, {
2310
2287
  key: 0,
2311
2288
  showButton: a.showButton
2312
2289
  }, {
2313
2290
  default: b(() => [
2314
- nt(r.$slots, "default", {}, void 0, !0)
2291
+ st(r.$slots, "default", {}, void 0, !0)
2315
2292
  ]),
2316
2293
  _: 3
2317
- }, 8, ["showButton"])) : (w(), J(ps, {
2294
+ }, 8, ["showButton"])) : (v(), ee(us, {
2318
2295
  key: 1,
2319
2296
  windowConfig: a.windowConfig,
2320
2297
  showButton: a.showButton
2321
2298
  }, {
2322
2299
  default: b(() => [
2323
- nt(r.$slots, "default", {}, void 0, !0)
2300
+ st(r.$slots, "default", {}, void 0, !0)
2324
2301
  ]),
2325
2302
  _: 3
2326
2303
  }, 8, ["windowConfig", "showButton"]))
2327
2304
  ]));
2328
2305
  }
2329
- }, _s = /* @__PURE__ */ Ve(fs, [["__scopeId", "data-v-63e718b2"]]), gs = { class: "add-model-content" }, ys = {
2306
+ }, ms = /* @__PURE__ */ Ue(ps, [["__scopeId", "data-v-63e718b2"]]), fs = { class: "add-model-content" }, _s = {
2330
2307
  key: 0,
2331
2308
  class: "model-operate"
2332
- }, ws = { class: "model-select" }, bs = { class: "model-fill" }, vs = {
2309
+ }, gs = { class: "model-select" }, ys = { class: "model-fill" }, ws = {
2333
2310
  key: 1,
2334
2311
  class: "model-view"
2335
- }, Cs = {
2312
+ }, bs = {
2336
2313
  __name: "index",
2337
2314
  props: {
2338
2315
  mode: {
@@ -2358,136 +2335,136 @@ const lo = /* @__PURE__ */ Ve(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2358
2335
  },
2359
2336
  emits: ["change", "contentChange"],
2360
2337
  setup(a, { emit: e }) {
2361
- const t = a, o = e, l = T([]), s = T(0), n = T([]), i = T([]), r = T(0), k = bt(je), z = wt(je), { itemData: se, originalData: te } = Le(k), { activeMenuPath: ne, platform: W } = Le(z), N = T(null), h = T(0), v = T([]);
2338
+ const t = a, o = e, l = T([]), n = T(0), s = T([]), i = T([]), r = T(0), M = wt(Be), $ = yt(Be), { itemData: ae, originalData: B } = Ae(M), { activeMenuPath: J, platform: Z } = Ae($), z = T(null), h = T(0), P = T([]);
2362
2339
  T("");
2363
- const d = T(0);
2364
- De(
2340
+ const k = T(0);
2341
+ Ee(
2365
2342
  () => t == null ? void 0 : t.pathContent,
2366
2343
  () => {
2367
- (t == null ? void 0 : t.pathContent) !== "" && k.setSystemPath(t == null ? void 0 : t.pathContent);
2344
+ (t == null ? void 0 : t.pathContent) !== "" && M.setSystemPath(t == null ? void 0 : t.pathContent);
2368
2345
  },
2369
2346
  {
2370
2347
  deep: !0,
2371
2348
  immediate: !0
2372
2349
  }
2373
2350
  );
2374
- const S = (P) => {
2375
- o("contentChange", P);
2376
- }, _ = (P) => {
2377
- var Y;
2378
- const U = (Y = ot(P == null ? void 0 : P.wholeValue)) == null ? void 0 : Y.map((H) => {
2379
- var ge;
2380
- return (H == null ? void 0 : H.comp) === "Form" && (H.compData = (ge = H.compData) == null ? void 0 : ge.map((pe) => ((pe == null ? void 0 : pe.key) === "formContent" && (pe.contents = zo(pe == null ? void 0 : pe.contents)), pe))), H;
2351
+ const A = (g) => {
2352
+ o("contentChange", g);
2353
+ }, _ = (g) => {
2354
+ var N;
2355
+ const m = (N = ot(g == null ? void 0 : g.wholeValue)) == null ? void 0 : N.map((I) => {
2356
+ var fe;
2357
+ return (I == null ? void 0 : I.comp) === "Form" && (I.compData = (fe = I.compData) == null ? void 0 : fe.map((_e) => ((_e == null ? void 0 : _e.key) === "formContent" && (_e.contents = zo(_e == null ? void 0 : _e.contents)), _e))), I;
2381
2358
  });
2382
2359
  o("change", {
2383
- originalContents: te.value,
2384
- currentContents: P == null ? void 0 : P.wholeValue,
2385
- editContent: P == null ? void 0 : P.editValue,
2386
- arrayToContents: U
2360
+ originalContents: B.value,
2361
+ currentContents: g == null ? void 0 : g.wholeValue,
2362
+ editContent: g == null ? void 0 : g.editValue,
2363
+ arrayToContents: m
2387
2364
  });
2388
2365
  };
2389
- De(
2390
- () => n.value,
2366
+ Ee(
2367
+ () => s.value,
2391
2368
  () => {
2392
- d.value === n.value.length && n.value.length !== 0 && (l.value = n.value);
2369
+ k.value === s.value.length && s.value.length !== 0 && (l.value = s.value);
2393
2370
  },
2394
2371
  { deep: !0, immediate: !0 }
2395
2372
  );
2396
- const g = () => {
2397
- console.log(232, N.value), N.value !== null && N.value.click();
2398
- }, M = async (P) => {
2399
- const U = P.target.files;
2400
- if (!U) return;
2401
- new FileReader(), l.value = [], n.value = [], d.value = U.length;
2402
- const Y = Array.from(U).map(async (H) => await new Promise((ge) => {
2403
- const pe = new FileReader();
2404
- pe.onload = (Ce) => {
2373
+ const w = () => {
2374
+ console.log(232, z.value), z.value !== null && z.value.click();
2375
+ }, x = async (g) => {
2376
+ const m = g.target.files;
2377
+ if (!m) return;
2378
+ new FileReader(), l.value = [], s.value = [], k.value = m.length;
2379
+ const N = Array.from(m).map(async (I) => await new Promise((fe) => {
2380
+ const _e = new FileReader();
2381
+ _e.onload = (He) => {
2405
2382
  try {
2406
- n.value.push(Ce.target.result), h.value++;
2407
- } catch (D) {
2408
- console.error("解析失败:", D);
2383
+ s.value.push(He.target.result), h.value++;
2384
+ } catch ($e) {
2385
+ console.error("解析失败:", $e);
2409
2386
  return;
2410
2387
  }
2411
- }, pe.onerror = () => ge(`读取 ${H.name} 失败`), pe.readAsText(H), P.target.value = "", N.value = null, s.value++;
2388
+ }, _e.onerror = () => fe(`读取 ${I.name} 失败`), _e.readAsText(I), g.target.value = "", z.value = null, n.value++;
2412
2389
  }));
2413
- await Promise.all(Y);
2390
+ await Promise.all(N);
2414
2391
  };
2415
- return De(
2392
+ return Ee(
2416
2393
  () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
2417
2394
  async () => {
2418
2395
  await so(), l.value = t.content, i.value = t == null ? void 0 : t.jsonContents;
2419
2396
  },
2420
2397
  { deep: !0, immediate: !0 }
2421
- ), De(
2398
+ ), Ee(
2422
2399
  () => h.value,
2423
2400
  () => {
2424
- var P;
2425
- ((P = v.value) == null ? void 0 : P.length) !== 0 && (k.setOriginalData(v.value), k.setItemData(v.value));
2401
+ var g;
2402
+ ((g = P.value) == null ? void 0 : g.length) !== 0 && (M.setOriginalData(P.value), M.setItemData(P.value));
2426
2403
  },
2427
2404
  { deep: !0, immediate: !0 }
2428
- ), (P, U) => {
2429
- const Y = ee("svg-icon"), H = ee("el-button");
2430
- return w(), V("div", gs, [
2431
- (t == null ? void 0 : t.mode) === "edit" ? (w(), V("div", ys, [
2432
- p("div", ws, [
2433
- u(Rt)
2405
+ ), (g, m) => {
2406
+ const N = Q("svg-icon"), I = Q("el-button");
2407
+ return v(), W("div", fs, [
2408
+ (t == null ? void 0 : t.mode) === "edit" ? (v(), W("div", _s, [
2409
+ u("div", gs, [
2410
+ d(Rt)
2434
2411
  ]),
2435
- (w(), V("div", {
2412
+ (v(), W("div", {
2436
2413
  class: "model-show",
2437
2414
  key: r.value
2438
2415
  }, [
2439
- u(At)
2416
+ d(At)
2440
2417
  ])),
2441
- p("div", bs, [
2442
- u(Bt)
2418
+ u("div", ys, [
2419
+ d(Bt)
2443
2420
  ])
2444
- ])) : ue("", !0),
2445
- (t == null ? void 0 : t.mode) === "view" ? (w(), V("div", vs, [
2446
- (w(), J(_s, {
2421
+ ])) : me("", !0),
2422
+ (t == null ? void 0 : t.mode) === "view" ? (v(), W("div", ws, [
2423
+ (v(), ee(ms, {
2447
2424
  showButton: a.showButton,
2448
- platform: c(W),
2425
+ platform: c(Z),
2449
2426
  content: l.value,
2450
2427
  onChange: _,
2451
2428
  jsonContents: i.value,
2452
- onContentChange: S,
2429
+ onContentChange: A,
2453
2430
  key: r.value
2454
2431
  }, {
2455
2432
  default: b(() => {
2456
- var ge;
2433
+ var fe;
2457
2434
  return [
2458
- ((ge = t == null ? void 0 : t.jsonContents) == null ? void 0 : ge.length) === 0 && (t != null && t.showButton) ? (w(), J(H, {
2435
+ ((fe = t == null ? void 0 : t.jsonContents) == null ? void 0 : fe.length) === 0 && (t != null && t.showButton) ? (v(), ee(I, {
2459
2436
  key: 0,
2460
2437
  id: "transparentBgButton",
2461
- onClick: g
2438
+ onClick: w
2462
2439
  }, {
2463
2440
  icon: b(() => [
2464
- u(Y, { name: "import" })
2441
+ d(N, { name: "import" })
2465
2442
  ]),
2466
2443
  default: b(() => [
2467
- (w(), V("input", {
2444
+ (v(), W("input", {
2468
2445
  type: "file",
2469
- key: s.value,
2446
+ key: n.value,
2470
2447
  ref_key: "fileInput",
2471
- ref: N,
2448
+ ref: z,
2472
2449
  accept: ".txt, .inm",
2473
- onChange: M,
2450
+ onChange: x,
2474
2451
  style: { display: "none" },
2475
2452
  multiple: ""
2476
2453
  }, null, 32)),
2477
- U[0] || (U[0] = Ee(" 导入模型 "))
2454
+ m[0] || (m[0] = Te(" 导入模型 "))
2478
2455
  ]),
2479
2456
  _: 1,
2480
2457
  __: [0]
2481
- })) : ue("", !0)
2458
+ })) : me("", !0)
2482
2459
  ];
2483
2460
  }),
2484
2461
  _: 1
2485
2462
  }, 8, ["showButton", "platform", "content", "jsonContents"]))
2486
- ])) : ue("", !0)
2463
+ ])) : me("", !0)
2487
2464
  ]);
2488
2465
  };
2489
2466
  }
2490
- }, Us = /* @__PURE__ */ Ve(Cs, [["__scopeId", "data-v-23015cb0"]]);
2467
+ }, zs = /* @__PURE__ */ Ue(bs, [["__scopeId", "data-v-23015cb0"]]);
2491
2468
  export {
2492
- Us as default
2469
+ zs as default
2493
2470
  };