ss-component-new 1.1.365 → 1.1.366

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 (81) hide show
  1. package/dist/{array-BR1CuqH1.cjs → array-B4OYH6uL.cjs} +1 -1
  2. package/dist/{array-BMOcJLlQ.js → array-EGWOD_Yi.js} +2 -2
  3. package/dist/{cloneDeep-i93zuvZy.cjs → cloneDeep-BPCav0OY.cjs} +1 -1
  4. package/dist/{cloneDeep-BIVk1Avp.js → cloneDeep-D3jWUY57.js} +1 -1
  5. package/dist/{index-CosRm822.cjs → index-1LyKu48J.cjs} +1 -1
  6. package/dist/{index-B6cdf15e.js → index-1mb-R5LL.js} +8 -8
  7. package/dist/{index-D-UqqKSL.cjs → index-9Kq2L6hA.cjs} +1 -1
  8. package/dist/{index-BkVzKWBf.cjs → index-B1KIGMDS.cjs} +1 -1
  9. package/dist/{index-HbUM4Vgp.js → index-B6D0Zmro.js} +4 -4
  10. package/dist/{index-B5sWzFXy.js → index-B7rnt0a7.js} +3 -3
  11. package/dist/{index-D-6gB2O2.cjs → index-B8PQq8Z4.cjs} +1 -1
  12. package/dist/{index-D46GYCSK.cjs → index-BBvGttI3.cjs} +1 -1
  13. package/dist/{index-B5LL1Rbm.cjs → index-BK34ZIUl.cjs} +1 -1
  14. package/dist/{index-DVSMYX5e.js → index-BPLD6fuH.js} +8 -8
  15. package/dist/{index-CXr-J9N3.js → index-BQQE4RO9.js} +4 -4
  16. package/dist/{index-DVe1W-nQ.js → index-BSd6lCCf.js} +3 -3
  17. package/dist/{index-7ctK7qh8.js → index-BWoxDyyu.js} +1 -1
  18. package/dist/{index-DDyeBnmq.cjs → index-BXO1mk6t.cjs} +1 -1
  19. package/dist/{index-C8VFIq2w.js → index-Bo8sDOPU.js} +4 -4
  20. package/dist/{index-Bw-50_9N.cjs → index-BovJtyyV.cjs} +1 -1
  21. package/dist/{index-DpvXSrAU.js → index-Bxt_jC-e.js} +3 -3
  22. package/dist/{index-By9h_JX7.cjs → index-C67VR66n.cjs} +1 -1
  23. package/dist/{index-BR4RIzFI.cjs → index-CAfIBffc.cjs} +1 -1
  24. package/dist/{index-BuFwRc5V.cjs → index-CEVLI-tF.cjs} +1 -1
  25. package/dist/{index-BVt5BXIs.js → index-CMza6E0Y.js} +6 -6
  26. package/dist/{index-D_mKafea.cjs → index-CN73stto.cjs} +1 -1
  27. package/dist/{index-DvJSn5c_.js → index-CTASWvkf.js} +9 -9
  28. package/dist/{index-CXroj-hH.js → index-C_zK0qeZ.js} +3 -3
  29. package/dist/{index-D2WirvcT.js → index-Cal7dRFc.js} +1 -1
  30. package/dist/{index-CGav2orm.cjs → index-Cd0GOTJL.cjs} +1 -1
  31. package/dist/{index-Liysmasz.cjs → index-CdrtM6Jl.cjs} +1 -1
  32. package/dist/{index-Bxdkas6q.cjs → index-Cj9Wq_7v.cjs} +1 -1
  33. package/dist/{index-DCi5rJxX.js → index-CkgqQw5c.js} +4 -4
  34. package/dist/{index-Cf4LaEvb.js → index-Cks4xBFc.js} +7 -7
  35. package/dist/{index-D1xMSVGc.cjs → index-Cnigg-Vb.cjs} +1 -1
  36. package/dist/{index-7eQ2JKtq.cjs → index-CylVtJFa.cjs} +1 -1
  37. package/dist/{index-DeIxnrMK.js → index-D0Xtu3c5.js} +4 -4
  38. package/dist/{index-BNSImW55.js → index-DPoMcIHZ.js} +7 -7
  39. package/dist/{index-CFr2asVq.js → index-DQXp-tQk.js} +1 -1
  40. package/dist/{index-e6bojFY6.js → index-DQewAWSX.js} +5 -5
  41. package/dist/{index-DQS588Nv.js → index-DXu2C7E2.js} +1 -1
  42. package/dist/{index-d_t0t8ds.cjs → index-D_80-VnL.cjs} +1 -1
  43. package/dist/{index-CLaegHPh.js → index-DgdlwjkF.js} +5 -5
  44. package/dist/{index-DfEwhscQ.cjs → index-Dj7KpYhE.cjs} +1 -1
  45. package/dist/{index-DgZJe2BL.js → index-DjI83upr.js} +6 -6
  46. package/dist/index-Dp7ftR-s.cjs +1 -0
  47. package/dist/{index-C-zpQcU-.js → index-Dq0BnanX.js} +6 -6
  48. package/dist/{index-Do2_N1IZ.js → index-DsSqH7Ku.js} +5 -5
  49. package/dist/{index-DGrvsPOn.js → index-DxeIJqcl.js} +1 -1
  50. package/dist/{index-CIXaYro4.js → index-Dy0Bjmrr.js} +887 -886
  51. package/dist/{index-ZErXROGI.cjs → index-EgiRVqNe.cjs} +1 -1
  52. package/dist/{index-Drg-hTZ2.cjs → index-FipljzbJ.cjs} +1 -1
  53. package/dist/{index-DkG-ziRw.cjs → index-FnUvbwkl.cjs} +1 -1
  54. package/dist/{index-DgM9f4pH.js → index-KKYTpn-0.js} +4 -4
  55. package/dist/{index-CHqoZp_W.cjs → index-Xd0gl2O5.cjs} +1 -1
  56. package/dist/{index-DLy3AyLn.cjs → index-h3vgrWAC.cjs} +1 -1
  57. package/dist/{index-DeAeTFEl.cjs → index-qWPIXtmB.cjs} +1 -1
  58. package/dist/{index-5H8g05lu.cjs → index-r4-byc3l.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-DS1GFsZZ.js → index.vue_vue_type_script_setup_true_lang-CE6ciJHv.js} +1 -1
  60. package/dist/{index.vue_vue_type_script_setup_true_lang-CurEafxj.cjs → index.vue_vue_type_script_setup_true_lang-CEx7p4se.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_14b5611b_lang-CXxX24vv.js → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-BfO2BZm9.js} +13 -13
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_14b5611b_lang-D0J4hoHm.cjs → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-_1kiYpwh.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-QAtWUHCn.cjs → index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-BX_0yNEO.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-B5SaBlFy.js → index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-CpZkvXyX.js} +8 -8
  65. package/dist/{login-Y1fP6Ekv.js → login-DKf6sQrA.js} +2 -2
  66. package/dist/{login-CHBoEXBJ.cjs → login-cDG_pssN.cjs} +1 -1
  67. package/dist/{main-C84t8-AX.cjs → main-BY1dJ_uK.cjs} +1 -1
  68. package/dist/{main-BMNN7nF3.js → main-DnQRFkkz.js} +7 -7
  69. package/dist/{menu-CVbEPCMJ.cjs → menu-Bi2msF1Z.cjs} +1 -1
  70. package/dist/{menu-CvfQY_jP.js → menu-eau-OVSc.js} +1 -1
  71. package/dist/obj/model.mtl +42 -0
  72. package/dist/obj/model.obj +26110 -0
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +7 -7
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/package.json +1 -1
  79. package/public/obj/model.mtl +42 -0
  80. package/public/obj/model.obj +26110 -0
  81. package/dist/index-C6kn9X1y.cjs +0 -1
@@ -1,20 +1,20 @@
1
- import { defineComponent as yt, resolveComponent as Q, createElementBlock as K, openBlock as v, createVNode as u, ref as T, watch as Se, onMounted as Kt, nextTick as ut, onBeforeUnmount as co, createBlock as G, createCommentVNode as de, createElementVNode as d, unref as c, normalizeClass as dt, withDirectives as et, isRef as pt, vModelRadio as mt, toDisplayString as Ne, withCtx as b, Fragment as St, renderList as Dt, normalizeStyle as ho, resolveDirective as Zt, createTextVNode as Me, renderSlot as nt, resolveDynamicComponent as Xt, computed as uo } from "vue";
2
- import { m as Rt, a as At, b as Bt } from "./index-DVSMYX5e.js";
3
- import gt from "./index-D2WirvcT.js";
4
- import { _ as po, o as Wt, c as qt, a as Gt, b as Jt, s as Be, 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_14b5611b_lang-CXxX24vv.js";
5
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { s as Fe, u as wt, b as _e, g as _o, E as Pt } from "./menu-CvfQY_jP.js";
7
- import { u as ao } from "./login-Y1fP6Ekv.js";
8
- import { S as ze } 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 Oe, 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-BVt5BXIs.js";
10
- import { p as Le } from "./index-CFr2asVq.js";
11
- import { _ as st } from "./index-HbUM4Vgp.js";
12
- import { s as no } from "./index-DvJSn5c_.js";
13
- import { c as ot } from "./cloneDeep-BIVk1Avp.js";
14
- import { u as Lo } from "./index-Cf4LaEvb.js";
15
- import { d as $t } from "./index-7ctK7qh8.js";
16
- import { i as jo, e as Oo, b as It, c as Vt, a as zo } from "./array-BMOcJLlQ.js";
17
- import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-B5SaBlFy.js";
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-BPLD6fuH.js";
3
+ import gt from "./index-Cal7dRFc.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-BfO2BZm9.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-eau-OVSc.js";
7
+ import { u as ao } from "./login-DKf6sQrA.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-CMza6E0Y.js";
10
+ import { p as je } from "./index-DQXp-tQk.js";
11
+ import { _ as st } from "./index-B6D0Zmro.js";
12
+ import { s as no } from "./index-CTASWvkf.js";
13
+ import { c as ot } from "./cloneDeep-D3jWUY57.js";
14
+ import { u as Lo } from "./index-Cks4xBFc.js";
15
+ import { d as $t } from "./index-BWoxDyyu.js";
16
+ import { i as jo, e as Oo, b as It, c as Vt, a as zo } from "./array-EGWOD_Yi.js";
17
+ import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-CpZkvXyX.js";
18
18
  const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
19
19
  __name: "index",
20
20
  props: {
@@ -26,75 +26,75 @@ const $o = { class: "tree-container" }, Io = /* @__PURE__ */ yt({
26
26
  },
27
27
  emits: ["nodeClick"],
28
28
  setup(a, { emit: e }) {
29
- const t = e, o = a, r = {
29
+ const t = e, o = a, l = {
30
30
  children: "children",
31
31
  label: "label"
32
- }, s = (i) => {
33
- t("nodeClick", i);
32
+ }, s = (n) => {
33
+ t("nodeClick", n);
34
34
  };
35
- return (i, n) => {
36
- const l = Q("el-tree");
37
- return v(), K("div", $o, [
38
- u(l, {
35
+ return (n, i) => {
36
+ const r = ee("el-tree");
37
+ return w(), V("div", $o, [
38
+ u(r, {
39
39
  data: o == null ? void 0 : o.treeData,
40
- props: r,
40
+ props: l,
41
41
  "default-expand-all": a.expand,
42
42
  onNodeClick: s
43
43
  }, null, 8, ["data", "default-expand-all"])
44
44
  ]);
45
45
  };
46
46
  }
47
- }), Vo = /* @__PURE__ */ Ie(Io, [["__scopeId", "data-v-b4bd4658"]]), Yo = { class: "client-robot-side" }, Ho = /* @__PURE__ */ yt({
47
+ }), Vo = /* @__PURE__ */ Ve(Io, [["__scopeId", "data-v-b4bd4658"]]), Yo = { class: "client-robot-side" }, Ho = /* @__PURE__ */ yt({
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([]), r = (i) => {
54
- let n = [];
55
- return Array.isArray(i) && (i == null ? void 0 : i.length) > 0 && (t.value++, i.forEach((l) => {
56
- !(l != null && l.isMesh) && ((l == null ? void 0 : l.type) === "URDFJoint" || (l == null ? void 0 : l.type) === "URDFLink") && n.push({
57
- name: l == null ? void 0 : l.name,
58
- label: l == null ? void 0 : l.name,
53
+ const e = a, t = T(0), o = T([]), l = (n) => {
54
+ let i = [];
55
+ return Array.isArray(n) && (n == null ? void 0 : n.length) > 0 && (t.value++, n.forEach((r) => {
56
+ !(r != null && r.isMesh) && ((r == null ? void 0 : r.type) === "URDFJoint" || (r == null ? void 0 : r.type) === "URDFLink") && i.push({
57
+ name: r == null ? void 0 : r.name,
58
+ label: r == null ? void 0 : r.name,
59
59
  show: !0,
60
60
  level: t.value,
61
61
  isPenultimate: !1,
62
- type: l == null ? void 0 : l.type,
63
- id: l == null ? void 0 : l.id,
64
- limit: (l == null ? void 0 : l.limit) ?? "",
65
- children: r(l == null ? void 0 : l.children),
66
- path: l == null ? void 0 : l.name
62
+ type: r == null ? void 0 : r.type,
63
+ id: r == null ? void 0 : r.id,
64
+ limit: (r == null ? void 0 : r.limit) ?? "",
65
+ children: l(r == null ? void 0 : r.children),
66
+ path: r == null ? void 0 : r.name
67
67
  });
68
- })), n;
69
- }, s = (i) => {
70
- let n = [];
71
- return t.value++, n.push({
72
- name: i == null ? void 0 : i.name,
73
- label: i == null ? void 0 : i.name,
68
+ })), i;
69
+ }, s = (n) => {
70
+ let i = [];
71
+ return t.value++, i.push({
72
+ name: n == null ? void 0 : n.name,
73
+ label: n == null ? void 0 : n.name,
74
74
  show: !0,
75
75
  level: t.value,
76
76
  isPenultimate: !1,
77
- type: i == null ? void 0 : i.type,
78
- id: i == null ? void 0 : i.id,
79
- limit: (i == null ? void 0 : i.limit) ?? "",
80
- children: r(i == null ? void 0 : i.children),
81
- path: i == null ? void 0 : i.name
82
- }), n;
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
82
+ }), i;
83
83
  };
84
- return Se(
84
+ return De(
85
85
  () => e == null ? void 0 : e.model,
86
86
  () => {
87
87
  e != null && e.model && (o.value = s(e == null ? void 0 : e.model));
88
88
  },
89
89
  { deep: !0, immediate: !0 }
90
- ), (i, n) => (v(), K("div", Yo, [
90
+ ), (n, i) => (w(), V("div", Yo, [
91
91
  u(Vo, {
92
92
  treeData: o.value,
93
93
  expand: !0
94
94
  }, null, 8, ["treeData"])
95
95
  ]));
96
96
  }
97
- }), Ko = /* @__PURE__ */ Ie(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(), xe = 2 * Math.PI, H = {
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 = {
98
98
  NONE: -1,
99
99
  ROTATE: 0,
100
100
  DOLLY: 1,
@@ -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 = H.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 Oe(), this._rotateEnd = new Oe(), this._rotateDelta = new Oe(), this._panStart = new Oe(), this._panEnd = new Oe(), this._panDelta = new Oe(), this._dollyStart = new Oe(), this._dollyEnd = new Oe(), this._dollyDelta = new Oe(), this._dollyDirection = new L(), this._mouse = new Oe(), 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 = 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();
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 = H.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 = Z.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 === H.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
- let o = this.minAzimuthAngle, r = this.maxAzimuthAngle;
182
- isFinite(o) && isFinite(r) && (o < -Math.PI ? o += xe : o > Math.PI && (o -= xe), r < -Math.PI ? r += xe : r > Math.PI && (r -= xe), o <= r ? this._spherical.theta = Math.max(o, Math.min(r, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (o + r) / 2 ? Math.max(o, this._spherical.theta) : Math.min(r, 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);
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);
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
183
  let s = !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 i = this._spherical.radius;
188
- this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), s = i != this._spherical.radius;
187
+ const n = this._spherical.radius;
188
+ this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), s = n != this._spherical.radius;
189
189
  }
190
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 i = null;
191
+ let n = null;
192
192
  if (this.object.isPerspectiveCamera) {
193
- const n = fe.length();
194
- i = this._clampDistance(n * this._scale);
195
- const l = n - i;
196
- this.object.position.addScaledVector(this._dollyDirection, l), this.object.updateMatrixWorld(), s = !!l;
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;
197
197
  } else if (this.object.isOrthographicCamera) {
198
- const n = new L(this._mouse.x, this._mouse.y, 0);
199
- n.unproject(this.object);
200
- const l = this.object.zoom;
201
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), s = l !== this.object.zoom;
202
- const P = new L(this._mouse.x, this._mouse.y, 0);
203
- P.unproject(this.object), this.object.position.sub(P).add(n), this.object.updateMatrixWorld(), i = fe.length();
198
+ const i = new L(this._mouse.x, this._mouse.y, 0);
199
+ i.unproject(this.object);
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();
204
204
  } else
205
205
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
206
- i !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(i).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
+ 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))));
207
207
  } else if (this.object.isOrthographicCamera) {
208
- const i = this.object.zoom;
209
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), i !== this.object.zoom && (this.object.updateProjectionMatrix(), s = !0);
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);
210
210
  }
211
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;
212
212
  }
213
213
  _getAutoRotationAngle(e) {
214
- return e !== null ? xe / 60 * this.autoRotateSpeed * e : xe / 60 / 60 * this.autoRotateSpeed;
214
+ return e !== null ? Se / 60 * this.autoRotateSpeed * e : Se / 60 / 60 * this.autoRotateSpeed;
215
215
  }
216
216
  _getZoomScale(e) {
217
217
  const t = Math.abs(e * 0.01);
@@ -233,8 +233,8 @@ class Xo extends go {
233
233
  _pan(e, t) {
234
234
  const o = this.domElement;
235
235
  if (this.object.isPerspectiveCamera) {
236
- const r = this.object.position;
237
- fe.copy(r).sub(this.target);
236
+ const l = this.object.position;
237
+ fe.copy(l).sub(this.target);
238
238
  let s = fe.length();
239
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);
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);
@@ -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(), r = e - o.left, s = t - o.top, i = o.width, n = o.height;
253
- this._mouse.x = r / i * 2 - 1, this._mouse.y = -(s / n) * 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, 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();
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(xe * this._rotateDelta.x / t.clientHeight), this._rotateUp(xe * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
273
+ this._rotateLeft(Se * this._rotateDelta.x / t.clientHeight), this._rotateUp(Se * 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(xe * 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(Se * 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(-xe * 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(-Se * 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(xe * 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(Se * 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(-xe * 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(-Se * 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());
@@ -303,20 +303,20 @@ class Xo extends go {
303
303
  if (this._pointers.length === 1)
304
304
  this._rotateStart.set(e.pageX, e.pageY);
305
305
  else {
306
- const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), r = 0.5 * (e.pageY + t.y);
307
- this._rotateStart.set(o, r);
306
+ const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), l = 0.5 * (e.pageY + t.y);
307
+ this._rotateStart.set(o, l);
308
308
  }
309
309
  }
310
310
  _handleTouchStartPan(e) {
311
311
  if (this._pointers.length === 1)
312
312
  this._panStart.set(e.pageX, e.pageY);
313
313
  else {
314
- const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), r = 0.5 * (e.pageY + t.y);
315
- this._panStart.set(o, r);
314
+ const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), l = 0.5 * (e.pageY + t.y);
315
+ this._panStart.set(o, l);
316
316
  }
317
317
  }
318
318
  _handleTouchStartDolly(e) {
319
- const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, r = e.pageY - t.y, s = Math.sqrt(o * o + r * r);
319
+ const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, s = Math.sqrt(o * o + l * l);
320
320
  this._dollyStart.set(0, s);
321
321
  }
322
322
  _handleTouchStartDollyPan(e) {
@@ -329,27 +329,27 @@ 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), r = 0.5 * (e.pageX + o.x), s = 0.5 * (e.pageY + o.y);
333
- this._rotateEnd.set(r, s);
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);
334
334
  }
335
335
  this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
336
336
  const t = this.domElement;
337
- this._rotateLeft(xe * this._rotateDelta.x / t.clientHeight), this._rotateUp(xe * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
337
+ this._rotateLeft(Se * this._rotateDelta.x / t.clientHeight), this._rotateUp(Se * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
338
338
  }
339
339
  _handleTouchMovePan(e) {
340
340
  if (this._pointers.length === 1)
341
341
  this._panEnd.set(e.pageX, e.pageY);
342
342
  else {
343
- const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), r = 0.5 * (e.pageY + t.y);
344
- this._panEnd.set(o, r);
343
+ const t = this._getSecondPointerPosition(e), o = 0.5 * (e.pageX + t.x), l = 0.5 * (e.pageY + t.y);
344
+ this._panEnd.set(o, l);
345
345
  }
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, r = e.pageY - t.y, s = Math.sqrt(o * o + r * r);
349
+ const t = this._getSecondPointerPosition(e), o = e.pageX - t.x, l = e.pageY - t.y, s = Math.sqrt(o * o + l * l);
350
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 i = (e.pageX + t.x) * 0.5, n = (e.pageY + t.y) * 0.5;
352
- this._updateZoomParameters(i, n);
351
+ const n = (e.pageX + t.x) * 0.5, i = (e.pageY + t.y) * 0.5;
352
+ this._updateZoomParameters(n, 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 Oe(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
379
+ t === void 0 && (t = new ze(), 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 = H.NONE;
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;
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 = H.DOLLY;
438
+ this._handleMouseDownDolly(a), this.state = Z.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 = H.PAN;
443
+ this._handleMouseDownPan(a), this.state = Z.PAN;
444
444
  } else {
445
445
  if (this.enableRotate === !1) return;
446
- this._handleMouseDownRotate(a), this.state = H.ROTATE;
446
+ this._handleMouseDownRotate(a), this.state = Z.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 = H.ROTATE;
452
+ this._handleMouseDownRotate(a), this.state = Z.ROTATE;
453
453
  } else {
454
454
  if (this.enablePan === !1) return;
455
- this._handleMouseDownPan(a), this.state = H.PAN;
455
+ this._handleMouseDownPan(a), this.state = Z.PAN;
456
456
  }
457
457
  break;
458
458
  default:
459
- this.state = H.NONE;
459
+ this.state = Z.NONE;
460
460
  }
461
- this.state !== H.NONE && this.dispatchEvent(jt);
461
+ this.state !== Z.NONE && this.dispatchEvent(jt);
462
462
  }
463
463
  function Qo(a) {
464
464
  switch (this.state) {
465
- case H.ROTATE:
465
+ case Z.ROTATE:
466
466
  if (this.enableRotate === !1) return;
467
467
  this._handleMouseMoveRotate(a);
468
468
  break;
469
- case H.DOLLY:
469
+ case Z.DOLLY:
470
470
  if (this.enableZoom === !1) return;
471
471
  this._handleMouseMoveDolly(a);
472
472
  break;
473
- case H.PAN:
473
+ case Z.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 !== H.NONE || (a.preventDefault(), this.dispatchEvent(jt), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(io));
480
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== Z.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 = H.TOUCH_ROTATE;
491
+ this._handleTouchStartRotate(a), this.state = Z.TOUCH_ROTATE;
492
492
  break;
493
493
  case tt.PAN:
494
494
  if (this.enablePan === !1) return;
495
- this._handleTouchStartPan(a), this.state = H.TOUCH_PAN;
495
+ this._handleTouchStartPan(a), this.state = Z.TOUCH_PAN;
496
496
  break;
497
497
  default:
498
- this.state = H.NONE;
498
+ this.state = Z.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 = H.TOUCH_DOLLY_PAN;
505
+ this._handleTouchStartDollyPan(a), this.state = Z.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 = H.TOUCH_DOLLY_ROTATE;
509
+ this._handleTouchStartDollyRotate(a), this.state = Z.TOUCH_DOLLY_ROTATE;
510
510
  break;
511
511
  default:
512
- this.state = H.NONE;
512
+ this.state = Z.NONE;
513
513
  }
514
514
  break;
515
515
  default:
516
- this.state = H.NONE;
516
+ this.state = Z.NONE;
517
517
  }
518
- this.state !== H.NONE && this.dispatchEvent(jt);
518
+ this.state !== Z.NONE && this.dispatchEvent(jt);
519
519
  }
520
520
  function aa(a) {
521
521
  switch (this._trackPointer(a), this.state) {
522
- case H.TOUCH_ROTATE:
522
+ case Z.TOUCH_ROTATE:
523
523
  if (this.enableRotate === !1) return;
524
524
  this._handleTouchMoveRotate(a), this.update();
525
525
  break;
526
- case H.TOUCH_PAN:
526
+ case Z.TOUCH_PAN:
527
527
  if (this.enablePan === !1) return;
528
528
  this._handleTouchMovePan(a), this.update();
529
529
  break;
530
- case H.TOUCH_DOLLY_PAN:
530
+ case Z.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 H.TOUCH_DOLLY_ROTATE:
534
+ case Z.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 = H.NONE;
539
+ this.state = Z.NONE;
540
540
  }
541
541
  }
542
542
  function sa(a) {
@@ -549,16 +549,16 @@ 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, r = null, s = null, i = null;
553
- const n = T([]), l = T(new L()), P = T(new L()), U = () => {
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 = () => {
554
554
  if (!a.value) return;
555
555
  e = new bo(), e.background = new vo(15790320);
556
- const g = a.value;
557
- t = new Co(75, g.clientWidth / g.clientHeight, 0.1, 1e4), o = new ko({
556
+ const _ = a.value;
557
+ t = new Co(75, _.clientWidth / _.clientHeight, 0.1, 1e4), o = new ko({
558
558
  antialias: !0,
559
559
  alpha: !0
560
- }), o.setSize(g.clientWidth, g.clientHeight), o.localClippingEnabled = !0, o.shadowMap.enabled = !0, o.shadowMap.type = Po, o.toneMapping = To, o.toneMappingExposure = 1, o.outputColorSpace = Mo, g.appendChild(o.domElement), r = new Xo(t, o.domElement), r.enableDamping = !0, r.dampingFactor = 0.05, s = new Eo(t, o, {
561
- container: g,
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, {
561
+ container: _,
562
562
  type: "cube",
563
563
  placement: "bottom-left",
564
564
  offset: {
@@ -568,25 +568,25 @@ function la(a) {
568
568
  background: {
569
569
  color: "#D1D1D1"
570
570
  }
571
- }), s.attachControls(r), te(), ne();
571
+ }), s.attachControls(l), se(), te();
572
+ }, se = () => {
573
+ const _ = new xo(4210752, 0.6);
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);
572
587
  }, te = () => {
573
- const g = new xo(4210752, 0.6);
574
- e.add(g);
575
- const y = new Tt(16777215, 2);
576
- y.position.set(10, 10, 8), y.castShadow = !0, y.shadow.mapSize.width = 2048, y.shadow.mapSize.height = 2048, y.shadow.camera.near = 0.5, y.shadow.camera.far = 50, e.add(y);
577
- const m = new Tt(16777215, 0.8);
578
- m.position.set(-8, -8, 6), e.add(m);
579
- const D = new Tt(16777215, 0.6);
580
- D.position.set(0, -15, 2), e.add(D);
581
- const V = new So(16777215, 4473924, 0.8);
582
- e.add(V);
583
- const j = new Nt(16777215, 1, 50);
584
- j.position.set(15, 15, 15), e.add(j);
585
- const ee = new Nt(16777215, 0.5, 50);
586
- ee.position.set(-15, -15, 15), e.add(ee);
587
- }, ne = () => {
588
- i = requestAnimationFrame(ne), r && r.update(), o && e && t && o.render(e, t), s && s.render();
589
- }, oe = (g) => {
588
+ n = requestAnimationFrame(te), l && l.update(), o && e && t && o.render(e, t), s && s.render();
589
+ }, ne = (_) => {
590
590
  [
591
591
  "map",
592
592
  "normalMap",
@@ -599,139 +599,139 @@ function la(a) {
599
599
  "lightMap",
600
600
  "aoMap",
601
601
  "displacementMap"
602
- ].forEach((m) => {
603
- g[m] && g[m].dispose && g[m].dispose();
604
- }), g.dispose && g.dispose();
605
- }, I = (g) => {
606
- g.traverse((y) => {
607
- y.geometry && y.geometry.dispose(), y.material && (Array.isArray(y.material) ? y.material.forEach((m) => {
608
- oe(m);
609
- }) : oe(y.material));
602
+ ].forEach((M) => {
603
+ _[M] && _[M].dispose && _[M].dispose();
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));
610
610
  });
611
611
  };
612
612
  return {
613
613
  // 响应式数据
614
- currentModels: n,
615
- initialCameraPosition: l,
616
- initialTargetPosition: P,
614
+ currentModels: i,
615
+ initialCameraPosition: r,
616
+ initialTargetPosition: k,
617
617
  // 方法
618
- initThreeJS: U,
618
+ initThreeJS: z,
619
619
  handleResize: () => {
620
620
  if (!a.value || !t || !o || !s) return;
621
- const g = a.value, y = g.clientWidth, m = g.clientHeight;
622
- t.aspect = y / m, t.updateProjectionMatrix(), o.setSize(y, m), s.update();
621
+ const _ = a.value, g = _.clientWidth, M = _.clientHeight;
622
+ t.aspect = g / M, t.updateProjectionMatrix(), o.setSize(g, M), s.update();
623
623
  },
624
624
  fitCameraToAllModels: () => {
625
- if (!t || !r || n.value.length === 0) return;
626
- const g = new Ft();
627
- n.value.forEach((ie) => {
628
- g.expandByObject(ie);
625
+ if (!t || !l || i.value.length === 0) return;
626
+ const _ = new Ft();
627
+ i.value.forEach((ge) => {
628
+ _.expandByObject(ge);
629
629
  });
630
- const y = g.getSize(new L()), m = g.getCenter(new L()), V = Math.max(y.x, y.y, y.z) * 0.8, j = new L(m.x + V, m.y + V, m.z + V), ee = m.clone();
631
- t.position.copy(j), t.lookAt(ee), r.target.copy(ee), r.update(), l.value.copy(j), P.value.copy(ee);
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);
632
632
  },
633
633
  getThreeJSObjects: () => ({
634
634
  scene: e,
635
635
  camera: t,
636
636
  renderer: o,
637
- controls: r,
637
+ controls: l,
638
638
  gizmo: s
639
639
  }),
640
640
  clearAllModels: () => {
641
641
  if (!e) return;
642
- n.value.forEach((y) => {
643
- e.remove(y), I(y);
642
+ i.value.forEach((g) => {
643
+ e.remove(g), W(g);
644
644
  });
645
- const g = [];
646
- e.children.forEach((y) => {
647
- !y.isLight && !y.isCamera && g.push(y);
648
- }), g.forEach((y) => {
649
- e.remove(y), I(y);
650
- }), n.value = [];
645
+ const _ = [];
646
+ e.children.forEach((g) => {
647
+ !g.isLight && !g.isCamera && _.push(g);
648
+ }), _.forEach((g) => {
649
+ e.remove(g), W(g);
650
+ }), i.value = [];
651
651
  },
652
652
  cleanup: () => {
653
- i && cancelAnimationFrame(i), o && o.dispose(), r && r.dispose(), s && s.dispose();
653
+ n && cancelAnimationFrame(n), o && o.dispose(), l && l.dispose(), s && s.dispose();
654
654
  }
655
655
  };
656
656
  }
657
657
  function ra(a, e) {
658
658
  const t = T(!1);
659
- let o = null, r = 12700, s = new L(), i = new L(), n = new L(), l = 0, P = null;
660
- const U = (h) => h < 0.5 ? 4 * h * h * h : 1 - Math.pow(-2 * h + 2, 3) / 2, te = (h) => {
661
- const k = new L(), p = l * 1.2, x = new L(n.x + p, n.y, n.z), g = new L(n.x, n.y + p, n.z), y = new L(n.x, n.y - p, n.z);
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);
662
662
  if (h <= 0.567) {
663
- const D = h / 0.567 * Math.PI * 2;
664
- k.x = n.x + Math.cos(D) * p, k.z = n.z + Math.sin(D) * p, k.y = n.y;
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;
665
665
  } else if (h <= 0.724) {
666
- const m = (h - 0.567) / 0.157, D = U(m);
667
- k.lerpVectors(x, g, D);
666
+ const M = (h - 0.567) / 0.157, P = z(M);
667
+ v.lerpVectors(S, _, P);
668
668
  } else if (h <= 0.881) {
669
- const m = (h - 0.724) / 0.157, V = U(m) * Math.PI;
670
- k.x = n.x + Math.sin(V) * p, k.y = n.y + Math.cos(V) * p, k.z = n.z;
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;
671
671
  } else {
672
- const m = (h - 0.881) / 0.119, D = U(m);
673
- k.lerpVectors(y, s, D);
672
+ const M = (h - 0.881) / 0.119, P = z(M);
673
+ v.lerpVectors(g, s, P);
674
674
  }
675
- return k;
676
- }, ne = () => {
677
- const { camera: h, controls: k } = a();
678
- if (!h || !k) return;
675
+ return v;
676
+ }, te = () => {
677
+ const { camera: h, controls: v } = a();
678
+ if (!h || !v) return;
679
679
  o || (o = Date.now());
680
- const p = Date.now() - o, x = Math.min(p / r, 1);
681
- if (x >= 1) {
682
- I();
680
+ const d = Date.now() - o, S = Math.min(d / l, 1);
681
+ if (S >= 1) {
682
+ W();
683
683
  return;
684
684
  }
685
- const g = te(x);
686
- h.position.copy(g), h.lookAt(n), k.target.copy(n), P = requestAnimationFrame(ne);
687
- }, oe = () => {
685
+ const _ = se(S);
686
+ h.position.copy(_), h.lookAt(i), v.target.copy(i), k = requestAnimationFrame(te);
687
+ }, ne = () => {
688
688
  if (e.value.length === 0) return;
689
- const { camera: h, controls: k } = a();
690
- if (!h || !k) return;
691
- s.copy(h.position), i.copy(k.target);
692
- const p = new Ft();
693
- e.value.forEach((j) => {
694
- p.expandByObject(j);
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);
695
695
  });
696
- const x = p.getSize(new L());
697
- n = p.getCenter(new L()), l = Math.max(x.x, x.y, x.z) * 1.2;
698
- const g = new L(n.x + l * 1.2, n.y, n.z);
699
- k.enabled = !1;
700
- const y = h.position.clone(), m = 1e3, D = Date.now(), V = () => {
701
- const j = Date.now() - D, ee = Math.min(j / m, 1), ie = U(ee);
702
- h.position.lerpVectors(y, g, ie), h.lookAt(n), k.target.copy(n), ee < 1 ? requestAnimationFrame(V) : (t.value = !0, o = null, ne());
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());
703
703
  };
704
- V();
705
- }, I = () => {
706
- t.value = !1, o = null, P && (cancelAnimationFrame(P), P = null);
704
+ U();
705
+ }, W = () => {
706
+ t.value = !1, o = null, k && (cancelAnimationFrame(k), k = null);
707
707
  const { controls: h } = a();
708
- h && (h.enabled = !0, h.target.copy(i));
708
+ h && (h.enabled = !0, h.target.copy(n));
709
709
  };
710
710
  return {
711
711
  isAnimating: t,
712
712
  toggleAnimation: () => {
713
713
  if (t.value) {
714
- t.value = !1, o = null, P && (cancelAnimationFrame(P), P = null);
715
- const { camera: h, controls: k } = a();
716
- if (!h || !k) return;
717
- k.enabled = !0;
718
- const p = h.position.clone(), x = k.target.clone(), g = 1500, y = Date.now(), m = () => {
719
- const D = Date.now() - y, V = Math.min(D / g, 1), j = U(V);
720
- h.position.lerpVectors(p, s, j), k.target.lerpVectors(x, i, j), V < 1 && requestAnimationFrame(m);
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);
721
721
  };
722
- m();
722
+ M();
723
723
  } else
724
- oe();
724
+ ne();
725
725
  },
726
- startAnimation: oe,
727
- stopAnimation: I
726
+ startAnimation: ne,
727
+ stopAnimation: W
728
728
  };
729
729
  }
730
730
  function ca(a, e) {
731
731
  const t = T(!1), o = T("none");
732
- let r = [], s = [], i = new Ft(), n = new L();
733
- const l = () => {
734
- r = [
732
+ let l = [], s = [], n = new Ft(), i = new L();
733
+ const r = () => {
734
+ l = [
735
735
  new _t(new L(1, 0, 0), 0),
736
736
  // X轴平面
737
737
  new _t(new L(0, 1, 0), 0),
@@ -739,64 +739,64 @@ function ca(a, e) {
739
739
  new _t(new L(0, 0, 1), 0)
740
740
  // Z轴平面
741
741
  ];
742
- }, P = () => {
743
- i.makeEmpty(), e.value.forEach((Z) => {
744
- i.expandByObject(Z);
745
- }), n = i.getCenter(new L());
746
- }, U = (Z) => {
747
- const h = i.getSize(new L());
748
- let k, p, x;
749
- Z === "x" ? (k = new Mt(h.z * 1.2, h.y * 1.2), p = new L(n.x, n.y, n.z), x = new Et(0, Math.PI / 2, 0)) : Z === "y" ? (k = new Mt(h.x * 1.2, h.z * 1.2), p = new L(n.x, n.y, n.z), x = new Et(Math.PI / 2, 0, 0)) : Z === "z" && (k = new Mt(h.x * 1.2, h.y * 1.2), p = new L(n.x, n.y, n.z), x = new Et(0, 0, 0));
750
- const g = new Do({
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));
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
- }), y = new Ao(k, g);
757
- return y.position.copy(p), y.rotation.copy(x), y;
758
- }, te = () => {
759
- if (ne(), oe(), o.value === "none")
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")
760
760
  return;
761
- P();
762
- let Z = null;
763
- if (o.value === "x" ? (r[0].constant = -n.x, Z = r[0]) : o.value === "y" ? (r[1].constant = -n.y, Z = r[1]) : o.value === "z" && (r[2].constant = -n.z, Z = r[2]), Z) {
764
- e.value.forEach((k) => {
765
- k.traverse((p) => {
766
- p.isMesh && p.material && (Array.isArray(p.material) ? p.material.forEach((x) => {
767
- x.clippingPlanes = [Z];
768
- }) : p.material.clippingPlanes = [Z]);
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]);
769
769
  });
770
770
  });
771
771
  const { scene: h } = a();
772
772
  if (h) {
773
- const k = U(o.value);
774
- h.add(k), s.push(k);
773
+ const v = z(o.value);
774
+ h.add(v), s.push(v);
775
775
  }
776
776
  }
777
- }, ne = () => {
778
- e.value.forEach((Z) => {
779
- Z.traverse((h) => {
780
- h.isMesh && h.material && (Array.isArray(h.material) ? h.material.forEach((k) => {
781
- k.clippingPlanes = [];
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 = [];
782
782
  }) : h.material.clippingPlanes = []);
783
783
  });
784
784
  });
785
- }, oe = () => {
786
- const { scene: Z } = a();
787
- Z && s.forEach((h) => {
788
- Z.remove(h), h.geometry.dispose(), h.material.dispose();
785
+ }, ne = () => {
786
+ const { scene: N } = a();
787
+ N && s.forEach((h) => {
788
+ N.remove(h), h.geometry.dispose(), h.material.dispose();
789
789
  }), s = [];
790
790
  };
791
791
  return {
792
792
  isClipping: t,
793
793
  activeClippingAxis: o,
794
794
  toggleClipping: () => {
795
- t.value = !t.value, t.value ? (l(), e.value.length > 0 && P()) : (o.value = "none", ne(), oe());
795
+ t.value = !t.value, t.value ? (r(), e.value.length > 0 && k()) : (o.value = "none", te(), ne());
796
796
  },
797
- updateClippingPlanes: te,
798
- clearClippingPlanes: ne,
799
- clearClippingMeshes: oe
797
+ updateClippingPlanes: se,
798
+ clearClippingPlanes: te,
799
+ clearClippingMeshes: ne
800
800
  };
801
801
  }
802
802
  const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls" }, da = ["disabled"], pa = ["disabled", "title"], ma = {
@@ -832,155 +832,155 @@ const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls"
832
832
  }, xa = {
833
833
  __name: "threeModel",
834
834
  setup(a, { expose: e }) {
835
- const t = T(null), o = T(!1), r = T(""), s = T(!1), i = T(!1), {
836
- currentModels: n,
837
- initialCameraPosition: l,
838
- initialTargetPosition: P,
839
- initThreeJS: U,
840
- handleResize: te,
841
- fitCameraToAllModels: ne,
842
- getThreeJSObjects: oe,
843
- clearAllModels: I,
844
- cleanup: Z
845
- } = la(t), { isAnimating: h, toggleAnimation: k, stopAnimation: p } = ra(oe, n), { isClipping: x, activeClippingAxis: g, toggleClipping: y, updateClippingPlanes: m } = ca(
846
- oe,
847
- n
848
- ), { addModelsFromUrls: D, loadModelByDefaultPath: V, urdfModel: j } = Bo(
849
- oe,
850
- n,
835
+ const t = T(null), o = T(!1), l = T(""), s = T(!1), n = T(!1), {
836
+ currentModels: i,
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,
847
+ i
848
+ ), { addModelsFromUrls: P, loadModelByDefaultPath: U, urdfModel: Y } = Bo(
849
+ ne,
850
+ i,
851
851
  o,
852
- r,
853
- I
854
- ), ee = () => {
855
- if (i.value || n.value.length === 0) return;
856
- i.value = !0, h.value && p();
857
- const { camera: J, controls: C } = oe();
858
- if (!J || !C) return;
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;
859
859
  C.enabled = !0;
860
- const Y = (M) => M < 0.5 ? 4 * M * M * M : 1 - Math.pow(-2 * M + 2, 3) / 2, vt = J.position.clone(), it = C.target.clone(), Ct = 1500, _ = Date.now(), f = () => {
861
- const M = Date.now() - _, $ = Math.min(M / Ct, 1), R = Y($);
862
- J.position.lerpVectors(vt, l.value, R), C.target.lerpVectors(it, P.value, R), $ < 1 ? requestAnimationFrame(f) : i.value = !1;
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;
863
863
  };
864
- f();
865
- }, ie = () => {
864
+ m();
865
+ }, ge = () => {
866
866
  document.fullscreenElement ? document.exitFullscreen().then(() => {
867
867
  s.value = !1, ut(() => {
868
- te();
868
+ se();
869
869
  });
870
- }).catch((J) => {
871
- console.error("无法退出全屏:", J);
870
+ }).catch((Q) => {
871
+ console.error("无法退出全屏:", Q);
872
872
  }) : t.value.requestFullscreen().then(() => {
873
873
  s.value = !0, ut(() => {
874
- te();
874
+ se();
875
875
  });
876
- }).catch((J) => {
877
- console.error("无法进入全屏:", J);
876
+ }).catch((Q) => {
877
+ console.error("无法进入全屏:", Q);
878
878
  });
879
- }, Ve = () => {
879
+ }, pe = () => {
880
880
  s.value = !!document.fullscreenElement, s.value || ut(() => {
881
- te();
881
+ se();
882
882
  });
883
- }, ve = async (J, C) => {
883
+ }, Ce = async (Q, C) => {
884
884
  try {
885
- h.value && p(), x.value && y();
886
- const Y = await C(J);
887
- return ne(), Y;
888
- } catch (Y) {
889
- throw console.error("加载模型失败:", Y), Y;
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;
890
890
  }
891
- }, A = async (J) => ve(J, D), De = async (J) => ve(J, V);
891
+ }, D = async (Q) => Ce(Q, P), Re = async (Q) => Ce(Q, U);
892
892
  return Kt(async () => {
893
- await ut(), U(), window.addEventListener("resize", te), document.addEventListener("fullscreenchange", Ve);
893
+ await ut(), z(), window.addEventListener("resize", se), document.addEventListener("fullscreenchange", pe);
894
894
  }), co(() => {
895
- window.removeEventListener("resize", te), document.removeEventListener("fullscreenchange", Ve), h.value && p(), Z();
895
+ window.removeEventListener("resize", se), document.removeEventListener("fullscreenchange", pe), h.value && d(), N();
896
896
  }), e({
897
- addModelsFromUrls: A,
898
- loadModelByDefaultPath: De
899
- }), (J, C) => (v(), K("div", ha, [
900
- c(j) ? (v(), G(Ko, {
897
+ addModelsFromUrls: D,
898
+ loadModelByDefaultPath: Re
899
+ }), (Q, C) => (w(), V("div", ha, [
900
+ c(Y) ? (w(), J(Ko, {
901
901
  key: 0,
902
902
  class: "client-robot-side",
903
- model: c(j)
904
- }, null, 8, ["model"])) : de("", !0),
905
- d("div", {
903
+ model: c(Y)
904
+ }, null, 8, ["model"])) : ue("", !0),
905
+ p("div", {
906
906
  ref_key: "threejsContainer",
907
907
  ref: t,
908
908
  class: "threejs-container"
909
909
  }, null, 512),
910
- d("div", ua, [
911
- d("button", {
912
- onClick: ee,
910
+ p("div", ua, [
911
+ p("button", {
912
+ onClick: H,
913
913
  class: dt(["control-btn", "reset-btn"]),
914
- disabled: o.value || c(n).length === 0 || i.value,
914
+ disabled: o.value || c(i).length === 0 || n.value,
915
915
  title: "重置"
916
916
  }, C[10] || (C[10] = [
917
- d("svg", {
917
+ p("svg", {
918
918
  viewBox: "0 0 24 24",
919
919
  fill: "none",
920
920
  stroke: "currentColor",
921
921
  "stroke-width": "2"
922
922
  }, [
923
- d("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
924
- d("polyline", { points: "9,22 9,12 15,12 15,22" })
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" })
925
925
  ], -1)
926
926
  ]), 8, da),
927
- d("button", {
928
- onClick: C[0] || (C[0] = (...Y) => c(k) && c(k)(...Y)),
927
+ p("button", {
928
+ onClick: C[0] || (C[0] = (...K) => c(v) && c(v)(...K)),
929
929
  class: dt(["control-btn", "animation-btn", { active: c(h) }]),
930
- disabled: o.value || c(n).length === 0,
930
+ disabled: o.value || c(i).length === 0,
931
931
  title: c(h) ? "停止动画" : "动画视图"
932
932
  }, [
933
- c(h) ? (v(), K("svg", fa, C[12] || (C[12] = [
934
- d("circle", {
933
+ c(h) ? (w(), V("svg", fa, C[12] || (C[12] = [
934
+ p("circle", {
935
935
  cx: "12",
936
936
  cy: "12",
937
937
  r: "10"
938
938
  }, null, -1),
939
- d("rect", {
939
+ p("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
- d("rect", {
946
+ p("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
- ]))) : (v(), K("svg", ma, C[11] || (C[11] = [
954
- d("circle", {
953
+ ]))) : (w(), V("svg", ma, C[11] || (C[11] = [
954
+ p("circle", {
955
955
  cx: "12",
956
956
  cy: "12",
957
957
  r: "10"
958
958
  }, null, -1),
959
- d("polygon", {
959
+ p("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
- d("button", {
966
- onClick: C[1] || (C[1] = (...Y) => c(y) && c(y)(...Y)),
967
- class: dt(["control-btn", "clipping-btn", { active: c(x) }]),
968
- disabled: o.value || c(n).length === 0,
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) }]),
968
+ disabled: o.value || c(i).length === 0,
969
969
  title: "剖面视图"
970
970
  }, C[13] || (C[13] = [
971
- d("svg", {
971
+ p("svg", {
972
972
  viewBox: "0 0 24 24",
973
973
  fill: "none",
974
974
  stroke: "currentColor",
975
975
  "stroke-width": "2"
976
976
  }, [
977
- d("rect", {
977
+ p("rect", {
978
978
  x: "3",
979
979
  y: "3",
980
980
  width: "18",
981
981
  height: "18"
982
982
  }),
983
- d("line", {
983
+ p("line", {
984
984
  x1: "-14",
985
985
  y1: "12",
986
986
  x2: "30",
@@ -989,99 +989,99 @@ const ha = { class: "obj-viewer-container" }, ua = { class: "floating-controls"
989
989
  })
990
990
  ], -1)
991
991
  ]), 10, _a),
992
- d("button", {
993
- onClick: ie,
992
+ p("button", {
993
+ onClick: ge,
994
994
  class: dt(["control-btn", "fullscreen-btn"]),
995
995
  title: s.value ? "退出全屏" : "全屏"
996
996
  }, [
997
- s.value ? (v(), K("svg", wa, C[15] || (C[15] = [
998
- d("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(), K("svg", ya, C[14] || (C[14] = [
1000
- d("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
+ 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)
1001
1001
  ])))
1002
1002
  ], 8, ga)
1003
1003
  ]),
1004
- c(x) ? (v(), K("div", ba, [
1005
- d("div", va, [
1006
- d("div", Ca, [
1007
- d("label", ka, [
1008
- et(d("input", {
1004
+ c(S) ? (w(), V("div", ba, [
1005
+ p("div", va, [
1006
+ p("div", Ca, [
1007
+ p("label", ka, [
1008
+ et(p("input", {
1009
1009
  type: "radio",
1010
1010
  name: "clipping-axis",
1011
1011
  value: "none",
1012
- "onUpdate:modelValue": C[2] || (C[2] = (Y) => pt(g) ? g.value = Y : null),
1013
- onChange: C[3] || (C[3] = (...Y) => c(m) && c(m)(...Y))
1012
+ "onUpdate:modelValue": C[2] || (C[2] = (K) => pt(_) ? _.value = K : null),
1013
+ onChange: C[3] || (C[3] = (...K) => c(M) && c(M)(...K))
1014
1014
  }, null, 544), [
1015
- [mt, c(g)]
1015
+ [mt, c(_)]
1016
1016
  ]),
1017
- C[16] || (C[16] = d("span", { class: "radio-text" }, "无切割", -1))
1017
+ C[16] || (C[16] = p("span", { class: "radio-text" }, "无切割", -1))
1018
1018
  ]),
1019
- d("label", Pa, [
1020
- et(d("input", {
1019
+ p("label", Pa, [
1020
+ et(p("input", {
1021
1021
  type: "radio",
1022
1022
  name: "clipping-axis",
1023
1023
  value: "x",
1024
- "onUpdate:modelValue": C[4] || (C[4] = (Y) => pt(g) ? g.value = Y : null),
1025
- onChange: C[5] || (C[5] = (...Y) => c(m) && c(m)(...Y))
1024
+ "onUpdate:modelValue": C[4] || (C[4] = (K) => pt(_) ? _.value = K : null),
1025
+ onChange: C[5] || (C[5] = (...K) => c(M) && c(M)(...K))
1026
1026
  }, null, 544), [
1027
- [mt, c(g)]
1027
+ [mt, c(_)]
1028
1028
  ]),
1029
- C[17] || (C[17] = d("span", { class: "radio-text" }, "X轴切割", -1))
1029
+ C[17] || (C[17] = p("span", { class: "radio-text" }, "X轴切割", -1))
1030
1030
  ]),
1031
- d("label", Ta, [
1032
- et(d("input", {
1031
+ p("label", Ta, [
1032
+ et(p("input", {
1033
1033
  type: "radio",
1034
1034
  name: "clipping-axis",
1035
1035
  value: "y",
1036
- "onUpdate:modelValue": C[6] || (C[6] = (Y) => pt(g) ? g.value = Y : null),
1037
- onChange: C[7] || (C[7] = (...Y) => c(m) && c(m)(...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))
1038
1038
  }, null, 544), [
1039
- [mt, c(g)]
1039
+ [mt, c(_)]
1040
1040
  ]),
1041
- C[18] || (C[18] = d("span", { class: "radio-text" }, "Y轴切割", -1))
1041
+ C[18] || (C[18] = p("span", { class: "radio-text" }, "Y轴切割", -1))
1042
1042
  ]),
1043
- d("label", Ma, [
1044
- et(d("input", {
1043
+ p("label", Ma, [
1044
+ et(p("input", {
1045
1045
  type: "radio",
1046
1046
  name: "clipping-axis",
1047
1047
  value: "z",
1048
- "onUpdate:modelValue": C[8] || (C[8] = (Y) => pt(g) ? g.value = Y : null),
1049
- onChange: C[9] || (C[9] = (...Y) => c(m) && c(m)(...Y))
1048
+ "onUpdate:modelValue": C[8] || (C[8] = (K) => pt(_) ? _.value = K : null),
1049
+ onChange: C[9] || (C[9] = (...K) => c(M) && c(M)(...K))
1050
1050
  }, null, 544), [
1051
- [mt, c(g)]
1051
+ [mt, c(_)]
1052
1052
  ]),
1053
- C[19] || (C[19] = d("span", { class: "radio-text" }, "Z轴切割", -1))
1053
+ C[19] || (C[19] = p("span", { class: "radio-text" }, "Z轴切割", -1))
1054
1054
  ])
1055
1055
  ])
1056
1056
  ])
1057
- ])) : de("", !0),
1058
- o.value ? (v(), K("div", Ea, [
1059
- C[20] || (C[20] = d("div", { class: "loading-spinner" }, null, -1)),
1060
- d("p", null, Ne(r.value), 1)
1061
- ])) : de("", !0)
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)
1062
1062
  ]));
1063
1063
  }
1064
- }, Sa = /* @__PURE__ */ Ie(xa, [["__scopeId", "data-v-0595ce23"]]);
1065
- function Da(a, e, t, o, r, s) {
1066
- const i = Q("svg-icon"), n = Q("ssMenu");
1067
- return v(), G(n, {
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, {
1068
1068
  mode: a.mode,
1069
1069
  menuList: a.renderMenuList,
1070
1070
  onClickMenu: a.clickMenu,
1071
1071
  onOpenMenu: a.openMenu,
1072
1072
  onCloseMenu: a.closeMenu
1073
1073
  }, {
1074
- title: b(({ menu: l }) => [
1075
- u(i, {
1076
- name: l.icon ?? "Fold",
1074
+ title: b(({ menu: r }) => [
1075
+ u(n, {
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
- d("span", null, Ne(l.title ?? ""), 1)
1079
+ p("span", null, Ue(r.title ?? ""), 1)
1080
1080
  ]),
1081
1081
  _: 1
1082
1082
  }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
1083
1083
  }
1084
- const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed2"]]), Ra = { class: "bread-content" }, Aa = ["onClick"], Ba = {
1084
+ const lo = /* @__PURE__ */ Ve(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 = {
@@ -1094,37 +1094,37 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1094
1094
  },
1095
1095
  emits: ["click"],
1096
1096
  setup(a, { emit: e }) {
1097
- const t = a, o = T([]), r = e;
1097
+ const t = a, o = T([]), l = e;
1098
1098
  Kt(() => {
1099
1099
  o.value = t == null ? void 0 : t.breadArray;
1100
- }), Se(
1100
+ }), De(
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 = (i) => {
1108
- r("click", i);
1107
+ const s = (n) => {
1108
+ l("click", n);
1109
1109
  };
1110
- return (i, n) => (v(), K("div", Ra, [
1111
- (v(!0), K(St, null, Dt(o.value, (l, P) => {
1112
- var U;
1113
- return v(), K("div", {
1114
- key: P,
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,
1115
1115
  class: "bread-item"
1116
1116
  }, [
1117
- d("div", {
1117
+ p("div", {
1118
1118
  class: "bread-title",
1119
- onClick: (te) => s(l),
1120
- style: ho({ opacity: ((U = o.value) == null ? void 0 : U.length) - 1 === P ? "0.7" : "1" })
1121
- }, Ne(l.value), 13, Aa),
1122
- P !== o.value.length - 1 && Array.isArray(o.value) ? (v(), K("div", Ba, Ne("/"))) : de("", !0)
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)
1123
1123
  ]);
1124
1124
  }), 128))
1125
1125
  ]));
1126
1126
  }
1127
- }, ro = /* @__PURE__ */ Ie(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__ */ 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 = {
1128
1128
  key: 0,
1129
1129
  class: "item-view-group"
1130
1130
  }, Ka = {
@@ -1147,63 +1147,63 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1147
1147
  }
1148
1148
  },
1149
1149
  setup(a) {
1150
- const e = Lt(Le), t = T(!1), { selectTitle: o } = Fe(e), r = T(!1), s = T(!1), i = T(!1), n = T(!1), l = ao(), { loginUserInfo: P } = Fe(l), U = bt(Le), { isEdit: te } = Fe(U), ne = wt(Le), oe = T(!1), { importLoading: I, platName: Z } = Fe(ne), h = T("");
1151
- return (k, p) => {
1152
- const x = Q("el-button"), g = Q("el-avatar"), y = Q("el-header"), m = Q("el-container"), D = Q("el-icon"), V = Q("el-input"), j = Q("el-aside"), ee = Q("el-main"), ie = Q("router-view"), Ve = Zt("loading");
1153
- return c(te) === "edit" ? (v(), G(m, {
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, {
1154
1154
  key: 0,
1155
1155
  class: "client-container"
1156
1156
  }, {
1157
1157
  default: b(() => [
1158
- u(y, { class: "client-structure-header" }, {
1158
+ u(g, { class: "client-structure-header" }, {
1159
1159
  default: b(() => {
1160
- var ve;
1160
+ var Ce;
1161
1161
  return [
1162
- d("div", La, [
1163
- u(x, {
1162
+ p("div", La, [
1163
+ u(S, {
1164
1164
  id: "transparentBgButton",
1165
1165
  onClick: c(Wt)
1166
1166
  }, {
1167
- default: b(() => p[3] || (p[3] = [
1168
- Me(" 返回页面 ")
1167
+ default: b(() => d[3] || (d[3] = [
1168
+ Ee(" 返回页面 ")
1169
1169
  ])),
1170
1170
  _: 1,
1171
1171
  __: [3]
1172
1172
  }, 8, ["onClick"]),
1173
- u(x, {
1173
+ u(S, {
1174
1174
  id: "transparentBgButton",
1175
- onClick: p[0] || (p[0] = (A) => {
1176
- var De, J;
1177
- return c(qt)((J = (De = c(o)) == null ? void 0 : De.map((C) => C.value)) == null ? void 0 : J.join("/"));
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("/"));
1178
1178
  })
1179
1179
  }, {
1180
1180
  icon: b(() => [
1181
- u(ze, { name: "Store" })
1181
+ u(Ne, { name: "Store" })
1182
1182
  ]),
1183
1183
  default: b(() => [
1184
- p[4] || (p[4] = Me(" 保存页面 "))
1184
+ d[4] || (d[4] = Ee(" 保存页面 "))
1185
1185
  ]),
1186
1186
  _: 1,
1187
1187
  __: [4]
1188
1188
  })
1189
1189
  ]),
1190
- d("div", ja, [
1191
- (v(), G(ro, {
1190
+ p("div", ja, [
1191
+ (w(), J(ro, {
1192
1192
  key: c(o),
1193
1193
  breadArray: c(o),
1194
1194
  onClick: c(Gt)
1195
1195
  }, null, 8, ["breadArray", "onClick"]))
1196
1196
  ]),
1197
- d("div", Oa, [
1198
- nt(k.$slots, "default", {}, void 0, !0),
1199
- u(g, {
1197
+ p("div", Oa, [
1198
+ nt(v.$slots, "default", {}, void 0, !0),
1199
+ u(_, {
1200
1200
  size: 35,
1201
- src: (ve = c(P)) == null ? void 0 : ve.avatarUrl
1201
+ src: (Ce = c(k)) == null ? void 0 : Ce.avatarUrl
1202
1202
  }, {
1203
1203
  default: b(() => {
1204
- var A;
1204
+ var D;
1205
1205
  return [
1206
- Me(Ne(((A = c(P)) == null ? void 0 : A.account) ?? "未知"), 1)
1206
+ Ee(Ue(((D = c(k)) == null ? void 0 : D.account) ?? "未知"), 1)
1207
1207
  ];
1208
1208
  }),
1209
1209
  _: 1
@@ -1213,56 +1213,56 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1213
1213
  }),
1214
1214
  _: 3
1215
1215
  }),
1216
- c(te) === "edit" ? (v(), G(m, {
1216
+ c(se) === "edit" ? (w(), J(M, {
1217
1217
  key: 0,
1218
1218
  class: "model-operate",
1219
1219
  style: { "margin-top": "10px", height: "0px" }
1220
1220
  }, {
1221
1221
  default: b(() => [
1222
- d("div", za, [
1222
+ p("div", za, [
1223
1223
  u(Rt)
1224
1224
  ]),
1225
- d("div", Na, [
1225
+ p("div", Na, [
1226
1226
  u(At)
1227
1227
  ]),
1228
- d("div", Ua, [
1228
+ p("div", Ua, [
1229
1229
  u(Bt)
1230
1230
  ])
1231
1231
  ]),
1232
1232
  _: 1
1233
- })) : de("", !0)
1233
+ })) : ue("", !0)
1234
1234
  ]),
1235
1235
  _: 3
1236
- })) : et((v(), G(m, {
1236
+ })) : et((w(), J(M, {
1237
1237
  key: 1,
1238
1238
  class: "client-container",
1239
1239
  "element-loading-text": "正在加载页面数据..."
1240
1240
  }, {
1241
1241
  default: b(() => [
1242
- u(y, { class: "client-header" }, {
1242
+ u(g, { class: "client-header" }, {
1243
1243
  default: b(() => {
1244
- var ve;
1244
+ var Ce;
1245
1245
  return [
1246
- d("div", $a, [
1247
- u(ze, {
1246
+ p("div", $a, [
1247
+ u(Ne, {
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
- p[5] || (p[5] = Me(" ISIP "))
1251
+ d[5] || (d[5] = Ee(" ISIP "))
1252
1252
  ]),
1253
- d("div", Ia, [
1253
+ p("div", Ia, [
1254
1254
  u(lo, { mode: "horizontal" })
1255
1255
  ]),
1256
- d("div", Va, [
1257
- u(V, {
1256
+ p("div", Va, [
1257
+ u(U, {
1258
1258
  modelValue: h.value,
1259
- "onUpdate:modelValue": p[1] || (p[1] = (A) => h.value = A),
1259
+ "onUpdate:modelValue": d[1] || (d[1] = (D) => h.value = D),
1260
1260
  clearable: "",
1261
1261
  placeholder: "搜索",
1262
1262
  style: { width: "130px" }
1263
1263
  }, {
1264
1264
  prefix: b(() => [
1265
- u(D, { class: "el-input__icon" }, {
1265
+ u(P, { class: "el-input__icon" }, {
1266
1266
  default: b(() => [
1267
1267
  u(c(no))
1268
1268
  ]),
@@ -1271,42 +1271,42 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1271
1271
  ]),
1272
1272
  _: 1
1273
1273
  }, 8, ["modelValue"]),
1274
- a.showButton ? (v(), G(x, {
1274
+ a.showButton ? (w(), J(S, {
1275
1275
  key: 0,
1276
1276
  id: "transparentBgButton"
1277
1277
  }, {
1278
1278
  icon: b(() => [
1279
- u(ze, { name: "App" })
1279
+ u(Ne, { name: "App" })
1280
1280
  ]),
1281
1281
  default: b(() => [
1282
- p[6] || (p[6] = Me(" 生成APP "))
1282
+ d[6] || (d[6] = Ee(" 生成APP "))
1283
1283
  ]),
1284
1284
  _: 1,
1285
1285
  __: [6]
1286
- })) : de("", !0),
1287
- a.showButton && c(te) === "view" ? (v(), G(x, {
1286
+ })) : ue("", !0),
1287
+ a.showButton && c(se) === "view" ? (w(), J(S, {
1288
1288
  key: 1,
1289
1289
  id: "transparentBgButton",
1290
1290
  onClick: c(Jt)
1291
1291
  }, {
1292
1292
  icon: b(() => [
1293
- u(ze, { name: "write" })
1293
+ u(Ne, { name: "write" })
1294
1294
  ]),
1295
1295
  default: b(() => [
1296
- p[7] || (p[7] = Me(" 修改布局 "))
1296
+ d[7] || (d[7] = Ee(" 修改布局 "))
1297
1297
  ]),
1298
1298
  _: 1,
1299
1299
  __: [7]
1300
- }, 8, ["onClick"])) : de("", !0),
1301
- nt(k.$slots, "default", {}, void 0, !0),
1302
- u(g, {
1300
+ }, 8, ["onClick"])) : ue("", !0),
1301
+ nt(v.$slots, "default", {}, void 0, !0),
1302
+ u(_, {
1303
1303
  size: 35,
1304
- src: (ve = c(P)) == null ? void 0 : ve.avatarUrl
1304
+ src: (Ce = c(k)) == null ? void 0 : Ce.avatarUrl
1305
1305
  }, {
1306
1306
  default: b(() => {
1307
- var A;
1307
+ var D;
1308
1308
  return [
1309
- Me(Ne(((A = c(P)) == null ? void 0 : A.account) ?? "未知"), 1)
1309
+ Ee(Ue(((D = c(k)) == null ? void 0 : D.account) ?? "未知"), 1)
1310
1310
  ];
1311
1311
  }),
1312
1312
  _: 1
@@ -1316,81 +1316,81 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1316
1316
  }),
1317
1317
  _: 3
1318
1318
  }),
1319
- u(m, { class: "client-body" }, {
1319
+ u(M, { class: "client-body" }, {
1320
1320
  default: b(() => [
1321
- k.$route.path === "/" ? (v(), G(ee, {
1321
+ v.$route.path === "/" ? (w(), J(H, {
1322
1322
  key: 0,
1323
1323
  class: "client-main"
1324
1324
  }, {
1325
1325
  default: b(() => {
1326
- var ve;
1326
+ var Ce;
1327
1327
  return [
1328
- u(j, { class: "client-aside" }, {
1328
+ u(Y, { class: "client-aside" }, {
1329
1329
  default: b(() => [
1330
1330
  u(gt, { mode: "vertical" })
1331
1331
  ]),
1332
1332
  _: 1
1333
1333
  }),
1334
- d("div", Ya, [
1335
- (v(!0), K(St, null, Dt((ve = c(ot)(c(Be))) == null ? void 0 : ve.filter((A) => A.comp !== "FormTop"), (A, De) => {
1336
- var J;
1337
- return v(), K("div", {
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", {
1338
1338
  class: "item-view-content",
1339
- key: De
1339
+ key: Re
1340
1340
  }, [
1341
- ((J = A == null ? void 0 : A.comp) == null ? void 0 : J.toUpperCase()) !== "TABLE" ? (v(), K("div", Ha, Ne(A.name), 1)) : de("", !0),
1342
- (v(), G(Xt(c(Qt)(A.comp)), {
1343
- compName: A.name,
1344
- itemData: A == null ? void 0 : A.compData,
1345
- childItemData: A == null ? void 0 : A.itemChildData,
1346
- key: (A == null ? void 0 : A.id) ?? De,
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,
1347
1347
  onChange: c(oo),
1348
- index: (A == null ? void 0 : A.id) ?? De,
1348
+ index: (D == null ? void 0 : D.id) ?? Re,
1349
1349
  onContentChange: c(to),
1350
1350
  onPageChange: c(eo)
1351
1351
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
1352
1352
  ]);
1353
1353
  }), 128)),
1354
- r.value ? (v(), K("div", Ka, [
1355
- s.value ? (v(), G(st, {
1354
+ l.value ? (w(), V("div", Ka, [
1355
+ s.value ? (w(), J(st, {
1356
1356
  key: 0,
1357
1357
  class: "calculator-content",
1358
- onClickTrigger: k.clickPreview,
1359
- loading: i.value,
1358
+ onClickTrigger: v.clickPreview,
1359
+ loading: n.value,
1360
1360
  modelValue: "预览"
1361
- }, null, 8, ["onClickTrigger", "loading"])) : de("", !0),
1361
+ }, null, 8, ["onClickTrigger", "loading"])) : ue("", !0),
1362
1362
  u(st, {
1363
1363
  class: "calculator-content",
1364
- onClickTrigger: p[2] || (p[2] = (A) => k.showThreeContent()),
1364
+ onClickTrigger: d[2] || (d[2] = (D) => v.showThreeContent()),
1365
1365
  loading: t.value,
1366
1366
  modelValue: "调用方法"
1367
1367
  }, null, 8, ["loading"])
1368
- ])) : de("", !0),
1369
- n.value ? (v(), K("div", Za, [
1368
+ ])) : ue("", !0),
1369
+ i.value ? (w(), V("div", Za, [
1370
1370
  u(st, {
1371
1371
  class: "calculator-content",
1372
1372
  modelValue: "执行方法",
1373
- onClickTrigger: k.clickExecute,
1374
- loading: oe.value
1373
+ onClickTrigger: v.clickExecute,
1374
+ loading: ne.value
1375
1375
  }, null, 8, ["onClickTrigger", "loading"])
1376
- ])) : de("", !0)
1376
+ ])) : ue("", !0)
1377
1377
  ])
1378
1378
  ];
1379
1379
  }),
1380
1380
  _: 1
1381
- })) : (v(), G(ee, {
1381
+ })) : (w(), J(H, {
1382
1382
  key: 1,
1383
1383
  class: "client-main"
1384
1384
  }, {
1385
1385
  default: b(() => [
1386
- u(j, { class: "client-aside" }, {
1386
+ u(Y, { class: "client-aside" }, {
1387
1387
  default: b(() => [
1388
1388
  u(gt, { mode: "vertical" })
1389
1389
  ]),
1390
1390
  _: 1
1391
1391
  }),
1392
- d("div", Xa, [
1393
- u(ie)
1392
+ p("div", Xa, [
1393
+ u(ge)
1394
1394
  ])
1395
1395
  ]),
1396
1396
  _: 1
@@ -1401,11 +1401,11 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1401
1401
  ]),
1402
1402
  _: 3
1403
1403
  })), [
1404
- [Ve, c(I)]
1404
+ [pe, c(W)]
1405
1405
  ]);
1406
1406
  };
1407
1407
  }
1408
- }), qa = /* @__PURE__ */ Ie(Wa, [["__scopeId", "data-v-1f0f879a"]]), O = [
1408
+ }), qa = /* @__PURE__ */ Ve(Wa, [["__scopeId", "data-v-1f0f879a"]]), j = [
1409
1409
  {
1410
1410
  key: "FitCurve_Eleven",
1411
1411
  value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
@@ -1509,260 +1509,260 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1509
1509
  }
1510
1510
  },
1511
1511
  setup(a) {
1512
- const e = Lt(Le), t = T(0), o = T(!1), { selectTitle: r } = Fe(e), s = T(!1), i = T(!1), n = T(!1), l = Fo(Le), P = T(!1), { tableShowThree: U } = Fe(l), te = ao(), { loginUserInfo: ne } = Fe(te), oe = bt(Le), { isEdit: I } = Fe(oe), Z = wt(Le), h = Lo(Le), { objUrl: k, blobUrls: p } = Fe(h), x = T(null), g = T(!0), y = T(!1), { importLoading: m, activeMenuPath: D, platName: V } = Fe(Z), j = T(!1);
1513
- Se(() => D.value, async (_) => {
1514
- _ && (j.value = !0), Qe != null && Qe.find((f) => {
1515
- var M;
1516
- return (f == null ? void 0 : f.key) === ((M = _ == null ? void 0 : _.split("/")) == null ? void 0 : M[(_ == null ? void 0 : _.split("/").length) - 1]);
1517
- }) ? P.value = !0 : P.value = !1;
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) => {
1515
+ 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;
1518
1518
  }, { immediate: !0 });
1519
- const ee = async () => {
1520
- var B, w, le, ce, E;
1521
- y.value = !0;
1522
- const _ = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
1523
- let f = ((le = (w = (B = Qe == null ? void 0 : Qe.find((he) => {
1524
- var Ce, ge, Re;
1525
- return (he == null ? void 0 : he.key) === ((Re = (Ce = D.value) == null ? void 0 : Ce.split("/")) == null ? void 0 : Re[((ge = D.value) == null ? void 0 : ge.split("/").length) - 1]);
1526
- })) == null ? void 0 : B.value) == null ? void 0 : w.split(",")) == null ? void 0 : le[0]) ?? "";
1527
- const M = await _e.post(f, null, {
1519
+ const H = async () => {
1520
+ var B, y, ie, re, x;
1521
+ g.value = !0;
1522
+ 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, {
1528
1528
  responseType: "blob",
1529
1529
  // 必须设置
1530
1530
  headers: {
1531
- Authorization: _,
1531
+ Authorization: f,
1532
1532
  "Content-Type": "application/json"
1533
1533
  }
1534
- }), $ = new Blob([M.data], {
1534
+ }), I = new Blob([E.data], {
1535
1535
  type: "application/octet-stream;charset=UTF-8"
1536
1536
  });
1537
- let R = {
1538
- suffix: "." + ((E = f == null ? void 0 : f.split(".")) == null ? void 0 : E[((ce = f == null ? void 0 : f.split(".")) == null ? void 0 : ce.length) - 1]),
1539
- blob: $,
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,
1540
1540
  mtlBlobs: []
1541
1541
  };
1542
- y.value = !1, x.value.loadModelByDefaultPath([R]);
1543
- }, ie = async (_) => {
1544
- var $, R, B, w, le, ce, E;
1545
- const f = ($ = _ == null ? void 0 : _.split("/")) == null ? void 0 : $[0], M = await _o({
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({
1546
1546
  key: {
1547
1547
  type: "mainEquip",
1548
1548
  systemKey: sessionStorage.getItem("systemKey"),
1549
- pageKey: f
1549
+ pageKey: m
1550
1550
  }
1551
1551
  });
1552
- return ((R = M == null ? void 0 : M.data) == null ? void 0 : R.type) === "success" ? ((E = (ce = (le = (w = (B = M == null ? void 0 : M.data) == null ? void 0 : B.result) == null ? void 0 : w[0]) == null ? void 0 : le.value) == null ? void 0 : ce.tableData) == null ? void 0 : E.隐藏三维显示) !== !0 : !0;
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;
1553
1553
  };
1554
- Se(
1555
- () => Be.value,
1554
+ De(
1555
+ () => Fe.value,
1556
1556
  () => {
1557
- var _, f, M, $, R;
1558
- if (((_ = Be.value) == null ? void 0 : _.length) === 2 && ((f = Be.value) != null && f.find((B) => (B == null ? void 0 : B.name) === "输入")) && ((M = Be.value) != null && M.find((B) => (B == null ? void 0 : B.name) === "输出"))) {
1559
- const B = ($ = Be.value) == null ? void 0 : $.find((w) => (w == null ? void 0 : w.name) === "输出");
1560
- i.value = ((R = B == null ? void 0 : B.comp) == null ? void 0 : R.toUpperCase()) === "FORM", s.value = !0;
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;
1561
1561
  } else
1562
- s.value = !1, i.value = !1;
1562
+ s.value = !1, n.value = !1;
1563
1563
  },
1564
1564
  { deep: !0, immediate: !0 }
1565
- ), Se(
1566
- () => D.value,
1565
+ ), De(
1566
+ () => P.value,
1567
1567
  async () => {
1568
- D.value && (g.value = await ie(D.value));
1568
+ P.value && (_.value = await ge(P.value));
1569
1569
  },
1570
1570
  { deep: !0, immediate: !0 }
1571
- ), Se(
1572
- () => [k.value, x.value],
1571
+ ), De(
1572
+ () => [v.value, S.value],
1573
1573
  () => {
1574
- var _;
1575
- ((_ = k.value) == null ? void 0 : _.length) > 0 && x.value && x.value.addModelsFromUrls(k.value);
1574
+ var f;
1575
+ ((f = v.value) == null ? void 0 : f.length) > 0 && S.value && S.value.addModelsFromUrls(v.value);
1576
1576
  },
1577
1577
  { immediate: !0, deep: !0 }
1578
- ), Se(
1579
- () => p == null ? void 0 : p.value,
1578
+ ), De(
1579
+ () => d == null ? void 0 : d.value,
1580
1580
  async () => {
1581
- var _, f, M, $;
1582
- if (p != null && p.value && ((_ = p == null ? void 0 : p.value) == null ? void 0 : _.length) > 0 && !P.value && !((f = Be.value) != null && f.find((R) => (R == null ? void 0 : R.name) === "输入") && ((M = Be.value) != null && M.find((R) => (R == null ? void 0 : R.name) === "输出")))) {
1583
- let R = [];
1584
- const B = await (($ = ot(p == null ? void 0 : p.value)) == null ? void 0 : $.map(async (w) => {
1585
- var Ce, ge, Re, ue, S, Pe, Ee, Ue, Ye, He;
1586
- let le, ce;
1587
- const E = (ge = (Ce = w == null ? void 0 : w.blob) == null ? void 0 : Ce.split("undefined,")) == null ? void 0 : ge[1];
1588
- let he = E == null ? void 0 : E.split(",");
1589
- if ((he == null ? void 0 : he.length) > 1) {
1590
- let Ae = await (he == null ? void 0 : he.map(async (ae) => {
1591
- var W, lt, je, ye, z, Te;
1592
- le = await _e.get(ae, {
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, {
1593
1593
  responseType: "blob",
1594
1594
  headers: {
1595
1595
  "Content-Type": "application/json"
1596
1596
  }
1597
1597
  });
1598
- let pe = [];
1599
- if (((W = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : W.length) > 0) {
1600
- let We = await ((lt = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : lt.map(async (se) => {
1601
- let Ke = await _e.get(se, {
1598
+ let de = [];
1599
+ 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, {
1602
1602
  responseType: "blob",
1603
1603
  headers: {
1604
1604
  "Content-Type": "application/json"
1605
1605
  }
1606
1606
  });
1607
- return pe.push(new Blob([Ke.data], {
1607
+ return de.push(new Blob([Ke.data], {
1608
1608
  type: "application/octet-stream;charset=UTF-8"
1609
1609
  })), Ke;
1610
1610
  }));
1611
1611
  await Promise.all(We);
1612
1612
  }
1613
- return ((ye = ae == null ? void 0 : ae.split(".")) == null ? void 0 : ye[((je = ae == null ? void 0 : ae.split(".")) == null ? void 0 : je.length) - 1]) !== "undefined" && R.push({
1614
- suffix: "." + ((Te = ae == null ? void 0 : ae.split(".")) == null ? void 0 : Te[((z = ae == null ? void 0 : ae.split(".")) == null ? void 0 : z.length) - 1]),
1615
- blob: new Blob([le.data], {
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], {
1616
1616
  type: "application/octet-stream;charset=UTF-8"
1617
1617
  }),
1618
- mtlBlobs: pe
1619
- }), le;
1618
+ mtlBlobs: de
1619
+ }), ie;
1620
1620
  }));
1621
- await Promise.all(Ae);
1622
- } else if (!(E != null && E.includes("https://")) && !(E != null && E.includes("http://"))) {
1623
- le = await $t({
1624
- url: E
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
1625
1625
  });
1626
- let Ae = [];
1627
- if (((Re = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : Re.length) > 0) {
1628
- let ae = await ((ue = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : ue.map(async (pe) => {
1629
- let W = await $t({
1630
- url: pe
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) => {
1629
+ let q = await $t({
1630
+ url: de
1631
1631
  });
1632
- return Ae.push(new Blob([W.data], {
1632
+ return Be.push(new Blob([q.data], {
1633
1633
  type: "application/octet-stream;charset=UTF-8"
1634
- })), W;
1634
+ })), q;
1635
1635
  }));
1636
- await Promise.all(ae);
1636
+ await Promise.all(oe);
1637
1637
  }
1638
- ce = {
1639
- suffix: "." + ((Pe = E == null ? void 0 : E.split(".")) == null ? void 0 : Pe[((S = E == null ? void 0 : E.split(".")) == null ? void 0 : S.length) - 1]),
1640
- blob: new Blob([le.data], {
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], {
1641
1641
  type: "application/octet-stream;charset=UTF-8"
1642
1642
  }),
1643
- mtlBlobs: Ae
1643
+ mtlBlobs: Be
1644
1644
  };
1645
1645
  } else {
1646
- le = await _e.get(E, {
1646
+ ie = await _e.get(x, {
1647
1647
  responseType: "blob",
1648
1648
  headers: {
1649
1649
  "Content-Type": "application/json"
1650
1650
  }
1651
1651
  });
1652
- let Ae = [];
1653
- if (((Ee = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : Ee.length) > 0) {
1654
- let ae = await ((Ue = w == null ? void 0 : w.mtlBlobs) == null ? void 0 : Ue.map(async (pe) => {
1655
- let W = await _e.get(pe, {
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, {
1656
1656
  responseType: "blob",
1657
1657
  headers: {
1658
1658
  "Content-Type": "application/json"
1659
1659
  }
1660
1660
  });
1661
- return Ae.push(new Blob([W.data], {
1661
+ return Be.push(new Blob([q.data], {
1662
1662
  type: "application/octet-stream;charset=UTF-8"
1663
- })), W;
1663
+ })), q;
1664
1664
  }));
1665
- await Promise.all(ae);
1665
+ await Promise.all(oe);
1666
1666
  }
1667
- ce = {
1668
- suffix: "." + ((He = E == null ? void 0 : E.split(".")) == null ? void 0 : He[((Ye = E == null ? void 0 : E.split(".")) == null ? void 0 : Ye.length) - 1]),
1669
- blob: new Blob([le.data], {
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], {
1670
1670
  type: "application/octet-stream;charset=UTF-8"
1671
1671
  }),
1672
- mtlBlobs: Ae
1672
+ mtlBlobs: Be
1673
1673
  };
1674
1674
  }
1675
- ce && R.push(ce);
1675
+ re && A.push(re);
1676
1676
  }));
1677
- await Promise.all(B), x.value.loadModelByDefaultPath(R);
1677
+ await Promise.all(B), S.value.loadModelByDefaultPath(A);
1678
1678
  }
1679
1679
  },
1680
1680
  { immediate: !0, deep: !0 }
1681
- ), Se(
1682
- () => U.value,
1681
+ ), De(
1682
+ () => z.value,
1683
1683
  async () => {
1684
- var f, M, $, R;
1685
- if (U.value !== "" && U.value) {
1686
- let B = (f = D.value) == null ? void 0 : f.split("/"), w = B[(B == null ? void 0 : B.length) - 2];
1687
- const ce = (((M = O == null ? void 0 : O.find((ge) => (ge == null ? void 0 : ge.key) === w)) == null ? void 0 : M.download) ?? "") + "/" + U.value, E = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), he = await _e.post(ce, null, {
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, {
1688
1688
  responseType: "blob",
1689
1689
  // 必须设置
1690
1690
  headers: {
1691
- Authorization: E,
1691
+ Authorization: x,
1692
1692
  baseURL: "http://139.196.154.85:20025",
1693
1693
  "Content-Type": "application/json"
1694
1694
  }
1695
1695
  });
1696
- var _ = new Blob([he.data], {
1696
+ var f = new Blob([ce.data], {
1697
1697
  type: "application/octet-stream;charset=UTF-8"
1698
1698
  });
1699
- const Ce = [
1699
+ const ke = [
1700
1700
  {
1701
- suffix: "." + ((R = ($ = U.value) == null ? void 0 : $.split(".")) == null ? void 0 : R[1]),
1702
- blob: _,
1701
+ suffix: "." + ((A = (I = z.value) == null ? void 0 : I.split(".")) == null ? void 0 : A[1]),
1702
+ blob: f,
1703
1703
  mtlBlobs: []
1704
1704
  }
1705
1705
  ];
1706
- x.value.loadModelByDefaultPath(Ce);
1706
+ S.value.loadModelByDefaultPath(ke);
1707
1707
  }
1708
1708
  },
1709
1709
  { deep: !0, immediate: !0 }
1710
1710
  );
1711
- const Ve = async () => {
1712
- var le, ce, E, he, Ce, ge, Re, ue, S, Pe, Ee, Ue, Ye, He, Ae, ae, pe;
1711
+ const pe = async () => {
1712
+ var ie, re, x, ce, ke, ye, Ae, he, R, Te, xe, $e, Ye, He, Be, oe, de;
1713
1713
  o.value = !0;
1714
- let _ = (le = D.value) == null ? void 0 : le.split("/"), f = _[(_ == null ? void 0 : _.length) - 2];
1715
- const M = ((ce = O == null ? void 0 : O.find((W) => (W == null ? void 0 : W.key) === f)) == null ? void 0 : ce.value) ?? "";
1716
- let $ = "";
1717
- const R = await _e.post("http://139.196.154.85:20024/api/sysAuth/login", {
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", {
1718
1718
  account: "superadmin",
1719
1719
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
1720
1720
  codeId: 0,
1721
1721
  code: ""
1722
1722
  });
1723
- ((E = R == null ? void 0 : R.data) == null ? void 0 : E.code) === 200 && ($ = `Bearer ${(Ce = (he = R.data) == null ? void 0 : he.result) == null ? void 0 : Ce.accessToken}`, sessionStorage.setItem("magicToken", $));
1724
- const B = $ === "" ? "123456" : $, w = await _e.post(M, null, {
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, {
1725
1725
  headers: {
1726
1726
  Authorization: B,
1727
1727
  baseURL: "http://139.196.154.85:20025",
1728
1728
  "Content-Type": "multipart/form-data"
1729
1729
  }
1730
1730
  });
1731
- if (((ge = w == null ? void 0 : w.data) == null ? void 0 : ge.type) === "success" && Ut((ue = (Re = w == null ? void 0 : w.data) == null ? void 0 : Re.result) == null ? void 0 : ue.result)) {
1732
- const W = (Ye = (Ue = (Ee = JSON.parse((Pe = (S = w == null ? void 0 : w.data) == null ? void 0 : S.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ue[0]) == null ? void 0 : Ye.split("\\"), je = (((He = O == null ? void 0 : O.find((z) => (z == null ? void 0 : z.key) === f)) == null ? void 0 : He.resources) ?? "") + "/" + (((W == null ? void 0 : W[(W == null ? void 0 : W.length) - 2]) === "inputResources" ? "outputResources" : W == null ? void 0 : W[(W == null ? void 0 : W.length) - 2]) ?? "outputResources"), ye = await _e.post(je, null, {
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, {
1733
1733
  headers: {
1734
1734
  Authorization: B,
1735
1735
  baseURL: "http://139.196.154.85:20025",
1736
1736
  "Content-Type": "multipart/form-data"
1737
1737
  }
1738
1738
  });
1739
- if (((Ae = ye == null ? void 0 : ye.data) == null ? void 0 : Ae.type) === "success") {
1740
- const z = (ae = ye == null ? void 0 : ye.data) == null ? void 0 : ae.result, Te = Be.value, We = await ((pe = ot(Te)) == null ? void 0 : pe.map(async (se) => {
1741
- var Ke, rt, ct, we, X, $e;
1742
- if ((se == null ? void 0 : se.name) === "输出") {
1743
- if ((se == null ? void 0 : se.comp) === "Table")
1744
- se.compData = (Ke = se == null ? void 0 : se.compData) == null ? void 0 : Ke.map((F) => {
1745
- var q, ke;
1746
- return (F == null ? void 0 : F.key) === "tableContents" && (F.contents = (ke = (q = F == null ? void 0 : F.contents) == null ? void 0 : q.map((re) => (re = re == null ? void 0 : re.map((N, be) => {
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
1747
  var me, Ze, qe;
1748
- return typeof N == "string" && be > 1 ? ((me = F == null ? void 0 : F.contents) == null ? void 0 : me.length) > 1 ? N = ((Ze = z == null ? void 0 : z[be - 1]) != null && Ze.includes("input") ? N : z == null ? void 0 : z[be - 1]) ?? N : N = z == null ? void 0 : z[0] : N = ((qe = z == null ? void 0 : z[be - 1]) != null && qe.includes("input") ? N : z == null ? void 0 : z[be - 1]) ?? N, N;
1749
- }), re))) == null ? void 0 : ke.filter((re, N) => N <= (z == null ? void 0 : z.length) - 1)), F;
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;
1750
1750
  });
1751
- else if ((se == null ? void 0 : se.comp) === "Form") {
1751
+ else if ((ae == null ? void 0 : ae.comp) === "Form") {
1752
1752
  let F = "";
1753
- if (z == null || z.forEach((q) => {
1754
- F = F === "" ? F + q : F + "," + q;
1755
- }), se.compData = (rt = se == null ? void 0 : se.compData) == null ? void 0 : rt.map((q) => {
1756
- var ke;
1757
- return (q == null ? void 0 : q.key) === "formContent" && (q.contents = (ke = q.contents) == null ? void 0 : ke.map((re) => (re.value = F, re))), q;
1758
- }), (ct = F == null ? void 0 : F.split(",")) != null && ct.find((q) => q.includes(".obj"))) {
1759
- let q = {};
1760
- q.suffix = ".obj";
1761
- const ke = [];
1762
- let re = await ((X = (we = F == null ? void 0 : F.split(",")) == null ? void 0 : we.filter((N) => N.includes(".obj") || N.includes(".mtl"))) == null ? void 0 : X.map(async (N) => {
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"))) {
1759
+ let G = {};
1760
+ 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
1763
  var me, Ze;
1764
- if (N.includes(".obj")) {
1765
- const ht = (((me = O == null ? void 0 : O.find((Xe) => (Xe == null ? void 0 : Xe.key) === f)) == null ? void 0 : me.download) ?? "") + "/" + N, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await _e.post(ht, null, {
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, {
1766
1766
  responseType: "blob",
1767
1767
  // 必须设置
1768
1768
  headers: {
@@ -1771,12 +1771,12 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1771
1771
  "Content-Type": "application/json"
1772
1772
  }
1773
1773
  });
1774
- var be = new Blob([Je.data], {
1774
+ var ve = new Blob([Je.data], {
1775
1775
  type: "application/octet-stream;charset=UTF-8"
1776
1776
  });
1777
- q.blob = be;
1778
- } else if (N.includes(".mtl")) {
1779
- const ht = (((Ze = O == null ? void 0 : O.find((kt) => (kt == null ? void 0 : kt.key) === f)) == null ? void 0 : Ze.download) ?? "") + "/" + N, Ge = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await _e.post(ht, null, {
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, {
1780
1780
  responseType: "blob",
1781
1781
  // 必须设置
1782
1782
  headers: {
@@ -1785,20 +1785,20 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1785
1785
  "Content-Type": "application/json"
1786
1786
  }
1787
1787
  });
1788
- var be = new Blob([Je.data], {
1788
+ var ve = new Blob([Je.data], {
1789
1789
  type: "application/octet-stream;charset=UTF-8"
1790
1790
  });
1791
- ke.push(be);
1791
+ Pe.push(ve);
1792
1792
  }
1793
1793
  }));
1794
- await Promise.all(re), q.mtlBlobs = ke, x.value.loadModelByDefaultPath([q]);
1794
+ await Promise.all(le), G.mtlBlobs = Pe, S.value.loadModelByDefaultPath([G]);
1795
1795
  } else {
1796
- const q = [];
1797
- let ke = await (($e = F == null ? void 0 : F.split(",")) == null ? void 0 : $e.map(async (re) => {
1796
+ const G = [];
1797
+ let Pe = await ((Ie = F == null ? void 0 : F.split(",")) == null ? void 0 : Ie.map(async (le) => {
1798
1798
  var Ge, Je;
1799
- let N = {};
1800
- N.suffix = "." + ((Ge = re == null ? void 0 : re.split(".")) == null ? void 0 : Ge[1]);
1801
- const me = (((Je = O == null ? void 0 : O.find((Xe) => (Xe == null ? void 0 : Xe.key) === f)) == null ? void 0 : Je.download) ?? "") + "/" + re, Ze = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), qe = await _e.post(me, null, {
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, {
1802
1802
  responseType: "blob",
1803
1803
  // 必须设置
1804
1804
  headers: {
@@ -1810,121 +1810,121 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1810
1810
  var ht = new Blob([qe.data], {
1811
1811
  type: "application/octet-stream;charset=UTF-8"
1812
1812
  });
1813
- N.blob = ht, q.push(N);
1813
+ $.blob = ht, G.push($);
1814
1814
  }));
1815
- await Promise.all(ke), x.value.loadModelByDefaultPath(q);
1815
+ await Promise.all(Pe), S.value.loadModelByDefaultPath(G);
1816
1816
  }
1817
1817
  }
1818
1818
  }
1819
- return se;
1819
+ return ae;
1820
1820
  }));
1821
- Be.value = await Promise.all(We);
1821
+ Fe.value = await Promise.all(We);
1822
1822
  }
1823
1823
  }
1824
1824
  t.value++, o.value = !1;
1825
- }, ve = T(""), A = T("open"), De = T("open"), J = T(!1), C = () => {
1826
- const _ = document.getElementById("menuCollapse");
1827
- A.value === "open" ? (_.style.width = "18.75rem", _.style.height = "96%", _.style.overflow = "auto") : (_.style.width = "50px", _.style.height = "50px", _.style.overflow = "hidden");
1828
- }, Y = () => {
1829
- const _ = document.getElementById("operateCollapse");
1830
- De.value === "open" ? (_.style.width = "25rem", _.style.height = "96%", _.style.overflow = "auto") : (_.style.width = "50px", _.style.height = "50px", _.style.overflow = "hidden");
1825
+ }, Ce = T(""), D = T("open"), Re = T("open"), Q = T(!1), C = () => {
1826
+ 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 = () => {
1829
+ 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
1831
  }, vt = () => {
1832
- J.value = !J.value;
1833
- const _ = document.getElementById("operateCollapse"), f = document.getElementById("menuCollapse");
1834
- J.value ? (f.style.width = "18.75rem", _.style.width = "calc(100% - 24rem)") : _.style.width = "400px";
1835
- }, it = (_) => {
1836
- const f = URL.createObjectURL(_), M = document.createElement("a");
1837
- M.href = f, M.download = "file.txt", document.body.appendChild(M), M.click(), document.body.removeChild(M), URL.revokeObjectURL(f), n.value = !1;
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
1838
  }, Ct = async () => {
1839
- var le, ce, E, he, Ce, ge, Re, ue, S, Pe, Ee, Ue, Ye, He, Ae, ae;
1840
- n.value = !0;
1841
- let _ = (le = D.value) == null ? void 0 : le.split("/"), f = _[(_ == null ? void 0 : _.length) - 2];
1842
- const M = ((ce = O == null ? void 0 : O.find((pe) => (pe == null ? void 0 : pe.key) === f)) == null ? void 0 : ce.value) ?? "";
1843
- let $ = "";
1844
- const R = await _e.post("http://139.196.154.85:20024/api/sysAuth/login", {
1839
+ var ie, re, x, ce, ke, ye, Ae, he, R, Te, xe, $e, Ye, He, Be, oe;
1840
+ 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", {
1845
1845
  account: "superadmin",
1846
1846
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
1847
1847
  codeId: 0,
1848
1848
  code: ""
1849
1849
  });
1850
- if (((E = R == null ? void 0 : R.data) == null ? void 0 : E.code) === 200)
1851
- $ = `Bearer ${(Ce = (he = R.data) == null ? void 0 : he.result) == null ? void 0 : Ce.accessToken}`, sessionStorage.setItem("magicToken", $);
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);
1852
1852
  else
1853
1853
  throw Pt.error("响应出错了"), new Error("响应出错了");
1854
- const B = $ === "" ? "123456" : $, w = await _e.post(M, null, {
1854
+ const B = I === "" ? "123456" : I, y = await _e.post(E, null, {
1855
1855
  headers: {
1856
1856
  Authorization: B,
1857
1857
  baseURL: "http://139.196.154.85:20025",
1858
1858
  "Content-Type": "multipart/form-data"
1859
1859
  }
1860
1860
  });
1861
- if (((ge = w == null ? void 0 : w.data) == null ? void 0 : ge.code) === 200) {
1862
- if (Ut((ue = (Re = w == null ? void 0 : w.data) == null ? void 0 : Re.result) == null ? void 0 : ue.result)) {
1863
- const pe = (Ye = (Ue = (Ee = JSON.parse((Pe = (S = w == null ? void 0 : w.data) == null ? void 0 : S.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ue[0]) == null ? void 0 : Ye.split("\\"), lt = (((He = O == null ? void 0 : O.find((ye) => (ye == null ? void 0 : ye.key) === f)) == null ? void 0 : He.resources) ?? "") + "/" + ((pe == null ? void 0 : pe[(pe == null ? void 0 : pe.length) - 2]) ?? "outputResources"), je = await _e.post(lt, null, {
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, {
1864
1864
  headers: {
1865
1865
  Authorization: B,
1866
1866
  baseURL: "http://139.196.154.85:20025",
1867
1867
  "Content-Type": "multipart/form-data"
1868
1868
  }
1869
1869
  });
1870
- if (((Ae = je == null ? void 0 : je.data) == null ? void 0 : Ae.code) === 200) {
1871
- const ye = (ae = je == null ? void 0 : je.data) == null ? void 0 : ae.result, z = ot(Be.value);
1872
- z == null || z.map(async (Te) => {
1873
- var We, se, Ke, rt, ct;
1874
- if ((Te == null ? void 0 : Te.name) === "输出" && (Te == null ? void 0 : Te.comp) === "Form") {
1875
- let we = "";
1876
- ye == null || ye.forEach((X) => {
1877
- we = we === "" ? we + X : we + "," + X;
1878
- }), Te.compData = (We = Te == null ? void 0 : Te.compData) == null ? void 0 : We.map((X) => {
1879
- var $e;
1880
- return (X == null ? void 0 : X.key) === "formContent" && (X.contents = ($e = X.contents) == null ? void 0 : $e.map((F) => (F.value = we, F))), X;
1881
- }), (se = we == null ? void 0 : we.split(",")) != null && se.find((X) => X.includes(".obj")) ? (rt = (Ke = we == null ? void 0 : we.split(",")) == null ? void 0 : Ke.filter((X) => X.includes(".obj") || X.includes(".mtl"))) == null || rt.map(async (X) => {
1882
- var $e, F;
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;
1883
1883
  if (X.includes(".obj")) {
1884
- const ke = ((($e = O == null ? void 0 : O.find((me) => (me == null ? void 0 : me.key) === f)) == null ? void 0 : $e.download) ?? "") + "/" + X, re = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), N = await _e.post(ke, null, {
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, {
1885
1885
  responseType: "blob",
1886
1886
  // 必须设置
1887
1887
  headers: {
1888
- Authorization: re,
1888
+ Authorization: le,
1889
1889
  baseURL: "http://139.196.154.85:20025",
1890
1890
  "Content-Type": "application/json"
1891
1891
  }
1892
1892
  });
1893
- let be = new Blob([N.data], {
1893
+ let ve = new Blob([$.data], {
1894
1894
  type: "application/octet-stream;charset=UTF-8"
1895
1895
  });
1896
- it(be);
1896
+ it(ve);
1897
1897
  } else if (X.includes(".mtl")) {
1898
- const ke = (((F = O == null ? void 0 : O.find((me) => (me == null ? void 0 : me.key) === f)) == null ? void 0 : F.download) ?? "") + "/" + X, re = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), N = await _e.post(ke, null, {
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, {
1899
1899
  responseType: "blob",
1900
1900
  // 必须设置
1901
1901
  headers: {
1902
- Authorization: re,
1902
+ Authorization: le,
1903
1903
  baseURL: "http://139.196.154.85:20025",
1904
1904
  "Content-Type": "application/json"
1905
1905
  }
1906
1906
  });
1907
- let be = new Blob([N.data], {
1907
+ let ve = new Blob([$.data], {
1908
1908
  type: "application/octet-stream;charset=UTF-8"
1909
1909
  });
1910
- it(be);
1910
+ it(ve);
1911
1911
  }
1912
- }) : (ct = we == null ? void 0 : we.split(",")) == null || ct.map(async (X) => {
1913
- var N, be;
1914
- "" + ((N = X == null ? void 0 : X.split(".")) == null ? void 0 : N[1]);
1915
- const F = (((be = O == null ? void 0 : O.find((me) => (me == null ? void 0 : me.key) === f)) == null ? void 0 : be.download) ?? "") + "/" + X, q = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), ke = await _e.post(F, null, {
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, {
1916
1916
  responseType: "blob",
1917
1917
  // 必须设置
1918
1918
  headers: {
1919
- Authorization: q,
1919
+ Authorization: G,
1920
1920
  baseURL: "http://139.196.154.85:20025",
1921
1921
  "Content-Type": "application/json"
1922
1922
  }
1923
1923
  });
1924
- let re = new Blob([ke.data], {
1924
+ let le = new Blob([Pe.data], {
1925
1925
  type: "application/octet-stream;charset=UTF-8"
1926
1926
  });
1927
- it(re);
1927
+ it(le);
1928
1928
  });
1929
1929
  }
1930
1930
  });
@@ -1934,62 +1934,62 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1934
1934
  } else
1935
1935
  throw Pt.error("响应出错了"), new Error("响应出错了");
1936
1936
  };
1937
- return (_, f) => {
1938
- const M = Q("el-button"), $ = Q("el-avatar"), R = Q("el-header"), B = Q("el-container"), w = Q("el-icon"), le = Q("el-input"), ce = Q("el-aside"), E = Q("el-collapse-item"), he = Q("el-collapse"), Ce = Q("el-main"), ge = Q("router-view"), Re = Zt("loading");
1939
- return c(I) === "edit" ? (v(), G(B, {
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, {
1940
1940
  key: 0,
1941
1941
  class: "client-container"
1942
1942
  }, {
1943
1943
  default: b(() => [
1944
- u(R, { class: "client-structure-header" }, {
1944
+ u(A, { class: "client-structure-header" }, {
1945
1945
  default: b(() => {
1946
- var ue;
1946
+ var he;
1947
1947
  return [
1948
- d("div", Ga, [
1949
- u(M, {
1948
+ p("div", Ga, [
1949
+ u(E, {
1950
1950
  id: "transparentBgButton",
1951
1951
  onClick: c(Wt)
1952
1952
  }, {
1953
- default: b(() => f[5] || (f[5] = [
1954
- Me(" 返回页面 ")
1953
+ default: b(() => m[5] || (m[5] = [
1954
+ Ee(" 返回页面 ")
1955
1955
  ])),
1956
1956
  _: 1,
1957
1957
  __: [5]
1958
1958
  }, 8, ["onClick"]),
1959
- u(M, {
1959
+ u(E, {
1960
1960
  id: "transparentBgButton",
1961
- onClick: f[0] || (f[0] = (S) => {
1962
- var Pe, Ee;
1963
- return c(qt)((Ee = (Pe = c(r)) == null ? void 0 : Pe.map((Ue) => Ue.value)) == null ? void 0 : Ee.join("/"));
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("/"));
1964
1964
  })
1965
1965
  }, {
1966
1966
  icon: b(() => [
1967
- u(ze, { name: "Store" })
1967
+ u(Ne, { name: "Store" })
1968
1968
  ]),
1969
1969
  default: b(() => [
1970
- f[6] || (f[6] = Me(" 保存页面 "))
1970
+ m[6] || (m[6] = Ee(" 保存页面 "))
1971
1971
  ]),
1972
1972
  _: 1,
1973
1973
  __: [6]
1974
1974
  })
1975
1975
  ]),
1976
- d("div", Ja, [
1977
- (v(), G(ro, {
1978
- key: c(r),
1979
- breadArray: c(r),
1976
+ p("div", Ja, [
1977
+ (w(), J(ro, {
1978
+ key: c(l),
1979
+ breadArray: c(l),
1980
1980
  onClick: c(Gt)
1981
1981
  }, null, 8, ["breadArray", "onClick"]))
1982
1982
  ]),
1983
- d("div", Qa, [
1984
- nt(_.$slots, "default", {}, void 0, !0),
1985
- u($, {
1983
+ p("div", Qa, [
1984
+ nt(f.$slots, "default", {}, void 0, !0),
1985
+ u(I, {
1986
1986
  size: 35,
1987
- src: (ue = c(ne)) == null ? void 0 : ue.avatarUrl
1987
+ src: (he = c(te)) == null ? void 0 : he.avatarUrl
1988
1988
  }, {
1989
1989
  default: b(() => {
1990
- var S;
1990
+ var R;
1991
1991
  return [
1992
- Me(Ne(((S = c(ne)) == null ? void 0 : S.account) ?? "未知"), 1)
1992
+ Ee(Ue(((R = c(te)) == null ? void 0 : R.account) ?? "未知"), 1)
1993
1993
  ];
1994
1994
  }),
1995
1995
  _: 1
@@ -1999,56 +1999,56 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
1999
1999
  }),
2000
2000
  _: 3
2001
2001
  }),
2002
- c(I) === "edit" ? (v(), G(B, {
2002
+ c(W) === "edit" ? (w(), J(B, {
2003
2003
  key: 0,
2004
2004
  class: "model-operate",
2005
2005
  style: { "margin-top": "10px", height: "0px" }
2006
2006
  }, {
2007
2007
  default: b(() => [
2008
- d("div", es, [
2008
+ p("div", es, [
2009
2009
  u(Rt)
2010
2010
  ]),
2011
- d("div", ts, [
2011
+ p("div", ts, [
2012
2012
  u(At)
2013
2013
  ]),
2014
- d("div", os, [
2014
+ p("div", os, [
2015
2015
  u(Bt)
2016
2016
  ])
2017
2017
  ]),
2018
2018
  _: 1
2019
- })) : de("", !0)
2019
+ })) : ue("", !0)
2020
2020
  ]),
2021
2021
  _: 3
2022
- })) : et((v(), G(B, {
2022
+ })) : et((w(), J(B, {
2023
2023
  key: 1,
2024
2024
  class: "client-container",
2025
2025
  "element-loading-text": "正在加载页面数据..."
2026
2026
  }, {
2027
2027
  default: b(() => [
2028
- u(R, { class: "client-header" }, {
2028
+ u(A, { class: "client-header" }, {
2029
2029
  default: b(() => {
2030
- var ue;
2030
+ var he;
2031
2031
  return [
2032
- d("div", as, [
2033
- u(ze, {
2032
+ p("div", as, [
2033
+ u(Ne, {
2034
2034
  name: "logo",
2035
2035
  style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
2036
2036
  }),
2037
- Me(" " + Ne(c(V) === "" ? "CPMPIP" : c(V)), 1)
2037
+ Ee(" " + Ue(c(U) === "" ? "CPMPIP" : c(U)), 1)
2038
2038
  ]),
2039
- d("div", ss, [
2039
+ p("div", ss, [
2040
2040
  u(lo, { mode: "horizontal" })
2041
2041
  ]),
2042
- d("div", ns, [
2043
- u(le, {
2044
- modelValue: ve.value,
2045
- "onUpdate:modelValue": f[1] || (f[1] = (S) => ve.value = S),
2042
+ p("div", ns, [
2043
+ u(ie, {
2044
+ modelValue: Ce.value,
2045
+ "onUpdate:modelValue": m[1] || (m[1] = (R) => Ce.value = R),
2046
2046
  clearable: "",
2047
2047
  placeholder: "搜索",
2048
2048
  style: { width: "130px" }
2049
2049
  }, {
2050
2050
  prefix: b(() => [
2051
- u(w, { class: "el-input__icon" }, {
2051
+ u(y, { class: "el-input__icon" }, {
2052
2052
  default: b(() => [
2053
2053
  u(c(no))
2054
2054
  ]),
@@ -2057,42 +2057,42 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2057
2057
  ]),
2058
2058
  _: 1
2059
2059
  }, 8, ["modelValue"]),
2060
- a.showButton ? (v(), G(M, {
2060
+ a.showButton ? (w(), J(E, {
2061
2061
  key: 0,
2062
2062
  id: "transparentBgButton"
2063
2063
  }, {
2064
2064
  icon: b(() => [
2065
- u(ze, { name: "App" })
2065
+ u(Ne, { name: "App" })
2066
2066
  ]),
2067
2067
  default: b(() => [
2068
- f[7] || (f[7] = Me(" 生成APP "))
2068
+ m[7] || (m[7] = Ee(" 生成APP "))
2069
2069
  ]),
2070
2070
  _: 1,
2071
2071
  __: [7]
2072
- })) : de("", !0),
2073
- a.showButton && c(I) === "view" ? (v(), G(M, {
2072
+ })) : ue("", !0),
2073
+ a.showButton && c(W) === "view" ? (w(), J(E, {
2074
2074
  key: 1,
2075
2075
  id: "transparentBgButton",
2076
2076
  onClick: c(Jt)
2077
2077
  }, {
2078
2078
  icon: b(() => [
2079
- u(ze, { name: "write" })
2079
+ u(Ne, { name: "write" })
2080
2080
  ]),
2081
2081
  default: b(() => [
2082
- f[8] || (f[8] = Me(" 修改布局 "))
2082
+ m[8] || (m[8] = Ee(" 修改布局 "))
2083
2083
  ]),
2084
2084
  _: 1,
2085
2085
  __: [8]
2086
- }, 8, ["onClick"])) : de("", !0),
2087
- nt(_.$slots, "default", {}, void 0, !0),
2088
- u($, {
2086
+ }, 8, ["onClick"])) : ue("", !0),
2087
+ nt(f.$slots, "default", {}, void 0, !0),
2088
+ u(I, {
2089
2089
  size: 35,
2090
- src: (ue = c(ne)) == null ? void 0 : ue.avatarUrl
2090
+ src: (he = c(te)) == null ? void 0 : he.avatarUrl
2091
2091
  }, {
2092
2092
  default: b(() => {
2093
- var S;
2093
+ var R;
2094
2094
  return [
2095
- Me(Ne(((S = c(ne)) == null ? void 0 : S.account) ?? "未知"), 1)
2095
+ Ee(Ue(((R = c(te)) == null ? void 0 : R.account) ?? "未知"), 1)
2096
2096
  ];
2097
2097
  }),
2098
2098
  _: 1
@@ -2104,29 +2104,29 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2104
2104
  }),
2105
2105
  u(B, { class: "client-body" }, {
2106
2106
  default: b(() => [
2107
- _.$route.path === "/" ? (v(), G(Ce, {
2107
+ f.$route.path === "/" ? (w(), J(ke, {
2108
2108
  key: 0,
2109
2109
  class: "client-main"
2110
2110
  }, {
2111
2111
  default: b(() => [
2112
- u(he, {
2113
- modelValue: A.value,
2114
- "onUpdate:modelValue": f[2] || (f[2] = (ue) => A.value = ue),
2112
+ u(ce, {
2113
+ modelValue: D.value,
2114
+ "onUpdate:modelValue": m[2] || (m[2] = (he) => D.value = he),
2115
2115
  accordion: "",
2116
2116
  class: "client-aside",
2117
2117
  id: "menuCollapse",
2118
2118
  onChange: C
2119
2119
  }, {
2120
2120
  default: b(() => [
2121
- u(E, { name: "open" }, {
2121
+ u(x, { name: "open" }, {
2122
2122
  icon: b(() => [
2123
- u(ze, {
2124
- name: A.value === "" ? "Right" : "Left",
2123
+ u(Ne, {
2124
+ name: D.value === "" ? "Right" : "Left",
2125
2125
  style: { width: "20px", height: "20px" }
2126
2126
  }, null, 8, ["name"])
2127
2127
  ]),
2128
2128
  default: b(() => [
2129
- u(ce, { style: { width: "100%" } }, {
2129
+ u(re, { style: { width: "100%" } }, {
2130
2130
  default: b(() => [
2131
2131
  u(gt, { mode: "vertical" })
2132
2132
  ]),
@@ -2138,81 +2138,81 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2138
2138
  ]),
2139
2139
  _: 1
2140
2140
  }, 8, ["modelValue"]),
2141
- d("div", is, [
2141
+ p("div", is, [
2142
2142
  u(Sa, {
2143
- isShow: j.value,
2143
+ isShow: Y.value,
2144
2144
  windowConfig: a.windowConfig,
2145
2145
  ref_key: "threeModelRef",
2146
- ref: x
2146
+ ref: S
2147
2147
  }, null, 8, ["isShow", "windowConfig"])
2148
2148
  ]),
2149
- u(he, {
2150
- modelValue: De.value,
2151
- "onUpdate:modelValue": f[4] || (f[4] = (ue) => De.value = ue),
2149
+ u(ce, {
2150
+ modelValue: Re.value,
2151
+ "onUpdate:modelValue": m[4] || (m[4] = (he) => Re.value = he),
2152
2152
  accordion: "",
2153
2153
  class: "client-main-operate",
2154
2154
  id: "operateCollapse",
2155
- onChange: Y
2155
+ onChange: K
2156
2156
  }, {
2157
2157
  default: b(() => [
2158
- u(E, { name: "open" }, {
2158
+ u(x, { name: "open" }, {
2159
2159
  icon: b(() => [
2160
- u(ze, {
2161
- name: De.value === "open" ? "Right" : "Left",
2160
+ u(Ne, {
2161
+ name: Re.value === "open" ? "Right" : "Left",
2162
2162
  style: { width: "20px", height: "20px" }
2163
2163
  }, null, 8, ["name"])
2164
2164
  ]),
2165
2165
  default: b(() => {
2166
- var ue;
2166
+ var he;
2167
2167
  return [
2168
- d("div", null, [
2169
- u(ze, {
2168
+ p("div", null, [
2169
+ u(Ne, {
2170
2170
  class: "fold-icon",
2171
- name: J.value ? "Right" : "Left",
2171
+ name: Q.value ? "Right" : "Left",
2172
2172
  onClick: vt
2173
2173
  }, null, 8, ["name"]),
2174
- (v(!0), K(St, null, Dt((ue = c(ot)(c(Be))) == null ? void 0 : ue.filter((S) => S.comp !== "FormTop"), (S, Pe) => {
2175
- var Ee;
2176
- return v(), K("div", {
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", {
2177
2177
  class: "item-view-content",
2178
- key: Pe
2178
+ key: Te
2179
2179
  }, [
2180
- ((Ee = S == null ? void 0 : S.comp) == null ? void 0 : Ee.toUpperCase()) !== "TABLE" ? (v(), K("div", ls, Ne(S.name), 1)) : de("", !0),
2181
- (v(), G(Xt(c(Qt)(S.comp)), {
2182
- compName: S.name,
2183
- itemData: S == null ? void 0 : S.compData,
2184
- childItemData: S == null ? void 0 : S.itemChildData,
2185
- key: (S == null ? void 0 : S.id) ?? Pe,
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,
2186
2186
  onChange: c(oo),
2187
- index: (S == null ? void 0 : S.id) ?? Pe,
2187
+ index: (R == null ? void 0 : R.id) ?? Te,
2188
2188
  onContentChange: c(to),
2189
2189
  onPageChange: c(eo)
2190
2190
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
2191
2191
  ]);
2192
2192
  }), 128)),
2193
- s.value ? (v(), K("div", rs, [
2194
- i.value ? (v(), G(st, {
2193
+ s.value ? (w(), V("div", rs, [
2194
+ n.value ? (w(), J(st, {
2195
2195
  key: 0,
2196
2196
  class: "calculator-content",
2197
2197
  onClickTrigger: Ct,
2198
- loading: n.value,
2198
+ loading: i.value,
2199
2199
  modelValue: "预览"
2200
- }, null, 8, ["loading"])) : de("", !0),
2200
+ }, null, 8, ["loading"])) : ue("", !0),
2201
2201
  u(st, {
2202
2202
  class: "calculator-content",
2203
- onClickTrigger: f[3] || (f[3] = (S) => Ve()),
2203
+ onClickTrigger: m[3] || (m[3] = (R) => pe()),
2204
2204
  loading: o.value,
2205
2205
  modelValue: "调用方法"
2206
2206
  }, null, 8, ["loading"])
2207
- ])) : de("", !0),
2208
- P.value ? (v(), K("div", cs, [
2207
+ ])) : ue("", !0),
2208
+ k.value ? (w(), V("div", cs, [
2209
2209
  u(st, {
2210
2210
  class: "calculator-content",
2211
2211
  modelValue: "执行方法",
2212
- onClickTrigger: ee,
2213
- loading: y.value
2212
+ onClickTrigger: H,
2213
+ loading: g.value
2214
2214
  }, null, 8, ["loading"])
2215
- ])) : de("", !0)
2215
+ ])) : ue("", !0)
2216
2216
  ])
2217
2217
  ];
2218
2218
  }),
@@ -2223,21 +2223,21 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2223
2223
  }, 8, ["modelValue"])
2224
2224
  ]),
2225
2225
  _: 1
2226
- })) : (v(), G(Ce, {
2226
+ })) : (w(), J(ke, {
2227
2227
  key: 1,
2228
2228
  class: "client-router"
2229
2229
  }, {
2230
2230
  default: b(() => [
2231
- d("div", hs, [
2232
- u(ce, { width: "300px" }, {
2231
+ p("div", hs, [
2232
+ u(re, { width: "300px" }, {
2233
2233
  default: b(() => [
2234
2234
  u(gt, { mode: "vertical" })
2235
2235
  ]),
2236
2236
  _: 1
2237
2237
  })
2238
2238
  ]),
2239
- d("div", us, [
2240
- u(ge)
2239
+ p("div", us, [
2240
+ u(ye)
2241
2241
  ])
2242
2242
  ]),
2243
2243
  _: 1
@@ -2248,11 +2248,11 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2248
2248
  ]),
2249
2249
  _: 3
2250
2250
  })), [
2251
- [Re, c(m)]
2251
+ [Ae, c(M)]
2252
2252
  ]);
2253
2253
  };
2254
2254
  }
2255
- }), ps = /* @__PURE__ */ Ie(ds, [["__scopeId", "data-v-c30c56d4"]]), ms = { class: "system-wrap" }, fs = {
2255
+ }), ps = /* @__PURE__ */ Ve(ds, [["__scopeId", "data-v-c30c56d4"]]), ms = { class: "system-wrap" }, fs = {
2256
2256
  __name: "index",
2257
2257
  props: {
2258
2258
  windowConfig: {
@@ -2272,61 +2272,61 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2272
2272
  jsonContents: Array
2273
2273
  },
2274
2274
  setup(a) {
2275
- const e = bt(Le), t = Lt(Le), o = wt();
2275
+ const e = bt(je), t = Lt(je), o = wt();
2276
2276
  T(!1);
2277
- const r = T(!0), s = a, i = uo(() => {
2277
+ const l = T(!0), s = a, n = uo(() => {
2278
2278
  switch (s == null ? void 0 : s.platform) {
2279
2279
  case "browser":
2280
2280
  return Uo;
2281
2281
  case "client":
2282
2282
  return No;
2283
2283
  }
2284
- }), n = (l) => {
2285
- const P = document.documentElement;
2286
- l == null || l.forEach((U) => {
2287
- P.style.setProperty(U.name, U.value);
2284
+ }), i = (r) => {
2285
+ const k = document.documentElement;
2286
+ r == null || r.forEach((z) => {
2287
+ k.style.setProperty(z.name, z.value);
2288
2288
  });
2289
2289
  };
2290
- return Se(() => s.platform, (l, P) => {
2291
- l && n(i.value);
2292
- }, { immediate: !0 }), Se(
2290
+ return De(() => s.platform, (r, k) => {
2291
+ r && i(n.value);
2292
+ }, { immediate: !0 }), De(
2293
2293
  () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
2294
2294
  async () => {
2295
- var U, te, ne, oe;
2296
- if (((U = s == null ? void 0 : s.jsonContents) == null ? void 0 : U.length) > 0) {
2295
+ var z, se, te, ne;
2296
+ if (((z = s == null ? void 0 : s.jsonContents) == null ? void 0 : z.length) > 0) {
2297
2297
  e.setOriginalData(s == null ? void 0 : s.jsonContents);
2298
2298
  return;
2299
2299
  }
2300
- if (!(s != null && s.content) || ((te = s == null ? void 0 : s.content) == null ? void 0 : te.length) === 0) return;
2301
- r.value = !0, o.setImportLoading(!0);
2302
- let l = [], P = [];
2303
- t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (oe = (ne = s == null ? void 0 : s.content) == null ? void 0 : ne.filter((I) => I !== "")) == null || oe.forEach((I) => {
2304
- jo(I) ? P.push(Oo(I)) : It(I) ? P.push(It(I)) : Vt(I) ? P.push(Vt(I)) : P.push(mo(I));
2305
- }), l = P == null ? void 0 : P[0], await fo(l), await so(), e.setOriginalData(l), o.setImportLoading(!1);
2300
+ if (!(s != null && s.content) || ((se = s == null ? void 0 : s.content) == null ? void 0 : se.length) === 0) return;
2301
+ 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);
2306
2306
  },
2307
2307
  { deep: !0, immediate: !0 }
2308
- ), (l, P) => (v(), K("div", ms, [
2309
- a.platform === "browser" ? (v(), G(qa, {
2308
+ ), (r, k) => (w(), V("div", ms, [
2309
+ a.platform === "browser" ? (w(), J(qa, {
2310
2310
  key: 0,
2311
2311
  showButton: a.showButton
2312
2312
  }, {
2313
2313
  default: b(() => [
2314
- nt(l.$slots, "default", {}, void 0, !0)
2314
+ nt(r.$slots, "default", {}, void 0, !0)
2315
2315
  ]),
2316
2316
  _: 3
2317
- }, 8, ["showButton"])) : (v(), G(ps, {
2317
+ }, 8, ["showButton"])) : (w(), J(ps, {
2318
2318
  key: 1,
2319
2319
  windowConfig: a.windowConfig,
2320
2320
  showButton: a.showButton
2321
2321
  }, {
2322
2322
  default: b(() => [
2323
- nt(l.$slots, "default", {}, void 0, !0)
2323
+ nt(r.$slots, "default", {}, void 0, !0)
2324
2324
  ]),
2325
2325
  _: 3
2326
2326
  }, 8, ["windowConfig", "showButton"]))
2327
2327
  ]));
2328
2328
  }
2329
- }, _s = /* @__PURE__ */ Ie(fs, [["__scopeId", "data-v-63e718b2"]]), gs = { class: "add-model-content" }, ys = {
2329
+ }, _s = /* @__PURE__ */ Ve(fs, [["__scopeId", "data-v-63e718b2"]]), gs = { class: "add-model-content" }, ys = {
2330
2330
  key: 0,
2331
2331
  class: "model-operate"
2332
2332
  }, ws = { class: "model-select" }, bs = { class: "model-fill" }, vs = {
@@ -2358,135 +2358,136 @@ const lo = /* @__PURE__ */ Ie(po, [["render", Da], ["__scopeId", "data-v-5c2d7ed
2358
2358
  },
2359
2359
  emits: ["change", "contentChange"],
2360
2360
  setup(a, { emit: e }) {
2361
- const t = a, o = e, r = T([]), s = T([]), i = T([]), n = T(0), l = bt(Le), P = wt(Le), { itemData: U, originalData: te } = Fe(l), { activeMenuPath: ne, platform: oe } = Fe(P), I = T(null), Z = T(0), h = T([]);
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([]);
2362
2362
  T("");
2363
- const k = T(0);
2364
- Se(
2363
+ const d = T(0);
2364
+ De(
2365
2365
  () => t == null ? void 0 : t.pathContent,
2366
2366
  () => {
2367
- (t == null ? void 0 : t.pathContent) !== "" && l.setSystemPath(t == null ? void 0 : t.pathContent);
2367
+ (t == null ? void 0 : t.pathContent) !== "" && k.setSystemPath(t == null ? void 0 : t.pathContent);
2368
2368
  },
2369
2369
  {
2370
2370
  deep: !0,
2371
2371
  immediate: !0
2372
2372
  }
2373
2373
  );
2374
- const p = (m) => {
2375
- o("contentChange", m);
2376
- }, x = (m) => {
2377
- var V;
2378
- const D = (V = ot(m == null ? void 0 : m.wholeValue)) == null ? void 0 : V.map((j) => {
2379
- var ee;
2380
- return (j == null ? void 0 : j.comp) === "Form" && (j.compData = (ee = j.compData) == null ? void 0 : ee.map((ie) => ((ie == null ? void 0 : ie.key) === "formContent" && (ie.contents = zo(ie == null ? void 0 : ie.contents)), ie))), j;
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;
2381
2381
  });
2382
2382
  o("change", {
2383
2383
  originalContents: te.value,
2384
- currentContents: m == null ? void 0 : m.wholeValue,
2385
- editContent: m == null ? void 0 : m.editValue,
2386
- arrayToContents: D
2384
+ currentContents: P == null ? void 0 : P.wholeValue,
2385
+ editContent: P == null ? void 0 : P.editValue,
2386
+ arrayToContents: U
2387
2387
  });
2388
2388
  };
2389
- Se(
2390
- () => s.value,
2389
+ De(
2390
+ () => n.value,
2391
2391
  () => {
2392
- k.value === s.value.length && s.value.length !== 0 && (r.value = s.value);
2392
+ d.value === n.value.length && n.value.length !== 0 && (l.value = n.value);
2393
2393
  },
2394
2394
  { deep: !0, immediate: !0 }
2395
2395
  );
2396
2396
  const g = () => {
2397
- I.value.click();
2398
- }, y = async (m) => {
2399
- const D = m.target.files;
2400
- if (!D) return;
2401
- new FileReader(), r.value = [], s.value = [], k.value = D.length;
2402
- const V = Array.from(D).map(async (j) => await new Promise((ee) => {
2403
- const ie = new FileReader();
2404
- ie.onload = (Ve) => {
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) => {
2405
2405
  try {
2406
- s.value.push(Ve.target.result), Z.value++;
2407
- } catch (ve) {
2408
- console.error("解析失败:", ve);
2406
+ n.value.push(Ce.target.result), h.value++;
2407
+ } catch (D) {
2408
+ console.error("解析失败:", D);
2409
2409
  return;
2410
2410
  }
2411
- }, ie.onerror = () => ee(`读取 ${j.name} 失败`), ie.readAsText(j), m.target.value = "", I.value = null;
2411
+ }, pe.onerror = () => ge(`读取 ${H.name} 失败`), pe.readAsText(H), P.target.value = "", N.value = null, s.value++;
2412
2412
  }));
2413
- await Promise.all(V);
2413
+ await Promise.all(Y);
2414
2414
  };
2415
- return Se(
2415
+ return De(
2416
2416
  () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
2417
2417
  async () => {
2418
- await so(), r.value = t.content, i.value = t == null ? void 0 : t.jsonContents;
2418
+ await so(), l.value = t.content, i.value = t == null ? void 0 : t.jsonContents;
2419
2419
  },
2420
2420
  { deep: !0, immediate: !0 }
2421
- ), Se(
2422
- () => Z.value,
2421
+ ), De(
2422
+ () => h.value,
2423
2423
  () => {
2424
- var m;
2425
- ((m = h.value) == null ? void 0 : m.length) !== 0 && (l.setOriginalData(h.value), l.setItemData(h.value));
2424
+ var P;
2425
+ ((P = v.value) == null ? void 0 : P.length) !== 0 && (k.setOriginalData(v.value), k.setItemData(v.value));
2426
2426
  },
2427
2427
  { deep: !0, immediate: !0 }
2428
- ), (m, D) => {
2429
- const V = Q("svg-icon"), j = Q("el-button");
2430
- return v(), K("div", gs, [
2431
- (t == null ? void 0 : t.mode) === "edit" ? (v(), K("div", ys, [
2432
- d("div", ws, [
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
2433
  u(Rt)
2434
2434
  ]),
2435
- (v(), K("div", {
2435
+ (w(), V("div", {
2436
2436
  class: "model-show",
2437
- key: n.value
2437
+ key: r.value
2438
2438
  }, [
2439
2439
  u(At)
2440
2440
  ])),
2441
- d("div", bs, [
2441
+ p("div", bs, [
2442
2442
  u(Bt)
2443
2443
  ])
2444
- ])) : de("", !0),
2445
- (t == null ? void 0 : t.mode) === "view" ? (v(), K("div", vs, [
2446
- (v(), G(_s, {
2444
+ ])) : ue("", !0),
2445
+ (t == null ? void 0 : t.mode) === "view" ? (w(), V("div", vs, [
2446
+ (w(), J(_s, {
2447
2447
  showButton: a.showButton,
2448
- platform: c(oe),
2449
- content: r.value,
2450
- onChange: x,
2448
+ platform: c(W),
2449
+ content: l.value,
2450
+ onChange: _,
2451
2451
  jsonContents: i.value,
2452
- onContentChange: p,
2453
- key: n.value
2452
+ onContentChange: S,
2453
+ key: r.value
2454
2454
  }, {
2455
2455
  default: b(() => {
2456
- var ee;
2456
+ var ge;
2457
2457
  return [
2458
- ((ee = t == null ? void 0 : t.jsonContents) == null ? void 0 : ee.length) === 0 && (t != null && t.showButton) ? (v(), G(j, {
2458
+ ((ge = t == null ? void 0 : t.jsonContents) == null ? void 0 : ge.length) === 0 && (t != null && t.showButton) ? (w(), J(H, {
2459
2459
  key: 0,
2460
2460
  id: "transparentBgButton",
2461
2461
  onClick: g
2462
2462
  }, {
2463
2463
  icon: b(() => [
2464
- u(V, { name: "import" })
2464
+ u(Y, { name: "import" })
2465
2465
  ]),
2466
2466
  default: b(() => [
2467
- d("input", {
2467
+ (w(), V("input", {
2468
2468
  type: "file",
2469
+ key: s.value,
2469
2470
  ref_key: "fileInput",
2470
- ref: I,
2471
+ ref: N,
2471
2472
  accept: ".txt, .inm",
2472
- onChange: y,
2473
+ onChange: M,
2473
2474
  style: { display: "none" },
2474
2475
  multiple: ""
2475
- }, null, 544),
2476
- D[0] || (D[0] = Me(" 导入模型 "))
2476
+ }, null, 32)),
2477
+ U[0] || (U[0] = Ee(" 导入模型 "))
2477
2478
  ]),
2478
2479
  _: 1,
2479
2480
  __: [0]
2480
- })) : de("", !0)
2481
+ })) : ue("", !0)
2481
2482
  ];
2482
2483
  }),
2483
2484
  _: 1
2484
2485
  }, 8, ["showButton", "platform", "content", "jsonContents"]))
2485
- ])) : de("", !0)
2486
+ ])) : ue("", !0)
2486
2487
  ]);
2487
2488
  };
2488
2489
  }
2489
- }, Us = /* @__PURE__ */ Ie(Cs, [["__scopeId", "data-v-14b5611b"]]);
2490
+ }, Us = /* @__PURE__ */ Ve(Cs, [["__scopeId", "data-v-23015cb0"]]);
2490
2491
  export {
2491
2492
  Us as default
2492
2493
  };