ss-component-new 1.1.381 → 1.1.382

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/{array-DA7a1zd0.cjs → array-BkkMI3CS.cjs} +1 -1
  2. package/dist/{array-DyGPp-dK.js → array-DroB_LrT.js} +2 -2
  3. package/dist/{cloneDeep-Drd7BC81.js → cloneDeep-CLsg4k51.js} +1 -1
  4. package/dist/{cloneDeep-DoMbCUmk.cjs → cloneDeep-Dk8eC54J.cjs} +1 -1
  5. package/dist/{index-C41d5mEi.js → index-8qsWSwjm.js} +9 -9
  6. package/dist/{index-pLXjqFZ1.js → index-B-ioOKHN.js} +5 -5
  7. package/dist/{index-BOaX82bq.cjs → index-B2w_ZWR_.cjs} +1 -1
  8. package/dist/{index-CwPupuCY.cjs → index-B49grmLX.cjs} +1 -1
  9. package/dist/{index-DfKV12S5.cjs → index-BEH23qq-.cjs} +1 -1
  10. package/dist/{index-DkxdtGrQ.js → index-BGdIfp7l.js} +1 -1
  11. package/dist/{index-BXdqQPiJ.js → index-BLD0iV6Q.js} +7 -7
  12. package/dist/{index-C-N_lE15.cjs → index-BRi-CQmP.cjs} +1 -1
  13. package/dist/{index-DGA1s0EK.js → index-BTonv-B-.js} +1317 -1161
  14. package/dist/{index-BjVoIRs6.js → index-BY7si81Q.js} +6 -6
  15. package/dist/{index-DoODoXgF.cjs → index-BZQ-81gS.cjs} +1 -1
  16. package/dist/{index-Fyzco0Lu.cjs → index-B_nwPYBc.cjs} +1 -1
  17. package/dist/{index-C8ngLRV7.js → index-Ba3AQrjV.js} +6 -6
  18. package/dist/{index-DF9OO9Uj.cjs → index-BhYSyjzT.cjs} +1 -1
  19. package/dist/{index-Cwja4fA1.js → index-BiCUuNEB.js} +3 -3
  20. package/dist/{index-BHMa193T.js → index-BmZ4qjWZ.js} +8 -8
  21. package/dist/{index-s9e7UKYH.cjs → index-BuumWaWp.cjs} +1 -1
  22. package/dist/{index-CzyjgwIh.cjs → index-Bzl3t-2m.cjs} +1 -1
  23. package/dist/{index-BBtg5kUj.cjs → index-C1gM1VTu.cjs} +1 -1
  24. package/dist/{index-KopgtUPL.cjs → index-C3CgDabb.cjs} +1 -1
  25. package/dist/{index-B0YE7vI8.js → index-CMKhda-O.js} +1 -1
  26. package/dist/{index-DXsynMMh.cjs → index-CN_0MfPP.cjs} +1 -1
  27. package/dist/{index-CTmpTOZ7.cjs → index-CQdprUMI.cjs} +1 -1
  28. package/dist/{index-dEQL9507.js → index-CYBJfVH6.js} +7 -7
  29. package/dist/{index-CnP63qc0.js → index-CYPdV5Gw.js} +3 -3
  30. package/dist/{index-1WnQpJny.cjs → index-CZ7uw9-S.cjs} +1 -1
  31. package/dist/{index-sZvY2QOO.cjs → index-CkF5Y7DY.cjs} +1 -1
  32. package/dist/{index-CeL8Erwh.cjs → index-ClpS9Gds.cjs} +1 -1
  33. package/dist/{index-CIHzxyoh.js → index-CnTV1O_1.js} +3 -3
  34. package/dist/{index-BGRexsLO.js → index-Cp7aJoqP.js} +9 -9
  35. package/dist/{index-_7ZBzffv.cjs → index-Cs9lqvfL.cjs} +1 -1
  36. package/dist/{index-XkoLK2n1.cjs → index-CxvWfcat.cjs} +1 -1
  37. package/dist/{index-BaEjhStM.cjs → index-D0-ilZ38.cjs} +1 -1
  38. package/dist/{index-MpFzp8ni.cjs → index-DDRw97Mc.cjs} +1 -1
  39. package/dist/{index-Dlq0Fmnc.js → index-DH-mOMKk.js} +6 -6
  40. package/dist/{index-BMrsxsc3.js → index-DNEYAHhe.js} +1 -1
  41. package/dist/{index-nJOVZ-d5.cjs → index-DX7o6oO2.cjs} +1 -1
  42. package/dist/{index-eZ5nBfAC.js → index-DX_36PLe.js} +1 -1
  43. package/dist/{index-BljqJHM3.js → index-DXl0Ibdf.js} +6 -6
  44. package/dist/{index-BQANBcIf.cjs → index-D_wRFJ6b.cjs} +1 -1
  45. package/dist/{index-DgHw6cdB.cjs → index-DaeRIeLL.cjs} +1 -1
  46. package/dist/{index-DtBrWR52.js → index-DlwEyquQ.js} +4 -4
  47. package/dist/{index-BxP2PdVy.js → index-DpOp0i6O.js} +5 -5
  48. package/dist/{index-BxxvtRXk.js → index-GyxmuYFf.js} +1 -1
  49. package/dist/{index-5fwiSStL.js → index-He3FS4C2.js} +7 -7
  50. package/dist/{index-Do2cxZBH.js → index-Hqv_UaWY.js} +4 -4
  51. package/dist/{index-DHm1aw8l.cjs → index-LcO7jcHj.cjs} +1 -1
  52. package/dist/{index-BSWMrQSl.js → index-Tdug_CZ6.js} +6 -6
  53. package/dist/{index-D50jWSdx.js → index-_tkPjLUf.js} +4 -4
  54. package/dist/{index-DlyT4pwH.cjs → index-eLyORT2i.cjs} +1 -1
  55. package/dist/{index-BNvb_jps.js → index-iyKmLTw9.js} +4 -4
  56. package/dist/{index-Cu9W21CQ.js → index-kitA7jUI.js} +3 -3
  57. package/dist/index-msIWTHlz.cjs +1 -0
  58. package/dist/{index-yRujigkH.cjs → index-ni0-JLq1.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-BZAG1gCR.js → index.vue_vue_type_script_setup_true_lang-CwxAZjNu.js} +1 -1
  60. package/dist/{index.vue_vue_type_script_setup_true_lang-Bl5GUf0c.cjs → index.vue_vue_type_script_setup_true_lang-mjJxirQX.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-4FsKG2Ke.cjs → index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-D0G2rQps.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-3yHqg7QF.js → index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-viUrRkBx.js} +14 -14
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C-4tttlv.js → index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C3hV4YGK.js} +6 -6
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C1iXvSnE.cjs → index.vue_vue_type_style_index_0_scoped_9d138dea_lang-CFx6vI21.cjs} +1 -1
  65. package/dist/{login-Dauv_tAi.cjs → login-B7xt5Uhk.cjs} +1 -1
  66. package/dist/{login-DkGNmFbe.js → login-IMmx8C3S.js} +2 -2
  67. package/dist/{main-DFHhLjFH.js → main-B6pO2u7F.js} +7 -7
  68. package/dist/{main-Cw5bMnbZ.cjs → main-DNUlyFfw.cjs} +1 -1
  69. package/dist/{menu-DSQPF1PX.cjs → menu-BWLRdajx.cjs} +1 -1
  70. package/dist/{menu-Dsw4D0NG.js → menu-W1V8qTl4.js} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +7 -7
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/index-ClkCRkEG.cjs +0 -1
@@ -1,21 +1,126 @@
1
- import { ref as R, watch as Ct, onMounted as je, onUnmounted as fo, createElementBlock as j, createCommentVNode as pt, openBlock as g, createElementVNode as c, toDisplayString as ft, Fragment as ue, renderList as ve, nextTick as Pe, onBeforeUnmount as go, createBlock as rt, unref as h, normalizeClass as Je, withDirectives as ne, isRef as fe, vModelRadio as ge, resolveComponent as it, withCtx as b, createVNode as P, normalizeStyle as Go, defineComponent as to, resolveDirective as eo, createTextVNode as xt, renderSlot as he, resolveDynamicComponent as oo, computed as no } from "vue";
2
- import { m as Oe, a as Ue, b as ze } from "./index-BHMa193T.js";
3
- import we from "./index-BMrsxsc3.js";
4
- import { _ as yo, o as io, c as ao, a as so, b as wo, d as vo, s as Bt, g as lo, e as ro, f as co, h as uo, i as bo, j as Bo } from "./index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-3yHqg7QF.js";
5
- import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { s as St, u as be, b as mt, g as Ro, E as Se } from "./menu-Dsw4D0NG.js";
7
- import { u as ho } from "./login-DkGNmFbe.js";
8
- import { S as Nt } from "./index-BHtNKL1L.js";
9
- import { C as Co, V as U, M as se, T as ie, Q as Ve, S as Ie, a as Ft, R as Mo, P as ye, b as ko, c as To, d as Eo, e as xo, W as So, f as Do, A as Ao, g as Fo, X as Lo, h as jo, D as De, H as Oo, i as Ye, B as He, j as Ae, k as Uo, l as zo, m as Ho, E as Fe, n as $o, o as $e, u as Be, p as No, I as Ke, q as po } from "./index-BjVoIRs6.js";
10
- import { p as Dt } from "./index-B0YE7vI8.js";
11
- import { s as _o } from "./index-C41d5mEi.js";
12
- import { c as ae } from "./cloneDeep-Drd7BC81.js";
13
- import { s as Vo, _ as ee } from "./index-D50jWSdx.js";
14
- import { u as Io } from "./index-5fwiSStL.js";
15
- import { d as Ze } from "./index-BxxvtRXk.js";
16
- import { i as Yo, e as Ko, b as Xe, c as We, a as Zo } from "./array-DyGPp-dK.js";
17
- import { c as Xo, b as Wo } from "./index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C-4tttlv.js";
18
- const qe = { type: "change" }, Ne = { type: "start" }, mo = { type: "end" }, Ge = new Mo(), Qe = new ye(), qo = Math.cos(70 * ko.DEG2RAD), Jt = new U(), Tt = 2 * Math.PI, X = {
1
+ import { defineComponent as be, resolveComponent as X, createElementBlock as j, openBlock as f, createVNode as _, ref as k, computed as Oe, watch as Ct, createCommentVNode as st, createElementVNode as c, withCtx as v, withDirectives as Yt, vShow as oo, onMounted as Ue, onUnmounted as yo, toDisplayString as ft, Fragment as pe, renderList as Be, nextTick as Je, onBeforeUnmount as wo, createBlock as it, unref as h, normalizeClass as fe, isRef as ge, vModelRadio as Ge, normalizeStyle as vo, resolveDirective as no, createTextVNode as xt, renderSlot as re, resolveDynamicComponent as io } from "vue";
2
+ import { m as ze, a as $e, b as He } from "./index-BmZ4qjWZ.js";
3
+ import ve from "./index-DNEYAHhe.js";
4
+ import { _ as bo, o as ao, c as so, a as lo, b as ro, d as co, s as Bt, g as uo, e as ho, f as po, h as _o, i as Bo, j as Co } from "./index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-viUrRkBx.js";
5
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { s as St, u as Ce, b as mt, g as Ro, E as Se } from "./menu-W1V8qTl4.js";
7
+ import { u as mo } from "./login-IMmx8C3S.js";
8
+ import { S as Ut } from "./index-BHtNKL1L.js";
9
+ import { C as ko, V as z, M as le, T as ae, Q as Ye, S as Ke, a as jt, R as Mo, P as we, b as To, c as xo, d as Eo, e as Do, W as So, f as Ao, A as Fo, g as Lo, X as jo, h as Oo, D as Ae, H as Uo, i as Ze, B as Ne, j as Fe, k as zo, l as $o, m as Ho, E as Le, n as No, o as Ie, u as Re, p as Io, I as Xe, q as Po } from "./index-BY7si81Q.js";
10
+ import { p as At } from "./index-CMKhda-O.js";
11
+ import { s as Jo } from "./index-8qsWSwjm.js";
12
+ import { c as se } from "./cloneDeep-CLsg4k51.js";
13
+ import { s as Vo, _ as ne } from "./index-_tkPjLUf.js";
14
+ import { u as Yo } from "./index-He3FS4C2.js";
15
+ import { d as We } from "./index-GyxmuYFf.js";
16
+ import { i as Ko, e as Zo, b as qe, c as Qe, a as Xo } from "./array-DroB_LrT.js";
17
+ import { c as Wo, b as qo } from "./index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C3hV4YGK.js";
18
+ const Qo = { class: "tree-container" }, tn = /* @__PURE__ */ be({
19
+ __name: "index",
20
+ props: {
21
+ treeData: Array,
22
+ expand: {
23
+ type: Boolean,
24
+ default: !1
25
+ }
26
+ },
27
+ emits: ["nodeClick"],
28
+ setup(a, { emit: t }) {
29
+ const e = t, i = a, s = {
30
+ children: "children",
31
+ label: "label"
32
+ }, r = (P) => {
33
+ e("nodeClick", P);
34
+ };
35
+ return (P, o) => {
36
+ const g = X("el-tree");
37
+ return f(), j("div", Qo, [
38
+ _(g, {
39
+ data: i == null ? void 0 : i.treeData,
40
+ props: s,
41
+ "default-expand-all": a.expand,
42
+ onNodeClick: r
43
+ }, null, 8, ["data", "default-expand-all"])
44
+ ]);
45
+ };
46
+ }
47
+ }), en = /* @__PURE__ */ zt(tn, [["__scopeId", "data-v-b4bd4658"]]), on = {
48
+ key: 0,
49
+ class: "jointPanel-container"
50
+ }, nn = { class: "panel-content" }, an = /* @__PURE__ */ be({
51
+ __name: "robotMenu",
52
+ props: {
53
+ model: Object
54
+ },
55
+ setup(a) {
56
+ const t = a, e = k(!0), i = k([]), s = (o, g = 0) => {
57
+ const w = [];
58
+ return Array.isArray(o) && (o == null ? void 0 : o.length) > 0 && o.forEach((p) => {
59
+ if (!(p != null && p.isMesh) && ((p == null ? void 0 : p.type) === "URDFJoint" || (p == null ? void 0 : p.type) === "URDFLink")) {
60
+ const O = {
61
+ name: p == null ? void 0 : p.name,
62
+ label: p == null ? void 0 : p.name,
63
+ show: !0,
64
+ level: g + 1,
65
+ isPenultimate: !1,
66
+ type: p == null ? void 0 : p.type,
67
+ id: p == null ? void 0 : p.id,
68
+ limit: (p == null ? void 0 : p.limit) ?? "",
69
+ children: s(p == null ? void 0 : p.children, g + 1),
70
+ path: p == null ? void 0 : p.name
71
+ };
72
+ w.push(O);
73
+ }
74
+ }), w;
75
+ }, r = (o) => o ? [{
76
+ name: o == null ? void 0 : o.name,
77
+ label: o == null ? void 0 : o.name,
78
+ show: !0,
79
+ level: 1,
80
+ isPenultimate: !1,
81
+ type: o == null ? void 0 : o.type,
82
+ id: o == null ? void 0 : o.id,
83
+ limit: (o == null ? void 0 : o.limit) ?? "",
84
+ children: s(o == null ? void 0 : o.children, 1),
85
+ path: o == null ? void 0 : o.name
86
+ }] : [], P = Oe(() => t != null && t.model ? r(t.model) : []);
87
+ return Ct(
88
+ P,
89
+ (o) => {
90
+ i.value = JSON.parse(JSON.stringify(o));
91
+ },
92
+ { immediate: !0 }
93
+ ), (o, g) => {
94
+ const w = X("el-scrollbar"), p = X("el-collapse-transition");
95
+ return a.model ? (f(), j("div", on, [
96
+ c("div", {
97
+ class: "panel-header",
98
+ onClick: g[0] || (g[0] = (O) => e.value = !e.value)
99
+ }, g[1] || (g[1] = [
100
+ c("h3", null, "URDF树", -1)
101
+ ])),
102
+ _(p, null, {
103
+ default: v(() => [
104
+ Yt(_(w, { "max-height": "600px" }, {
105
+ default: v(() => [
106
+ c("div", nn, [
107
+ _(en, {
108
+ treeData: i.value,
109
+ expand: !0
110
+ }, null, 8, ["treeData"])
111
+ ])
112
+ ]),
113
+ _: 1
114
+ }, 512), [
115
+ [oo, e.value]
116
+ ])
117
+ ]),
118
+ _: 1
119
+ })
120
+ ])) : st("", !0);
121
+ };
122
+ }
123
+ }), sn = /* @__PURE__ */ zt(an, [["__scopeId", "data-v-bc2f3f82"]]), to = { type: "change" }, Ve = { type: "start" }, fo = { type: "end" }, ye = new Mo(), eo = new we(), ln = Math.cos(70 * To.DEG2RAD), Jt = new z(), Tt = 2 * Math.PI, q = {
19
124
  NONE: -1,
20
125
  ROTATE: 0,
21
126
  DOLLY: 1,
@@ -24,8 +129,8 @@ const qe = { type: "change" }, Ne = { type: "start" }, mo = { type: "end" }, Ge
24
129
  TOUCH_PAN: 4,
25
130
  TOUCH_DOLLY_PAN: 5,
26
131
  TOUCH_DOLLY_ROTATE: 6
27
- }, Le = 1e-6;
28
- class Qo extends Co {
132
+ }, je = 1e-6;
133
+ class rn extends ko {
29
134
  /**
30
135
  * Constructs a new controls instance.
31
136
  *
@@ -33,7 +138,7 @@ class Qo extends Co {
33
138
  * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
34
139
  */
35
140
  constructor(t, e = null) {
36
- super(t, e), this.state = X.NONE, this.target = new U(), this.cursor = new U(), 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: se.ROTATE, MIDDLE: se.DOLLY, RIGHT: se.PAN }, this.touches = { ONE: ie.ROTATE, TWO: ie.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new U(), this._lastQuaternion = new Ve(), this._lastTargetPosition = new U(), this._quat = new Ve().setFromUnitVectors(t.up, new U(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ie(), this._sphericalDelta = new Ie(), this._scale = 1, this._panOffset = new U(), this._rotateStart = new Ft(), this._rotateEnd = new Ft(), this._rotateDelta = new Ft(), this._panStart = new Ft(), this._panEnd = new Ft(), this._panDelta = new Ft(), this._dollyStart = new Ft(), this._dollyEnd = new Ft(), this._dollyDelta = new Ft(), this._dollyDirection = new U(), this._mouse = new Ft(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = en.bind(this), this._onPointerDown = tn.bind(this), this._onPointerUp = on.bind(this), this._onContextMenu = dn.bind(this), this._onMouseWheel = sn.bind(this), this._onKeyDown = ln.bind(this), this._onTouchStart = rn.bind(this), this._onTouchMove = cn.bind(this), this._onMouseDown = nn.bind(this), this._onMouseMove = an.bind(this), this._interceptControlDown = un.bind(this), this._interceptControlUp = hn.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
141
+ super(t, e), this.state = q.NONE, this.target = new z(), this.cursor = new z(), 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: le.ROTATE, MIDDLE: le.DOLLY, RIGHT: le.PAN }, this.touches = { ONE: ae.ROTATE, TWO: ae.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new z(), this._lastQuaternion = new Ye(), this._lastTargetPosition = new z(), this._quat = new Ye().setFromUnitVectors(t.up, new z(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ke(), this._sphericalDelta = new Ke(), this._scale = 1, this._panOffset = new z(), this._rotateStart = new jt(), this._rotateEnd = new jt(), this._rotateDelta = new jt(), this._panStart = new jt(), this._panEnd = new jt(), this._panDelta = new jt(), this._dollyStart = new jt(), this._dollyEnd = new jt(), this._dollyDelta = new jt(), this._dollyDirection = new z(), this._mouse = new jt(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = dn.bind(this), this._onPointerDown = cn.bind(this), this._onPointerUp = un.bind(this), this._onContextMenu = fn.bind(this), this._onMouseWheel = _n.bind(this), this._onKeyDown = mn.bind(this), this._onTouchStart = Pn.bind(this), this._onTouchMove = Jn.bind(this), this._onMouseDown = hn.bind(this), this._onMouseMove = pn.bind(this), this._interceptControlDown = gn.bind(this), this._interceptControlUp = Gn.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
37
142
  }
38
143
  connect(t) {
39
144
  super.connect(t), 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";
@@ -94,42 +199,42 @@ class Qo extends Co {
94
199
  * was called, or the initial state.
95
200
  */
96
201
  reset() {
97
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(qe), this.update(), this.state = X.NONE;
202
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(to), this.update(), this.state = q.NONE;
98
203
  }
99
204
  update(t = null) {
100
205
  const e = this.object.position;
101
- Jt.copy(e).sub(this.target), Jt.applyQuaternion(this._quat), this._spherical.setFromVector3(Jt), this.autoRotate && this.state === X.NONE && this._rotateLeft(this._getAutoRotationAngle(t)), 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);
102
- let n = this.minAzimuthAngle, r = this.maxAzimuthAngle;
103
- isFinite(n) && isFinite(r) && (n < -Math.PI ? n += Tt : n > Math.PI && (n -= Tt), r < -Math.PI ? r += Tt : r > Math.PI && (r -= Tt), n <= r ? this._spherical.theta = Math.max(n, Math.min(r, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (n + r) / 2 ? Math.max(n, 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);
104
- let s = !1;
206
+ Jt.copy(e).sub(this.target), Jt.applyQuaternion(this._quat), this._spherical.setFromVector3(Jt), this.autoRotate && this.state === q.NONE && this._rotateLeft(this._getAutoRotationAngle(t)), 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);
207
+ let i = this.minAzimuthAngle, s = this.maxAzimuthAngle;
208
+ isFinite(i) && isFinite(s) && (i < -Math.PI ? i += Tt : i > Math.PI && (i -= Tt), s < -Math.PI ? s += Tt : s > Math.PI && (s -= Tt), i <= s ? this._spherical.theta = Math.max(i, Math.min(s, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (i + s) / 2 ? Math.max(i, this._spherical.theta) : Math.min(s, 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);
209
+ let r = !1;
105
210
  if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
106
211
  this._spherical.radius = this._clampDistance(this._spherical.radius);
107
212
  else {
108
- const G = this._spherical.radius;
109
- this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), s = G != this._spherical.radius;
213
+ const P = this._spherical.radius;
214
+ this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), r = P != this._spherical.radius;
110
215
  }
111
216
  if (Jt.setFromSpherical(this._spherical), Jt.applyQuaternion(this._quatInverse), e.copy(this.target).add(Jt), 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) {
112
- let G = null;
217
+ let P = null;
113
218
  if (this.object.isPerspectiveCamera) {
114
- const l = Jt.length();
115
- G = this._clampDistance(l * this._scale);
116
- const B = l - G;
117
- this.object.position.addScaledVector(this._dollyDirection, B), this.object.updateMatrixWorld(), s = !!B;
219
+ const o = Jt.length();
220
+ P = this._clampDistance(o * this._scale);
221
+ const g = o - P;
222
+ this.object.position.addScaledVector(this._dollyDirection, g), this.object.updateMatrixWorld(), r = !!g;
118
223
  } else if (this.object.isOrthographicCamera) {
119
- const l = new U(this._mouse.x, this._mouse.y, 0);
120
- l.unproject(this.object);
121
- const B = this.object.zoom;
122
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), s = B !== this.object.zoom;
123
- const v = new U(this._mouse.x, this._mouse.y, 0);
124
- v.unproject(this.object), this.object.position.sub(v).add(l), this.object.updateMatrixWorld(), G = Jt.length();
224
+ const o = new z(this._mouse.x, this._mouse.y, 0);
225
+ o.unproject(this.object);
226
+ const g = this.object.zoom;
227
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), r = g !== this.object.zoom;
228
+ const w = new z(this._mouse.x, this._mouse.y, 0);
229
+ w.unproject(this.object), this.object.position.sub(w).add(o), this.object.updateMatrixWorld(), P = Jt.length();
125
230
  } else
126
231
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
127
- G !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(G).add(this.object.position) : (Ge.origin.copy(this.object.position), Ge.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Ge.direction)) < qo ? this.object.lookAt(this.target) : (Qe.setFromNormalAndCoplanarPoint(this.object.up, this.target), Ge.intersectPlane(Qe, this.target))));
232
+ P !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(P).add(this.object.position) : (ye.origin.copy(this.object.position), ye.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(ye.direction)) < ln ? this.object.lookAt(this.target) : (eo.setFromNormalAndCoplanarPoint(this.object.up, this.target), ye.intersectPlane(eo, this.target))));
128
233
  } else if (this.object.isOrthographicCamera) {
129
- const G = this.object.zoom;
130
- this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), G !== this.object.zoom && (this.object.updateProjectionMatrix(), s = !0);
234
+ const P = this.object.zoom;
235
+ this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), P !== this.object.zoom && (this.object.updateProjectionMatrix(), r = !0);
131
236
  }
132
- return this._scale = 1, this._performCursorZoom = !1, s || this._lastPosition.distanceToSquared(this.object.position) > Le || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Le || this._lastTargetPosition.distanceToSquared(this.target) > Le ? (this.dispatchEvent(qe), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
237
+ return this._scale = 1, this._performCursorZoom = !1, r || this._lastPosition.distanceToSquared(this.object.position) > je || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > je || this._lastTargetPosition.distanceToSquared(this.target) > je ? (this.dispatchEvent(to), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
133
238
  }
134
239
  _getAutoRotationAngle(t) {
135
240
  return t !== null ? Tt / 60 * this.autoRotateSpeed * t : Tt / 60 / 60 * this.autoRotateSpeed;
@@ -152,13 +257,13 @@ class Qo extends Co {
152
257
  }
153
258
  // deltaX and deltaY are in pixels; right and down are positive
154
259
  _pan(t, e) {
155
- const n = this.domElement;
260
+ const i = this.domElement;
156
261
  if (this.object.isPerspectiveCamera) {
157
- const r = this.object.position;
158
- Jt.copy(r).sub(this.target);
159
- let s = Jt.length();
160
- s *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * t * s / n.clientHeight, this.object.matrix), this._panUp(2 * e * s / n.clientHeight, this.object.matrix);
161
- } else this.object.isOrthographicCamera ? (this._panLeft(t * (this.object.right - this.object.left) / this.object.zoom / n.clientWidth, this.object.matrix), this._panUp(e * (this.object.top - this.object.bottom) / this.object.zoom / n.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
262
+ const s = this.object.position;
263
+ Jt.copy(s).sub(this.target);
264
+ let r = Jt.length();
265
+ r *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * t * r / i.clientHeight, this.object.matrix), this._panUp(2 * e * r / i.clientHeight, this.object.matrix);
266
+ } else this.object.isOrthographicCamera ? (this._panLeft(t * (this.object.right - this.object.left) / this.object.zoom / i.clientWidth, this.object.matrix), this._panUp(e * (this.object.top - this.object.bottom) / this.object.zoom / i.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
162
267
  }
163
268
  _dollyOut(t) {
164
269
  this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /= t : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
@@ -170,8 +275,8 @@ class Qo extends Co {
170
275
  if (!this.zoomToCursor)
171
276
  return;
172
277
  this._performCursorZoom = !0;
173
- const n = this.domElement.getBoundingClientRect(), r = t - n.left, s = e - n.top, G = n.width, l = n.height;
174
- this._mouse.x = r / G * 2 - 1, this._mouse.y = -(s / l) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
278
+ const i = this.domElement.getBoundingClientRect(), s = t - i.left, r = e - i.top, P = i.width, o = i.height;
279
+ this._mouse.x = s / P * 2 - 1, this._mouse.y = -(r / o) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
175
280
  }
176
281
  _clampDistance(t) {
177
282
  return Math.max(this.minDistance, Math.min(this.maxDistance, t));
@@ -224,21 +329,21 @@ class Qo extends Co {
224
329
  if (this._pointers.length === 1)
225
330
  this._rotateStart.set(t.pageX, t.pageY);
226
331
  else {
227
- const e = this._getSecondPointerPosition(t), n = 0.5 * (t.pageX + e.x), r = 0.5 * (t.pageY + e.y);
228
- this._rotateStart.set(n, r);
332
+ const e = this._getSecondPointerPosition(t), i = 0.5 * (t.pageX + e.x), s = 0.5 * (t.pageY + e.y);
333
+ this._rotateStart.set(i, s);
229
334
  }
230
335
  }
231
336
  _handleTouchStartPan(t) {
232
337
  if (this._pointers.length === 1)
233
338
  this._panStart.set(t.pageX, t.pageY);
234
339
  else {
235
- const e = this._getSecondPointerPosition(t), n = 0.5 * (t.pageX + e.x), r = 0.5 * (t.pageY + e.y);
236
- this._panStart.set(n, r);
340
+ const e = this._getSecondPointerPosition(t), i = 0.5 * (t.pageX + e.x), s = 0.5 * (t.pageY + e.y);
341
+ this._panStart.set(i, s);
237
342
  }
238
343
  }
239
344
  _handleTouchStartDolly(t) {
240
- const e = this._getSecondPointerPosition(t), n = t.pageX - e.x, r = t.pageY - e.y, s = Math.sqrt(n * n + r * r);
241
- this._dollyStart.set(0, s);
345
+ const e = this._getSecondPointerPosition(t), i = t.pageX - e.x, s = t.pageY - e.y, r = Math.sqrt(i * i + s * s);
346
+ this._dollyStart.set(0, r);
242
347
  }
243
348
  _handleTouchStartDollyPan(t) {
244
349
  this.enableZoom && this._handleTouchStartDolly(t), this.enablePan && this._handleTouchStartPan(t);
@@ -250,8 +355,8 @@ class Qo extends Co {
250
355
  if (this._pointers.length == 1)
251
356
  this._rotateEnd.set(t.pageX, t.pageY);
252
357
  else {
253
- const n = this._getSecondPointerPosition(t), r = 0.5 * (t.pageX + n.x), s = 0.5 * (t.pageY + n.y);
254
- this._rotateEnd.set(r, s);
358
+ const i = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + i.x), r = 0.5 * (t.pageY + i.y);
359
+ this._rotateEnd.set(s, r);
255
360
  }
256
361
  this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
257
362
  const e = this.domElement;
@@ -261,16 +366,16 @@ class Qo extends Co {
261
366
  if (this._pointers.length === 1)
262
367
  this._panEnd.set(t.pageX, t.pageY);
263
368
  else {
264
- const e = this._getSecondPointerPosition(t), n = 0.5 * (t.pageX + e.x), r = 0.5 * (t.pageY + e.y);
265
- this._panEnd.set(n, r);
369
+ const e = this._getSecondPointerPosition(t), i = 0.5 * (t.pageX + e.x), s = 0.5 * (t.pageY + e.y);
370
+ this._panEnd.set(i, s);
266
371
  }
267
372
  this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
268
373
  }
269
374
  _handleTouchMoveDolly(t) {
270
- const e = this._getSecondPointerPosition(t), n = t.pageX - e.x, r = t.pageY - e.y, s = Math.sqrt(n * n + r * r);
271
- 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);
272
- const G = (t.pageX + e.x) * 0.5, l = (t.pageY + e.y) * 0.5;
273
- this._updateZoomParameters(G, l);
375
+ const e = this._getSecondPointerPosition(t), i = t.pageX - e.x, s = t.pageY - e.y, r = Math.sqrt(i * i + s * s);
376
+ this._dollyEnd.set(0, r), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
377
+ const P = (t.pageX + e.x) * 0.5, o = (t.pageY + e.y) * 0.5;
378
+ this._updateZoomParameters(P, o);
274
379
  }
275
380
  _handleTouchMoveDollyPan(t) {
276
381
  this.enableZoom && this._handleTouchMoveDolly(t), this.enablePan && this._handleTouchMovePan(t);
@@ -297,7 +402,7 @@ class Qo extends Co {
297
402
  }
298
403
  _trackPointer(t) {
299
404
  let e = this._pointerPositions[t.pointerId];
300
- e === void 0 && (e = new Ft(), this._pointerPositions[t.pointerId] = e), e.set(t.pageX, t.pageY);
405
+ e === void 0 && (e = new jt(), this._pointerPositions[t.pointerId] = e), e.set(t.pageX, t.pageY);
301
406
  }
302
407
  _getSecondPointerPosition(t) {
303
408
  const e = t.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
@@ -305,32 +410,32 @@ class Qo extends Co {
305
410
  }
306
411
  //
307
412
  _customWheelEvent(t) {
308
- const e = t.deltaMode, n = {
413
+ const e = t.deltaMode, i = {
309
414
  clientX: t.clientX,
310
415
  clientY: t.clientY,
311
416
  deltaY: t.deltaY
312
417
  };
313
418
  switch (e) {
314
419
  case 1:
315
- n.deltaY *= 16;
420
+ i.deltaY *= 16;
316
421
  break;
317
422
  case 2:
318
- n.deltaY *= 100;
423
+ i.deltaY *= 100;
319
424
  break;
320
425
  }
321
- return t.ctrlKey && !this._controlActive && (n.deltaY *= 10), n;
426
+ return t.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
322
427
  }
323
428
  }
324
- function tn(a) {
429
+ function cn(a) {
325
430
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(a.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(a) && (this._addPointer(a), a.pointerType === "touch" ? this._onTouchStart(a) : this._onMouseDown(a)));
326
431
  }
327
- function en(a) {
432
+ function dn(a) {
328
433
  this.enabled !== !1 && (a.pointerType === "touch" ? this._onTouchMove(a) : this._onMouseMove(a));
329
434
  }
330
- function on(a) {
435
+ function un(a) {
331
436
  switch (this._removePointer(a), this._pointers.length) {
332
437
  case 0:
333
- this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(mo), this.state = X.NONE;
438
+ this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(fo), this.state = q.NONE;
334
439
  break;
335
440
  case 1:
336
441
  const t = this._pointers[0], e = this._pointerPositions[t];
@@ -338,7 +443,7 @@ function on(a) {
338
443
  break;
339
444
  }
340
445
  }
341
- function nn(a) {
446
+ function hn(a) {
342
447
  let t;
343
448
  switch (a.button) {
344
449
  case 0:
@@ -354,132 +459,132 @@ function nn(a) {
354
459
  t = -1;
355
460
  }
356
461
  switch (t) {
357
- case se.DOLLY:
462
+ case le.DOLLY:
358
463
  if (this.enableZoom === !1) return;
359
- this._handleMouseDownDolly(a), this.state = X.DOLLY;
464
+ this._handleMouseDownDolly(a), this.state = q.DOLLY;
360
465
  break;
361
- case se.ROTATE:
466
+ case le.ROTATE:
362
467
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
363
468
  if (this.enablePan === !1) return;
364
- this._handleMouseDownPan(a), this.state = X.PAN;
469
+ this._handleMouseDownPan(a), this.state = q.PAN;
365
470
  } else {
366
471
  if (this.enableRotate === !1) return;
367
- this._handleMouseDownRotate(a), this.state = X.ROTATE;
472
+ this._handleMouseDownRotate(a), this.state = q.ROTATE;
368
473
  }
369
474
  break;
370
- case se.PAN:
475
+ case le.PAN:
371
476
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
372
477
  if (this.enableRotate === !1) return;
373
- this._handleMouseDownRotate(a), this.state = X.ROTATE;
478
+ this._handleMouseDownRotate(a), this.state = q.ROTATE;
374
479
  } else {
375
480
  if (this.enablePan === !1) return;
376
- this._handleMouseDownPan(a), this.state = X.PAN;
481
+ this._handleMouseDownPan(a), this.state = q.PAN;
377
482
  }
378
483
  break;
379
484
  default:
380
- this.state = X.NONE;
485
+ this.state = q.NONE;
381
486
  }
382
- this.state !== X.NONE && this.dispatchEvent(Ne);
487
+ this.state !== q.NONE && this.dispatchEvent(Ve);
383
488
  }
384
- function an(a) {
489
+ function pn(a) {
385
490
  switch (this.state) {
386
- case X.ROTATE:
491
+ case q.ROTATE:
387
492
  if (this.enableRotate === !1) return;
388
493
  this._handleMouseMoveRotate(a);
389
494
  break;
390
- case X.DOLLY:
495
+ case q.DOLLY:
391
496
  if (this.enableZoom === !1) return;
392
497
  this._handleMouseMoveDolly(a);
393
498
  break;
394
- case X.PAN:
499
+ case q.PAN:
395
500
  if (this.enablePan === !1) return;
396
501
  this._handleMouseMovePan(a);
397
502
  break;
398
503
  }
399
504
  }
400
- function sn(a) {
401
- this.enabled === !1 || this.enableZoom === !1 || this.state !== X.NONE || (a.preventDefault(), this.dispatchEvent(Ne), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(mo));
505
+ function _n(a) {
506
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== q.NONE || (a.preventDefault(), this.dispatchEvent(Ve), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(fo));
402
507
  }
403
- function ln(a) {
508
+ function mn(a) {
404
509
  this.enabled !== !1 && this._handleKeyDown(a);
405
510
  }
406
- function rn(a) {
511
+ function Pn(a) {
407
512
  switch (this._trackPointer(a), this._pointers.length) {
408
513
  case 1:
409
514
  switch (this.touches.ONE) {
410
- case ie.ROTATE:
515
+ case ae.ROTATE:
411
516
  if (this.enableRotate === !1) return;
412
- this._handleTouchStartRotate(a), this.state = X.TOUCH_ROTATE;
517
+ this._handleTouchStartRotate(a), this.state = q.TOUCH_ROTATE;
413
518
  break;
414
- case ie.PAN:
519
+ case ae.PAN:
415
520
  if (this.enablePan === !1) return;
416
- this._handleTouchStartPan(a), this.state = X.TOUCH_PAN;
521
+ this._handleTouchStartPan(a), this.state = q.TOUCH_PAN;
417
522
  break;
418
523
  default:
419
- this.state = X.NONE;
524
+ this.state = q.NONE;
420
525
  }
421
526
  break;
422
527
  case 2:
423
528
  switch (this.touches.TWO) {
424
- case ie.DOLLY_PAN:
529
+ case ae.DOLLY_PAN:
425
530
  if (this.enableZoom === !1 && this.enablePan === !1) return;
426
- this._handleTouchStartDollyPan(a), this.state = X.TOUCH_DOLLY_PAN;
531
+ this._handleTouchStartDollyPan(a), this.state = q.TOUCH_DOLLY_PAN;
427
532
  break;
428
- case ie.DOLLY_ROTATE:
533
+ case ae.DOLLY_ROTATE:
429
534
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
430
- this._handleTouchStartDollyRotate(a), this.state = X.TOUCH_DOLLY_ROTATE;
535
+ this._handleTouchStartDollyRotate(a), this.state = q.TOUCH_DOLLY_ROTATE;
431
536
  break;
432
537
  default:
433
- this.state = X.NONE;
538
+ this.state = q.NONE;
434
539
  }
435
540
  break;
436
541
  default:
437
- this.state = X.NONE;
542
+ this.state = q.NONE;
438
543
  }
439
- this.state !== X.NONE && this.dispatchEvent(Ne);
544
+ this.state !== q.NONE && this.dispatchEvent(Ve);
440
545
  }
441
- function cn(a) {
546
+ function Jn(a) {
442
547
  switch (this._trackPointer(a), this.state) {
443
- case X.TOUCH_ROTATE:
548
+ case q.TOUCH_ROTATE:
444
549
  if (this.enableRotate === !1) return;
445
550
  this._handleTouchMoveRotate(a), this.update();
446
551
  break;
447
- case X.TOUCH_PAN:
552
+ case q.TOUCH_PAN:
448
553
  if (this.enablePan === !1) return;
449
554
  this._handleTouchMovePan(a), this.update();
450
555
  break;
451
- case X.TOUCH_DOLLY_PAN:
556
+ case q.TOUCH_DOLLY_PAN:
452
557
  if (this.enableZoom === !1 && this.enablePan === !1) return;
453
558
  this._handleTouchMoveDollyPan(a), this.update();
454
559
  break;
455
- case X.TOUCH_DOLLY_ROTATE:
560
+ case q.TOUCH_DOLLY_ROTATE:
456
561
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
457
562
  this._handleTouchMoveDollyRotate(a), this.update();
458
563
  break;
459
564
  default:
460
- this.state = X.NONE;
565
+ this.state = q.NONE;
461
566
  }
462
567
  }
463
- function dn(a) {
568
+ function fn(a) {
464
569
  this.enabled !== !1 && a.preventDefault();
465
570
  }
466
- function un(a) {
571
+ function gn(a) {
467
572
  a.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
468
573
  }
469
- function hn(a) {
574
+ function Gn(a) {
470
575
  a.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
471
576
  }
472
- function pn(a) {
473
- let t = null, e = null, n = null, r = null, s = null, G = null;
474
- const l = R([]), B = R(new U()), v = R(new U()), x = () => {
577
+ function yn(a) {
578
+ let t = null, e = null, i = null, s = null, r = null, P = null;
579
+ const o = k([]), g = k(new z()), w = k(new z()), p = () => {
475
580
  if (!a.value) return;
476
- t = new To(), t.background = new Eo(15790320);
477
- const f = a.value;
478
- e = new xo(75, f.clientWidth / f.clientHeight, 0.1, 1e4), e.up.set(0, 0, 1), n = new So({
581
+ t = new xo(), t.background = new Eo(15790320);
582
+ const b = a.value;
583
+ e = new Do(75, b.clientWidth / b.clientHeight, 0.1, 1e4), e.up.set(0, 0, 1), i = new So({
479
584
  antialias: !0,
480
585
  alpha: !0
481
- }), n.setSize(f.clientWidth, f.clientHeight), n.localClippingEnabled = !0, n.shadowMap.enabled = !0, n.shadowMap.type = Do, n.toneMapping = Ao, n.toneMappingExposure = 1, n.outputColorSpace = Fo, f.appendChild(n.domElement), r = new Qo(e, n.domElement), r.enableDamping = !0, r.dampingFactor = 0.05, s = new Lo(e, n, {
482
- container: f,
586
+ }), i.setSize(b.clientWidth, b.clientHeight), i.localClippingEnabled = !0, i.shadowMap.enabled = !0, i.shadowMap.type = Ao, i.toneMapping = Fo, i.toneMappingExposure = 1, i.outputColorSpace = Lo, b.appendChild(i.domElement), s = new rn(e, i.domElement), s.enableDamping = !0, s.dampingFactor = 0.05, r = new jo(e, i, {
587
+ container: b,
483
588
  type: "cube",
484
589
  placement: "bottom-left",
485
590
  offset: {
@@ -508,25 +613,25 @@ function pn(a) {
508
613
  back: {
509
614
  label: "Bottom"
510
615
  }
511
- }), s.attachControls(r), H(), K();
512
- }, H = () => {
513
- const f = new jo(4210752, 0.6);
514
- t.add(f);
515
- const i = new De(16777215, 2);
516
- i.position.set(10, 10, 8), i.castShadow = !0, i.shadow.mapSize.width = 2048, i.shadow.mapSize.height = 2048, i.shadow.camera.near = 0.5, i.shadow.camera.far = 50, t.add(i);
517
- const u = new De(16777215, 0.8);
518
- u.position.set(-8, -8, 6), t.add(u);
519
- const o = new De(16777215, 0.6);
520
- o.position.set(0, -15, 2), t.add(o);
521
- const _ = new Oo(16777215, 4473924, 0.8);
522
- t.add(_);
523
- const m = new Ye(16777215, 1, 50);
524
- m.position.set(15, 15, 15), t.add(m);
525
- const L = new Ye(16777215, 0.5, 50);
526
- L.position.set(-15, -15, 15), t.add(L);
527
- }, K = () => {
528
- G = requestAnimationFrame(K), r && r.update(), n && t && e && n.render(t, e), s && s.render();
529
- }, Q = (f) => {
616
+ }), r.attachControls(s), O(), Z();
617
+ }, O = () => {
618
+ const b = new Oo(4210752, 0.6);
619
+ t.add(b);
620
+ const C = new Ae(16777215, 2);
621
+ C.position.set(10, 10, 8), C.castShadow = !0, C.shadow.mapSize.width = 2048, C.shadow.mapSize.height = 2048, C.shadow.camera.near = 0.5, C.shadow.camera.far = 50, t.add(C);
622
+ const l = new Ae(16777215, 0.8);
623
+ l.position.set(-8, -8, 6), t.add(l);
624
+ const n = new Ae(16777215, 0.6);
625
+ n.position.set(0, -15, 2), t.add(n);
626
+ const J = new Uo(16777215, 4473924, 0.8);
627
+ t.add(J);
628
+ const u = new Ze(16777215, 1, 50);
629
+ u.position.set(15, 15, 15), t.add(u);
630
+ const G = new Ze(16777215, 0.5, 50);
631
+ G.position.set(-15, -15, 15), t.add(G);
632
+ }, Z = () => {
633
+ P = requestAnimationFrame(Z), s && s.update(), i && t && e && i.render(t, e), r && r.render();
634
+ }, et = (b) => {
530
635
  [
531
636
  "map",
532
637
  "normalMap",
@@ -539,207 +644,207 @@ function pn(a) {
539
644
  "lightMap",
540
645
  "aoMap",
541
646
  "displacementMap"
542
- ].forEach((u) => {
543
- f[u] && f[u].dispose && f[u].dispose();
544
- }), f.dispose && f.dispose();
545
- }, V = (f) => {
546
- f == null || f.traverse((i) => {
547
- i.geometry && i.geometry.dispose(), i.material && (Array.isArray(i.material) ? i.material.forEach((u) => {
548
- Q(u);
549
- }) : Q(i.material));
647
+ ].forEach((l) => {
648
+ b[l] && b[l].dispose && b[l].dispose();
649
+ }), b.dispose && b.dispose();
650
+ }, I = (b) => {
651
+ b == null || b.traverse((C) => {
652
+ C.geometry && C.geometry.dispose(), C.material && (Array.isArray(C.material) ? C.material.forEach((l) => {
653
+ et(l);
654
+ }) : et(C.material));
550
655
  });
551
656
  };
552
657
  return {
553
658
  // 响应式数据
554
- currentModels: l,
555
- initialCameraPosition: B,
556
- initialTargetPosition: v,
659
+ currentModels: o,
660
+ initialCameraPosition: g,
661
+ initialTargetPosition: w,
557
662
  // 方法
558
- initThreeJS: x,
663
+ initThreeJS: p,
559
664
  handleResize: () => {
560
- if (!a.value || !e || !n || !s) return;
561
- const f = a.value, i = f.clientWidth, u = f.clientHeight;
562
- e.aspect = i / u, e.updateProjectionMatrix(), n.setSize(i, u), s.update();
665
+ if (!a.value || !e || !i || !r) return;
666
+ const b = a.value, C = b.clientWidth, l = b.clientHeight;
667
+ e.aspect = C / l, e.updateProjectionMatrix(), i.setSize(C, l), r.update();
563
668
  },
564
669
  fitCameraToAllModels: () => {
565
- if (!e || !r || l.value.length === 0) return;
566
- const f = new He();
567
- l.value.forEach((L) => {
568
- f.expandByObject(L);
670
+ if (!e || !s || o.value.length === 0) return;
671
+ const b = new Ne();
672
+ o.value.forEach((G) => {
673
+ b.expandByObject(G);
569
674
  });
570
- const i = f.getSize(new U()), u = f.getCenter(new U()), _ = Math.max(i.x, i.y, i.z) * 0.8, m = new U(u.x + _, u.y - _, u.z + _);
571
- e.position.copy(m), e.lookAt(u), r.target.copy(u), r.update(), B.value.copy(m), v.value.copy(u);
675
+ const C = b.getSize(new z()), l = b.getCenter(new z()), J = Math.max(C.x, C.y, C.z) * 0.8, u = new z(l.x + J, l.y - J, l.z + J);
676
+ e.position.copy(u), e.lookAt(l), s.target.copy(l), s.update(), g.value.copy(u), w.value.copy(l);
572
677
  },
573
678
  getThreeJSObjects: () => ({
574
679
  scene: t,
575
680
  camera: e,
576
- renderer: n,
577
- controls: r,
578
- gizmo: s
681
+ renderer: i,
682
+ controls: s,
683
+ gizmo: r
579
684
  }),
580
685
  clearAllModels: () => {
581
686
  if (!t) return;
582
- l.value.forEach((i) => {
583
- t.remove(i), V(i);
687
+ o.value.forEach((C) => {
688
+ t.remove(C), I(C);
584
689
  });
585
- const f = [];
586
- t.children.forEach((i) => {
587
- !i.isLight && !i.isCamera && f.push(i);
588
- }), f.forEach((i) => {
589
- t.remove(i), V(i);
590
- }), l.value = [];
690
+ const b = [];
691
+ t.children.forEach((C) => {
692
+ !C.isLight && !C.isCamera && b.push(C);
693
+ }), b.forEach((C) => {
694
+ t.remove(C), I(C);
695
+ }), o.value = [];
591
696
  },
592
697
  cleanup: () => {
593
- G && cancelAnimationFrame(G), n && n.dispose(), r && r.dispose(), s && s.dispose();
698
+ P && cancelAnimationFrame(P), i && i.dispose(), s && s.dispose(), r && r.dispose();
594
699
  }
595
700
  };
596
701
  }
597
- function _n(a, t) {
598
- const e = R(!1);
599
- let n = null, r = 12700, s = new U(), G = new U(), l = new U(), B = 0, v = null;
600
- const x = (p) => p < 0.5 ? 4 * p * p * p : 1 - Math.pow(-2 * p + 2, 3) / 2, H = (p) => {
601
- const C = new U(), S = B * 1.2, M = new U(l.x + S, l.y, l.z), f = new U(l.x, l.y + S, l.z), i = new U(l.x, l.y - S, l.z);
602
- if (p <= 0.567) {
603
- const o = p / 0.567 * Math.PI * 2;
604
- C.x = l.x + Math.cos(o) * S, C.z = l.z + Math.sin(o) * S, C.y = l.y;
605
- } else if (p <= 0.724) {
606
- const u = (p - 0.567) / 0.157, o = x(u);
607
- C.lerpVectors(M, f, o);
608
- } else if (p <= 0.881) {
609
- const u = (p - 0.724) / 0.157, _ = x(u) * Math.PI;
610
- C.x = l.x + Math.sin(_) * S, C.y = l.y + Math.cos(_) * S, C.z = l.z;
702
+ function wn(a, t) {
703
+ const e = k(!1);
704
+ let i = null, s = 12700, r = new z(), P = new z(), o = new z(), g = 0, w = null;
705
+ const p = (m) => m < 0.5 ? 4 * m * m * m : 1 - Math.pow(-2 * m + 2, 3) / 2, O = (m) => {
706
+ const M = new z(), S = g * 1.2, T = new z(o.x + S, o.y, o.z), b = new z(o.x, o.y + S, o.z), C = new z(o.x, o.y - S, o.z);
707
+ if (m <= 0.567) {
708
+ const n = m / 0.567 * Math.PI * 2;
709
+ M.x = o.x + Math.cos(n) * S, M.z = o.z + Math.sin(n) * S, M.y = o.y;
710
+ } else if (m <= 0.724) {
711
+ const l = (m - 0.567) / 0.157, n = p(l);
712
+ M.lerpVectors(T, b, n);
713
+ } else if (m <= 0.881) {
714
+ const l = (m - 0.724) / 0.157, J = p(l) * Math.PI;
715
+ M.x = o.x + Math.sin(J) * S, M.y = o.y + Math.cos(J) * S, M.z = o.z;
611
716
  } else {
612
- const u = (p - 0.881) / 0.119, o = x(u);
613
- C.lerpVectors(i, s, o);
717
+ const l = (m - 0.881) / 0.119, n = p(l);
718
+ M.lerpVectors(C, r, n);
614
719
  }
615
- return C;
616
- }, K = () => {
617
- const { camera: p, controls: C } = a();
618
- if (!p || !C) return;
619
- n || (n = Date.now());
620
- const S = Date.now() - n, M = Math.min(S / r, 1);
621
- if (M >= 1) {
622
- V();
720
+ return M;
721
+ }, Z = () => {
722
+ const { camera: m, controls: M } = a();
723
+ if (!m || !M) return;
724
+ i || (i = Date.now());
725
+ const S = Date.now() - i, T = Math.min(S / s, 1);
726
+ if (T >= 1) {
727
+ I();
623
728
  return;
624
729
  }
625
- const f = H(M);
626
- p.position.copy(f), p.lookAt(l), C.target.copy(l), v = requestAnimationFrame(K);
627
- }, Q = () => {
730
+ const b = O(T);
731
+ m.position.copy(b), m.lookAt(o), M.target.copy(o), w = requestAnimationFrame(Z);
732
+ }, et = () => {
628
733
  if (t.value.length === 0) return;
629
- const { camera: p, controls: C } = a();
630
- if (!p || !C) return;
631
- s.copy(p.position), G.copy(C.target);
632
- const S = new He();
633
- t.value.forEach((m) => {
634
- S.expandByObject(m);
734
+ const { camera: m, controls: M } = a();
735
+ if (!m || !M) return;
736
+ r.copy(m.position), P.copy(M.target);
737
+ const S = new Ne();
738
+ t.value.forEach((u) => {
739
+ S.expandByObject(u);
635
740
  });
636
- const M = S.getSize(new U());
637
- l = S.getCenter(new U()), B = Math.max(M.x, M.y, M.z) * 1.2;
638
- const f = new U(l.x + B * 1.2, l.y, l.z);
639
- C.enabled = !1;
640
- const i = p.position.clone(), u = 1e3, o = Date.now(), _ = () => {
641
- const m = Date.now() - o, L = Math.min(m / u, 1), ct = x(L);
642
- p.position.lerpVectors(i, f, ct), p.lookAt(l), C.target.copy(l), L < 1 ? requestAnimationFrame(_) : (e.value = !0, n = null, K());
741
+ const T = S.getSize(new z());
742
+ o = S.getCenter(new z()), g = Math.max(T.x, T.y, T.z) * 1.2;
743
+ const b = new z(o.x + g * 1.2, o.y, o.z);
744
+ M.enabled = !1;
745
+ const C = m.position.clone(), l = 1e3, n = Date.now(), J = () => {
746
+ const u = Date.now() - n, G = Math.min(u / l, 1), lt = p(G);
747
+ m.position.lerpVectors(C, b, lt), m.lookAt(o), M.target.copy(o), G < 1 ? requestAnimationFrame(J) : (e.value = !0, i = null, Z());
643
748
  };
644
- _();
645
- }, V = () => {
646
- e.value = !1, n = null, v && (cancelAnimationFrame(v), v = null);
647
- const { controls: p } = a();
648
- p && (p.enabled = !0, p.target.copy(G));
749
+ J();
750
+ }, I = () => {
751
+ e.value = !1, i = null, w && (cancelAnimationFrame(w), w = null);
752
+ const { controls: m } = a();
753
+ m && (m.enabled = !0, m.target.copy(P));
649
754
  };
650
755
  return {
651
756
  isAnimating: e,
652
757
  toggleAnimation: () => {
653
758
  if (e.value) {
654
- e.value = !1, n = null, v && (cancelAnimationFrame(v), v = null);
655
- const { camera: p, controls: C } = a();
656
- if (!p || !C) return;
657
- C.enabled = !0;
658
- const S = p.position.clone(), M = C.target.clone(), f = 1500, i = Date.now(), u = () => {
659
- const o = Date.now() - i, _ = Math.min(o / f, 1), m = x(_);
660
- p.position.lerpVectors(S, s, m), C.target.lerpVectors(M, G, m), _ < 1 && requestAnimationFrame(u);
759
+ e.value = !1, i = null, w && (cancelAnimationFrame(w), w = null);
760
+ const { camera: m, controls: M } = a();
761
+ if (!m || !M) return;
762
+ M.enabled = !0;
763
+ const S = m.position.clone(), T = M.target.clone(), b = 1500, C = Date.now(), l = () => {
764
+ const n = Date.now() - C, J = Math.min(n / b, 1), u = p(J);
765
+ m.position.lerpVectors(S, r, u), M.target.lerpVectors(T, P, u), J < 1 && requestAnimationFrame(l);
661
766
  };
662
- u();
767
+ l();
663
768
  } else
664
- Q();
769
+ et();
665
770
  },
666
- startAnimation: Q,
667
- stopAnimation: V
771
+ startAnimation: et,
772
+ stopAnimation: I
668
773
  };
669
774
  }
670
- function mn(a, t) {
671
- const e = R(!1), n = R("none");
672
- let r = [], s = [], G = new He(), l = new U();
673
- const B = () => {
674
- r = [
675
- new ye(new U(1, 0, 0), 0),
775
+ function vn(a, t) {
776
+ const e = k(!1), i = k("none");
777
+ let s = [], r = [], P = new Ne(), o = new z();
778
+ const g = () => {
779
+ s = [
780
+ new we(new z(1, 0, 0), 0),
676
781
  // X轴平面
677
- new ye(new U(0, 1, 0), 0),
782
+ new we(new z(0, 1, 0), 0),
678
783
  // Y轴平面
679
- new ye(new U(0, 0, 1), 0)
784
+ new we(new z(0, 0, 1), 0)
680
785
  // Z轴平面
681
786
  ];
682
- }, v = () => {
683
- G.makeEmpty(), t.value.forEach((A) => {
684
- G.expandByObject(A);
685
- }), l = G.getCenter(new U());
686
- }, x = (A) => {
687
- const p = G.getSize(new U());
688
- let C, S, M;
689
- A === "x" ? (C = new Ae(p.z * 1.2, p.y * 1.2), S = new U(l.x, l.y, l.z), M = new Fe(0, Math.PI / 2, 0)) : A === "y" ? (C = new Ae(p.x * 1.2, p.z * 1.2), S = new U(l.x, l.y, l.z), M = new Fe(Math.PI / 2, 0, 0)) : A === "z" && (C = new Ae(p.x * 1.2, p.y * 1.2), S = new U(l.x, l.y, l.z), M = new Fe(0, 0, 0));
690
- const f = new Uo({
787
+ }, w = () => {
788
+ P.makeEmpty(), t.value.forEach((L) => {
789
+ P.expandByObject(L);
790
+ }), o = P.getCenter(new z());
791
+ }, p = (L) => {
792
+ const m = P.getSize(new z());
793
+ let M, S, T;
794
+ L === "x" ? (M = new Fe(m.z * 1.2, m.y * 1.2), S = new z(o.x, o.y, o.z), T = new Le(0, Math.PI / 2, 0)) : L === "y" ? (M = new Fe(m.x * 1.2, m.z * 1.2), S = new z(o.x, o.y, o.z), T = new Le(Math.PI / 2, 0, 0)) : L === "z" && (M = new Fe(m.x * 1.2, m.y * 1.2), S = new z(o.x, o.y, o.z), T = new Le(0, 0, 0));
795
+ const b = new zo({
691
796
  color: 8900331,
692
797
  transparent: !0,
693
798
  opacity: 0.3,
694
- side: zo,
799
+ side: $o,
695
800
  depthWrite: !1
696
- }), i = new Ho(C, f);
697
- return i.position.copy(S), i.rotation.copy(M), i;
698
- }, H = () => {
699
- if (K(), Q(), n.value === "none")
801
+ }), C = new Ho(M, b);
802
+ return C.position.copy(S), C.rotation.copy(T), C;
803
+ }, O = () => {
804
+ if (Z(), et(), i.value === "none")
700
805
  return;
701
- v();
702
- let A = null;
703
- if (n.value === "x" ? (r[0].constant = -l.x, A = r[0]) : n.value === "y" ? (r[1].constant = -l.y, A = r[1]) : n.value === "z" && (r[2].constant = -l.z, A = r[2]), A) {
704
- t.value.forEach((C) => {
705
- C.traverse((S) => {
706
- S.isMesh && S.material && (Array.isArray(S.material) ? S.material.forEach((M) => {
707
- M.clippingPlanes = [A];
708
- }) : S.material.clippingPlanes = [A]);
806
+ w();
807
+ let L = null;
808
+ if (i.value === "x" ? (s[0].constant = -o.x, L = s[0]) : i.value === "y" ? (s[1].constant = -o.y, L = s[1]) : i.value === "z" && (s[2].constant = -o.z, L = s[2]), L) {
809
+ t.value.forEach((M) => {
810
+ M.traverse((S) => {
811
+ S.isMesh && S.material && (Array.isArray(S.material) ? S.material.forEach((T) => {
812
+ T.clippingPlanes = [L];
813
+ }) : S.material.clippingPlanes = [L]);
709
814
  });
710
815
  });
711
- const { scene: p } = a();
712
- if (p) {
713
- const C = x(n.value);
714
- p.add(C), s.push(C);
816
+ const { scene: m } = a();
817
+ if (m) {
818
+ const M = p(i.value);
819
+ m.add(M), r.push(M);
715
820
  }
716
821
  }
717
- }, K = () => {
718
- t.value.forEach((A) => {
719
- A.traverse((p) => {
720
- p.isMesh && p.material && (Array.isArray(p.material) ? p.material.forEach((C) => {
721
- C.clippingPlanes = [];
722
- }) : p.material.clippingPlanes = []);
822
+ }, Z = () => {
823
+ t.value.forEach((L) => {
824
+ L.traverse((m) => {
825
+ m.isMesh && m.material && (Array.isArray(m.material) ? m.material.forEach((M) => {
826
+ M.clippingPlanes = [];
827
+ }) : m.material.clippingPlanes = []);
723
828
  });
724
829
  });
725
- }, Q = () => {
726
- const { scene: A } = a();
727
- A && s.forEach((p) => {
728
- A.remove(p), p.geometry.dispose(), p.material.dispose();
729
- }), s = [];
830
+ }, et = () => {
831
+ const { scene: L } = a();
832
+ L && r.forEach((m) => {
833
+ L.remove(m), m.geometry.dispose(), m.material.dispose();
834
+ }), r = [];
730
835
  };
731
836
  return {
732
837
  isClipping: e,
733
- activeClippingAxis: n,
838
+ activeClippingAxis: i,
734
839
  toggleClipping: () => {
735
- e.value = !e.value, e.value ? (B(), t.value.length > 0 && v()) : (n.value = "none", K(), Q());
840
+ e.value = !e.value, e.value ? (g(), t.value.length > 0 && w()) : (i.value = "none", Z(), et());
736
841
  },
737
- updateClippingPlanes: H,
738
- clearClippingPlanes: K,
739
- clearClippingMeshes: Q
842
+ updateClippingPlanes: O,
843
+ clearClippingPlanes: Z,
844
+ clearClippingMeshes: et
740
845
  };
741
846
  }
742
- const Pn = [
847
+ const bn = [
743
848
  {
744
849
  "J1_Joint(GP1)": -3172089e-9,
745
850
  "J2_Joint(GP1)": -0.096027484,
@@ -1364,312 +1469,334 @@ const Pn = [
1364
1469
  "BendGuidePart_Joint(GP2)": -0.015,
1365
1470
  "HolderRoate_Joint(GP3)": 6.283185307
1366
1471
  }
1367
- ], Jn = {
1472
+ ], Bn = {
1368
1473
  key: 0,
1369
1474
  class: "jointPanel-container"
1370
- }, fn = { class: "panel-actions" }, gn = ["disabled"], Gn = { class: "panel-content" }, yn = {
1475
+ }, Cn = { class: "panel-actions" }, Rn = ["disabled"], kn = { class: "panel-content" }, Mn = {
1371
1476
  key: 0,
1372
1477
  class: "joints-list"
1373
- }, wn = { class: "joint-info-row" }, vn = { class: "joint-left" }, bn = { class: "joint-name" }, Bn = { class: "joint-range" }, Rn = { class: "joint-type" }, Cn = {
1478
+ }, Tn = { class: "joint-info-row" }, xn = { class: "joint-left" }, En = { class: "joint-name" }, Dn = { class: "joint-range" }, Sn = { class: "joint-type" }, An = {
1374
1479
  key: 0,
1375
1480
  class: "joint-control-row"
1376
- }, Mn = { class: "slider-container" }, kn = ["min", "max", "value", "onInput", "disabled"], Tn = { class: "value-display" }, En = { class: "joint-value" }, xn = { class: "unit" }, Sn = {
1481
+ }, Fn = { class: "slider-container" }, Ln = ["min", "max", "value", "onInput", "disabled"], jn = { class: "value-display" }, On = { class: "joint-value" }, Un = { class: "unit" }, zn = {
1377
1482
  key: 1,
1378
1483
  class: "empty-state"
1379
- }, Dn = 1e3, An = {
1484
+ }, $n = 1e3, Hn = {
1380
1485
  __name: "jointPanel",
1381
1486
  props: {
1382
1487
  model: Object
1383
1488
  },
1384
1489
  setup(a, { expose: t }) {
1385
- const e = a, n = R([]), r = R(null), s = R(!1), G = R(null), l = Pn;
1386
- l.length > 0 && Object.keys(l[0]);
1387
- const B = (i, u = !1) => i === "revolute" ? u ? Math.PI : -Math.PI : i === "prismatic" ? u ? 1 : -1 : 0, v = (i) => {
1388
- if (!i || !i.joints)
1490
+ const e = a, i = k(!0), s = k([]), r = k(null), P = k(!1), o = k(null), g = bn;
1491
+ g.length > 0 && Object.keys(g[0]);
1492
+ const w = (l, n = !1) => l === "revolute" ? n ? Math.PI : -Math.PI : l === "prismatic" ? n ? 1 : -1 : 0, p = (l) => {
1493
+ if (!l || !l.joints)
1389
1494
  return console.warn("URDF模型没有关节信息"), [];
1390
- const u = [];
1391
- return Object.keys(i.joints).forEach((o) => {
1392
- const _ = i.joints[o];
1393
- if (_._jointType === "fixed")
1495
+ const n = [];
1496
+ return Object.keys(l.joints).forEach((J) => {
1497
+ const u = l.joints[J];
1498
+ if (u._jointType === "fixed")
1394
1499
  return;
1395
- const m = _.limit ? {
1396
- lower: _.limit.lower ?? B(_._jointType, !1),
1397
- upper: _.limit.upper ?? B(_._jointType, !0)
1500
+ const G = u.limit ? {
1501
+ lower: u.limit.lower ?? w(u._jointType, !1),
1502
+ upper: u.limit.upper ?? w(u._jointType, !0)
1398
1503
  } : {
1399
- lower: B(_._jointType, !1),
1400
- upper: B(_._jointType, !0)
1504
+ lower: w(u._jointType, !1),
1505
+ upper: w(u._jointType, !0)
1401
1506
  };
1402
- u.push({
1403
- name: o,
1404
- type: _._jointType || "unknown",
1405
- limit: m,
1406
- currentValue: _.angle || 0,
1407
- urdfJoint: _
1507
+ n.push({
1508
+ name: J,
1509
+ type: u._jointType || "unknown",
1510
+ limit: G,
1511
+ currentValue: u.angle || 0,
1512
+ urdfJoint: u
1408
1513
  });
1409
- }), u.sort((o, _) => o.name.localeCompare(_.name));
1410
- }, x = (i, u) => {
1411
- const o = n.value.find((m) => m.name === i);
1412
- if (!o) return;
1413
- const _ = parseFloat(u);
1414
- if (o.limit) {
1415
- const m = Math.max(o.limit.lower, Math.min(o.limit.upper, _));
1416
- o.currentValue = m;
1514
+ }), n.sort((J, u) => J.name.localeCompare(u.name));
1515
+ }, O = (l, n) => {
1516
+ const J = s.value.find((G) => G.name === l);
1517
+ if (!J) return;
1518
+ const u = parseFloat(n);
1519
+ if (J.limit) {
1520
+ const G = Math.max(J.limit.lower, Math.min(J.limit.upper, u));
1521
+ J.currentValue = G;
1417
1522
  } else
1418
- o.currentValue = _;
1419
- e.model && e.model.setJointValue ? e.model.setJointValue(i, o.currentValue) : o.urdfJoint && o.urdfJoint.setJointValue(o.currentValue);
1420
- }, H = (i) => {
1421
- i && Object.keys(i).forEach((u) => {
1422
- const o = i[u], _ = n.value.find((m) => m.name === u);
1423
- _ && (_.currentValue = o, e.model && e.model.setJointValue ? e.model.setJointValue(u, o) : _.urdfJoint && _.urdfJoint.setJointValue(o));
1523
+ J.currentValue = u;
1524
+ e.model && e.model.setJointValue ? e.model.setJointValue(l, J.currentValue) : J.urdfJoint && J.urdfJoint.setJointValue(J.currentValue);
1525
+ }, Z = (l) => {
1526
+ l && Object.keys(l).forEach((n) => {
1527
+ const J = l[n], u = s.value.find((G) => G.name === n);
1528
+ u && (u.currentValue = J, e.model && e.model.setJointValue ? e.model.setJointValue(n, J) : u.urdfJoint && u.urdfJoint.setJointValue(J));
1424
1529
  });
1425
- }, K = (i, u, o) => i + (u - i) * o, Q = (i, u, o) => {
1426
- if (!i || !u) return i || u;
1427
- const _ = {};
1428
- return Object.keys(i).forEach((m) => {
1429
- const L = i[m], ct = u[m];
1430
- _[m] = K(L, ct || L, o);
1431
- }), _;
1432
- }, V = () => {
1433
- s.value ? p() : A();
1434
- }, A = () => {
1435
- if (l.length === 0) {
1530
+ }, et = (l, n, J) => l + (n - l) * J, I = (l, n, J) => {
1531
+ if (!l || !n) return l || n;
1532
+ const u = {};
1533
+ return Object.keys(l).forEach((G) => {
1534
+ const lt = l[G], V = n[G];
1535
+ u[G] = et(lt, V || lt, J);
1536
+ }), u;
1537
+ }, L = () => {
1538
+ P.value ? M() : m();
1539
+ }, m = () => {
1540
+ if (g.length === 0) {
1436
1541
  console.warn("没有动画数据");
1437
1542
  return;
1438
1543
  }
1439
- s.value = !0;
1440
- const i = l.length, u = 60, o = Dn / u;
1441
- let _ = 0, m = 0;
1442
- const L = () => {
1443
- if (!s.value) return;
1444
- const ct = _ / u, tt = l[m], jt = l[m + 1];
1445
- if (jt) {
1446
- const It = Q(tt, jt, ct);
1447
- H(It);
1544
+ P.value = !0;
1545
+ const l = g.length, n = 60, J = $n / n;
1546
+ let u = 0, G = 0;
1547
+ const lt = () => {
1548
+ if (!P.value) return;
1549
+ const V = u / n, Dt = g[G], Ft = g[G + 1];
1550
+ if (Ft) {
1551
+ const Kt = I(Dt, Ft, V);
1552
+ Z(Kt);
1448
1553
  } else
1449
- H(tt);
1450
- if (_++, _ >= u && (_ = 0, m++, m >= i - 1)) {
1451
- p();
1554
+ Z(Dt);
1555
+ if (u++, u >= n && (u = 0, G++, G >= l - 1)) {
1556
+ M();
1452
1557
  return;
1453
1558
  }
1454
- G.value = setTimeout(L, o);
1559
+ o.value = setTimeout(lt, J);
1455
1560
  };
1456
- L();
1457
- }, p = () => {
1458
- s.value = !1, G.value && (clearTimeout(G.value), G.value = null);
1459
- }, C = () => {
1460
- n.value.forEach((i) => {
1461
- (i.type === "revolute" || i.type === "prismatic") && x(i.name, 0);
1561
+ lt();
1562
+ }, M = () => {
1563
+ P.value = !1, o.value && (clearTimeout(o.value), o.value = null);
1564
+ }, S = () => {
1565
+ s.value.forEach((l) => {
1566
+ (l.type === "revolute" || l.type === "prismatic") && O(l.name, 0);
1462
1567
  });
1463
1568
  };
1464
1569
  Ct(
1465
1570
  () => e.model,
1466
- (i) => {
1467
- i ? n.value = v(i) : n.value = [];
1571
+ (l) => {
1572
+ l ? s.value = p(l) : s.value = [];
1468
1573
  },
1469
1574
  { immediate: !0 }
1470
1575
  );
1471
- const S = () => {
1472
- !e.model || s.value || n.value.forEach((i) => {
1473
- i.urdfJoint && i.urdfJoint.angle !== void 0 && (i.currentValue = i.urdfJoint.angle);
1576
+ const T = () => {
1577
+ !e.model || P.value || s.value.forEach((l) => {
1578
+ l.urdfJoint && l.urdfJoint.angle !== void 0 && (l.currentValue = l.urdfJoint.angle);
1474
1579
  });
1475
- }, M = () => {
1476
- const i = () => {
1477
- S(), r.value = requestAnimationFrame(i);
1580
+ }, b = () => {
1581
+ const l = () => {
1582
+ T(), r.value = requestAnimationFrame(l);
1478
1583
  };
1479
- i();
1480
- }, f = () => {
1584
+ l();
1585
+ }, C = () => {
1481
1586
  r.value && (cancelAnimationFrame(r.value), r.value = null);
1482
1587
  };
1483
- return je(() => {
1484
- M();
1485
- }), fo(() => {
1486
- f(), p();
1588
+ return Ue(() => {
1589
+ b();
1590
+ }), yo(() => {
1591
+ C(), M();
1487
1592
  }), t({
1488
- startAnimation: A
1489
- }), (i, u) => a.model ? (g(), j("div", Jn, [
1490
- u[1] || (u[1] = c("div", { class: "panel-header" }, [
1491
- c("h3", null, "关节控制面板")
1492
- ], -1)),
1493
- c("div", fn, [
1494
- c("button", {
1495
- onClick: V,
1496
- class: "animate-btn"
1497
- }, ft(s.value ? "停止动画" : "开始动画"), 1),
1498
- c("button", {
1499
- onClick: C,
1500
- disabled: s.value
1501
- }, "重置所有关节", 8, gn)
1502
- ]),
1503
- c("div", Gn, [
1504
- n.value.length > 0 ? (g(), j("div", yn, [
1505
- (g(!0), j(ue, null, ve(n.value, (o) => {
1506
- var _, m, L, ct;
1507
- return g(), j("div", {
1508
- key: o.name,
1509
- class: "joint-item"
1510
- }, [
1511
- c("div", wn, [
1512
- c("div", vn, [
1513
- c("span", bn, ft(o.name), 1),
1514
- c("span", Bn, " [" + ft(((_ = o.limit) == null ? void 0 : _.lower.toFixed(2)) ?? (o.type === "revolute" ? "-3.14" : "-1.00")) + ", " + ft(((m = o.limit) == null ? void 0 : m.upper.toFixed(2)) ?? (o.type === "revolute" ? "3.14" : "1.00")) + "] ", 1)
1515
- ]),
1516
- c("span", Rn, ft(o.type), 1)
1517
- ]),
1518
- o.type === "revolute" || o.type === "prismatic" ? (g(), j("div", Cn, [
1519
- c("div", Mn, [
1520
- c("input", {
1521
- type: "range",
1522
- min: ((L = o.limit) == null ? void 0 : L.lower) ?? (o.type === "revolute" ? -Math.PI : -1),
1523
- max: ((ct = o.limit) == null ? void 0 : ct.upper) ?? (o.type === "revolute" ? Math.PI : 1),
1524
- step: 0.01,
1525
- value: o.currentValue,
1526
- onInput: (tt) => x(o.name, tt.target.value),
1527
- class: "joint-slider",
1528
- disabled: s.value
1529
- }, null, 40, kn)
1593
+ startAnimation: m
1594
+ }), (l, n) => {
1595
+ const J = X("el-scrollbar"), u = X("el-collapse-transition");
1596
+ return a.model ? (f(), j("div", Bn, [
1597
+ c("div", {
1598
+ class: "panel-header",
1599
+ onClick: n[0] || (n[0] = (G) => i.value = !i.value)
1600
+ }, n[1] || (n[1] = [
1601
+ c("h3", null, "关节控制面板", -1)
1602
+ ])),
1603
+ _(u, null, {
1604
+ default: v(() => [
1605
+ Yt(_(J, { "max-height": "650px" }, {
1606
+ default: v(() => [
1607
+ c("div", Cn, [
1608
+ c("button", {
1609
+ onClick: L,
1610
+ class: "animate-btn"
1611
+ }, ft(P.value ? "停止动画" : "开始动画"), 1),
1612
+ c("button", {
1613
+ onClick: S,
1614
+ disabled: P.value
1615
+ }, "重置所有关节", 8, Rn)
1530
1616
  ]),
1531
- c("div", Tn, [
1532
- c("span", En, ft(o.currentValue.toFixed(3)), 1),
1533
- c("span", xn, ft(o.type === "revolute" ? "rad" : "m"), 1)
1617
+ c("div", kn, [
1618
+ s.value.length > 0 ? (f(), j("div", Mn, [
1619
+ (f(!0), j(pe, null, Be(s.value, (G) => {
1620
+ var lt, V, Dt, Ft;
1621
+ return f(), j("div", {
1622
+ key: G.name,
1623
+ class: "joint-item"
1624
+ }, [
1625
+ c("div", Tn, [
1626
+ c("div", xn, [
1627
+ c("span", En, ft(G.name), 1),
1628
+ c("span", Dn, " [" + ft(((lt = G.limit) == null ? void 0 : lt.lower.toFixed(2)) ?? (G.type === "revolute" ? "-3.14" : "-1.00")) + ", " + ft(((V = G.limit) == null ? void 0 : V.upper.toFixed(2)) ?? (G.type === "revolute" ? "3.14" : "1.00")) + "] ", 1)
1629
+ ]),
1630
+ c("span", Sn, ft(G.type), 1)
1631
+ ]),
1632
+ G.type === "revolute" || G.type === "prismatic" ? (f(), j("div", An, [
1633
+ c("div", Fn, [
1634
+ c("input", {
1635
+ type: "range",
1636
+ min: ((Dt = G.limit) == null ? void 0 : Dt.lower) ?? (G.type === "revolute" ? -Math.PI : -1),
1637
+ max: ((Ft = G.limit) == null ? void 0 : Ft.upper) ?? (G.type === "revolute" ? Math.PI : 1),
1638
+ step: 0.01,
1639
+ value: G.currentValue,
1640
+ onInput: (Kt) => O(G.name, Kt.target.value),
1641
+ class: "joint-slider",
1642
+ disabled: P.value
1643
+ }, null, 40, Ln)
1644
+ ]),
1645
+ c("div", jn, [
1646
+ c("span", On, ft(G.currentValue.toFixed(3)), 1),
1647
+ c("span", Un, ft(G.type === "revolute" ? "rad" : "m"), 1)
1648
+ ])
1649
+ ])) : st("", !0)
1650
+ ]);
1651
+ }), 128))
1652
+ ])) : (f(), j("div", zn, n[2] || (n[2] = [
1653
+ c("p", null, "未检测到可控制的关节", -1)
1654
+ ])))
1534
1655
  ])
1535
- ])) : pt("", !0)
1536
- ]);
1537
- }), 128))
1538
- ])) : (g(), j("div", Sn, u[0] || (u[0] = [
1539
- c("p", null, "未检测到可控制的关节", -1)
1540
- ])))
1541
- ])
1542
- ])) : pt("", !0);
1543
- }
1544
- }, Fn = /* @__PURE__ */ Vt(An, [["__scopeId", "data-v-c65e68e7"]]), Ln = { class: "obj-viewer-container" }, jn = { class: "floating-controls" }, On = ["disabled"], Un = ["disabled", "title"], zn = {
1656
+ ]),
1657
+ _: 1
1658
+ }, 512), [
1659
+ [oo, i.value]
1660
+ ])
1661
+ ]),
1662
+ _: 1
1663
+ })
1664
+ ])) : st("", !0);
1665
+ };
1666
+ }
1667
+ }, Nn = /* @__PURE__ */ zt(Hn, [["__scopeId", "data-v-69f8c556"]]), In = { class: "obj-viewer-container" }, Vn = { class: "floating-controls" }, Yn = ["disabled"], Kn = ["disabled", "title"], Zn = {
1545
1668
  key: 0,
1546
1669
  viewBox: "0 0 24 24",
1547
1670
  fill: "none",
1548
1671
  stroke: "currentColor",
1549
1672
  "stroke-width": "2"
1550
- }, Hn = {
1673
+ }, Xn = {
1551
1674
  key: 1,
1552
1675
  viewBox: "0 0 24 24",
1553
1676
  fill: "none",
1554
1677
  stroke: "currentColor",
1555
1678
  "stroke-width": "2"
1556
- }, $n = ["disabled"], Nn = ["title"], Vn = {
1679
+ }, Wn = ["disabled"], qn = ["title"], Qn = {
1557
1680
  key: 0,
1558
1681
  viewBox: "0 0 24 24",
1559
1682
  fill: "none",
1560
1683
  stroke: "currentColor",
1561
1684
  "stroke-width": "2"
1562
- }, In = {
1685
+ }, ti = {
1563
1686
  key: 1,
1564
1687
  viewBox: "0 0 24 24",
1565
1688
  fill: "none",
1566
1689
  stroke: "currentColor",
1567
1690
  "stroke-width": "2"
1568
- }, Yn = {
1569
- key: 1,
1570
- class: "clipping-panel"
1571
- }, Kn = { class: "panel-content" }, Zn = { class: "radio-group" }, Xn = { class: "radio-label" }, Wn = { class: "radio-label" }, qn = { class: "radio-label" }, Qn = { class: "radio-label" }, ti = {
1691
+ }, ei = {
1572
1692
  key: 2,
1693
+ class: "clipping-panel"
1694
+ }, oi = { class: "panel-content" }, ni = { class: "radio-group" }, ii = { class: "radio-label" }, ai = { class: "radio-label" }, si = { class: "radio-label" }, li = { class: "radio-label" }, ri = {
1695
+ key: 3,
1573
1696
  class: "loading-overlay"
1574
- }, ei = {
1697
+ }, ci = {
1575
1698
  __name: "threeModel",
1576
1699
  setup(a, { expose: t }) {
1577
1700
  let e = null;
1578
- const n = R(null), r = R(!1), s = R(""), G = R(!1), l = R(!1), B = R(!1), v = R(null), {
1579
- currentModels: x,
1580
- initialCameraPosition: H,
1581
- initialTargetPosition: K,
1582
- initThreeJS: Q,
1583
- handleResize: V,
1584
- fitCameraToAllModels: A,
1585
- getThreeJSObjects: p,
1586
- clearAllModels: C,
1701
+ const i = k(null), s = k(!1), r = k(""), P = k(!1), o = k(!1), g = k(!1), w = k(null), {
1702
+ currentModels: p,
1703
+ initialCameraPosition: O,
1704
+ initialTargetPosition: Z,
1705
+ initThreeJS: et,
1706
+ handleResize: I,
1707
+ fitCameraToAllModels: L,
1708
+ getThreeJSObjects: m,
1709
+ clearAllModels: M,
1587
1710
  cleanup: S
1588
- } = pn(n), { isAnimating: M, toggleAnimation: f, stopAnimation: i } = _n(p, x), { isClipping: u, activeClippingAxis: o, toggleClipping: _, updateClippingPlanes: m } = mn(
1711
+ } = yn(i), { isAnimating: T, toggleAnimation: b, stopAnimation: C } = wn(m, p), { isClipping: l, activeClippingAxis: n, toggleClipping: J, updateClippingPlanes: u } = vn(
1712
+ m,
1713
+ p
1714
+ ), { addModelsFromUrls: G, loadModelByDefaultPath: lt, urdfModel: V } = No(
1715
+ m,
1589
1716
  p,
1590
- x
1591
- ), { addModelsFromUrls: L, loadModelByDefaultPath: ct, urdfModel: tt } = $o(
1592
- p,
1593
- x,
1594
- r,
1595
1717
  s,
1596
- C
1597
- ), jt = () => {
1598
- if (B.value || x.value.length === 0) return;
1599
- B.value = !0, M.value && i();
1600
- const { camera: gt, controls: w } = p();
1601
- if (!gt || !w) return;
1602
- w.enabled = !0;
1603
- const I = (Ot) => Ot < 0.5 ? 4 * Ot * Ot * Ot : 1 - Math.pow(-2 * Ot + 2, 3) / 2, Zt = gt.position.clone(), ke = w.target.clone(), Te = 1500, Ee = Date.now(), Xt = () => {
1604
- const Ot = Date.now() - Ee, me = Math.min(Ot / Te, 1), y = I(me);
1605
- gt.position.lerpVectors(Zt, H.value, y), w.target.lerpVectors(ke, K.value, y), me < 1 ? requestAnimationFrame(Xt) : B.value = !1;
1718
+ r,
1719
+ M
1720
+ ), Dt = () => {
1721
+ if (g.value || p.value.length === 0) return;
1722
+ g.value = !0, T.value && C();
1723
+ const { camera: gt, controls: R } = m();
1724
+ if (!gt || !R) return;
1725
+ R.enabled = !0;
1726
+ const Y = ($t) => $t < 0.5 ? 4 * $t * $t * $t : 1 - Math.pow(-2 * $t + 2, 3) / 2, Wt = gt.position.clone(), Te = R.target.clone(), xe = 1500, Ee = Date.now(), qt = () => {
1727
+ const $t = Date.now() - Ee, Pe = Math.min($t / xe, 1), B = Y(Pe);
1728
+ gt.position.lerpVectors(Wt, O.value, B), R.target.lerpVectors(Te, Z.value, B), Pe < 1 ? requestAnimationFrame(qt) : g.value = !1;
1606
1729
  };
1607
- Xt();
1608
- }, It = () => {
1609
- G.value = !0, tt && (v.value.startAnimation(), G.value = !1);
1730
+ qt();
1731
+ }, Ft = () => {
1732
+ P.value = !0, V && (w.value.startAnimation(), P.value = !1);
1610
1733
  };
1611
1734
  Ct(
1612
- () => tt,
1735
+ () => V,
1613
1736
  () => {
1614
- v.value.startAnimation(), G.value = !1;
1737
+ w.value.startAnimation(), P.value = !1;
1615
1738
  },
1616
1739
  { deep: !0 }
1617
1740
  );
1618
- const Re = () => {
1741
+ const Kt = () => {
1619
1742
  document.fullscreenElement ? document.exitFullscreen().then(() => {
1620
- l.value = !1, Pe(() => {
1621
- V();
1743
+ o.value = !1, Je(() => {
1744
+ I();
1622
1745
  });
1623
1746
  }).catch((gt) => {
1624
1747
  console.error("无法退出全屏:", gt);
1625
- }) : n.value.requestFullscreen().then(() => {
1626
- l.value = !0, Pe(() => {
1627
- V();
1748
+ }) : i.value.requestFullscreen().then(() => {
1749
+ o.value = !0, Je(() => {
1750
+ I();
1628
1751
  });
1629
1752
  }).catch((gt) => {
1630
1753
  console.error("无法进入全屏:", gt);
1631
1754
  });
1632
- }, pe = () => {
1633
- l.value = !!document.fullscreenElement, l.value || Pe(() => {
1634
- V();
1755
+ }, _e = () => {
1756
+ o.value = !!document.fullscreenElement, o.value || Je(() => {
1757
+ I();
1635
1758
  });
1636
- }, _e = async (gt, w) => {
1759
+ }, me = async (gt, R) => {
1637
1760
  try {
1638
- M.value && i(), u.value && _();
1639
- const I = await w(gt);
1640
- return A(), I;
1641
- } catch (I) {
1642
- throw console.error("加载模型失败:", I), I;
1761
+ T.value && C(), l.value && J();
1762
+ const Y = await R(gt);
1763
+ return L(), Y;
1764
+ } catch (Y) {
1765
+ throw console.error("加载模型失败:", Y), Y;
1643
1766
  }
1644
- }, Ce = async (gt) => _e(gt, L), Me = async (gt) => _e(gt, ct);
1645
- return je(async () => {
1646
- await Pe(), Q(), e = p().scene, window.addEventListener("resize", V), document.addEventListener("fullscreenchange", pe);
1647
- }), go(() => {
1648
- window.removeEventListener("resize", V), document.removeEventListener("fullscreenchange", pe), M.value && i(), S();
1767
+ }, ke = async (gt) => me(gt, G), Me = async (gt) => me(gt, lt);
1768
+ return Ue(async () => {
1769
+ await Je(), et(), e = m().scene, window.addEventListener("resize", I), document.addEventListener("fullscreenchange", _e);
1770
+ }), wo(() => {
1771
+ window.removeEventListener("resize", I), document.removeEventListener("fullscreenchange", _e), T.value && C(), S();
1649
1772
  }), t({
1650
- addModelsFromUrls: Ce,
1773
+ addModelsFromUrls: ke,
1651
1774
  loadModelByDefaultPath: Me,
1652
- startRunningAnimation: It
1653
- }), (gt, w) => (g(), j("div", Ln, [
1654
- h(tt) ? (g(), rt(Fn, {
1775
+ startRunningAnimation: Ft
1776
+ }), (gt, R) => (f(), j("div", In, [
1777
+ h(V) ? (f(), it(sn, {
1655
1778
  key: 0,
1656
- model: h(tt),
1779
+ model: h(V)
1780
+ }, null, 8, ["model"])) : st("", !0),
1781
+ h(V) ? (f(), it(Nn, {
1782
+ key: 1,
1783
+ model: h(V),
1657
1784
  scene: h(e),
1658
1785
  ref_key: "jointRef",
1659
- ref: v
1660
- }, null, 8, ["model", "scene"])) : pt("", !0),
1786
+ ref: w
1787
+ }, null, 8, ["model", "scene"])) : st("", !0),
1661
1788
  c("div", {
1662
1789
  ref_key: "threejsContainer",
1663
- ref: n,
1790
+ ref: i,
1664
1791
  class: "threejs-container"
1665
1792
  }, null, 512),
1666
- c("div", jn, [
1793
+ c("div", Vn, [
1667
1794
  c("button", {
1668
- onClick: jt,
1669
- class: Je(["control-btn", "reset-btn"]),
1670
- disabled: r.value || h(x).length === 0 || B.value,
1795
+ onClick: Dt,
1796
+ class: fe(["control-btn", "reset-btn"]),
1797
+ disabled: s.value || h(p).length === 0 || g.value,
1671
1798
  title: "重置"
1672
- }, w[10] || (w[10] = [
1799
+ }, R[10] || (R[10] = [
1673
1800
  c("svg", {
1674
1801
  viewBox: "0 0 24 24",
1675
1802
  fill: "none",
@@ -1679,14 +1806,14 @@ const Pn = [
1679
1806
  c("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
1680
1807
  c("polyline", { points: "9,22 9,12 15,12 15,22" })
1681
1808
  ], -1)
1682
- ]), 8, On),
1809
+ ]), 8, Yn),
1683
1810
  c("button", {
1684
- onClick: w[0] || (w[0] = (...I) => h(f) && h(f)(...I)),
1685
- class: Je(["control-btn", "animation-btn", { active: h(M) }]),
1686
- disabled: r.value || h(x).length === 0,
1687
- title: h(M) ? "停止动画" : "动画视图"
1811
+ onClick: R[0] || (R[0] = (...Y) => h(b) && h(b)(...Y)),
1812
+ class: fe(["control-btn", "animation-btn", { active: h(T) }]),
1813
+ disabled: s.value || h(p).length === 0,
1814
+ title: h(T) ? "停止动画" : "动画视图"
1688
1815
  }, [
1689
- h(M) ? (g(), j("svg", Hn, w[12] || (w[12] = [
1816
+ h(T) ? (f(), j("svg", Xn, R[12] || (R[12] = [
1690
1817
  c("circle", {
1691
1818
  cx: "12",
1692
1819
  cy: "12",
@@ -1706,7 +1833,7 @@ const Pn = [
1706
1833
  height: "8",
1707
1834
  fill: "currentColor"
1708
1835
  }, null, -1)
1709
- ]))) : (g(), j("svg", zn, w[11] || (w[11] = [
1836
+ ]))) : (f(), j("svg", Zn, R[11] || (R[11] = [
1710
1837
  c("circle", {
1711
1838
  cx: "12",
1712
1839
  cy: "12",
@@ -1717,13 +1844,13 @@ const Pn = [
1717
1844
  fill: "currentColor"
1718
1845
  }, null, -1)
1719
1846
  ])))
1720
- ], 10, Un),
1847
+ ], 10, Kn),
1721
1848
  c("button", {
1722
- onClick: w[1] || (w[1] = (...I) => h(_) && h(_)(...I)),
1723
- class: Je(["control-btn", "clipping-btn", { active: h(u) }]),
1724
- disabled: r.value || h(x).length === 0,
1849
+ onClick: R[1] || (R[1] = (...Y) => h(J) && h(J)(...Y)),
1850
+ class: fe(["control-btn", "clipping-btn", { active: h(l) }]),
1851
+ disabled: s.value || h(p).length === 0,
1725
1852
  title: "剖面视图"
1726
- }, w[13] || (w[13] = [
1853
+ }, R[13] || (R[13] = [
1727
1854
  c("svg", {
1728
1855
  viewBox: "0 0 24 24",
1729
1856
  fill: "none",
@@ -1744,103 +1871,103 @@ const Pn = [
1744
1871
  "stroke-dasharray": "4,2"
1745
1872
  })
1746
1873
  ], -1)
1747
- ]), 10, $n),
1874
+ ]), 10, Wn),
1748
1875
  c("button", {
1749
- onClick: Re,
1750
- class: Je(["control-btn", "fullscreen-btn"]),
1751
- title: l.value ? "退出全屏" : "全屏"
1876
+ onClick: Kt,
1877
+ class: fe(["control-btn", "fullscreen-btn"]),
1878
+ title: o.value ? "退出全屏" : "全屏"
1752
1879
  }, [
1753
- l.value ? (g(), j("svg", In, w[15] || (w[15] = [
1880
+ o.value ? (f(), j("svg", ti, R[15] || (R[15] = [
1754
1881
  c("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)
1755
- ]))) : (g(), j("svg", Vn, w[14] || (w[14] = [
1882
+ ]))) : (f(), j("svg", Qn, R[14] || (R[14] = [
1756
1883
  c("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)
1757
1884
  ])))
1758
- ], 8, Nn)
1885
+ ], 8, qn)
1759
1886
  ]),
1760
- h(u) ? (g(), j("div", Yn, [
1761
- c("div", Kn, [
1762
- c("div", Zn, [
1763
- c("label", Xn, [
1764
- ne(c("input", {
1887
+ h(l) ? (f(), j("div", ei, [
1888
+ c("div", oi, [
1889
+ c("div", ni, [
1890
+ c("label", ii, [
1891
+ Yt(c("input", {
1765
1892
  type: "radio",
1766
1893
  name: "clipping-axis",
1767
1894
  value: "none",
1768
- "onUpdate:modelValue": w[2] || (w[2] = (I) => fe(o) ? o.value = I : null),
1769
- onChange: w[3] || (w[3] = (...I) => h(m) && h(m)(...I))
1895
+ "onUpdate:modelValue": R[2] || (R[2] = (Y) => ge(n) ? n.value = Y : null),
1896
+ onChange: R[3] || (R[3] = (...Y) => h(u) && h(u)(...Y))
1770
1897
  }, null, 544), [
1771
- [ge, h(o)]
1898
+ [Ge, h(n)]
1772
1899
  ]),
1773
- w[16] || (w[16] = c("span", { class: "radio-text" }, "无切割", -1))
1900
+ R[16] || (R[16] = c("span", { class: "radio-text" }, "无切割", -1))
1774
1901
  ]),
1775
- c("label", Wn, [
1776
- ne(c("input", {
1902
+ c("label", ai, [
1903
+ Yt(c("input", {
1777
1904
  type: "radio",
1778
1905
  name: "clipping-axis",
1779
1906
  value: "x",
1780
- "onUpdate:modelValue": w[4] || (w[4] = (I) => fe(o) ? o.value = I : null),
1781
- onChange: w[5] || (w[5] = (...I) => h(m) && h(m)(...I))
1907
+ "onUpdate:modelValue": R[4] || (R[4] = (Y) => ge(n) ? n.value = Y : null),
1908
+ onChange: R[5] || (R[5] = (...Y) => h(u) && h(u)(...Y))
1782
1909
  }, null, 544), [
1783
- [ge, h(o)]
1910
+ [Ge, h(n)]
1784
1911
  ]),
1785
- w[17] || (w[17] = c("span", { class: "radio-text" }, "X轴切割", -1))
1912
+ R[17] || (R[17] = c("span", { class: "radio-text" }, "X轴切割", -1))
1786
1913
  ]),
1787
- c("label", qn, [
1788
- ne(c("input", {
1914
+ c("label", si, [
1915
+ Yt(c("input", {
1789
1916
  type: "radio",
1790
1917
  name: "clipping-axis",
1791
1918
  value: "y",
1792
- "onUpdate:modelValue": w[6] || (w[6] = (I) => fe(o) ? o.value = I : null),
1793
- onChange: w[7] || (w[7] = (...I) => h(m) && h(m)(...I))
1919
+ "onUpdate:modelValue": R[6] || (R[6] = (Y) => ge(n) ? n.value = Y : null),
1920
+ onChange: R[7] || (R[7] = (...Y) => h(u) && h(u)(...Y))
1794
1921
  }, null, 544), [
1795
- [ge, h(o)]
1922
+ [Ge, h(n)]
1796
1923
  ]),
1797
- w[18] || (w[18] = c("span", { class: "radio-text" }, "Y轴切割", -1))
1924
+ R[18] || (R[18] = c("span", { class: "radio-text" }, "Y轴切割", -1))
1798
1925
  ]),
1799
- c("label", Qn, [
1800
- ne(c("input", {
1926
+ c("label", li, [
1927
+ Yt(c("input", {
1801
1928
  type: "radio",
1802
1929
  name: "clipping-axis",
1803
1930
  value: "z",
1804
- "onUpdate:modelValue": w[8] || (w[8] = (I) => fe(o) ? o.value = I : null),
1805
- onChange: w[9] || (w[9] = (...I) => h(m) && h(m)(...I))
1931
+ "onUpdate:modelValue": R[8] || (R[8] = (Y) => ge(n) ? n.value = Y : null),
1932
+ onChange: R[9] || (R[9] = (...Y) => h(u) && h(u)(...Y))
1806
1933
  }, null, 544), [
1807
- [ge, h(o)]
1934
+ [Ge, h(n)]
1808
1935
  ]),
1809
- w[19] || (w[19] = c("span", { class: "radio-text" }, "Z轴切割", -1))
1936
+ R[19] || (R[19] = c("span", { class: "radio-text" }, "Z轴切割", -1))
1810
1937
  ])
1811
1938
  ])
1812
1939
  ])
1813
- ])) : pt("", !0),
1814
- r.value ? (g(), j("div", ti, [
1815
- w[20] || (w[20] = c("div", { class: "loading-spinner" }, null, -1)),
1816
- c("p", null, ft(s.value), 1)
1817
- ])) : pt("", !0)
1940
+ ])) : st("", !0),
1941
+ s.value ? (f(), j("div", ri, [
1942
+ R[20] || (R[20] = c("div", { class: "loading-spinner" }, null, -1)),
1943
+ c("p", null, ft(r.value), 1)
1944
+ ])) : st("", !0)
1818
1945
  ]));
1819
1946
  }
1820
- }, oi = /* @__PURE__ */ Vt(ei, [["__scopeId", "data-v-722774e1"]]);
1821
- function ni(a, t, e, n, r, s) {
1822
- const G = it("svg-icon"), l = it("ssMenu");
1823
- return g(), rt(l, {
1947
+ }, di = /* @__PURE__ */ zt(ci, [["__scopeId", "data-v-3d52b35a"]]);
1948
+ function ui(a, t, e, i, s, r) {
1949
+ const P = X("svg-icon"), o = X("ssMenu");
1950
+ return f(), it(o, {
1824
1951
  mode: a.mode,
1825
1952
  menuList: a.renderMenuList,
1826
1953
  onClickMenu: a.clickMenu,
1827
1954
  onOpenMenu: a.openMenu,
1828
1955
  onCloseMenu: a.closeMenu
1829
1956
  }, {
1830
- title: b(({ menu: B }) => [
1831
- P(G, {
1832
- name: B.icon ?? "Fold",
1957
+ title: v(({ menu: g }) => [
1958
+ _(P, {
1959
+ name: g.icon ?? "Fold",
1833
1960
  style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
1834
1961
  }, null, 8, ["name"]),
1835
- c("span", null, ft(B.title ?? ""), 1)
1962
+ c("span", null, ft(g.title ?? ""), 1)
1836
1963
  ]),
1837
1964
  _: 1
1838
1965
  }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
1839
1966
  }
1840
- const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed2"]]), ii = { class: "bread-content" }, ai = ["onClick"], si = {
1967
+ const go = /* @__PURE__ */ zt(bo, [["render", ui], ["__scopeId", "data-v-5c2d7ed2"]]), hi = { class: "bread-content" }, pi = ["onClick"], _i = {
1841
1968
  key: 0,
1842
1969
  class: "split-title"
1843
- }, li = {
1970
+ }, mi = {
1844
1971
  __name: "index",
1845
1972
  props: {
1846
1973
  breadArray: {
@@ -1850,40 +1977,40 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
1850
1977
  },
1851
1978
  emits: ["click"],
1852
1979
  setup(a, { emit: t }) {
1853
- const e = a, n = R([]), r = t;
1854
- je(() => {
1855
- n.value = e == null ? void 0 : e.breadArray;
1980
+ const e = a, i = k([]), s = t;
1981
+ Ue(() => {
1982
+ i.value = e == null ? void 0 : e.breadArray;
1856
1983
  }), Ct(
1857
1984
  () => e == null ? void 0 : e.breadArray,
1858
1985
  () => {
1859
- n.value = e == null ? void 0 : e.breadArray;
1986
+ i.value = e == null ? void 0 : e.breadArray;
1860
1987
  },
1861
1988
  { deep: !0, immediate: !0 }
1862
1989
  );
1863
- const s = (G) => {
1864
- r("click", G);
1990
+ const r = (P) => {
1991
+ s("click", P);
1865
1992
  };
1866
- return (G, l) => (g(), j("div", ii, [
1867
- (g(!0), j(ue, null, ve(n.value, (B, v) => {
1868
- var x;
1869
- return g(), j("div", {
1870
- key: v,
1993
+ return (P, o) => (f(), j("div", hi, [
1994
+ (f(!0), j(pe, null, Be(i.value, (g, w) => {
1995
+ var p;
1996
+ return f(), j("div", {
1997
+ key: w,
1871
1998
  class: "bread-item"
1872
1999
  }, [
1873
2000
  c("div", {
1874
2001
  class: "bread-title",
1875
- onClick: (H) => s(B),
1876
- style: Go({ opacity: ((x = n.value) == null ? void 0 : x.length) - 1 === v ? "0.7" : "1" })
1877
- }, ft(B.value), 13, ai),
1878
- v !== n.value.length - 1 && Array.isArray(n.value) ? (g(), j("div", si, ft("/"))) : pt("", !0)
2002
+ onClick: (O) => r(g),
2003
+ style: vo({ opacity: ((p = i.value) == null ? void 0 : p.length) - 1 === w ? "0.7" : "1" })
2004
+ }, ft(g.value), 13, pi),
2005
+ w !== i.value.length - 1 && Array.isArray(i.value) ? (f(), j("div", _i, ft("/"))) : st("", !0)
1879
2006
  ]);
1880
2007
  }), 128))
1881
2008
  ]));
1882
2009
  }
1883
- }, Jo = /* @__PURE__ */ Vt(li, [["__scopeId", "data-v-ded7e2bd"]]), ri = { class: "structure-buttons" }, ci = { class: "structure-paths" }, di = { class: "client-header-user" }, ui = { class: "model-select" }, hi = { class: "model-show" }, pi = { class: "model-fill" }, _i = { class: "client-header-menu" }, mi = { class: "client-header-user" }, Pi = { class: "client-main-operate" }, Ji = {
2010
+ }, Go = /* @__PURE__ */ zt(mi, [["__scopeId", "data-v-ded7e2bd"]]), Pi = { class: "structure-buttons" }, Ji = { class: "structure-paths" }, fi = { class: "client-header-user" }, gi = { class: "model-select" }, Gi = { class: "model-show" }, yi = { class: "model-fill" }, wi = { class: "client-header-menu" }, vi = { class: "client-header-user" }, bi = { class: "client-main-operate" }, Bi = {
1884
2011
  key: 0,
1885
2012
  class: "item-view-group"
1886
- }, fi = { class: "client-main-operate" }, gi = /* @__PURE__ */ to({
2013
+ }, Ci = { class: "client-main-operate" }, Ri = /* @__PURE__ */ be({
1887
2014
  __name: "index2",
1888
2015
  props: {
1889
2016
  windowConfig: {
@@ -1897,63 +2024,63 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
1897
2024
  }
1898
2025
  },
1899
2026
  setup(a) {
1900
- const t = $e(Dt), { selectTitle: e } = St(t), n = ho(), { loginUserInfo: r } = St(n), s = Be(Dt), { isEdit: G } = St(s), l = be(Dt), { importLoading: B } = St(l), v = R("");
1901
- return (x, H) => {
1902
- const K = it("el-button"), Q = it("el-avatar"), V = it("el-header"), A = it("el-container"), p = it("el-icon"), C = it("el-input"), S = it("el-aside"), M = it("el-main"), f = it("router-view"), i = eo("loading");
1903
- return h(G) === "edit" ? (g(), rt(A, {
2027
+ const t = Ie(At), { selectTitle: e } = St(t), i = mo(), { loginUserInfo: s } = St(i), r = Re(At), { isEdit: P } = St(r), o = Ce(At), { importLoading: g } = St(o), w = k("");
2028
+ return (p, O) => {
2029
+ const Z = X("el-button"), et = X("el-avatar"), I = X("el-header"), L = X("el-container"), m = X("el-icon"), M = X("el-input"), S = X("el-aside"), T = X("el-main"), b = X("router-view"), C = no("loading");
2030
+ return h(P) === "edit" ? (f(), it(L, {
1904
2031
  key: 0,
1905
2032
  class: "client-container"
1906
2033
  }, {
1907
- default: b(() => [
1908
- P(V, { class: "client-structure-header" }, {
1909
- default: b(() => {
1910
- var u;
2034
+ default: v(() => [
2035
+ _(I, { class: "client-structure-header" }, {
2036
+ default: v(() => {
2037
+ var l;
1911
2038
  return [
1912
- c("div", ri, [
1913
- P(K, {
2039
+ c("div", Pi, [
2040
+ _(Z, {
1914
2041
  id: "transparentBgButton",
1915
- onClick: h(io)
2042
+ onClick: h(ao)
1916
2043
  }, {
1917
- default: b(() => H[2] || (H[2] = [
2044
+ default: v(() => O[2] || (O[2] = [
1918
2045
  xt(" 返回页面 ")
1919
2046
  ])),
1920
2047
  _: 1,
1921
2048
  __: [2]
1922
2049
  }, 8, ["onClick"]),
1923
- P(K, {
2050
+ _(Z, {
1924
2051
  id: "transparentBgButton",
1925
- onClick: H[0] || (H[0] = (o) => {
1926
- var _, m;
1927
- return h(ao)((m = (_ = h(e)) == null ? void 0 : _.map((L) => L.value)) == null ? void 0 : m.join("/"));
2052
+ onClick: O[0] || (O[0] = (n) => {
2053
+ var J, u;
2054
+ return h(so)((u = (J = h(e)) == null ? void 0 : J.map((G) => G.value)) == null ? void 0 : u.join("/"));
1928
2055
  })
1929
2056
  }, {
1930
- icon: b(() => [
1931
- P(Nt, { name: "Store" })
2057
+ icon: v(() => [
2058
+ _(Ut, { name: "Store" })
1932
2059
  ]),
1933
- default: b(() => [
1934
- H[3] || (H[3] = xt(" 保存页面 "))
2060
+ default: v(() => [
2061
+ O[3] || (O[3] = xt(" 保存页面 "))
1935
2062
  ]),
1936
2063
  _: 1,
1937
2064
  __: [3]
1938
2065
  })
1939
2066
  ]),
1940
- c("div", ci, [
1941
- (g(), rt(Jo, {
2067
+ c("div", Ji, [
2068
+ (f(), it(Go, {
1942
2069
  key: h(e),
1943
2070
  breadArray: h(e),
1944
- onClick: h(so)
2071
+ onClick: h(lo)
1945
2072
  }, null, 8, ["breadArray", "onClick"]))
1946
2073
  ]),
1947
- c("div", di, [
1948
- he(x.$slots, "default", {}, void 0, !0),
1949
- P(Q, {
2074
+ c("div", fi, [
2075
+ re(p.$slots, "default", {}, void 0, !0),
2076
+ _(et, {
1950
2077
  size: 35,
1951
- src: (u = h(r)) == null ? void 0 : u.avatarUrl
2078
+ src: (l = h(s)) == null ? void 0 : l.avatarUrl
1952
2079
  }, {
1953
- default: b(() => {
1954
- var o;
2080
+ default: v(() => {
2081
+ var n;
1955
2082
  return [
1956
- xt(ft(((o = h(r)) == null ? void 0 : o.account) ?? "未知"), 1)
2083
+ xt(ft(((n = h(s)) == null ? void 0 : n.account) ?? "未知"), 1)
1957
2084
  ];
1958
2085
  }),
1959
2086
  _: 1
@@ -1963,95 +2090,95 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
1963
2090
  }),
1964
2091
  _: 3
1965
2092
  }),
1966
- h(G) === "edit" ? (g(), rt(A, {
2093
+ h(P) === "edit" ? (f(), it(L, {
1967
2094
  key: 0,
1968
2095
  class: "model-operate",
1969
2096
  style: { "margin-top": "10px", height: "0px" }
1970
2097
  }, {
1971
- default: b(() => [
1972
- c("div", ui, [
1973
- P(Oe)
2098
+ default: v(() => [
2099
+ c("div", gi, [
2100
+ _(ze)
1974
2101
  ]),
1975
- c("div", hi, [
1976
- P(Ue)
2102
+ c("div", Gi, [
2103
+ _($e)
1977
2104
  ]),
1978
- c("div", pi, [
1979
- P(ze)
2105
+ c("div", yi, [
2106
+ _(He)
1980
2107
  ])
1981
2108
  ]),
1982
2109
  _: 1
1983
- })) : pt("", !0)
2110
+ })) : st("", !0)
1984
2111
  ]),
1985
2112
  _: 3
1986
- })) : ne((g(), rt(A, {
2113
+ })) : Yt((f(), it(L, {
1987
2114
  key: 1,
1988
2115
  class: "client-container",
1989
2116
  "element-loading-text": "正在加载页面数据..."
1990
2117
  }, {
1991
- default: b(() => [
1992
- P(V, { class: "client-header" }, {
1993
- default: b(() => {
1994
- var u;
2118
+ default: v(() => [
2119
+ _(I, { class: "client-header" }, {
2120
+ default: v(() => {
2121
+ var l;
1995
2122
  return [
1996
- H[6] || (H[6] = c("div", { class: "client-header-logo" }, " ISIP ", -1)),
1997
- c("div", _i, [
1998
- P(Po, { mode: "horizontal" })
2123
+ O[6] || (O[6] = c("div", { class: "client-header-logo" }, " ISIP ", -1)),
2124
+ c("div", wi, [
2125
+ _(go, { mode: "horizontal" })
1999
2126
  ]),
2000
- c("div", mi, [
2001
- P(C, {
2002
- modelValue: v.value,
2003
- "onUpdate:modelValue": H[1] || (H[1] = (o) => v.value = o),
2127
+ c("div", vi, [
2128
+ _(M, {
2129
+ modelValue: w.value,
2130
+ "onUpdate:modelValue": O[1] || (O[1] = (n) => w.value = n),
2004
2131
  clearable: "",
2005
2132
  placeholder: "搜索",
2006
2133
  style: { width: "130px" }
2007
2134
  }, {
2008
- prefix: b(() => [
2009
- P(p, { class: "el-input__icon" }, {
2010
- default: b(() => [
2011
- P(h(_o))
2135
+ prefix: v(() => [
2136
+ _(m, { class: "el-input__icon" }, {
2137
+ default: v(() => [
2138
+ _(h(Jo))
2012
2139
  ]),
2013
2140
  _: 1
2014
2141
  })
2015
2142
  ]),
2016
2143
  _: 1
2017
2144
  }, 8, ["modelValue"]),
2018
- a.showButton ? (g(), rt(K, {
2145
+ a.showButton ? (f(), it(Z, {
2019
2146
  key: 0,
2020
2147
  id: "transparentBgButton",
2021
- onClick: h(wo)
2148
+ onClick: h(ro)
2022
2149
  }, {
2023
- icon: b(() => [
2024
- P(Nt, { name: "App" })
2150
+ icon: v(() => [
2151
+ _(Ut, { name: "App" })
2025
2152
  ]),
2026
- default: b(() => [
2027
- H[4] || (H[4] = xt(" 生成APP "))
2153
+ default: v(() => [
2154
+ O[4] || (O[4] = xt(" 生成APP "))
2028
2155
  ]),
2029
2156
  _: 1,
2030
2157
  __: [4]
2031
- }, 8, ["onClick"])) : pt("", !0),
2032
- a.showButton && h(G) === "view" ? (g(), rt(K, {
2158
+ }, 8, ["onClick"])) : st("", !0),
2159
+ a.showButton && h(P) === "view" ? (f(), it(Z, {
2033
2160
  key: 1,
2034
2161
  id: "transparentBgButton",
2035
- onClick: h(vo)
2162
+ onClick: h(co)
2036
2163
  }, {
2037
- icon: b(() => [
2038
- P(Nt, { name: "write" })
2164
+ icon: v(() => [
2165
+ _(Ut, { name: "write" })
2039
2166
  ]),
2040
- default: b(() => [
2041
- H[5] || (H[5] = xt(" 修改布局 "))
2167
+ default: v(() => [
2168
+ O[5] || (O[5] = xt(" 修改布局 "))
2042
2169
  ]),
2043
2170
  _: 1,
2044
2171
  __: [5]
2045
- }, 8, ["onClick"])) : pt("", !0),
2046
- he(x.$slots, "default", {}, void 0, !0),
2047
- P(Q, {
2172
+ }, 8, ["onClick"])) : st("", !0),
2173
+ re(p.$slots, "default", {}, void 0, !0),
2174
+ _(et, {
2048
2175
  size: 35,
2049
- src: (u = h(r)) == null ? void 0 : u.avatarUrl
2176
+ src: (l = h(s)) == null ? void 0 : l.avatarUrl
2050
2177
  }, {
2051
- default: b(() => {
2052
- var o;
2178
+ default: v(() => {
2179
+ var n;
2053
2180
  return [
2054
- xt(ft(((o = h(r)) == null ? void 0 : o.account) ?? "未知"), 1)
2181
+ xt(ft(((n = h(s)) == null ? void 0 : n.account) ?? "未知"), 1)
2055
2182
  ];
2056
2183
  }),
2057
2184
  _: 1
@@ -2062,38 +2189,38 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2062
2189
  _: 3,
2063
2190
  __: [6]
2064
2191
  }),
2065
- P(A, { class: "client-body" }, {
2066
- default: b(() => [
2067
- x.$route.path === "/" ? (g(), rt(M, {
2192
+ _(L, { class: "client-body" }, {
2193
+ default: v(() => [
2194
+ p.$route.path === "/" ? (f(), it(T, {
2068
2195
  key: 0,
2069
2196
  class: "client-main"
2070
2197
  }, {
2071
- default: b(() => {
2072
- var u;
2198
+ default: v(() => {
2199
+ var l;
2073
2200
  return [
2074
- P(S, { class: "client-aside" }, {
2075
- default: b(() => [
2076
- P(we, { mode: "vertical" })
2201
+ _(S, { class: "client-aside" }, {
2202
+ default: v(() => [
2203
+ _(ve, { mode: "vertical" })
2077
2204
  ]),
2078
2205
  _: 1
2079
2206
  }),
2080
- c("div", Pi, [
2081
- (g(!0), j(ue, null, ve((u = h(ae)(h(Bt))) == null ? void 0 : u.filter((o) => o.comp !== "FormTop"), (o, _) => {
2082
- var m;
2083
- return g(), j("div", {
2207
+ c("div", bi, [
2208
+ (f(!0), j(pe, null, Be((l = h(se)(h(Bt))) == null ? void 0 : l.filter((n) => n.comp !== "FormTop"), (n, J) => {
2209
+ var u;
2210
+ return f(), j("div", {
2084
2211
  class: "item-view-content",
2085
- key: _
2212
+ key: J
2086
2213
  }, [
2087
- ((m = o == null ? void 0 : o.comp) == null ? void 0 : m.toUpperCase()) !== "TABLE" && o.name ? (g(), j("div", Ji, ft(o.name), 1)) : pt("", !0),
2088
- (g(), rt(oo(h(lo)(o.comp)), {
2089
- compName: o.name,
2090
- itemData: o == null ? void 0 : o.compData,
2091
- childItemData: o == null ? void 0 : o.itemChildData,
2092
- key: (o == null ? void 0 : o.id) ?? _,
2093
- onChange: h(uo),
2094
- index: (o == null ? void 0 : o.id) ?? _,
2095
- onContentChange: h(co),
2096
- onPageChange: h(ro)
2214
+ ((u = n == null ? void 0 : n.comp) == null ? void 0 : u.toUpperCase()) !== "TABLE" && n.name ? (f(), j("div", Bi, ft(n.name), 1)) : st("", !0),
2215
+ (f(), it(io(h(uo)(n.comp)), {
2216
+ compName: n.name,
2217
+ itemData: n == null ? void 0 : n.compData,
2218
+ childItemData: n == null ? void 0 : n.itemChildData,
2219
+ key: (n == null ? void 0 : n.id) ?? J,
2220
+ onChange: h(_o),
2221
+ index: (n == null ? void 0 : n.id) ?? J,
2222
+ onContentChange: h(po),
2223
+ onPageChange: h(ho)
2097
2224
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
2098
2225
  ]);
2099
2226
  }), 128))
@@ -2101,19 +2228,19 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2101
2228
  ];
2102
2229
  }),
2103
2230
  _: 1
2104
- })) : (g(), rt(M, {
2231
+ })) : (f(), it(T, {
2105
2232
  key: 1,
2106
2233
  class: "client-main"
2107
2234
  }, {
2108
- default: b(() => [
2109
- P(S, { class: "client-aside" }, {
2110
- default: b(() => [
2111
- P(we, { mode: "vertical" })
2235
+ default: v(() => [
2236
+ _(S, { class: "client-aside" }, {
2237
+ default: v(() => [
2238
+ _(ve, { mode: "vertical" })
2112
2239
  ]),
2113
2240
  _: 1
2114
2241
  }),
2115
- c("div", fi, [
2116
- P(f)
2242
+ c("div", Ci, [
2243
+ _(b)
2117
2244
  ])
2118
2245
  ]),
2119
2246
  _: 1
@@ -2124,11 +2251,11 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2124
2251
  ]),
2125
2252
  _: 3
2126
2253
  })), [
2127
- [i, h(B)]
2254
+ [C, h(g)]
2128
2255
  ]);
2129
2256
  };
2130
2257
  }
2131
- }), Gi = /* @__PURE__ */ Vt(gi, [["__scopeId", "data-v-834dcdf2"]]), z = [
2258
+ }), ki = /* @__PURE__ */ zt(Ri, [["__scopeId", "data-v-834dcdf2"]]), $ = [
2132
2259
  {
2133
2260
  key: "FitCurve_Eleven",
2134
2261
  value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
@@ -2176,7 +2303,7 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2176
2303
  value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
2177
2304
  resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
2178
2305
  }
2179
- ], oe = [
2306
+ ], ie = [
2180
2307
  {
2181
2308
  key: "型线生成",
2182
2309
  value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
@@ -2209,22 +2336,22 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2209
2336
  // key: "参数筛选推理",
2210
2337
  // value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
2211
2338
  // }
2212
- ], yi = ["src"], wi = { class: "structure-buttons" }, vi = { class: "structure-paths" }, bi = { class: "client-header-user" }, Bi = { class: "model-select" }, Ri = { class: "model-show" }, Ci = { class: "model-fill" }, Mi = { class: "client-header-logo" }, ki = { class: "client-header-menu" }, Ti = { class: "client-header-user" }, Ei = { class: "client-main-content" }, xi = {
2339
+ ], Mi = ["src"], Ti = { class: "structure-buttons" }, xi = { class: "structure-paths" }, Ei = { class: "client-header-user" }, Di = { class: "model-select" }, Si = { class: "model-show" }, Ai = { class: "model-fill" }, Fi = { class: "client-header-logo" }, Li = { class: "client-header-menu" }, ji = { class: "client-header-user" }, Oi = { class: "client-main-content" }, Ui = {
2213
2340
  key: 0,
2214
2341
  class: "item-view-group"
2215
- }, Si = {
2342
+ }, zi = {
2216
2343
  key: 0,
2217
2344
  class: "calculator"
2218
- }, Di = {
2345
+ }, $i = {
2219
2346
  key: 1,
2220
2347
  class: "calculator"
2221
- }, Ai = {
2348
+ }, Hi = {
2222
2349
  key: 2,
2223
2350
  class: "calculator"
2224
- }, Fi = {
2351
+ }, Ni = {
2225
2352
  key: 3,
2226
2353
  class: "calculator"
2227
- }, Li = { class: "router-aside" }, ji = { class: "router-main" }, Oi = /* @__PURE__ */ to({
2354
+ }, Ii = { class: "router-aside" }, Vi = { class: "router-main" }, Yi = /* @__PURE__ */ be({
2228
2355
  __name: "index",
2229
2356
  props: {
2230
2357
  windowConfig: {
@@ -2238,23 +2365,23 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2238
2365
  }
2239
2366
  },
2240
2367
  setup(a) {
2241
- const t = $e(Dt), e = R(0), n = R(!1), { selectTitle: r } = St(t), s = R(!1), G = R(!1), l = R(!1), B = No(Dt), v = R(!1), { tableShowThree: x } = St(B), H = ho(), { loginUserInfo: K } = St(H), Q = R(null), V = Be(Dt), { isEdit: A } = St(V), p = be(Dt), C = Io(Dt), { objUrl: S, blobUrls: M } = St(C), f = R(null), i = R(!1), u = R(!0), o = R(!1), { importLoading: _, activeMenuPath: m, platName: L } = St(p), ct = R(!1), tt = R(!1), jt = R(!1);
2242
- Ct(() => m.value, async (y) => {
2243
- y && (jt.value = !0), y === "弯管仿真加工管理/仿真动画生成" ? ct.value = !0 : ct.value = !1, y === "弯管仿真加工管理/程序输出" ? tt.value = !0 : tt.value = !1, oe != null && oe.find((d) => {
2368
+ const t = Ie(At), e = k(0), i = k(!1), { selectTitle: s } = St(t), r = k(!1), P = k(!1), o = k(!1), g = Io(At), w = k(!1), { tableShowThree: p } = St(g), O = mo(), { loginUserInfo: Z } = St(O), et = k(null), I = Re(At), { isEdit: L } = St(I), m = Ce(At), M = Yo(At), { objUrl: S, blobUrls: T } = St(M), b = k(null), C = k(!1), l = k(!0), n = k(!1), { importLoading: J, activeMenuPath: u, platName: G } = St(m), lt = k(!1), V = k(!1), Dt = k(!1);
2369
+ Ct(() => u.value, async (B) => {
2370
+ B && (Dt.value = !0), B === "弯管仿真加工管理/仿真动画生成" ? lt.value = !0 : lt.value = !1, B === "弯管仿真加工管理/程序输出" ? V.value = !0 : V.value = !1, ie != null && ie.find((d) => {
2244
2371
  var F;
2245
- return (d == null ? void 0 : d.key) === ((F = y == null ? void 0 : y.split("/")) == null ? void 0 : F[(y == null ? void 0 : y.split("/").length) - 1]);
2246
- }) ? v.value = !0 : v.value = !1;
2372
+ return (d == null ? void 0 : d.key) === ((F = B == null ? void 0 : B.split("/")) == null ? void 0 : F[(B == null ? void 0 : B.split("/").length) - 1]);
2373
+ }) ? w.value = !0 : w.value = !1;
2247
2374
  }, { immediate: !0 });
2248
- const It = () => {
2249
- f.value.startRunningAnimation();
2250
- }, Re = async () => {
2251
- var J, Z, W;
2252
- let y = "";
2253
- (J = Bt.value) == null || J.forEach((T, nt) => {
2254
- var dt, at, vt;
2255
- nt === Bt.value.length - 1 && (y = (vt = (at = (dt = T.compData) == null ? void 0 : dt[0]) == null ? void 0 : at.contents) == null ? void 0 : vt[0].value);
2375
+ const Ft = () => {
2376
+ b.value.startRunningAnimation();
2377
+ }, Kt = async () => {
2378
+ var y, W, Q;
2379
+ let B = "";
2380
+ (y = Bt.value) == null || y.forEach((E, at) => {
2381
+ var ut, rt, vt;
2382
+ at === Bt.value.length - 1 && (B = (vt = (rt = (ut = E.compData) == null ? void 0 : ut[0]) == null ? void 0 : rt.contents) == null ? void 0 : vt[0].value);
2256
2383
  });
2257
- const d = await mt.get(y, {
2384
+ const d = await mt.get(B, {
2258
2385
  responseType: "blob",
2259
2386
  headers: {
2260
2387
  "Content-Type": "application/json"
@@ -2262,21 +2389,21 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2262
2389
  }), F = new Blob([d.data], {
2263
2390
  type: "application/octet-stream;charset=UTF-8"
2264
2391
  });
2265
- let $ = "";
2266
- (W = (Z = d.config.url) == null ? void 0 : Z.split("/")) == null || W.forEach((T, nt) => {
2267
- var dt, at;
2268
- ((at = (dt = d.config.url) == null ? void 0 : dt.split("/")) == null ? void 0 : at.length) - 1 === nt && ($ = T);
2392
+ let H = "";
2393
+ (Q = (W = d.config.url) == null ? void 0 : W.split("/")) == null || Q.forEach((E, at) => {
2394
+ var ut, rt;
2395
+ ((rt = (ut = d.config.url) == null ? void 0 : ut.split("/")) == null ? void 0 : rt.length) - 1 === at && (H = E);
2269
2396
  });
2270
- var k = document.createElement("a"), D = window.URL.createObjectURL(F);
2271
- k.style.display = "none", k.href = D, k.download = decodeURI($), document.body.appendChild(k), k.click(), document.body.removeChild(k), window.URL.revokeObjectURL(D);
2272
- }, pe = async () => {
2273
- var $;
2274
- let y = "";
2275
- ($ = Bt.value) == null || $.forEach((k, D) => {
2276
- var J, Z, W;
2277
- D === Bt.value.length - 1 && (y = (W = (Z = (J = k.compData) == null ? void 0 : J[0]) == null ? void 0 : Z.contents) == null ? void 0 : W[0].value);
2397
+ var x = document.createElement("a"), A = window.URL.createObjectURL(F);
2398
+ x.style.display = "none", x.href = A, x.download = decodeURI(H), document.body.appendChild(x), x.click(), document.body.removeChild(x), window.URL.revokeObjectURL(A);
2399
+ }, _e = async () => {
2400
+ var H;
2401
+ let B = "";
2402
+ (H = Bt.value) == null || H.forEach((x, A) => {
2403
+ var y, W, Q;
2404
+ A === Bt.value.length - 1 && (B = (Q = (W = (y = x.compData) == null ? void 0 : y[0]) == null ? void 0 : W.contents) == null ? void 0 : Q[0].value);
2278
2405
  });
2279
- const d = await mt.get(y, {
2406
+ const d = await mt.get(B, {
2280
2407
  responseType: "blob",
2281
2408
  headers: {
2282
2409
  "Content-Type": "application/json"
@@ -2284,416 +2411,416 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2284
2411
  }), F = new Blob([d.data], {
2285
2412
  type: "text/plain"
2286
2413
  });
2287
- Q.value && URL.revokeObjectURL(Q.value), Q.value = URL.createObjectURL(F), i.value = !0;
2288
- }, _e = async () => {
2289
- var D, J, Z, W, T;
2290
- o.value = !0;
2291
- const y = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
2292
- let d = ((Z = (J = (D = oe == null ? void 0 : oe.find((nt) => {
2293
- var dt, at, vt;
2294
- return (nt == null ? void 0 : nt.key) === ((vt = (dt = m.value) == null ? void 0 : dt.split("/")) == null ? void 0 : vt[((at = m.value) == null ? void 0 : at.split("/").length) - 1]);
2295
- })) == null ? void 0 : D.value) == null ? void 0 : J.split(",")) == null ? void 0 : Z[0]) ?? "";
2414
+ et.value && URL.revokeObjectURL(et.value), et.value = URL.createObjectURL(F), C.value = !0;
2415
+ }, me = async () => {
2416
+ var A, y, W, Q, E;
2417
+ n.value = !0;
2418
+ const B = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
2419
+ let d = ((W = (y = (A = ie == null ? void 0 : ie.find((at) => {
2420
+ var ut, rt, vt;
2421
+ return (at == null ? void 0 : at.key) === ((vt = (ut = u.value) == null ? void 0 : ut.split("/")) == null ? void 0 : vt[((rt = u.value) == null ? void 0 : rt.split("/").length) - 1]);
2422
+ })) == null ? void 0 : A.value) == null ? void 0 : y.split(",")) == null ? void 0 : W[0]) ?? "";
2296
2423
  const F = await mt.post(d, null, {
2297
2424
  responseType: "blob",
2298
2425
  // 必须设置
2299
2426
  headers: {
2300
- Authorization: y,
2427
+ Authorization: B,
2301
2428
  "Content-Type": "application/json"
2302
2429
  }
2303
- }), $ = new Blob([F.data], {
2430
+ }), H = new Blob([F.data], {
2304
2431
  type: "application/octet-stream;charset=UTF-8"
2305
2432
  });
2306
- let k = {
2307
- suffix: "." + ((T = d == null ? void 0 : d.split(".")) == null ? void 0 : T[((W = d == null ? void 0 : d.split(".")) == null ? void 0 : W.length) - 1]),
2308
- blob: $,
2433
+ let x = {
2434
+ suffix: "." + ((E = d == null ? void 0 : d.split(".")) == null ? void 0 : E[((Q = d == null ? void 0 : d.split(".")) == null ? void 0 : Q.length) - 1]),
2435
+ blob: H,
2309
2436
  mtlBlobs: []
2310
2437
  };
2311
- o.value = !1, f.value.loadModelByDefaultPath([k]);
2312
- }, Ce = async (y) => {
2313
- var $, k, D, J, Z, W, T;
2314
- const d = ($ = y == null ? void 0 : y.split("/")) == null ? void 0 : $[0], F = await Ro({
2438
+ n.value = !1, b.value.loadModelByDefaultPath([x]);
2439
+ }, ke = async (B) => {
2440
+ var H, x, A, y, W, Q, E;
2441
+ const d = (H = B == null ? void 0 : B.split("/")) == null ? void 0 : H[0], F = await Ro({
2315
2442
  key: {
2316
2443
  type: "mainEquip",
2317
2444
  systemKey: sessionStorage.getItem("systemKey"),
2318
2445
  pageKey: d
2319
2446
  }
2320
2447
  });
2321
- return ((k = F == null ? void 0 : F.data) == null ? void 0 : k.type) === "success" ? ((T = (W = (Z = (J = (D = F == null ? void 0 : F.data) == null ? void 0 : D.result) == null ? void 0 : J[0]) == null ? void 0 : Z.value) == null ? void 0 : W.tableData) == null ? void 0 : T.隐藏三维显示) !== !0 : !0;
2448
+ return ((x = F == null ? void 0 : F.data) == null ? void 0 : x.type) === "success" ? ((E = (Q = (W = (y = (A = F == null ? void 0 : F.data) == null ? void 0 : A.result) == null ? void 0 : y[0]) == null ? void 0 : W.value) == null ? void 0 : Q.tableData) == null ? void 0 : E.隐藏三维显示) !== !0 : !0;
2322
2449
  };
2323
2450
  Ct(
2324
2451
  () => Bt.value,
2325
2452
  () => {
2326
- var y, d, F, $, k;
2327
- if (((y = Bt.value) == null ? void 0 : y.length) === 2 && ((d = Bt.value) != null && d.find((D) => (D == null ? void 0 : D.name) === "输入")) && ((F = Bt.value) != null && F.find((D) => (D == null ? void 0 : D.name) === "输出"))) {
2328
- const D = ($ = Bt.value) == null ? void 0 : $.find((J) => (J == null ? void 0 : J.name) === "输出");
2329
- G.value = ((k = D == null ? void 0 : D.comp) == null ? void 0 : k.toUpperCase()) === "FORM", s.value = !0;
2453
+ var B, d, F, H, x;
2454
+ if (((B = Bt.value) == null ? void 0 : B.length) === 2 && ((d = Bt.value) != null && d.find((A) => (A == null ? void 0 : A.name) === "输入")) && ((F = Bt.value) != null && F.find((A) => (A == null ? void 0 : A.name) === "输出"))) {
2455
+ const A = (H = Bt.value) == null ? void 0 : H.find((y) => (y == null ? void 0 : y.name) === "输出");
2456
+ P.value = ((x = A == null ? void 0 : A.comp) == null ? void 0 : x.toUpperCase()) === "FORM", r.value = !0;
2330
2457
  } else
2331
- s.value = !1, G.value = !1;
2458
+ r.value = !1, P.value = !1;
2332
2459
  },
2333
2460
  { deep: !0, immediate: !0 }
2334
2461
  ), Ct(
2335
- () => m.value,
2462
+ () => u.value,
2336
2463
  async () => {
2337
- m.value && (u.value = await Ce(m.value));
2464
+ u.value && (l.value = await ke(u.value));
2338
2465
  },
2339
2466
  { deep: !0, immediate: !0 }
2340
2467
  ), Ct(
2341
- () => [S.value, f.value],
2468
+ () => [S.value, b.value],
2342
2469
  () => {
2343
- var y;
2344
- ((y = S.value) == null ? void 0 : y.length) > 0 && f.value && f.value.addModelsFromUrls(S.value);
2470
+ var B;
2471
+ ((B = S.value) == null ? void 0 : B.length) > 0 && b.value && b.value.addModelsFromUrls(S.value);
2345
2472
  },
2346
2473
  { immediate: !0, deep: !0 }
2347
2474
  ), Ct(
2348
- () => M == null ? void 0 : M.value,
2475
+ () => T == null ? void 0 : T.value,
2349
2476
  async () => {
2350
- var y, d, F, $;
2351
- if (M != null && M.value && ((y = M == null ? void 0 : M.value) == null ? void 0 : y.length) > 0 && !v.value && !((d = Bt.value) != null && d.find((k) => (k == null ? void 0 : k.name) === "输入") && ((F = Bt.value) != null && F.find((k) => (k == null ? void 0 : k.name) === "输出")))) {
2352
- let k = [];
2353
- const D = await (($ = ae(M == null ? void 0 : M.value)) == null ? void 0 : $.map(async (J) => {
2354
- var dt, at, vt, ut, E, Mt, kt, Lt, zt, Ht;
2355
- let Z, W;
2356
- const T = (at = (dt = J == null ? void 0 : J.blob) == null ? void 0 : dt.split("undefined,")) == null ? void 0 : at[1];
2357
- let nt = T == null ? void 0 : T.split(",");
2358
- if ((nt == null ? void 0 : nt.length) > 1) {
2359
- let Et = await (nt == null ? void 0 : nt.map(async (st) => {
2360
- var et, le, At, Gt, N, Rt;
2361
- Z = await mt.get(st, {
2477
+ var B, d, F, H;
2478
+ if (T != null && T.value && ((B = T == null ? void 0 : T.value) == null ? void 0 : B.length) > 0 && !w.value && !((d = Bt.value) != null && d.find((x) => (x == null ? void 0 : x.name) === "输入") && ((F = Bt.value) != null && F.find((x) => (x == null ? void 0 : x.name) === "输出")))) {
2479
+ let x = [];
2480
+ const A = await ((H = se(T == null ? void 0 : T.value)) == null ? void 0 : H.map(async (y) => {
2481
+ var ut, rt, vt, ht, D, kt, Mt, Ot, Nt, It;
2482
+ let W, Q;
2483
+ const E = (rt = (ut = y == null ? void 0 : y.blob) == null ? void 0 : ut.split("undefined,")) == null ? void 0 : rt[1];
2484
+ let at = E == null ? void 0 : E.split(",");
2485
+ if ((at == null ? void 0 : at.length) > 1) {
2486
+ let Et = await (at == null ? void 0 : at.map(async (ct) => {
2487
+ var ot, ce, Lt, Gt, N, Rt;
2488
+ W = await mt.get(ct, {
2362
2489
  responseType: "blob",
2363
2490
  headers: {
2364
2491
  "Content-Type": "application/json"
2365
2492
  }
2366
2493
  });
2367
2494
  let _t = [];
2368
- if (((et = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : et.length) > 0) {
2369
- let Wt = await ((le = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : le.map(async (lt) => {
2370
- let $t = await mt.get(lt, {
2495
+ if (((ot = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ot.length) > 0) {
2496
+ let Qt = await ((ce = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ce.map(async (dt) => {
2497
+ let Vt = await mt.get(dt, {
2371
2498
  responseType: "blob",
2372
2499
  headers: {
2373
2500
  "Content-Type": "application/json"
2374
2501
  }
2375
2502
  });
2376
- return _t.push(new Blob([$t.data], {
2503
+ return _t.push(new Blob([Vt.data], {
2377
2504
  type: "application/octet-stream;charset=UTF-8"
2378
- })), $t;
2505
+ })), Vt;
2379
2506
  }));
2380
- await Promise.all(Wt);
2507
+ await Promise.all(Qt);
2381
2508
  }
2382
- return ((Gt = st == null ? void 0 : st.split(".")) == null ? void 0 : Gt[((At = st == null ? void 0 : st.split(".")) == null ? void 0 : At.length) - 1]) !== "undefined" && k.push({
2383
- suffix: "." + ((Rt = st == null ? void 0 : st.split(".")) == null ? void 0 : Rt[((N = st == null ? void 0 : st.split(".")) == null ? void 0 : N.length) - 1]),
2384
- blob: new Blob([Z.data], {
2509
+ return ((Gt = ct == null ? void 0 : ct.split(".")) == null ? void 0 : Gt[((Lt = ct == null ? void 0 : ct.split(".")) == null ? void 0 : Lt.length) - 1]) !== "undefined" && x.push({
2510
+ suffix: "." + ((Rt = ct == null ? void 0 : ct.split(".")) == null ? void 0 : Rt[((N = ct == null ? void 0 : ct.split(".")) == null ? void 0 : N.length) - 1]),
2511
+ blob: new Blob([W.data], {
2385
2512
  type: "application/octet-stream;charset=UTF-8"
2386
2513
  }),
2387
2514
  mtlBlobs: _t
2388
- }), Z;
2515
+ }), W;
2389
2516
  }));
2390
2517
  await Promise.all(Et);
2391
- } else if (!(T != null && T.includes("https://")) && !(T != null && T.includes("http://"))) {
2392
- Z = await Ze({
2393
- url: T
2518
+ } else if (!(E != null && E.includes("https://")) && !(E != null && E.includes("http://"))) {
2519
+ W = await We({
2520
+ url: E
2394
2521
  });
2395
2522
  let Et = [];
2396
- if (((vt = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : vt.length) > 0) {
2397
- let st = await ((ut = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : ut.map(async (_t) => {
2398
- let et = await Ze({
2523
+ if (((vt = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : vt.length) > 0) {
2524
+ let ct = await ((ht = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ht.map(async (_t) => {
2525
+ let ot = await We({
2399
2526
  url: _t
2400
2527
  });
2401
- return Et.push(new Blob([et.data], {
2528
+ return Et.push(new Blob([ot.data], {
2402
2529
  type: "application/octet-stream;charset=UTF-8"
2403
- })), et;
2530
+ })), ot;
2404
2531
  }));
2405
- await Promise.all(st);
2532
+ await Promise.all(ct);
2406
2533
  }
2407
- W = {
2408
- suffix: "." + ((Mt = T == null ? void 0 : T.split(".")) == null ? void 0 : Mt[((E = T == null ? void 0 : T.split(".")) == null ? void 0 : E.length) - 1]),
2409
- blob: new Blob([Z.data], {
2534
+ Q = {
2535
+ suffix: "." + ((kt = E == null ? void 0 : E.split(".")) == null ? void 0 : kt[((D = E == null ? void 0 : E.split(".")) == null ? void 0 : D.length) - 1]),
2536
+ blob: new Blob([W.data], {
2410
2537
  type: "application/octet-stream;charset=UTF-8"
2411
2538
  }),
2412
2539
  mtlBlobs: Et
2413
2540
  };
2414
2541
  } else {
2415
- Z = await mt.get(T, {
2542
+ W = await mt.get(E, {
2416
2543
  responseType: "blob",
2417
2544
  headers: {
2418
2545
  "Content-Type": "application/json"
2419
2546
  }
2420
2547
  });
2421
2548
  let Et = [];
2422
- if (((kt = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : kt.length) > 0) {
2423
- let st = await ((Lt = J == null ? void 0 : J.mtlBlobs) == null ? void 0 : Lt.map(async (_t) => {
2424
- let et = await mt.get(_t, {
2549
+ if (((Mt = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Mt.length) > 0) {
2550
+ let ct = await ((Ot = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Ot.map(async (_t) => {
2551
+ let ot = await mt.get(_t, {
2425
2552
  responseType: "blob",
2426
2553
  headers: {
2427
2554
  "Content-Type": "application/json"
2428
2555
  }
2429
2556
  });
2430
- return Et.push(new Blob([et.data], {
2557
+ return Et.push(new Blob([ot.data], {
2431
2558
  type: "application/octet-stream;charset=UTF-8"
2432
- })), et;
2559
+ })), ot;
2433
2560
  }));
2434
- await Promise.all(st);
2561
+ await Promise.all(ct);
2435
2562
  }
2436
- W = {
2437
- suffix: "." + ((Ht = T == null ? void 0 : T.split(".")) == null ? void 0 : Ht[((zt = T == null ? void 0 : T.split(".")) == null ? void 0 : zt.length) - 1]),
2438
- blob: new Blob([Z.data], {
2563
+ Q = {
2564
+ suffix: "." + ((It = E == null ? void 0 : E.split(".")) == null ? void 0 : It[((Nt = E == null ? void 0 : E.split(".")) == null ? void 0 : Nt.length) - 1]),
2565
+ blob: new Blob([W.data], {
2439
2566
  type: "application/octet-stream;charset=UTF-8"
2440
2567
  }),
2441
2568
  mtlBlobs: Et
2442
2569
  };
2443
2570
  }
2444
- W && k.push(W);
2571
+ Q && x.push(Q);
2445
2572
  }));
2446
- await Promise.all(D), f.value.loadModelByDefaultPath(k);
2573
+ await Promise.all(A), b.value.loadModelByDefaultPath(x);
2447
2574
  }
2448
2575
  },
2449
2576
  { immediate: !0, deep: !0 }
2450
2577
  ), Ct(
2451
- () => x.value,
2578
+ () => p.value,
2452
2579
  async () => {
2453
- var d, F, $, k;
2454
- if (x.value !== "" && x.value) {
2455
- let D = (d = m.value) == null ? void 0 : d.split("/"), J = D[(D == null ? void 0 : D.length) - 2];
2456
- const W = (((F = z == null ? void 0 : z.find((at) => (at == null ? void 0 : at.key) === J)) == null ? void 0 : F.download) ?? "") + "/" + x.value, T = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), nt = await mt.post(W, null, {
2580
+ var d, F, H, x;
2581
+ if (p.value !== "" && p.value) {
2582
+ let A = (d = u.value) == null ? void 0 : d.split("/"), y = A[(A == null ? void 0 : A.length) - 2];
2583
+ const Q = (((F = $ == null ? void 0 : $.find((rt) => (rt == null ? void 0 : rt.key) === y)) == null ? void 0 : F.download) ?? "") + "/" + p.value, E = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), at = await mt.post(Q, null, {
2457
2584
  responseType: "blob",
2458
2585
  // 必须设置
2459
2586
  headers: {
2460
- Authorization: T,
2587
+ Authorization: E,
2461
2588
  baseURL: "http://139.196.154.85:20025",
2462
2589
  "Content-Type": "application/json"
2463
2590
  }
2464
2591
  });
2465
- var y = new Blob([nt.data], {
2592
+ var B = new Blob([at.data], {
2466
2593
  type: "application/octet-stream;charset=UTF-8"
2467
2594
  });
2468
- const dt = [
2595
+ const ut = [
2469
2596
  {
2470
- suffix: "." + ((k = ($ = x.value) == null ? void 0 : $.split(".")) == null ? void 0 : k[1]),
2471
- blob: y,
2597
+ suffix: "." + ((x = (H = p.value) == null ? void 0 : H.split(".")) == null ? void 0 : x[1]),
2598
+ blob: B,
2472
2599
  mtlBlobs: []
2473
2600
  }
2474
2601
  ];
2475
- f.value.loadModelByDefaultPath(dt);
2602
+ b.value.loadModelByDefaultPath(ut);
2476
2603
  }
2477
2604
  },
2478
2605
  { deep: !0, immediate: !0 }
2479
2606
  );
2480
2607
  const Me = async () => {
2481
- var Z, W, T, nt, dt, at, vt, ut, E, Mt, kt, Lt, zt, Ht, Et, st, _t;
2482
- n.value = !0;
2483
- let y = (Z = m.value) == null ? void 0 : Z.split("/"), d = y[(y == null ? void 0 : y.length) - 2];
2484
- const F = ((W = z == null ? void 0 : z.find((et) => (et == null ? void 0 : et.key) === d)) == null ? void 0 : W.value) ?? "";
2485
- let $ = "";
2486
- const k = await mt.post("http://139.196.154.85:20024/api/sysAuth/login", {
2608
+ var W, Q, E, at, ut, rt, vt, ht, D, kt, Mt, Ot, Nt, It, Et, ct, _t;
2609
+ i.value = !0;
2610
+ let B = (W = u.value) == null ? void 0 : W.split("/"), d = B[(B == null ? void 0 : B.length) - 2];
2611
+ const F = ((Q = $ == null ? void 0 : $.find((ot) => (ot == null ? void 0 : ot.key) === d)) == null ? void 0 : Q.value) ?? "";
2612
+ let H = "";
2613
+ const x = await mt.post("http://139.196.154.85:20024/api/sysAuth/login", {
2487
2614
  account: "superadmin",
2488
2615
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
2489
2616
  codeId: 0,
2490
2617
  code: ""
2491
2618
  });
2492
- ((T = k == null ? void 0 : k.data) == null ? void 0 : T.code) === 200 && ($ = `Bearer ${(dt = (nt = k.data) == null ? void 0 : nt.result) == null ? void 0 : dt.accessToken}`, sessionStorage.setItem("magicToken", $));
2493
- const D = $ === "" ? "123456" : $, J = await mt.post(F, null, {
2619
+ ((E = x == null ? void 0 : x.data) == null ? void 0 : E.code) === 200 && (H = `Bearer ${(ut = (at = x.data) == null ? void 0 : at.result) == null ? void 0 : ut.accessToken}`, sessionStorage.setItem("magicToken", H));
2620
+ const A = H === "" ? "123456" : H, y = await mt.post(F, null, {
2494
2621
  headers: {
2495
- Authorization: D,
2622
+ Authorization: A,
2496
2623
  baseURL: "http://139.196.154.85:20025",
2497
2624
  "Content-Type": "multipart/form-data"
2498
2625
  }
2499
2626
  });
2500
- if (((at = J == null ? void 0 : J.data) == null ? void 0 : at.type) === "success" && Ke((ut = (vt = J == null ? void 0 : J.data) == null ? void 0 : vt.result) == null ? void 0 : ut.result)) {
2501
- const et = (zt = (Lt = (kt = JSON.parse((Mt = (E = J == null ? void 0 : J.data) == null ? void 0 : E.result) == null ? void 0 : Mt.result)) == null ? void 0 : kt.lines_file_paths) == null ? void 0 : Lt[0]) == null ? void 0 : zt.split("\\"), At = (((Ht = z == null ? void 0 : z.find((N) => (N == null ? void 0 : N.key) === d)) == null ? void 0 : Ht.resources) ?? "") + "/" + (((et == null ? void 0 : et[(et == null ? void 0 : et.length) - 2]) === "inputResources" ? "outputResources" : et == null ? void 0 : et[(et == null ? void 0 : et.length) - 2]) ?? "outputResources"), Gt = await mt.post(At, null, {
2627
+ if (((rt = y == null ? void 0 : y.data) == null ? void 0 : rt.type) === "success" && Xe((ht = (vt = y == null ? void 0 : y.data) == null ? void 0 : vt.result) == null ? void 0 : ht.result)) {
2628
+ const ot = (Nt = (Ot = (Mt = JSON.parse((kt = (D = y == null ? void 0 : y.data) == null ? void 0 : D.result) == null ? void 0 : kt.result)) == null ? void 0 : Mt.lines_file_paths) == null ? void 0 : Ot[0]) == null ? void 0 : Nt.split("\\"), Lt = (((It = $ == null ? void 0 : $.find((N) => (N == null ? void 0 : N.key) === d)) == null ? void 0 : It.resources) ?? "") + "/" + (((ot == null ? void 0 : ot[(ot == null ? void 0 : ot.length) - 2]) === "inputResources" ? "outputResources" : ot == null ? void 0 : ot[(ot == null ? void 0 : ot.length) - 2]) ?? "outputResources"), Gt = await mt.post(Lt, null, {
2502
2629
  headers: {
2503
- Authorization: D,
2630
+ Authorization: A,
2504
2631
  baseURL: "http://139.196.154.85:20025",
2505
2632
  "Content-Type": "multipart/form-data"
2506
2633
  }
2507
2634
  });
2508
2635
  if (((Et = Gt == null ? void 0 : Gt.data) == null ? void 0 : Et.type) === "success") {
2509
- const N = (st = Gt == null ? void 0 : Gt.data) == null ? void 0 : st.result, Rt = Bt.value, Wt = await ((_t = ae(Rt)) == null ? void 0 : _t.map(async (lt) => {
2510
- var $t, re, ce, yt, q, Ut;
2511
- if ((lt == null ? void 0 : lt.name) === "输出") {
2512
- if ((lt == null ? void 0 : lt.comp) === "Table")
2513
- lt.compData = ($t = lt == null ? void 0 : lt.compData) == null ? void 0 : $t.map((O) => {
2514
- var ot, bt;
2515
- return (O == null ? void 0 : O.key) === "tableContents" && (O.contents = (bt = (ot = O == null ? void 0 : O.contents) == null ? void 0 : ot.map((ht) => (ht = ht == null ? void 0 : ht.map((Y, wt) => {
2516
- var Pt, Yt, qt;
2517
- return typeof Y == "string" && wt > 1 ? ((Pt = O == null ? void 0 : O.contents) == null ? void 0 : Pt.length) > 1 ? Y = ((Yt = N == null ? void 0 : N[wt - 1]) != null && Yt.includes("input") ? Y : N == null ? void 0 : N[wt - 1]) ?? Y : Y = N == null ? void 0 : N[0] : Y = ((qt = N == null ? void 0 : N[wt - 1]) != null && qt.includes("input") ? Y : N == null ? void 0 : N[wt - 1]) ?? Y, Y;
2518
- }), ht))) == null ? void 0 : bt.filter((ht, Y) => Y <= (N == null ? void 0 : N.length) - 1)), O;
2636
+ const N = (ct = Gt == null ? void 0 : Gt.data) == null ? void 0 : ct.result, Rt = Bt.value, Qt = await ((_t = se(Rt)) == null ? void 0 : _t.map(async (dt) => {
2637
+ var Vt, de, ue, yt, tt, Ht;
2638
+ if ((dt == null ? void 0 : dt.name) === "输出") {
2639
+ if ((dt == null ? void 0 : dt.comp) === "Table")
2640
+ dt.compData = (Vt = dt == null ? void 0 : dt.compData) == null ? void 0 : Vt.map((U) => {
2641
+ var nt, bt;
2642
+ return (U == null ? void 0 : U.key) === "tableContents" && (U.contents = (bt = (nt = U == null ? void 0 : U.contents) == null ? void 0 : nt.map((pt) => (pt = pt == null ? void 0 : pt.map((K, wt) => {
2643
+ var Pt, Zt, te;
2644
+ return typeof K == "string" && wt > 1 ? ((Pt = U == null ? void 0 : U.contents) == null ? void 0 : Pt.length) > 1 ? K = ((Zt = N == null ? void 0 : N[wt - 1]) != null && Zt.includes("input") ? K : N == null ? void 0 : N[wt - 1]) ?? K : K = N == null ? void 0 : N[0] : K = ((te = N == null ? void 0 : N[wt - 1]) != null && te.includes("input") ? K : N == null ? void 0 : N[wt - 1]) ?? K, K;
2645
+ }), pt))) == null ? void 0 : bt.filter((pt, K) => K <= (N == null ? void 0 : N.length) - 1)), U;
2519
2646
  });
2520
- else if ((lt == null ? void 0 : lt.comp) === "Form") {
2521
- let O = "";
2522
- if (N == null || N.forEach((ot) => {
2523
- O = O === "" ? O + ot : O + "," + ot;
2524
- }), lt.compData = (re = lt == null ? void 0 : lt.compData) == null ? void 0 : re.map((ot) => {
2647
+ else if ((dt == null ? void 0 : dt.comp) === "Form") {
2648
+ let U = "";
2649
+ if (N == null || N.forEach((nt) => {
2650
+ U = U === "" ? U + nt : U + "," + nt;
2651
+ }), dt.compData = (de = dt == null ? void 0 : dt.compData) == null ? void 0 : de.map((nt) => {
2525
2652
  var bt;
2526
- return (ot == null ? void 0 : ot.key) === "formContent" && (ot.contents = (bt = ot.contents) == null ? void 0 : bt.map((ht) => (ht.value = O, ht))), ot;
2527
- }), (ce = O == null ? void 0 : O.split(",")) != null && ce.find((ot) => ot.includes(".obj"))) {
2528
- let ot = {};
2529
- ot.suffix = ".obj";
2653
+ return (nt == null ? void 0 : nt.key) === "formContent" && (nt.contents = (bt = nt.contents) == null ? void 0 : bt.map((pt) => (pt.value = U, pt))), nt;
2654
+ }), (ue = U == null ? void 0 : U.split(",")) != null && ue.find((nt) => nt.includes(".obj"))) {
2655
+ let nt = {};
2656
+ nt.suffix = ".obj";
2530
2657
  const bt = [];
2531
- let ht = await ((q = (yt = O == null ? void 0 : O.split(",")) == null ? void 0 : yt.filter((Y) => Y.includes(".obj") || Y.includes(".mtl"))) == null ? void 0 : q.map(async (Y) => {
2532
- var Pt, Yt;
2533
- if (Y.includes(".obj")) {
2534
- const de = (((Pt = z == null ? void 0 : z.find((Kt) => (Kt == null ? void 0 : Kt.key) === d)) == null ? void 0 : Pt.download) ?? "") + "/" + Y, Qt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), te = await mt.post(de, null, {
2658
+ let pt = await ((tt = (yt = U == null ? void 0 : U.split(",")) == null ? void 0 : yt.filter((K) => K.includes(".obj") || K.includes(".mtl"))) == null ? void 0 : tt.map(async (K) => {
2659
+ var Pt, Zt;
2660
+ if (K.includes(".obj")) {
2661
+ const he = (((Pt = $ == null ? void 0 : $.find((Xt) => (Xt == null ? void 0 : Xt.key) === d)) == null ? void 0 : Pt.download) ?? "") + "/" + K, ee = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), oe = await mt.post(he, null, {
2535
2662
  responseType: "blob",
2536
2663
  // 必须设置
2537
2664
  headers: {
2538
- Authorization: Qt,
2665
+ Authorization: ee,
2539
2666
  baseURL: "http://139.196.154.85:20025",
2540
2667
  "Content-Type": "application/json"
2541
2668
  }
2542
2669
  });
2543
- var wt = new Blob([te.data], {
2670
+ var wt = new Blob([oe.data], {
2544
2671
  type: "application/octet-stream;charset=UTF-8"
2545
2672
  });
2546
- ot.blob = wt;
2547
- } else if (Y.includes(".mtl")) {
2548
- const de = (((Yt = z == null ? void 0 : z.find((xe) => (xe == null ? void 0 : xe.key) === d)) == null ? void 0 : Yt.download) ?? "") + "/" + Y, Qt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), te = await mt.post(de, null, {
2673
+ nt.blob = wt;
2674
+ } else if (K.includes(".mtl")) {
2675
+ const he = (((Zt = $ == null ? void 0 : $.find((De) => (De == null ? void 0 : De.key) === d)) == null ? void 0 : Zt.download) ?? "") + "/" + K, ee = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), oe = await mt.post(he, null, {
2549
2676
  responseType: "blob",
2550
2677
  // 必须设置
2551
2678
  headers: {
2552
- Authorization: Qt,
2679
+ Authorization: ee,
2553
2680
  baseURL: "http://139.196.154.85:20025",
2554
2681
  "Content-Type": "application/json"
2555
2682
  }
2556
2683
  });
2557
- var wt = new Blob([te.data], {
2684
+ var wt = new Blob([oe.data], {
2558
2685
  type: "application/octet-stream;charset=UTF-8"
2559
2686
  });
2560
2687
  bt.push(wt);
2561
2688
  }
2562
2689
  }));
2563
- await Promise.all(ht), ot.mtlBlobs = bt, f.value.loadModelByDefaultPath([ot]);
2690
+ await Promise.all(pt), nt.mtlBlobs = bt, b.value.loadModelByDefaultPath([nt]);
2564
2691
  } else {
2565
- const ot = [];
2566
- let bt = await ((Ut = O == null ? void 0 : O.split(",")) == null ? void 0 : Ut.map(async (ht) => {
2567
- var Qt, te;
2568
- let Y = {};
2569
- Y.suffix = "." + ((Qt = ht == null ? void 0 : ht.split(".")) == null ? void 0 : Qt[1]);
2570
- const Pt = (((te = z == null ? void 0 : z.find((Kt) => (Kt == null ? void 0 : Kt.key) === d)) == null ? void 0 : te.download) ?? "") + "/" + ht, Yt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), qt = await mt.post(Pt, null, {
2692
+ const nt = [];
2693
+ let bt = await ((Ht = U == null ? void 0 : U.split(",")) == null ? void 0 : Ht.map(async (pt) => {
2694
+ var ee, oe;
2695
+ let K = {};
2696
+ K.suffix = "." + ((ee = pt == null ? void 0 : pt.split(".")) == null ? void 0 : ee[1]);
2697
+ const Pt = (((oe = $ == null ? void 0 : $.find((Xt) => (Xt == null ? void 0 : Xt.key) === d)) == null ? void 0 : oe.download) ?? "") + "/" + pt, Zt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), te = await mt.post(Pt, null, {
2571
2698
  responseType: "blob",
2572
2699
  // 必须设置
2573
2700
  headers: {
2574
- Authorization: Yt,
2701
+ Authorization: Zt,
2575
2702
  baseURL: "http://139.196.154.85:20025",
2576
2703
  "Content-Type": "application/json"
2577
2704
  }
2578
2705
  });
2579
- var de = new Blob([qt.data], {
2706
+ var he = new Blob([te.data], {
2580
2707
  type: "application/octet-stream;charset=UTF-8"
2581
2708
  });
2582
- Y.blob = de, ot.push(Y);
2709
+ K.blob = he, nt.push(K);
2583
2710
  }));
2584
- await Promise.all(bt), f.value.loadModelByDefaultPath(ot);
2711
+ await Promise.all(bt), b.value.loadModelByDefaultPath(nt);
2585
2712
  }
2586
2713
  }
2587
2714
  }
2588
- return lt;
2715
+ return dt;
2589
2716
  }));
2590
- Bt.value = await Promise.all(Wt);
2717
+ Bt.value = await Promise.all(Qt);
2591
2718
  }
2592
2719
  }
2593
- e.value++, n.value = !1;
2594
- }, gt = R(""), w = R("open"), I = R("open"), Zt = R(!1), ke = (y) => {
2720
+ e.value++, i.value = !1;
2721
+ }, gt = k(""), R = k("open"), Y = k("open"), Wt = k(!1), Te = (B) => {
2595
2722
  const d = document.getElementById("menuCollapse");
2596
- y === "open" ? (d.style.width = "13rem", d.style.height = "96%", d.style.overflow = "auto") : (d.style.width = "50px", d.style.minWidth = "50px", d.style.height = "50px", d.style.overflow = "hidden");
2597
- }, Te = (y) => {
2723
+ B === "open" ? (d.style.width = "13rem", d.style.height = "96%", d.style.overflow = "auto") : (d.style.width = "50px", d.style.minWidth = "50px", d.style.height = "50px", d.style.overflow = "hidden");
2724
+ }, xe = (B) => {
2598
2725
  const d = document.getElementById("operateCollapse");
2599
- y === "open" ? (d.style.width = "25rem", d.style.height = "96%", d.style.overflow = "auto") : (d.style.width = "50px", d.style.height = "50px", d.style.overflow = "hidden");
2726
+ B === "open" ? (d.style.width = "25rem", d.style.height = "96%", d.style.overflow = "auto") : (d.style.width = "50px", d.style.height = "50px", d.style.overflow = "hidden");
2600
2727
  }, Ee = () => {
2601
- Zt.value = !Zt.value;
2602
- const y = document.getElementById("operateCollapse"), d = document.getElementById("menuCollapse");
2603
- Zt.value ? (d.style.width = "13rem", y.style.width = "calc(100% - 18rem)") : y.style.width = "400px";
2604
- }, Xt = (y) => {
2605
- const d = URL.createObjectURL(y), F = document.createElement("a");
2606
- F.href = d, F.download = "file.txt", document.body.appendChild(F), F.click(), document.body.removeChild(F), URL.revokeObjectURL(d), l.value = !1;
2607
- }, Ot = async () => {
2608
- var Z, W, T, nt, dt, at, vt, ut, E, Mt, kt, Lt, zt, Ht, Et, st;
2609
- l.value = !0;
2610
- let y = (Z = m.value) == null ? void 0 : Z.split("/"), d = y[(y == null ? void 0 : y.length) - 2];
2611
- const F = ((W = z == null ? void 0 : z.find((_t) => (_t == null ? void 0 : _t.key) === d)) == null ? void 0 : W.value) ?? "";
2612
- let $ = "";
2613
- const k = await mt.post("http://139.196.154.85:20024/api/sysAuth/login", {
2728
+ Wt.value = !Wt.value;
2729
+ const B = document.getElementById("operateCollapse"), d = document.getElementById("menuCollapse");
2730
+ Wt.value ? (d.style.width = "13rem", B.style.width = "calc(100% - 18rem)") : B.style.width = "400px";
2731
+ }, qt = (B) => {
2732
+ const d = URL.createObjectURL(B), F = document.createElement("a");
2733
+ F.href = d, F.download = "file.txt", document.body.appendChild(F), F.click(), document.body.removeChild(F), URL.revokeObjectURL(d), o.value = !1;
2734
+ }, $t = async () => {
2735
+ var W, Q, E, at, ut, rt, vt, ht, D, kt, Mt, Ot, Nt, It, Et, ct;
2736
+ o.value = !0;
2737
+ let B = (W = u.value) == null ? void 0 : W.split("/"), d = B[(B == null ? void 0 : B.length) - 2];
2738
+ const F = ((Q = $ == null ? void 0 : $.find((_t) => (_t == null ? void 0 : _t.key) === d)) == null ? void 0 : Q.value) ?? "";
2739
+ let H = "";
2740
+ const x = await mt.post("http://139.196.154.85:20024/api/sysAuth/login", {
2614
2741
  account: "superadmin",
2615
2742
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
2616
2743
  codeId: 0,
2617
2744
  code: ""
2618
2745
  });
2619
- if (((T = k == null ? void 0 : k.data) == null ? void 0 : T.code) === 200)
2620
- $ = `Bearer ${(dt = (nt = k.data) == null ? void 0 : nt.result) == null ? void 0 : dt.accessToken}`, sessionStorage.setItem("magicToken", $);
2746
+ if (((E = x == null ? void 0 : x.data) == null ? void 0 : E.code) === 200)
2747
+ H = `Bearer ${(ut = (at = x.data) == null ? void 0 : at.result) == null ? void 0 : ut.accessToken}`, sessionStorage.setItem("magicToken", H);
2621
2748
  else
2622
2749
  throw Se.error("响应出错了"), new Error("响应出错了");
2623
- const D = $ === "" ? "123456" : $, J = await mt.post(F, null, {
2750
+ const A = H === "" ? "123456" : H, y = await mt.post(F, null, {
2624
2751
  headers: {
2625
- Authorization: D,
2752
+ Authorization: A,
2626
2753
  baseURL: "http://139.196.154.85:20025",
2627
2754
  "Content-Type": "multipart/form-data"
2628
2755
  }
2629
2756
  });
2630
- if (((at = J == null ? void 0 : J.data) == null ? void 0 : at.code) === 200) {
2631
- if (Ke((ut = (vt = J == null ? void 0 : J.data) == null ? void 0 : vt.result) == null ? void 0 : ut.result)) {
2632
- const _t = (zt = (Lt = (kt = JSON.parse((Mt = (E = J == null ? void 0 : J.data) == null ? void 0 : E.result) == null ? void 0 : Mt.result)) == null ? void 0 : kt.lines_file_paths) == null ? void 0 : Lt[0]) == null ? void 0 : zt.split("\\"), le = (((Ht = z == null ? void 0 : z.find((Gt) => (Gt == null ? void 0 : Gt.key) === d)) == null ? void 0 : Ht.resources) ?? "") + "/" + ((_t == null ? void 0 : _t[(_t == null ? void 0 : _t.length) - 2]) ?? "outputResources"), At = await mt.post(le, null, {
2757
+ if (((rt = y == null ? void 0 : y.data) == null ? void 0 : rt.code) === 200) {
2758
+ if (Xe((ht = (vt = y == null ? void 0 : y.data) == null ? void 0 : vt.result) == null ? void 0 : ht.result)) {
2759
+ const _t = (Nt = (Ot = (Mt = JSON.parse((kt = (D = y == null ? void 0 : y.data) == null ? void 0 : D.result) == null ? void 0 : kt.result)) == null ? void 0 : Mt.lines_file_paths) == null ? void 0 : Ot[0]) == null ? void 0 : Nt.split("\\"), ce = (((It = $ == null ? void 0 : $.find((Gt) => (Gt == null ? void 0 : Gt.key) === d)) == null ? void 0 : It.resources) ?? "") + "/" + ((_t == null ? void 0 : _t[(_t == null ? void 0 : _t.length) - 2]) ?? "outputResources"), Lt = await mt.post(ce, null, {
2633
2760
  headers: {
2634
- Authorization: D,
2761
+ Authorization: A,
2635
2762
  baseURL: "http://139.196.154.85:20025",
2636
2763
  "Content-Type": "multipart/form-data"
2637
2764
  }
2638
2765
  });
2639
- if (((Et = At == null ? void 0 : At.data) == null ? void 0 : Et.code) === 200) {
2640
- const Gt = (st = At == null ? void 0 : At.data) == null ? void 0 : st.result, N = ae(Bt.value);
2766
+ if (((Et = Lt == null ? void 0 : Lt.data) == null ? void 0 : Et.code) === 200) {
2767
+ const Gt = (ct = Lt == null ? void 0 : Lt.data) == null ? void 0 : ct.result, N = se(Bt.value);
2641
2768
  N == null || N.map(async (Rt) => {
2642
- var Wt, lt, $t, re, ce;
2769
+ var Qt, dt, Vt, de, ue;
2643
2770
  if ((Rt == null ? void 0 : Rt.name) === "输出" && (Rt == null ? void 0 : Rt.comp) === "Form") {
2644
2771
  let yt = "";
2645
- Gt == null || Gt.forEach((q) => {
2646
- yt = yt === "" ? yt + q : yt + "," + q;
2647
- }), Rt.compData = (Wt = Rt == null ? void 0 : Rt.compData) == null ? void 0 : Wt.map((q) => {
2648
- var Ut;
2649
- return (q == null ? void 0 : q.key) === "formContent" && (q.contents = (Ut = q.contents) == null ? void 0 : Ut.map((O) => (O.value = yt, O))), q;
2650
- }), (lt = yt == null ? void 0 : yt.split(",")) != null && lt.find((q) => q.includes(".obj")) ? (re = ($t = yt == null ? void 0 : yt.split(",")) == null ? void 0 : $t.filter((q) => q.includes(".obj") || q.includes(".mtl"))) == null || re.map(async (q) => {
2651
- var Ut, O;
2652
- if (q.includes(".obj")) {
2653
- const bt = (((Ut = z == null ? void 0 : z.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : Ut.download) ?? "") + "/" + q, ht = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Y = await mt.post(bt, null, {
2772
+ Gt == null || Gt.forEach((tt) => {
2773
+ yt = yt === "" ? yt + tt : yt + "," + tt;
2774
+ }), Rt.compData = (Qt = Rt == null ? void 0 : Rt.compData) == null ? void 0 : Qt.map((tt) => {
2775
+ var Ht;
2776
+ return (tt == null ? void 0 : tt.key) === "formContent" && (tt.contents = (Ht = tt.contents) == null ? void 0 : Ht.map((U) => (U.value = yt, U))), tt;
2777
+ }), (dt = yt == null ? void 0 : yt.split(",")) != null && dt.find((tt) => tt.includes(".obj")) ? (de = (Vt = yt == null ? void 0 : yt.split(",")) == null ? void 0 : Vt.filter((tt) => tt.includes(".obj") || tt.includes(".mtl"))) == null || de.map(async (tt) => {
2778
+ var Ht, U;
2779
+ if (tt.includes(".obj")) {
2780
+ const bt = (((Ht = $ == null ? void 0 : $.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : Ht.download) ?? "") + "/" + tt, pt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), K = await mt.post(bt, null, {
2654
2781
  responseType: "blob",
2655
2782
  // 必须设置
2656
2783
  headers: {
2657
- Authorization: ht,
2784
+ Authorization: pt,
2658
2785
  baseURL: "http://139.196.154.85:20025",
2659
2786
  "Content-Type": "application/json"
2660
2787
  }
2661
2788
  });
2662
- let wt = new Blob([Y.data], {
2789
+ let wt = new Blob([K.data], {
2663
2790
  type: "application/octet-stream;charset=UTF-8"
2664
2791
  });
2665
- Xt(wt);
2666
- } else if (q.includes(".mtl")) {
2667
- const bt = (((O = z == null ? void 0 : z.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : O.download) ?? "") + "/" + q, ht = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Y = await mt.post(bt, null, {
2792
+ qt(wt);
2793
+ } else if (tt.includes(".mtl")) {
2794
+ const bt = (((U = $ == null ? void 0 : $.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : U.download) ?? "") + "/" + tt, pt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), K = await mt.post(bt, null, {
2668
2795
  responseType: "blob",
2669
2796
  // 必须设置
2670
2797
  headers: {
2671
- Authorization: ht,
2798
+ Authorization: pt,
2672
2799
  baseURL: "http://139.196.154.85:20025",
2673
2800
  "Content-Type": "application/json"
2674
2801
  }
2675
2802
  });
2676
- let wt = new Blob([Y.data], {
2803
+ let wt = new Blob([K.data], {
2677
2804
  type: "application/octet-stream;charset=UTF-8"
2678
2805
  });
2679
- Xt(wt);
2806
+ qt(wt);
2680
2807
  }
2681
- }) : (ce = yt == null ? void 0 : yt.split(",")) == null || ce.map(async (q) => {
2682
- var Y, wt;
2683
- "" + ((Y = q == null ? void 0 : q.split(".")) == null ? void 0 : Y[1]);
2684
- const O = (((wt = z == null ? void 0 : z.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : wt.download) ?? "") + "/" + q, ot = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), bt = await mt.post(O, null, {
2808
+ }) : (ue = yt == null ? void 0 : yt.split(",")) == null || ue.map(async (tt) => {
2809
+ var K, wt;
2810
+ "" + ((K = tt == null ? void 0 : tt.split(".")) == null ? void 0 : K[1]);
2811
+ const U = (((wt = $ == null ? void 0 : $.find((Pt) => (Pt == null ? void 0 : Pt.key) === d)) == null ? void 0 : wt.download) ?? "") + "/" + tt, nt = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), bt = await mt.post(U, null, {
2685
2812
  responseType: "blob",
2686
2813
  // 必须设置
2687
2814
  headers: {
2688
- Authorization: ot,
2815
+ Authorization: nt,
2689
2816
  baseURL: "http://139.196.154.85:20025",
2690
2817
  "Content-Type": "application/json"
2691
2818
  }
2692
2819
  });
2693
- let ht = new Blob([bt.data], {
2820
+ let pt = new Blob([bt.data], {
2694
2821
  type: "application/octet-stream;charset=UTF-8"
2695
2822
  });
2696
- Xt(ht);
2823
+ qt(pt);
2697
2824
  });
2698
2825
  }
2699
2826
  });
@@ -2702,77 +2829,77 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2702
2829
  }
2703
2830
  } else
2704
2831
  throw Se.error("响应出错了"), new Error("响应出错了");
2705
- }, me = no(() => ae(Bt.value));
2706
- return (y, d) => {
2707
- const F = it("el-button"), $ = it("el-avatar"), k = it("el-header"), D = it("el-container"), J = it("el-icon"), Z = it("el-input"), W = it("el-aside"), T = it("el-collapse-item"), nt = it("el-collapse"), dt = it("el-main"), at = it("router-view"), vt = eo("loading");
2708
- return g(), j(ue, null, [
2709
- P(Vo, {
2710
- visible: i.value,
2711
- onBeforeDestroy: d[0] || (d[0] = (ut) => i.value = !1)
2832
+ }, Pe = Oe(() => se(Bt.value));
2833
+ return (B, d) => {
2834
+ const F = X("el-button"), H = X("el-avatar"), x = X("el-header"), A = X("el-container"), y = X("el-icon"), W = X("el-input"), Q = X("el-aside"), E = X("el-collapse-item"), at = X("el-collapse"), ut = X("el-main"), rt = X("router-view"), vt = no("loading");
2835
+ return f(), j(pe, null, [
2836
+ _(Vo, {
2837
+ visible: C.value,
2838
+ onBeforeDestroy: d[0] || (d[0] = (ht) => C.value = !1)
2712
2839
  }, {
2713
- default: b(() => [
2714
- Q.value ? (g(), j("iframe", {
2840
+ default: v(() => [
2841
+ et.value ? (f(), j("iframe", {
2715
2842
  key: 0,
2716
- src: Q.value,
2843
+ src: et.value,
2717
2844
  style: { width: "100%", height: "500px", border: "1px solid #ccc" }
2718
- }, null, 8, yi)) : pt("", !0)
2845
+ }, null, 8, Mi)) : st("", !0)
2719
2846
  ]),
2720
2847
  _: 1
2721
2848
  }, 8, ["visible"]),
2722
- h(A) === "edit" ? (g(), rt(D, {
2849
+ h(L) === "edit" ? (f(), it(A, {
2723
2850
  key: 0,
2724
2851
  class: "client-container"
2725
2852
  }, {
2726
- default: b(() => [
2727
- P(k, { class: "client-structure-header" }, {
2728
- default: b(() => {
2729
- var ut;
2853
+ default: v(() => [
2854
+ _(x, { class: "client-structure-header" }, {
2855
+ default: v(() => {
2856
+ var ht;
2730
2857
  return [
2731
- c("div", wi, [
2732
- P(F, {
2858
+ c("div", Ti, [
2859
+ _(F, {
2733
2860
  id: "transparentBgButton",
2734
- onClick: h(io)
2861
+ onClick: h(ao)
2735
2862
  }, {
2736
- default: b(() => d[6] || (d[6] = [
2863
+ default: v(() => d[6] || (d[6] = [
2737
2864
  xt(" 返回页面 ")
2738
2865
  ])),
2739
2866
  _: 1,
2740
2867
  __: [6]
2741
2868
  }, 8, ["onClick"]),
2742
- P(F, {
2869
+ _(F, {
2743
2870
  id: "transparentBgButton",
2744
- onClick: d[1] || (d[1] = (E) => {
2745
- var Mt, kt;
2746
- return h(ao)((kt = (Mt = h(r)) == null ? void 0 : Mt.map((Lt) => Lt.value)) == null ? void 0 : kt.join("/"));
2871
+ onClick: d[1] || (d[1] = (D) => {
2872
+ var kt, Mt;
2873
+ return h(so)((Mt = (kt = h(s)) == null ? void 0 : kt.map((Ot) => Ot.value)) == null ? void 0 : Mt.join("/"));
2747
2874
  })
2748
2875
  }, {
2749
- icon: b(() => [
2750
- P(Nt, { name: "Store" })
2876
+ icon: v(() => [
2877
+ _(Ut, { name: "Store" })
2751
2878
  ]),
2752
- default: b(() => [
2879
+ default: v(() => [
2753
2880
  d[7] || (d[7] = xt(" 保存页面 "))
2754
2881
  ]),
2755
2882
  _: 1,
2756
2883
  __: [7]
2757
2884
  })
2758
2885
  ]),
2759
- c("div", vi, [
2760
- (g(), rt(Jo, {
2761
- key: h(r),
2762
- breadArray: h(r),
2763
- onClick: h(so)
2886
+ c("div", xi, [
2887
+ (f(), it(Go, {
2888
+ key: h(s),
2889
+ breadArray: h(s),
2890
+ onClick: h(lo)
2764
2891
  }, null, 8, ["breadArray", "onClick"]))
2765
2892
  ]),
2766
- c("div", bi, [
2767
- he(y.$slots, "default", {}, void 0, !0),
2768
- P($, {
2893
+ c("div", Ei, [
2894
+ re(B.$slots, "default", {}, void 0, !0),
2895
+ _(H, {
2769
2896
  size: 35,
2770
- src: (ut = h(K)) == null ? void 0 : ut.avatarUrl
2897
+ src: (ht = h(Z)) == null ? void 0 : ht.avatarUrl
2771
2898
  }, {
2772
- default: b(() => {
2773
- var E;
2899
+ default: v(() => {
2900
+ var D;
2774
2901
  return [
2775
- xt(ft(((E = h(K)) == null ? void 0 : E.account) ?? "未知"), 1)
2902
+ xt(ft(((D = h(Z)) == null ? void 0 : D.account) ?? "未知"), 1)
2776
2903
  ];
2777
2904
  }),
2778
2905
  _: 1
@@ -2782,72 +2909,101 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2782
2909
  }),
2783
2910
  _: 3
2784
2911
  }),
2785
- h(A) === "edit" ? (g(), rt(D, {
2912
+ h(L) === "edit" ? (f(), it(A, {
2786
2913
  key: 0,
2787
2914
  class: "model-operate",
2788
2915
  style: { "margin-top": "10px", height: "0px" }
2789
2916
  }, {
2790
- default: b(() => [
2791
- c("div", Bi, [
2792
- P(Oe)
2917
+ default: v(() => [
2918
+ c("div", Di, [
2919
+ _(ze)
2793
2920
  ]),
2794
- c("div", Ri, [
2795
- P(Ue)
2921
+ c("div", Si, [
2922
+ _($e)
2796
2923
  ]),
2797
- c("div", Ci, [
2798
- P(ze)
2924
+ c("div", Ai, [
2925
+ _(He)
2799
2926
  ])
2800
2927
  ]),
2801
2928
  _: 1
2802
- })) : pt("", !0)
2929
+ })) : st("", !0)
2803
2930
  ]),
2804
2931
  _: 3
2805
- })) : ne((g(), rt(D, {
2932
+ })) : Yt((f(), it(A, {
2806
2933
  key: 1,
2807
2934
  class: "client-container",
2808
2935
  "element-loading-text": "正在加载页面数据..."
2809
2936
  }, {
2810
- default: b(() => [
2811
- P(k, { class: "client-header" }, {
2812
- default: b(() => {
2813
- var ut;
2937
+ default: v(() => [
2938
+ _(x, { class: "client-header" }, {
2939
+ default: v(() => {
2940
+ var ht;
2814
2941
  return [
2815
- c("div", Mi, [
2816
- P(Nt, {
2942
+ c("div", Fi, [
2943
+ _(Ut, {
2817
2944
  name: "logo",
2818
2945
  style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
2819
2946
  }),
2820
- xt(" " + ft(h(L) === "" ? "CPMPIP" : h(L)), 1)
2947
+ xt(" " + ft(h(G) === "" ? "CPMPIP" : h(G)), 1)
2821
2948
  ]),
2822
- c("div", ki, [
2823
- P(Po, { mode: "horizontal" })
2949
+ c("div", Li, [
2950
+ _(go, { mode: "horizontal" })
2824
2951
  ]),
2825
- c("div", Ti, [
2826
- P(Z, {
2952
+ c("div", ji, [
2953
+ _(W, {
2827
2954
  modelValue: gt.value,
2828
- "onUpdate:modelValue": d[2] || (d[2] = (E) => gt.value = E),
2955
+ "onUpdate:modelValue": d[2] || (d[2] = (D) => gt.value = D),
2829
2956
  clearable: "",
2830
2957
  placeholder: "搜索",
2831
2958
  style: { width: "130px" }
2832
2959
  }, {
2833
- prefix: b(() => [
2834
- P(J, { class: "el-input__icon" }, {
2835
- default: b(() => [
2836
- P(h(_o))
2960
+ prefix: v(() => [
2961
+ _(y, { class: "el-input__icon" }, {
2962
+ default: v(() => [
2963
+ _(h(Jo))
2837
2964
  ]),
2838
2965
  _: 1
2839
2966
  })
2840
2967
  ]),
2841
2968
  _: 1
2842
2969
  }, 8, ["modelValue"]),
2843
- P($, {
2970
+ a.showButton ? (f(), it(F, {
2971
+ key: 0,
2972
+ id: "transparentBgButton",
2973
+ onClick: h(ro)
2974
+ }, {
2975
+ icon: v(() => [
2976
+ _(Ut, { name: "App" })
2977
+ ]),
2978
+ default: v(() => [
2979
+ d[8] || (d[8] = xt(" 生成APP "))
2980
+ ]),
2981
+ _: 1,
2982
+ __: [8]
2983
+ }, 8, ["onClick"])) : st("", !0),
2984
+ a.showButton && h(L) === "view" ? (f(), it(F, {
2985
+ key: 1,
2986
+ id: "transparentBgButton",
2987
+ onClick: h(co)
2988
+ }, {
2989
+ icon: v(() => [
2990
+ _(Ut, { name: "write" })
2991
+ ]),
2992
+ default: v(() => [
2993
+ d[9] || (d[9] = xt(" 修改布局 "))
2994
+ ]),
2995
+ _: 1,
2996
+ __: [9]
2997
+ }, 8, ["onClick"])) : st("", !0),
2998
+ re(B.$slots, "default", {}, void 0, !0),
2999
+ _(H, {
2844
3000
  size: 35,
2845
- src: (ut = h(K)) == null ? void 0 : ut.avatarUrl
3001
+ src: (ht = h(Z)) == null ? void 0 : ht.avatarUrl
2846
3002
  }, {
2847
- default: b(() => {
2848
- var E;
3003
+ default: v(() => {
3004
+ var D;
2849
3005
  return [
2850
- xt(ft(((E = h(K)) == null ? void 0 : E.account) ?? "未知"), 1)
3006
+ xt(ft(((D = h(Z)) == null ? void 0 : D.account) ?? "未知"), 1)
2851
3007
  ];
2852
3008
  }),
2853
3009
  _: 1
@@ -2855,35 +3011,35 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2855
3011
  ])
2856
3012
  ];
2857
3013
  }),
2858
- _: 1
3014
+ _: 3
2859
3015
  }),
2860
- P(D, { class: "client-body" }, {
2861
- default: b(() => [
2862
- y.$route.path === "/" ? (g(), rt(dt, {
3016
+ _(A, { class: "client-body" }, {
3017
+ default: v(() => [
3018
+ B.$route.path === "/" ? (f(), it(ut, {
2863
3019
  key: 0,
2864
3020
  class: "client-main"
2865
3021
  }, {
2866
- default: b(() => [
2867
- P(nt, {
2868
- modelValue: w.value,
2869
- "onUpdate:modelValue": d[3] || (d[3] = (ut) => w.value = ut),
3022
+ default: v(() => [
3023
+ _(at, {
3024
+ modelValue: R.value,
3025
+ "onUpdate:modelValue": d[3] || (d[3] = (ht) => R.value = ht),
2870
3026
  accordion: "",
2871
3027
  class: "client-aside",
2872
3028
  id: "menuCollapse",
2873
- onChange: ke
3029
+ onChange: Te
2874
3030
  }, {
2875
- default: b(() => [
2876
- P(T, { name: "open" }, {
2877
- icon: b(() => [
2878
- P(Nt, {
2879
- name: w.value === "" ? "Right" : "Left",
3031
+ default: v(() => [
3032
+ _(E, { name: "open" }, {
3033
+ icon: v(() => [
3034
+ _(Ut, {
3035
+ name: R.value === "" ? "Right" : "Left",
2880
3036
  style: { width: "20px", height: "20px" }
2881
3037
  }, null, 8, ["name"])
2882
3038
  ]),
2883
- default: b(() => [
2884
- P(W, { style: { width: "100%" } }, {
2885
- default: b(() => [
2886
- P(we, { mode: "vertical" })
3039
+ default: v(() => [
3040
+ _(Q, { style: { width: "100%" } }, {
3041
+ default: v(() => [
3042
+ _(ve, { mode: "vertical" })
2887
3043
  ]),
2888
3044
  _: 1
2889
3045
  })
@@ -2893,100 +3049,100 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2893
3049
  ]),
2894
3050
  _: 1
2895
3051
  }, 8, ["modelValue"]),
2896
- c("div", Ei, [
2897
- P(oi, {
2898
- isShow: jt.value,
3052
+ c("div", Oi, [
3053
+ _(di, {
3054
+ isShow: Dt.value,
2899
3055
  windowConfig: a.windowConfig,
2900
3056
  ref_key: "threeModelRef",
2901
- ref: f
3057
+ ref: b
2902
3058
  }, null, 8, ["isShow", "windowConfig"])
2903
3059
  ]),
2904
- P(nt, {
2905
- modelValue: I.value,
2906
- "onUpdate:modelValue": d[5] || (d[5] = (ut) => I.value = ut),
3060
+ _(at, {
3061
+ modelValue: Y.value,
3062
+ "onUpdate:modelValue": d[5] || (d[5] = (ht) => Y.value = ht),
2907
3063
  accordion: "",
2908
3064
  class: "client-main-operate",
2909
3065
  id: "operateCollapse",
2910
- onChange: Te
3066
+ onChange: xe
2911
3067
  }, {
2912
- default: b(() => [
2913
- P(T, { name: "open" }, {
2914
- icon: b(() => [
2915
- P(Nt, {
2916
- name: I.value === "open" ? "Right" : "Left",
3068
+ default: v(() => [
3069
+ _(E, { name: "open" }, {
3070
+ icon: v(() => [
3071
+ _(Ut, {
3072
+ name: Y.value === "open" ? "Right" : "Left",
2917
3073
  style: { width: "20px", height: "20px" }
2918
3074
  }, null, 8, ["name"])
2919
3075
  ]),
2920
- default: b(() => {
2921
- var ut;
3076
+ default: v(() => {
3077
+ var ht;
2922
3078
  return [
2923
3079
  c("div", null, [
2924
- P(Nt, {
3080
+ _(Ut, {
2925
3081
  class: "fold-icon",
2926
- name: Zt.value ? "Right" : "Left",
3082
+ name: Wt.value ? "Right" : "Left",
2927
3083
  onClick: Ee
2928
3084
  }, null, 8, ["name"]),
2929
- (g(!0), j(ue, null, ve((ut = me.value) == null ? void 0 : ut.filter((E) => E.comp !== "FormTop"), (E, Mt) => {
2930
- var kt;
2931
- return g(), j("div", {
3085
+ (f(!0), j(pe, null, Be((ht = Pe.value) == null ? void 0 : ht.filter((D) => D.comp !== "FormTop"), (D, kt) => {
3086
+ var Mt;
3087
+ return f(), j("div", {
2932
3088
  class: "item-view-content",
2933
- key: E == null ? void 0 : E.id
3089
+ key: D == null ? void 0 : D.id
2934
3090
  }, [
2935
- ((kt = E == null ? void 0 : E.comp) == null ? void 0 : kt.toUpperCase()) !== "TABLE" && E.name ? (g(), j("div", xi, ft(E.name), 1)) : pt("", !0),
2936
- (g(), rt(oo(h(lo)(E.comp)), {
2937
- compName: E.name,
2938
- itemData: E == null ? void 0 : E.compData,
2939
- childItemData: E == null ? void 0 : E.itemChildData,
2940
- key: (E == null ? void 0 : E.id) ?? Mt,
2941
- onChange: h(uo),
2942
- index: (E == null ? void 0 : E.id) ?? Mt,
2943
- onContentChange: h(co),
2944
- onPageChange: h(ro)
3091
+ ((Mt = D == null ? void 0 : D.comp) == null ? void 0 : Mt.toUpperCase()) !== "TABLE" && D.name ? (f(), j("div", Ui, ft(D.name), 1)) : st("", !0),
3092
+ (f(), it(io(h(uo)(D.comp)), {
3093
+ compName: D.name,
3094
+ itemData: D == null ? void 0 : D.compData,
3095
+ childItemData: D == null ? void 0 : D.itemChildData,
3096
+ key: (D == null ? void 0 : D.id) ?? kt,
3097
+ onChange: h(_o),
3098
+ index: (D == null ? void 0 : D.id) ?? kt,
3099
+ onContentChange: h(po),
3100
+ onPageChange: h(ho)
2945
3101
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
2946
3102
  ]);
2947
3103
  }), 128)),
2948
- s.value ? (g(), j("div", Si, [
2949
- G.value ? (g(), rt(ee, {
3104
+ r.value ? (f(), j("div", zi, [
3105
+ P.value ? (f(), it(ne, {
2950
3106
  key: 0,
2951
3107
  class: "calculator-content",
2952
- onClickTrigger: Ot,
2953
- loading: l.value,
3108
+ onClickTrigger: $t,
3109
+ loading: o.value,
2954
3110
  modelValue: "预览"
2955
- }, null, 8, ["loading"])) : pt("", !0),
2956
- P(ee, {
3111
+ }, null, 8, ["loading"])) : st("", !0),
3112
+ _(ne, {
2957
3113
  class: "calculator-content",
2958
- onClickTrigger: d[4] || (d[4] = (E) => Me()),
2959
- loading: n.value,
3114
+ onClickTrigger: d[4] || (d[4] = (D) => Me()),
3115
+ loading: i.value,
2960
3116
  modelValue: "调用方法"
2961
3117
  }, null, 8, ["loading"])
2962
- ])) : pt("", !0),
2963
- v.value ? (g(), j("div", Di, [
2964
- P(ee, {
3118
+ ])) : st("", !0),
3119
+ w.value ? (f(), j("div", $i, [
3120
+ _(ne, {
2965
3121
  class: "calculator-content",
2966
3122
  modelValue: "执行方法",
2967
- onClickTrigger: _e,
2968
- loading: o.value
3123
+ onClickTrigger: me,
3124
+ loading: n.value
2969
3125
  }, null, 8, ["loading"])
2970
- ])) : pt("", !0),
2971
- ct.value ? (g(), j("div", Ai, [
2972
- P(ee, {
3126
+ ])) : st("", !0),
3127
+ lt.value ? (f(), j("div", Hi, [
3128
+ _(ne, {
2973
3129
  class: "calculator-content",
2974
3130
  modelValue: "播放动画",
2975
- onClickTrigger: It
3131
+ onClickTrigger: Ft
2976
3132
  })
2977
- ])) : pt("", !0),
2978
- tt.value ? (g(), j("div", Fi, [
2979
- P(ee, {
3133
+ ])) : st("", !0),
3134
+ V.value ? (f(), j("div", Ni, [
3135
+ _(ne, {
2980
3136
  class: "calculator-content",
2981
- onClickTrigger: pe,
3137
+ onClickTrigger: _e,
2982
3138
  modelValue: "预览"
2983
3139
  }),
2984
- P(ee, {
3140
+ _(ne, {
2985
3141
  class: "calculator-content",
2986
- onClickTrigger: Re,
3142
+ onClickTrigger: Kt,
2987
3143
  modelValue: "下载"
2988
3144
  })
2989
- ])) : pt("", !0)
3145
+ ])) : st("", !0)
2990
3146
  ])
2991
3147
  ];
2992
3148
  }),
@@ -2997,21 +3153,21 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
2997
3153
  }, 8, ["modelValue"])
2998
3154
  ]),
2999
3155
  _: 1
3000
- })) : (g(), rt(dt, {
3156
+ })) : (f(), it(ut, {
3001
3157
  key: 1,
3002
3158
  class: "client-router"
3003
3159
  }, {
3004
- default: b(() => [
3005
- c("div", Li, [
3006
- P(W, { width: "300px" }, {
3007
- default: b(() => [
3008
- P(we, { mode: "vertical" })
3160
+ default: v(() => [
3161
+ c("div", Ii, [
3162
+ _(Q, { width: "300px" }, {
3163
+ default: v(() => [
3164
+ _(ve, { mode: "vertical" })
3009
3165
  ]),
3010
3166
  _: 1
3011
3167
  })
3012
3168
  ]),
3013
- c("div", ji, [
3014
- P(at)
3169
+ c("div", Vi, [
3170
+ _(rt)
3015
3171
  ])
3016
3172
  ]),
3017
3173
  _: 1
@@ -3020,14 +3176,14 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
3020
3176
  _: 1
3021
3177
  })
3022
3178
  ]),
3023
- _: 1
3179
+ _: 3
3024
3180
  })), [
3025
- [vt, h(_)]
3181
+ [vt, h(J)]
3026
3182
  ])
3027
3183
  ], 64);
3028
3184
  };
3029
3185
  }
3030
- }), Ui = /* @__PURE__ */ Vt(Oi, [["__scopeId", "data-v-271b2591"]]), zi = { class: "system-wrap" }, Hi = {
3186
+ }), Ki = /* @__PURE__ */ zt(Yi, [["__scopeId", "data-v-85215b4c"]]), Zi = { class: "system-wrap" }, Xi = {
3031
3187
  __name: "index",
3032
3188
  props: {
3033
3189
  windowConfig: {
@@ -3047,67 +3203,67 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
3047
3203
  jsonContents: Array
3048
3204
  },
3049
3205
  setup(a) {
3050
- const t = Be(Dt), e = $e(Dt), n = be();
3051
- R(!1);
3052
- const r = R(!0), s = a, G = no(() => {
3053
- switch (s == null ? void 0 : s.platform) {
3206
+ const t = Re(At), e = Ie(At), i = Ce();
3207
+ k(!1);
3208
+ const s = k(!0), r = a, P = Oe(() => {
3209
+ switch (r == null ? void 0 : r.platform) {
3054
3210
  case "browser":
3055
- return Wo;
3211
+ return qo;
3056
3212
  case "client":
3057
- return Xo;
3213
+ return Wo;
3058
3214
  }
3059
- }), l = (B) => {
3060
- const v = document.documentElement;
3061
- B == null || B.forEach((x) => {
3062
- v.style.setProperty(x.name, x.value);
3215
+ }), o = (g) => {
3216
+ const w = document.documentElement;
3217
+ g == null || g.forEach((p) => {
3218
+ w.style.setProperty(p.name, p.value);
3063
3219
  });
3064
3220
  };
3065
- return Ct(() => s.platform, (B, v) => {
3066
- B && l(G.value);
3221
+ return Ct(() => r.platform, (g, w) => {
3222
+ g && o(P.value);
3067
3223
  }, { immediate: !0 }), Ct(
3068
- () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
3224
+ () => [r == null ? void 0 : r.content, r == null ? void 0 : r.jsonContents],
3069
3225
  async () => {
3070
- var x, H, K, Q;
3071
- if (((x = s == null ? void 0 : s.jsonContents) == null ? void 0 : x.length) > 0) {
3072
- t.setOriginalData(s == null ? void 0 : s.jsonContents);
3226
+ var p, O, Z, et;
3227
+ if (((p = r == null ? void 0 : r.jsonContents) == null ? void 0 : p.length) > 0) {
3228
+ t.setOriginalData(r == null ? void 0 : r.jsonContents);
3073
3229
  return;
3074
3230
  }
3075
- if (!(s != null && s.content) || ((H = s == null ? void 0 : s.content) == null ? void 0 : H.length) === 0) return;
3076
- r.value = !0, n.setImportLoading(!0);
3077
- let B = [], v = [];
3078
- e.setSelectTitle([]), e.setSelectIndex(""), e.setSelectMenu(""), (Q = (K = s == null ? void 0 : s.content) == null ? void 0 : K.filter((V) => V !== "")) == null || Q.forEach((V) => {
3079
- Yo(V) ? v.push(Ko(V)) : Xe(V) ? v.push(Xe(V)) : We(V) ? v.push(We(V)) : v.push(bo(V));
3080
- }), B = v == null ? void 0 : v[0], await Bo(B), await po(), t.setOriginalData(B), n.setImportLoading(!1);
3231
+ if (!(r != null && r.content) || ((O = r == null ? void 0 : r.content) == null ? void 0 : O.length) === 0) return;
3232
+ s.value = !0, i.setImportLoading(!0);
3233
+ let g = [], w = [];
3234
+ e.setSelectTitle([]), e.setSelectIndex(""), e.setSelectMenu(""), (et = (Z = r == null ? void 0 : r.content) == null ? void 0 : Z.filter((I) => I !== "")) == null || et.forEach((I) => {
3235
+ Ko(I) ? w.push(Zo(I)) : qe(I) ? w.push(qe(I)) : Qe(I) ? w.push(Qe(I)) : w.push(Bo(I));
3236
+ }), g = w == null ? void 0 : w[0], await Co(g), await Po(), t.setOriginalData(g), i.setImportLoading(!1);
3081
3237
  },
3082
3238
  { deep: !0, immediate: !0 }
3083
- ), (B, v) => (g(), j("div", zi, [
3084
- a.platform === "browser" ? (g(), rt(Gi, {
3239
+ ), (g, w) => (f(), j("div", Zi, [
3240
+ a.platform === "browser" ? (f(), it(ki, {
3085
3241
  key: 0,
3086
3242
  showButton: a.showButton
3087
3243
  }, {
3088
- default: b(() => [
3089
- he(B.$slots, "default", {}, void 0, !0)
3244
+ default: v(() => [
3245
+ re(g.$slots, "default", {}, void 0, !0)
3090
3246
  ]),
3091
3247
  _: 3
3092
- }, 8, ["showButton"])) : (g(), rt(Ui, {
3248
+ }, 8, ["showButton"])) : (f(), it(Ki, {
3093
3249
  key: 1,
3094
3250
  windowConfig: a.windowConfig,
3095
3251
  showButton: a.showButton
3096
3252
  }, {
3097
- default: b(() => [
3098
- he(B.$slots, "default", {}, void 0, !0)
3253
+ default: v(() => [
3254
+ re(g.$slots, "default", {}, void 0, !0)
3099
3255
  ]),
3100
3256
  _: 3
3101
3257
  }, 8, ["windowConfig", "showButton"]))
3102
3258
  ]));
3103
3259
  }
3104
- }, $i = /* @__PURE__ */ Vt(Hi, [["__scopeId", "data-v-48bd98a2"]]), Ni = { class: "add-model-content" }, Vi = {
3260
+ }, Wi = /* @__PURE__ */ zt(Xi, [["__scopeId", "data-v-48bd98a2"]]), qi = { class: "add-model-content" }, Qi = {
3105
3261
  key: 0,
3106
3262
  class: "model-operate"
3107
- }, Ii = { class: "model-select" }, Yi = { class: "model-fill" }, Ki = {
3263
+ }, ta = { class: "model-select" }, ea = { class: "model-fill" }, oa = {
3108
3264
  key: 1,
3109
3265
  class: "model-view"
3110
- }, Zi = {
3266
+ }, na = {
3111
3267
  __name: "index",
3112
3268
  props: {
3113
3269
  mode: {
@@ -3133,136 +3289,136 @@ const Po = /* @__PURE__ */ Vt(yo, [["render", ni], ["__scopeId", "data-v-5c2d7ed
3133
3289
  },
3134
3290
  emits: ["change", "contentChange"],
3135
3291
  setup(a, { emit: t }) {
3136
- const e = a, n = t, r = R([]), s = R(0), G = R([]), l = R([]), B = R(0), v = Be(Dt), x = be(Dt), { itemData: H, originalData: K } = St(v), { activeMenuPath: Q, platform: V } = St(x), A = R(null), p = R(0), C = R([]);
3137
- R("");
3138
- const S = R(0);
3292
+ const e = a, i = t, s = k([]), r = k(0), P = k([]), o = k([]), g = k(0), w = Re(At), p = Ce(At), { itemData: O, originalData: Z } = St(w), { activeMenuPath: et, platform: I } = St(p), L = k(null), m = k(0), M = k([]);
3293
+ k("");
3294
+ const S = k(0);
3139
3295
  Ct(
3140
3296
  () => e == null ? void 0 : e.pathContent,
3141
3297
  () => {
3142
- (e == null ? void 0 : e.pathContent) !== "" && v.setSystemPath(e == null ? void 0 : e.pathContent);
3298
+ (e == null ? void 0 : e.pathContent) !== "" && w.setSystemPath(e == null ? void 0 : e.pathContent);
3143
3299
  },
3144
3300
  {
3145
3301
  deep: !0,
3146
3302
  immediate: !0
3147
3303
  }
3148
3304
  );
3149
- const M = (o) => {
3150
- n("contentChange", o);
3151
- }, f = (o) => {
3152
- var m;
3153
- const _ = (m = ae(o == null ? void 0 : o.wholeValue)) == null ? void 0 : m.map((L) => {
3154
- var ct;
3155
- return (L == null ? void 0 : L.comp) === "Form" && (L.compData = (ct = L.compData) == null ? void 0 : ct.map((tt) => ((tt == null ? void 0 : tt.key) === "formContent" && (tt.contents = Zo(tt == null ? void 0 : tt.contents)), tt))), L;
3305
+ const T = (n) => {
3306
+ i("contentChange", n);
3307
+ }, b = (n) => {
3308
+ var u;
3309
+ const J = (u = se(n == null ? void 0 : n.wholeValue)) == null ? void 0 : u.map((G) => {
3310
+ var lt;
3311
+ return (G == null ? void 0 : G.comp) === "Form" && (G.compData = (lt = G.compData) == null ? void 0 : lt.map((V) => ((V == null ? void 0 : V.key) === "formContent" && (V.contents = Xo(V == null ? void 0 : V.contents)), V))), G;
3156
3312
  });
3157
- n("change", {
3158
- originalContents: K.value,
3159
- currentContents: o == null ? void 0 : o.wholeValue,
3160
- editContent: o == null ? void 0 : o.editValue,
3161
- arrayToContents: _
3313
+ i("change", {
3314
+ originalContents: Z.value,
3315
+ currentContents: n == null ? void 0 : n.wholeValue,
3316
+ editContent: n == null ? void 0 : n.editValue,
3317
+ arrayToContents: J
3162
3318
  });
3163
3319
  };
3164
3320
  Ct(
3165
- () => G.value,
3321
+ () => P.value,
3166
3322
  () => {
3167
- S.value === G.value.length && G.value.length !== 0 && (r.value = G.value);
3323
+ S.value === P.value.length && P.value.length !== 0 && (s.value = P.value);
3168
3324
  },
3169
3325
  { deep: !0, immediate: !0 }
3170
3326
  );
3171
- const i = () => {
3172
- A.value !== null && A.value.click();
3173
- }, u = async (o) => {
3174
- const _ = o.target.files;
3175
- if (!_) return;
3176
- new FileReader(), r.value = [], G.value = [], S.value = _.length;
3177
- const m = Array.from(_).map(async (L) => await new Promise((ct) => {
3178
- const tt = new FileReader();
3179
- tt.onload = (jt) => {
3327
+ const C = () => {
3328
+ L.value !== null && L.value.click();
3329
+ }, l = async (n) => {
3330
+ const J = n.target.files;
3331
+ if (!J) return;
3332
+ new FileReader(), s.value = [], P.value = [], S.value = J.length;
3333
+ const u = Array.from(J).map(async (G) => await new Promise((lt) => {
3334
+ const V = new FileReader();
3335
+ V.onload = (Dt) => {
3180
3336
  try {
3181
- G.value.push(jt.target.result), p.value++;
3182
- } catch (It) {
3183
- console.error("解析失败:", It);
3337
+ P.value.push(Dt.target.result), m.value++;
3338
+ } catch (Ft) {
3339
+ console.error("解析失败:", Ft);
3184
3340
  return;
3185
3341
  }
3186
- }, tt.onerror = () => ct(`读取 ${L.name} 失败`), tt.readAsText(L), o.target.value = "", A.value = null, s.value++;
3342
+ }, V.onerror = () => lt(`读取 ${G.name} 失败`), V.readAsText(G), n.target.value = "", L.value = null, r.value++;
3187
3343
  }));
3188
- await Promise.all(m);
3344
+ await Promise.all(u);
3189
3345
  };
3190
3346
  return Ct(
3191
3347
  () => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
3192
3348
  async () => {
3193
- await po(), r.value = e.content, l.value = e == null ? void 0 : e.jsonContents;
3349
+ await Po(), s.value = e.content, o.value = e == null ? void 0 : e.jsonContents;
3194
3350
  },
3195
3351
  { deep: !0, immediate: !0 }
3196
3352
  ), Ct(
3197
- () => p.value,
3353
+ () => m.value,
3198
3354
  () => {
3199
- var o;
3200
- ((o = C.value) == null ? void 0 : o.length) !== 0 && (v.setOriginalData(C.value), v.setItemData(C.value));
3355
+ var n;
3356
+ ((n = M.value) == null ? void 0 : n.length) !== 0 && (w.setOriginalData(M.value), w.setItemData(M.value));
3201
3357
  },
3202
3358
  { deep: !0, immediate: !0 }
3203
- ), (o, _) => {
3204
- const m = it("svg-icon"), L = it("el-button");
3205
- return g(), j("div", Ni, [
3206
- (e == null ? void 0 : e.mode) === "edit" ? (g(), j("div", Vi, [
3207
- c("div", Ii, [
3208
- P(Oe)
3359
+ ), (n, J) => {
3360
+ const u = X("svg-icon"), G = X("el-button");
3361
+ return f(), j("div", qi, [
3362
+ (e == null ? void 0 : e.mode) === "edit" ? (f(), j("div", Qi, [
3363
+ c("div", ta, [
3364
+ _(ze)
3209
3365
  ]),
3210
- (g(), j("div", {
3366
+ (f(), j("div", {
3211
3367
  class: "model-show",
3212
- key: B.value
3368
+ key: g.value
3213
3369
  }, [
3214
- P(Ue)
3370
+ _($e)
3215
3371
  ])),
3216
- c("div", Yi, [
3217
- P(ze)
3372
+ c("div", ea, [
3373
+ _(He)
3218
3374
  ])
3219
- ])) : pt("", !0),
3220
- (e == null ? void 0 : e.mode) === "view" ? (g(), j("div", Ki, [
3221
- (g(), rt($i, {
3375
+ ])) : st("", !0),
3376
+ (e == null ? void 0 : e.mode) === "view" ? (f(), j("div", oa, [
3377
+ (f(), it(Wi, {
3222
3378
  showButton: a.showButton,
3223
- platform: h(V),
3224
- content: r.value,
3225
- onChange: f,
3226
- jsonContents: l.value,
3227
- onContentChange: M,
3228
- key: B.value
3379
+ platform: h(I),
3380
+ content: s.value,
3381
+ onChange: b,
3382
+ jsonContents: o.value,
3383
+ onContentChange: T,
3384
+ key: g.value
3229
3385
  }, {
3230
- default: b(() => {
3231
- var ct;
3386
+ default: v(() => {
3387
+ var lt;
3232
3388
  return [
3233
- ((ct = e == null ? void 0 : e.jsonContents) == null ? void 0 : ct.length) === 0 && (e != null && e.showButton) ? (g(), rt(L, {
3389
+ ((lt = e == null ? void 0 : e.jsonContents) == null ? void 0 : lt.length) === 0 && (e != null && e.showButton) ? (f(), it(G, {
3234
3390
  key: 0,
3235
3391
  id: "transparentBgButton",
3236
- onClick: i
3392
+ onClick: C
3237
3393
  }, {
3238
- icon: b(() => [
3239
- P(m, { name: "import" })
3394
+ icon: v(() => [
3395
+ _(u, { name: "import" })
3240
3396
  ]),
3241
- default: b(() => [
3242
- (g(), j("input", {
3397
+ default: v(() => [
3398
+ (f(), j("input", {
3243
3399
  type: "file",
3244
- key: s.value,
3400
+ key: r.value,
3245
3401
  ref_key: "fileInput",
3246
- ref: A,
3402
+ ref: L,
3247
3403
  accept: ".txt, .inm",
3248
- onChange: u,
3404
+ onChange: l,
3249
3405
  style: { display: "none" },
3250
3406
  multiple: ""
3251
3407
  }, null, 32)),
3252
- _[0] || (_[0] = xt(" 导入模型 "))
3408
+ J[0] || (J[0] = xt(" 导入模型 "))
3253
3409
  ]),
3254
3410
  _: 1,
3255
3411
  __: [0]
3256
- })) : pt("", !0)
3412
+ })) : st("", !0)
3257
3413
  ];
3258
3414
  }),
3259
3415
  _: 1
3260
3416
  }, 8, ["showButton", "platform", "content", "jsonContents"]))
3261
- ])) : pt("", !0)
3417
+ ])) : st("", !0)
3262
3418
  ]);
3263
3419
  };
3264
3420
  }
3265
- }, pa = /* @__PURE__ */ Vt(Zi, [["__scopeId", "data-v-1632d5fe"]]);
3421
+ }, ya = /* @__PURE__ */ zt(na, [["__scopeId", "data-v-1632d5fe"]]);
3266
3422
  export {
3267
- pa as default
3423
+ ya as default
3268
3424
  };