ss-component-new 1.1.520 → 1.1.522

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.
@@ -0,0 +1,1173 @@
1
+ import { resolveComponent as C, createBlock as S, openBlock as r, withCtx as o, createVNode as t, createElementVNode as h, toDisplayString as oe, ref as c, onMounted as vt, watch as E, createElementBlock as P, Fragment as Be, renderList as De, createCommentVNode as U, normalizeStyle as yt, defineComponent as We, computed as Re, resolveDirective as Qe, withDirectives as Te, unref as a, createTextVNode as z, renderSlot as ve, vShow as Se, resolveDynamicComponent as Ye } from "vue";
2
+ import { m as je, a as Ve, b as Ne } from "./index-CIIEhoPK.js";
3
+ import Ze from "./index-DEe2zsga.js";
4
+ import { _ as Ct, o as et, c as tt, a as at, b as ot, d as nt, s as ae, g as lt, e as it, f as st, h as rt, i as wt, j as Bt } from "./index.vue_vue_type_style_index_0_scoped_b9caa997_lang-hmqNLVAu.js";
5
+ import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { p as q, s as X, u as $e, e as ut, c as Ae, d as we, g as kt } from "./menu-C2j1i_cN.js";
7
+ import { u as ct } from "./crypto-CMXGCdQv.js";
8
+ import { S as ge } from "./index-BHtNKL1L.js";
9
+ import { u as Me } from "./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-D9glQKd6.js";
10
+ import { u as Ue, a as Ft, l as dt, g as bt, b as Rt } from "./index-C2cfRaP7.js";
11
+ import { _ as mt, a as Tt, s as St } from "./index-CaZmDQQH.js";
12
+ import { _ as pt } from "./index.vue_vue_type_script_setup_true_lang-Bk3kThxx.js";
13
+ import He from "./threeModel-CkbHdhYr.js";
14
+ import { u as At } from "./index-Dt0W4n11.js";
15
+ import { d as Je } from "./index-CL2WV4Ur.js";
16
+ import { useRouter as $t } from "vue-router";
17
+ import { a as Mt } from "./array-Ba5TFfWm.js";
18
+ import { c as Pt, b as xt } from "./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B1zL6TmK.js";
19
+ function Dt(F, Y, e, w, A, I) {
20
+ const l = C("svg-icon"), O = C("ssMenu");
21
+ return r(), S(O, {
22
+ mode: F.mode,
23
+ menuList: F.renderMenuList,
24
+ onClickMenu: F.clickMenu,
25
+ onOpenMenu: F.openMenu,
26
+ onCloseMenu: F.closeMenu
27
+ }, {
28
+ title: o(({ menu: x }) => [
29
+ t(l, {
30
+ name: x.icon ?? "Fold",
31
+ style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
32
+ }, null, 8, ["name"]),
33
+ h("span", null, oe(x.title ?? ""), 1)
34
+ ]),
35
+ _: 1
36
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
37
+ }
38
+ const ht = /* @__PURE__ */ ye(Ct, [["render", Dt], ["__scopeId", "data-v-5c2d7ed2"]]), jt = { class: "bread-content" }, Vt = ["onClick"], Nt = {
39
+ key: 0,
40
+ class: "split-title"
41
+ }, Ut = {
42
+ __name: "index",
43
+ props: {
44
+ breadArray: {
45
+ type: Array,
46
+ default: () => []
47
+ }
48
+ },
49
+ emits: ["click"],
50
+ setup(F, { emit: Y }) {
51
+ const e = F, w = c([]), A = Y;
52
+ vt(() => {
53
+ w.value = e == null ? void 0 : e.breadArray;
54
+ }), E(
55
+ () => e == null ? void 0 : e.breadArray,
56
+ () => {
57
+ w.value = e == null ? void 0 : e.breadArray;
58
+ },
59
+ { deep: !0, immediate: !0 }
60
+ );
61
+ const I = (l) => {
62
+ A("click", l);
63
+ };
64
+ return (l, O) => (r(), P("div", jt, [
65
+ (r(!0), P(Be, null, De(w.value, (x, $) => {
66
+ var ne;
67
+ return r(), P("div", {
68
+ key: $,
69
+ class: "bread-item"
70
+ }, [
71
+ h("div", {
72
+ class: "bread-title",
73
+ onClick: (Z) => I(x),
74
+ style: yt({ opacity: ((ne = w.value) == null ? void 0 : ne.length) - 1 === $ ? "0.7" : "1" })
75
+ }, oe(x.value), 13, Vt),
76
+ $ !== w.value.length - 1 && Array.isArray(w.value) ? (r(), P("div", Nt, oe("/"))) : U("", !0)
77
+ ]);
78
+ }), 128))
79
+ ]));
80
+ }
81
+ }, ft = /* @__PURE__ */ ye(Ut, [["__scopeId", "data-v-ded7e2bd"]]), Et = { class: "structure-buttons" }, It = { class: "structure-paths" }, Ot = { class: "client-header-user" }, Lt = { class: "model-select" }, Kt = { class: "model-show" }, zt = { class: "model-fill" }, Gt = { class: "client-header-menu" }, Xt = { class: "client-header-user" }, qt = { class: "drop-menu" }, Ht = { class: "client-main-operate" }, Jt = {
82
+ key: 0,
83
+ class: "item-view-group"
84
+ }, Wt = /* @__PURE__ */ We({
85
+ __name: "index2",
86
+ props: {
87
+ windowConfig: {
88
+ type: Object,
89
+ default: () => {
90
+ }
91
+ },
92
+ showButton: {
93
+ type: Boolean,
94
+ default: !0
95
+ }
96
+ },
97
+ setup(F) {
98
+ const Y = Ue(q), { selectTitle: e } = X(Y), w = ct(), { loginUserInfo: A } = X(w), I = Me(q), { isEdit: l, routeToChildPath: O } = X(I), x = $e(q), { importLoading: $, activeTopMenuPath: ne, activeAsideMenu: Z } = X(x), b = c(""), D = Re(() => Z.value.isRouter), H = () => {
99
+ sessionStorage.clear(), window.location.reload();
100
+ }, J = () => {
101
+ x.setActiveMenuPath(O.value), I.setRouteToChildPath("");
102
+ };
103
+ return (ee, f) => {
104
+ const g = C("el-button"), W = C("el-avatar"), fe = C("el-header"), se = C("el-container"), le = C("el-icon"), ke = C("el-input"), de = C("ss-button"), p = C("el-aside"), j = C("router-view"), R = C("el-main"), M = Qe("loading");
105
+ return r(), P(Be, null, [
106
+ Te(t(se, { class: "client-container" }, {
107
+ default: o(() => [
108
+ t(fe, { class: "client-structure-header" }, {
109
+ default: o(() => {
110
+ var B;
111
+ return [
112
+ h("div", Et, [
113
+ t(g, {
114
+ id: "transparentBgButton",
115
+ onClick: a(et)
116
+ }, {
117
+ default: o(() => f[2] || (f[2] = [
118
+ z(" 返回页面 ")
119
+ ])),
120
+ _: 1,
121
+ __: [2]
122
+ }, 8, ["onClick"]),
123
+ t(g, {
124
+ id: "transparentBgButton",
125
+ onClick: f[0] || (f[0] = (n) => {
126
+ var L, G;
127
+ return a(tt)((G = (L = a(e)) == null ? void 0 : L.map((me) => me.value)) == null ? void 0 : G.join("/"));
128
+ })
129
+ }, {
130
+ icon: o(() => [
131
+ t(ge, { name: "Store" })
132
+ ]),
133
+ default: o(() => [
134
+ f[3] || (f[3] = z(" 保存页面 "))
135
+ ]),
136
+ _: 1,
137
+ __: [3]
138
+ })
139
+ ]),
140
+ h("div", It, [
141
+ (r(), S(ft, {
142
+ key: a(e),
143
+ breadArray: a(e),
144
+ onClick: a(at)
145
+ }, null, 8, ["breadArray", "onClick"]))
146
+ ]),
147
+ h("div", Ot, [
148
+ ve(ee.$slots, "default", {}, void 0, !0),
149
+ t(W, {
150
+ size: 35,
151
+ src: (B = a(A)) == null ? void 0 : B.avatarUrl
152
+ }, {
153
+ default: o(() => {
154
+ var n;
155
+ return [
156
+ z(oe(((n = a(A)) == null ? void 0 : n.account) ?? "未知"), 1)
157
+ ];
158
+ }),
159
+ _: 1
160
+ }, 8, ["src"])
161
+ ])
162
+ ];
163
+ }),
164
+ _: 3
165
+ }),
166
+ a(l) === "edit" ? (r(), S(se, {
167
+ key: 0,
168
+ class: "model-operate",
169
+ style: { "margin-top": "10px", height: "0px" }
170
+ }, {
171
+ default: o(() => [
172
+ h("div", Lt, [
173
+ t(je)
174
+ ]),
175
+ h("div", Kt, [
176
+ t(Ve)
177
+ ]),
178
+ h("div", zt, [
179
+ t(Ne)
180
+ ])
181
+ ]),
182
+ _: 1
183
+ })) : U("", !0)
184
+ ]),
185
+ _: 3
186
+ }, 512), [
187
+ [Se, a(l) === "edit"]
188
+ ]),
189
+ Te((r(), S(se, {
190
+ class: "client-container",
191
+ "element-loading-text": "正在加载页面数据..."
192
+ }, {
193
+ default: o(() => [
194
+ t(fe, { class: "client-header" }, {
195
+ default: o(() => [
196
+ f[6] || (f[6] = h("div", { class: "client-header-logo" }, " ISIP ", -1)),
197
+ h("div", Gt, [
198
+ t(ht, { mode: "horizontal" })
199
+ ]),
200
+ h("div", Xt, [
201
+ t(ke, {
202
+ modelValue: b.value,
203
+ "onUpdate:modelValue": f[1] || (f[1] = (B) => b.value = B),
204
+ clearable: "",
205
+ placeholder: "搜索",
206
+ style: { width: "130px" }
207
+ }, {
208
+ prefix: o(() => [
209
+ t(le, { class: "el-input__icon" }, {
210
+ default: o(() => [
211
+ t(a(ut))
212
+ ]),
213
+ _: 1
214
+ })
215
+ ]),
216
+ _: 1
217
+ }, 8, ["modelValue"]),
218
+ F.showButton ? (r(), S(g, {
219
+ key: 0,
220
+ id: "transparentBgButton",
221
+ onClick: a(ot)
222
+ }, {
223
+ icon: o(() => [
224
+ t(ge, { name: "App" })
225
+ ]),
226
+ default: o(() => [
227
+ f[4] || (f[4] = z(" 生成APP "))
228
+ ]),
229
+ _: 1,
230
+ __: [4]
231
+ }, 8, ["onClick"])) : U("", !0),
232
+ F.showButton && a(l) === "view" ? (r(), S(g, {
233
+ key: 1,
234
+ id: "transparentBgButton",
235
+ onClick: a(nt)
236
+ }, {
237
+ icon: o(() => [
238
+ t(ge, { name: "write" })
239
+ ]),
240
+ default: o(() => [
241
+ f[5] || (f[5] = z(" 修改布局 "))
242
+ ]),
243
+ _: 1,
244
+ __: [5]
245
+ }, 8, ["onClick"])) : U("", !0),
246
+ ve(ee.$slots, "default", {}, void 0, !0),
247
+ t(mt, null, {
248
+ dropTitle: o(() => {
249
+ var B;
250
+ return [
251
+ t(pt, {
252
+ size: "35",
253
+ avatarUrl: (B = a(A)) == null ? void 0 : B.avatarUrl,
254
+ showCropper: !1,
255
+ banClick: !0
256
+ }, {
257
+ avatarDefault: o(() => {
258
+ var n;
259
+ return [
260
+ z(oe(((n = a(A)) == null ? void 0 : n.account) ?? "未知"), 1)
261
+ ];
262
+ }),
263
+ _: 1
264
+ }, 8, ["avatarUrl"])
265
+ ];
266
+ }),
267
+ dropMenu: o(() => [
268
+ h("div", qt, [
269
+ t(de, {
270
+ emptyColor: !0,
271
+ class: "menu-button",
272
+ onClickTrigger: H,
273
+ modelValue: "退出登录",
274
+ buttonType: ""
275
+ })
276
+ ])
277
+ ]),
278
+ _: 1
279
+ })
280
+ ])
281
+ ]),
282
+ _: 3,
283
+ __: [6]
284
+ }),
285
+ t(se, { class: "client-body" }, {
286
+ default: o(() => [
287
+ t(R, { class: "client-main" }, {
288
+ default: o(() => {
289
+ var B;
290
+ return [
291
+ t(p, { class: "client-aside" }, {
292
+ default: o(() => [
293
+ t(Ze, { mode: "vertical" })
294
+ ]),
295
+ _: 1
296
+ }),
297
+ h("div", Ht, [
298
+ D.value ? (r(), S(j, { key: 0 })) : U("", !0),
299
+ a(O) !== "" ? (r(), S(de, {
300
+ key: 1,
301
+ class: "calculator-content back-content",
302
+ onClickTrigger: J,
303
+ modelValue: "返回"
304
+ })) : U("", !0),
305
+ D.value ? U("", !0) : (r(!0), P(Be, { key: 2 }, De((B = a(Ae)(a(ae))) == null ? void 0 : B.filter((n) => n.comp !== "FormTop"), (n, L) => {
306
+ var G;
307
+ return r(), P("div", {
308
+ class: "item-view-content",
309
+ key: L
310
+ }, [
311
+ ((G = n == null ? void 0 : n.comp) == null ? void 0 : G.toUpperCase()) !== "TABLE" && n.name ? (r(), P("div", Jt, oe(n.name), 1)) : U("", !0),
312
+ (r(), S(Ye(a(lt)(n.comp)), {
313
+ compName: n.name,
314
+ itemData: n == null ? void 0 : n.compData,
315
+ childItemData: n == null ? void 0 : n.itemChildData,
316
+ key: (n == null ? void 0 : n.id) ?? L,
317
+ onChange: a(rt),
318
+ index: (n == null ? void 0 : n.id) ?? L,
319
+ onContentChange: a(st),
320
+ onPageChange: a(it)
321
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
322
+ ]);
323
+ }), 128))
324
+ ])
325
+ ];
326
+ }),
327
+ _: 1
328
+ })
329
+ ]),
330
+ _: 1
331
+ })
332
+ ]),
333
+ _: 3
334
+ })), [
335
+ [Se, a(l) === "view"],
336
+ [M, a($)]
337
+ ])
338
+ ], 64);
339
+ };
340
+ }
341
+ }), Qt = /* @__PURE__ */ ye(Wt, [["__scopeId", "data-v-1c30d678"]]), Pe = [
342
+ {
343
+ key: "FitCurve_Eleven",
344
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
345
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",
346
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"
347
+ },
348
+ {
349
+ key: "MakeShape",
350
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",
351
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",
352
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"
353
+ },
354
+ {
355
+ key: "FillEmpty",
356
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",
357
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",
358
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"
359
+ },
360
+ {
361
+ key: "ToolPathFakeFast",
362
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",
363
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",
364
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"
365
+ },
366
+ {
367
+ key: "FiveAxisCalculator",
368
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",
369
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",
370
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"
371
+ },
372
+ {
373
+ key: "DetectionAlgorithm",
374
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",
375
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",
376
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"
377
+ },
378
+ {
379
+ key: "FeatureSelectionAlgorithm_FFS",
380
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",
381
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",
382
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"
383
+ },
384
+ {
385
+ key: "AIParameterOptimization",
386
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
387
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
388
+ }
389
+ ], xe = [
390
+ {
391
+ key: "型线生成",
392
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
393
+ },
394
+ {
395
+ key: "曲面生成",
396
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"
397
+ },
398
+ {
399
+ key: "叶片生成",
400
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"
401
+ },
402
+ {
403
+ key: "轨迹规划",
404
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"
405
+ },
406
+ {
407
+ key: "加工规划",
408
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"
409
+ },
410
+ {
411
+ key: "产品检测",
412
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"
413
+ },
414
+ {
415
+ key: "参数筛选训练方法",
416
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
417
+ }
418
+ // {
419
+ // key: "参数筛选推理",
420
+ // value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
421
+ // }
422
+ ], Yt = { class: "structure-buttons" }, Zt = { class: "structure-paths" }, ea = { class: "client-header-user" }, ta = { class: "model-select" }, aa = { class: "model-show" }, oa = { class: "model-fill" }, na = { class: "client-header-menu" }, la = { class: "client-header-user" }, ia = { class: "drop-menu" }, sa = { class: "client-main-operate" }, ra = {
423
+ key: 0,
424
+ class: "item-view-group"
425
+ }, ua = /* @__PURE__ */ We({
426
+ __name: "index2",
427
+ props: {
428
+ windowConfig: {
429
+ type: Object,
430
+ default: () => {
431
+ }
432
+ },
433
+ showButton: {
434
+ type: Boolean,
435
+ default: !0
436
+ }
437
+ },
438
+ emits: ["showChild", "buildContent"],
439
+ setup(F, { emit: Y }) {
440
+ const e = Ue(q), w = c(!1);
441
+ c(0), c(!1);
442
+ const { selectTitle: A } = X(e), I = c(!1), l = c(!1);
443
+ c(!1);
444
+ const O = Ft(q), x = c(!1), { tableShowThree: $ } = X(O), ne = ct(), { loginUserInfo: Z } = X(ne);
445
+ c(null);
446
+ const b = Me(q), { isEdit: D } = X(b), H = $e(q), J = $t(), ee = At(q), { objUrl: f, blobUrls: g } = X(ee), W = c(null);
447
+ c(!1);
448
+ const fe = c(!0);
449
+ c(!1);
450
+ const { importLoading: se, activeMenuPath: le, activeTopMenuPath: ke, platName: de, activeAsideMenu: p } = X(H), j = c(!1), R = c(!1), M = c(!1), B = Y;
451
+ E(() => le.value, async (i) => {
452
+ i && (M.value = !0), i === "弯管仿真加工管理/仿真动画生成" ? j.value = !0 : j.value = !1, i === "弯管仿真加工管理/程序输出" ? R.value = !0 : R.value = !1, xe != null && xe.find((u) => {
453
+ var k;
454
+ return (u == null ? void 0 : u.key) === ((k = i == null ? void 0 : i.split("/")) == null ? void 0 : k[(i == null ? void 0 : i.split("/").length) - 1]);
455
+ }) ? x.value = !0 : x.value = !1;
456
+ }, { immediate: !0 });
457
+ const n = (i) => {
458
+ if ((i == null ? void 0 : i.type) === "table") {
459
+ let u = Object.values(i == null ? void 0 : i.row), k = u == null ? void 0 : u.find((v) => typeof v == "string" && ((v == null ? void 0 : v.includes(".urdf")) || (v == null ? void 0 : v.includes(".obj"))));
460
+ k && B("showChild", {
461
+ url: k,
462
+ row: i == null ? void 0 : i.row
463
+ });
464
+ }
465
+ }, L = () => {
466
+ sessionStorage.clear(), J.go(0);
467
+ }, G = async (i) => {
468
+ var v, _, y, s, K, Q, d;
469
+ const u = (v = i == null ? void 0 : i.split("/")) == null ? void 0 : v[0], k = await kt({
470
+ key: {
471
+ type: "mainEquip",
472
+ systemKey: sessionStorage.getItem("systemKey"),
473
+ pageKey: u
474
+ }
475
+ });
476
+ return ((_ = k == null ? void 0 : k.data) == null ? void 0 : _.type) === "success" ? ((d = (Q = (K = (s = (y = k == null ? void 0 : k.data) == null ? void 0 : y.result) == null ? void 0 : s[0]) == null ? void 0 : K.value) == null ? void 0 : Q.tableData) == null ? void 0 : d.隐藏三维显示) !== !0 : !0;
477
+ };
478
+ E(
479
+ () => ae.value,
480
+ () => {
481
+ var i, u, k, v, _;
482
+ if (((i = ae.value) == null ? void 0 : i.length) === 2 && ((u = ae.value) != null && u.find((y) => (y == null ? void 0 : y.name) === "输入")) && ((k = ae.value) != null && k.find((y) => (y == null ? void 0 : y.name) === "输出"))) {
483
+ const y = (v = ae.value) == null ? void 0 : v.find((s) => (s == null ? void 0 : s.name) === "输出");
484
+ l.value = ((_ = y == null ? void 0 : y.comp) == null ? void 0 : _.toUpperCase()) === "FORM", I.value = !0;
485
+ } else
486
+ I.value = !1, l.value = !1;
487
+ },
488
+ { deep: !0, immediate: !0 }
489
+ ), E(
490
+ () => le.value,
491
+ async () => {
492
+ le.value && (fe.value = await G(le.value));
493
+ },
494
+ { deep: !0, immediate: !0 }
495
+ ), E(
496
+ () => [f.value, W.value],
497
+ () => {
498
+ var i;
499
+ ((i = f.value) == null ? void 0 : i.length) > 0 && W.value && W.value.addModelsFromUrls(f.value);
500
+ },
501
+ { immediate: !0, deep: !0 }
502
+ ), E(
503
+ () => g == null ? void 0 : g.value,
504
+ async () => {
505
+ var i, u, k, v;
506
+ if (g != null && g.value && ((i = g == null ? void 0 : g.value) == null ? void 0 : i.length) > 0 && !x.value && !((u = ae.value) != null && u.find((_) => (_ == null ? void 0 : _.name) === "输入") && ((k = ae.value) != null && k.find((_) => (_ == null ? void 0 : _.name) === "输出")))) {
507
+ let _ = [];
508
+ const y = await ((v = Ae(g == null ? void 0 : g.value)) == null ? void 0 : v.map(async (s) => {
509
+ var re, Fe, N, m, ie, ue, be, Ee, Ie, Oe;
510
+ let K, Q, d;
511
+ s != null && s.blob.includes("undefined") ? d = (Fe = (re = s == null ? void 0 : s.blob) == null ? void 0 : re.split("undefined,")) == null ? void 0 : Fe[1] : d = s == null ? void 0 : s.blob;
512
+ let te = d == null ? void 0 : d.split(",");
513
+ if ((te == null ? void 0 : te.length) > 1) {
514
+ let he = await (te == null ? void 0 : te.map(async (V) => {
515
+ var ce, Le, Ke, ze, Ge, Xe;
516
+ K = await we.get(V, {
517
+ responseType: "blob",
518
+ headers: {
519
+ "Content-Type": "application/json"
520
+ }
521
+ });
522
+ let _e = [];
523
+ if (((ce = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : ce.length) > 0) {
524
+ let _t = await ((Le = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Le.map(async (gt) => {
525
+ let qe = await we.get(gt, {
526
+ responseType: "blob",
527
+ headers: {
528
+ "Content-Type": "application/json"
529
+ }
530
+ });
531
+ return _e.push(new Blob([qe.data], {
532
+ type: "application/octet-stream;charset=UTF-8"
533
+ })), qe;
534
+ }));
535
+ await Promise.all(_t);
536
+ }
537
+ return ((ze = V == null ? void 0 : V.split(".")) == null ? void 0 : ze[((Ke = V == null ? void 0 : V.split(".")) == null ? void 0 : Ke.length) - 1]) !== "undefined" && _.push({
538
+ suffix: "." + ((Xe = V == null ? void 0 : V.split(".")) == null ? void 0 : Xe[((Ge = V == null ? void 0 : V.split(".")) == null ? void 0 : Ge.length) - 1]),
539
+ blob: new Blob([K.data], {
540
+ type: "application/octet-stream;charset=UTF-8"
541
+ }),
542
+ mtlBlobs: _e
543
+ }), K;
544
+ }));
545
+ await Promise.all(he);
546
+ } else if (!(d != null && d.includes("https://")) && !(d != null && d.includes("http://"))) {
547
+ K = await Je({
548
+ url: d
549
+ });
550
+ let he = [];
551
+ if (((N = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : N.length) > 0) {
552
+ let V = await ((m = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : m.map(async (_e) => {
553
+ let ce = await Je({
554
+ url: _e
555
+ });
556
+ return he.push(new Blob([ce.data], {
557
+ type: "application/octet-stream;charset=UTF-8"
558
+ })), ce;
559
+ }));
560
+ await Promise.all(V);
561
+ }
562
+ Q = {
563
+ suffix: "." + ((ue = d == null ? void 0 : d.split(".")) == null ? void 0 : ue[((ie = d == null ? void 0 : d.split(".")) == null ? void 0 : ie.length) - 1]),
564
+ blob: new Blob([K.data], {
565
+ type: "application/octet-stream;charset=UTF-8"
566
+ }),
567
+ mtlBlobs: he
568
+ };
569
+ } else {
570
+ K = await we.get(d, {
571
+ responseType: "blob",
572
+ headers: {
573
+ "Content-Type": "application/json"
574
+ }
575
+ });
576
+ let he = [];
577
+ if (((be = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : be.length) > 0) {
578
+ let V = await ((Ee = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Ee.map(async (_e) => {
579
+ let ce = await we.get(_e, {
580
+ responseType: "blob",
581
+ headers: {
582
+ "Content-Type": "application/json"
583
+ }
584
+ });
585
+ return he.push(new Blob([ce.data], {
586
+ type: "application/octet-stream;charset=UTF-8"
587
+ })), ce;
588
+ }));
589
+ await Promise.all(V);
590
+ }
591
+ Q = {
592
+ suffix: "." + ((Oe = d == null ? void 0 : d.split(".")) == null ? void 0 : Oe[((Ie = d == null ? void 0 : d.split(".")) == null ? void 0 : Ie.length) - 1]),
593
+ blob: new Blob([K.data], {
594
+ type: "application/octet-stream;charset=UTF-8"
595
+ }),
596
+ mtlBlobs: he
597
+ };
598
+ }
599
+ Q && _.push(Q);
600
+ }));
601
+ await Promise.all(y), (_ == null ? void 0 : _.length) !== 0 && (w.value = !0, W.value.loadModelByDefaultPath(_));
602
+ }
603
+ },
604
+ { immediate: !0, deep: !0 }
605
+ ), E(
606
+ () => $.value,
607
+ async () => {
608
+ var u, k, v, _;
609
+ if ($.value !== "" && $.value) {
610
+ let y = (u = le.value) == null ? void 0 : u.split("/"), s = y[(y == null ? void 0 : y.length) - 2];
611
+ const Q = (((k = Pe == null ? void 0 : Pe.find((re) => (re == null ? void 0 : re.key) === s)) == null ? void 0 : k.download) ?? "") + "/" + $.value, d = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), te = await we.post(Q, null, {
612
+ responseType: "blob",
613
+ // 必须设置
614
+ headers: {
615
+ Authorization: d,
616
+ baseURL: "http://139.196.154.85:20025",
617
+ "Content-Type": "application/json"
618
+ }
619
+ });
620
+ var i = new Blob([te.data], {
621
+ type: "application/octet-stream;charset=UTF-8"
622
+ });
623
+ "" + ((_ = (v = $.value) == null ? void 0 : v.split(".")) == null ? void 0 : _[1]);
624
+ }
625
+ },
626
+ { deep: !0, immediate: !0 }
627
+ );
628
+ const me = c("");
629
+ c("open"), c("open"), c(!1), Re(() => ae.value);
630
+ const Ce = Re(() => p.value.isRouter), pe = c(!1), T = () => {
631
+ pe.value = !0, setTimeout(() => {
632
+ W.value.loadModelByDefaultPath([{ suffix: ".urdf" }]);
633
+ }, 1e3);
634
+ };
635
+ return (i, u) => {
636
+ const k = C("el-dialog"), v = C("el-button"), _ = C("el-avatar"), y = C("el-header"), s = C("el-container"), K = C("el-icon"), Q = C("el-input"), d = C("el-aside"), te = C("router-view"), re = C("el-main"), Fe = Qe("loading");
637
+ return r(), P(Be, null, [
638
+ t(k, {
639
+ modelValue: pe.value,
640
+ "onUpdate:modelValue": u[0] || (u[0] = (N) => pe.value = N),
641
+ style: { height: "700px", width: "1800px" }
642
+ }, {
643
+ default: o(() => [
644
+ t(He, {
645
+ ref_key: "threeModelRef",
646
+ ref: W
647
+ }, null, 512)
648
+ ]),
649
+ _: 1
650
+ }, 8, ["modelValue"]),
651
+ Te(t(s, { class: "client-container" }, {
652
+ default: o(() => [
653
+ t(y, { class: "client-structure-header" }, {
654
+ default: o(() => {
655
+ var N;
656
+ return [
657
+ h("div", Yt, [
658
+ t(v, {
659
+ id: "transparentBgButton",
660
+ onClick: a(et)
661
+ }, {
662
+ default: o(() => u[4] || (u[4] = [
663
+ z(" 返回页面 ")
664
+ ])),
665
+ _: 1,
666
+ __: [4]
667
+ }, 8, ["onClick"]),
668
+ t(v, {
669
+ id: "transparentBgButton",
670
+ onClick: u[1] || (u[1] = (m) => {
671
+ var ie, ue;
672
+ return a(tt)((ue = (ie = a(A)) == null ? void 0 : ie.map((be) => be.value)) == null ? void 0 : ue.join("/"));
673
+ })
674
+ }, {
675
+ icon: o(() => [
676
+ t(ge, { name: "Store" })
677
+ ]),
678
+ default: o(() => [
679
+ u[5] || (u[5] = z(" 保存页面 "))
680
+ ]),
681
+ _: 1,
682
+ __: [5]
683
+ })
684
+ ]),
685
+ h("div", Zt, [
686
+ t(ft, {
687
+ breadArray: a(A),
688
+ onClick: a(at)
689
+ }, null, 8, ["breadArray", "onClick"])
690
+ ]),
691
+ h("div", ea, [
692
+ ve(i.$slots, "default", {}, void 0, !0),
693
+ t(_, {
694
+ size: 35,
695
+ src: (N = a(Z)) == null ? void 0 : N.avatarUrl
696
+ }, {
697
+ default: o(() => {
698
+ var m;
699
+ return [
700
+ z(oe(((m = a(Z)) == null ? void 0 : m.account) ?? "未知"), 1)
701
+ ];
702
+ }),
703
+ _: 1
704
+ }, 8, ["src"])
705
+ ])
706
+ ];
707
+ }),
708
+ _: 3
709
+ }),
710
+ a(D) === "edit" ? (r(), S(s, {
711
+ key: 0,
712
+ class: "model-operate",
713
+ style: { "margin-top": "10px", height: "0px" }
714
+ }, {
715
+ default: o(() => [
716
+ h("div", ta, [
717
+ t(je)
718
+ ]),
719
+ h("div", aa, [
720
+ t(Ve)
721
+ ]),
722
+ h("div", oa, [
723
+ t(Ne)
724
+ ])
725
+ ]),
726
+ _: 1
727
+ })) : U("", !0)
728
+ ]),
729
+ _: 3
730
+ }, 512), [
731
+ [Se, a(D) === "edit"]
732
+ ]),
733
+ Te((r(), S(s, {
734
+ class: "client-container",
735
+ "element-loading-text": "正在加载页面数据..."
736
+ }, {
737
+ default: o(() => [
738
+ t(y, { class: "client-header" }, {
739
+ default: o(() => [
740
+ h("div", {
741
+ class: "client-header-logo",
742
+ onClick: T
743
+ }, oe(a(de) === "" ? "CPMPIP" : a(de)), 1),
744
+ h("div", na, [
745
+ t(ht, { mode: "horizontal" })
746
+ ]),
747
+ h("div", la, [
748
+ t(Q, {
749
+ modelValue: me.value,
750
+ "onUpdate:modelValue": u[2] || (u[2] = (N) => me.value = N),
751
+ clearable: "",
752
+ placeholder: "搜索",
753
+ style: { width: "130px" }
754
+ }, {
755
+ prefix: o(() => [
756
+ t(K, { class: "el-input__icon" }, {
757
+ default: o(() => [
758
+ t(a(ut))
759
+ ]),
760
+ _: 1
761
+ })
762
+ ]),
763
+ _: 1
764
+ }, 8, ["modelValue"]),
765
+ F.showButton ? (r(), S(v, {
766
+ key: 0,
767
+ id: "transparentBgButton",
768
+ onClick: a(ot)
769
+ }, {
770
+ icon: o(() => [
771
+ t(ge, { name: "App" })
772
+ ]),
773
+ default: o(() => [
774
+ u[6] || (u[6] = z(" 生成APP "))
775
+ ]),
776
+ _: 1,
777
+ __: [6]
778
+ }, 8, ["onClick"])) : U("", !0),
779
+ F.showButton && a(D) === "view" ? (r(), S(v, {
780
+ key: 1,
781
+ id: "transparentBgButton",
782
+ onClick: a(nt)
783
+ }, {
784
+ icon: o(() => [
785
+ t(ge, { name: "write" })
786
+ ]),
787
+ default: o(() => [
788
+ u[7] || (u[7] = z(" 修改布局 "))
789
+ ]),
790
+ _: 1,
791
+ __: [7]
792
+ }, 8, ["onClick"])) : U("", !0),
793
+ ve(i.$slots, "default", {}, void 0, !0),
794
+ t(mt, null, {
795
+ dropTitle: o(() => {
796
+ var N;
797
+ return [
798
+ t(pt, {
799
+ size: "35",
800
+ avatarUrl: (N = a(Z)) == null ? void 0 : N.avatarUrl,
801
+ showCropper: !1,
802
+ banClick: !0
803
+ }, {
804
+ avatarDefault: o(() => {
805
+ var m;
806
+ return [
807
+ z(oe(((m = a(Z)) == null ? void 0 : m.account) ?? "未知"), 1)
808
+ ];
809
+ }),
810
+ _: 1
811
+ }, 8, ["avatarUrl"])
812
+ ];
813
+ }),
814
+ dropMenu: o(() => [
815
+ h("div", ia, [
816
+ t(Tt, {
817
+ emptyColor: !0,
818
+ class: "menu-button",
819
+ onClickTrigger: L,
820
+ modelValue: "退出登录",
821
+ buttonType: ""
822
+ })
823
+ ])
824
+ ]),
825
+ _: 1
826
+ })
827
+ ])
828
+ ]),
829
+ _: 3
830
+ }),
831
+ t(s, { class: "client-body" }, {
832
+ default: o(() => [
833
+ t(re, { class: "client-main" }, {
834
+ default: o(() => {
835
+ var N;
836
+ return [
837
+ t(d, { class: "client-aside" }, {
838
+ default: o(() => [
839
+ t(Ze, { mode: "vertical" })
840
+ ]),
841
+ _: 1
842
+ }),
843
+ h("div", sa, [
844
+ Ce.value ? (r(), S(te, { key: 0 })) : (r(!0), P(Be, { key: 1 }, De((N = a(Ae)(a(ae))) == null ? void 0 : N.filter((m) => m.comp !== "FormTop"), (m, ie) => {
845
+ var ue;
846
+ return r(), P("div", {
847
+ class: "item-view-content",
848
+ key: ie
849
+ }, [
850
+ ((ue = m == null ? void 0 : m.comp) == null ? void 0 : ue.toUpperCase()) !== "TABLE" && m.name ? (r(), P("div", ra, oe(m.name), 1)) : U("", !0),
851
+ (r(), S(Ye(a(lt)(m.comp)), {
852
+ compName: m.name,
853
+ itemData: m == null ? void 0 : m.compData,
854
+ childItemData: m == null ? void 0 : m.itemChildData,
855
+ key: (m == null ? void 0 : m.id) ?? ie,
856
+ onChange: a(rt),
857
+ index: (m == null ? void 0 : m.id) ?? ie,
858
+ onContentChange: a(st),
859
+ onPageChange: a(it),
860
+ onRowClick: n
861
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
862
+ ]);
863
+ }), 128))
864
+ ])
865
+ ];
866
+ }),
867
+ _: 1
868
+ })
869
+ ]),
870
+ _: 1
871
+ })
872
+ ]),
873
+ _: 3
874
+ })), [
875
+ [Se, a(D) === "view"],
876
+ [Fe, a(se)]
877
+ ]),
878
+ h("div", null, [
879
+ t(St, {
880
+ visible: w.value,
881
+ onBeforeDestroy: u[3] || (u[3] = (N) => w.value = !1),
882
+ style: { height: "700px", width: "1000px" }
883
+ }, {
884
+ default: o(() => [
885
+ t(He, {
886
+ ref_key: "threeModelRef",
887
+ ref: W
888
+ }, null, 512)
889
+ ]),
890
+ _: 1
891
+ }, 8, ["visible"])
892
+ ])
893
+ ], 64);
894
+ };
895
+ }
896
+ }), ca = /* @__PURE__ */ ye(ua, [["__scopeId", "data-v-858c1522"]]), da = { class: "system-wrap" }, ma = {
897
+ __name: "index",
898
+ props: {
899
+ windowConfig: {
900
+ type: Object,
901
+ default: () => {
902
+ }
903
+ },
904
+ platform: {
905
+ type: String,
906
+ default: "browser"
907
+ },
908
+ showButton: {
909
+ type: Boolean,
910
+ default: !0
911
+ },
912
+ content: String,
913
+ jsonContents: Array
914
+ },
915
+ emits: ["buildContent", "showChild"],
916
+ setup(F, { emit: Y }) {
917
+ const e = Me(q), w = Ue(q), A = $e();
918
+ c(!1);
919
+ const I = c(!0), l = F, O = Y, x = (b) => {
920
+ O("showChild", b);
921
+ }, $ = Re(() => {
922
+ switch (l == null ? void 0 : l.platform) {
923
+ case "browser":
924
+ return xt;
925
+ case "client":
926
+ return Pt;
927
+ }
928
+ }), ne = (b) => {
929
+ const D = document.documentElement;
930
+ b == null || b.forEach((H) => {
931
+ D.style.setProperty(H.name, H.value);
932
+ });
933
+ };
934
+ E(() => l.platform, (b, D) => {
935
+ b && ne($.value);
936
+ }, { immediate: !0 });
937
+ const Z = () => {
938
+ O("buildContent");
939
+ };
940
+ return E(
941
+ () => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
942
+ async () => {
943
+ var H, J, ee, f;
944
+ if (((H = l == null ? void 0 : l.jsonContents) == null ? void 0 : H.length) > 0) {
945
+ e.setOriginalData(l == null ? void 0 : l.jsonContents);
946
+ return;
947
+ }
948
+ if (!(l != null && l.content) || ((J = l == null ? void 0 : l.content) == null ? void 0 : J.length) === 0) return;
949
+ I.value = !0, A.setImportLoading(!0);
950
+ let b = [], D = [];
951
+ w.setSelectTitle([]), w.setSelectIndex(""), w.setSelectMenu(""), (f = (ee = l == null ? void 0 : l.content) == null ? void 0 : ee.filter((g) => g !== "")) == null || f.forEach((g) => {
952
+ D.push(wt(g));
953
+ }), b = D == null ? void 0 : D[0], await Bt(b), await dt(), e.setOriginalData(b), A.setImportLoading(!1);
954
+ },
955
+ { deep: !0, immediate: !0 }
956
+ ), (b, D) => (r(), P("div", da, [
957
+ F.platform === "browser" ? (r(), S(Qt, {
958
+ key: 0,
959
+ showButton: F.showButton
960
+ }, {
961
+ default: o(() => [
962
+ ve(b.$slots, "default", {}, void 0, !0)
963
+ ]),
964
+ _: 3
965
+ }, 8, ["showButton"])) : (r(), S(ca, {
966
+ key: 1,
967
+ windowConfig: F.windowConfig,
968
+ showButton: F.showButton,
969
+ onBuildContent: Z,
970
+ onShowChild: x
971
+ }, {
972
+ default: o(() => [
973
+ ve(b.$slots, "default", {}, void 0, !0)
974
+ ]),
975
+ _: 3
976
+ }, 8, ["windowConfig", "showButton"]))
977
+ ]));
978
+ }
979
+ }, pa = /* @__PURE__ */ ye(ma, [["__scopeId", "data-v-5e89b0de"]]), ha = { class: "add-model-content" }, fa = {
980
+ key: 0,
981
+ class: "model-operate"
982
+ }, _a = { class: "model-select" }, ga = { class: "model-fill" }, va = {
983
+ key: 1,
984
+ class: "model-view"
985
+ }, ya = {
986
+ __name: "index",
987
+ props: {
988
+ mode: {
989
+ type: String,
990
+ default: "view"
991
+ },
992
+ content: {
993
+ type: String,
994
+ default: ""
995
+ },
996
+ jsonContents: {
997
+ type: Array,
998
+ default: () => []
999
+ },
1000
+ showButton: {
1001
+ type: Boolean,
1002
+ default: !0
1003
+ },
1004
+ pathContent: {
1005
+ type: String,
1006
+ default: ""
1007
+ },
1008
+ pageKey: {
1009
+ type: String,
1010
+ default: ""
1011
+ }
1012
+ },
1013
+ emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
1014
+ setup(F, { emit: Y }) {
1015
+ const e = F, w = Y, A = c([]), I = c(0), l = c([]), O = c([]), x = c(0), $ = Me(q), ne = $e(q), { itemData: Z, originalData: b } = X($), { activeMenuPath: D, platform: H } = X(ne), J = c(null), ee = c(0), f = c([]);
1016
+ c("");
1017
+ const g = c(0), W = () => {
1018
+ w("buildContent");
1019
+ };
1020
+ E(
1021
+ () => e == null ? void 0 : e.pageKey,
1022
+ async () => {
1023
+ if ((e == null ? void 0 : e.pageKey) !== "") {
1024
+ let p = [];
1025
+ const j = await bt(e == null ? void 0 : e.pageKey, sessionStorage.getItem("systemKey"), "", e == null ? void 0 : e.pageKey);
1026
+ j == null || j.forEach((R) => {
1027
+ var M, B, n, L, G, me;
1028
+ if ((R == null ? void 0 : R.comp) === "Table") {
1029
+ let Ce = (n = (B = (M = R == null ? void 0 : R.compData) == null ? void 0 : M.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : B.contents) == null ? void 0 : n.map((T) => T == null ? void 0 : T.label), pe = (me = (G = (L = R == null ? void 0 : R.compData) == null ? void 0 : L.find((T) => (T == null ? void 0 : T.key) === "tableContents")) == null ? void 0 : G.contents) == null ? void 0 : me.map((T) => (T = T == null ? void 0 : T.filter((i) => !(i != null && i.id)), T));
1030
+ pe == null || pe.forEach((T) => {
1031
+ p.push(Rt(T, Ce == null ? void 0 : Ce.filter((i) => i !== "操作")));
1032
+ });
1033
+ }
1034
+ }), w("threeData", p);
1035
+ }
1036
+ },
1037
+ { deep: !0, immediate: !0 }
1038
+ );
1039
+ const fe = (p) => {
1040
+ w("openThreeBuild", p);
1041
+ };
1042
+ E(
1043
+ () => e == null ? void 0 : e.pathContent,
1044
+ () => {
1045
+ (e == null ? void 0 : e.pathContent) !== "" && $.setSystemPath(e == null ? void 0 : e.pathContent);
1046
+ },
1047
+ {
1048
+ deep: !0,
1049
+ immediate: !0
1050
+ }
1051
+ );
1052
+ const se = (p) => {
1053
+ w("contentChange", p);
1054
+ }, le = (p) => {
1055
+ var R;
1056
+ const j = (R = Ae(p == null ? void 0 : p.wholeValue)) == null ? void 0 : R.map((M) => {
1057
+ var B;
1058
+ return (M == null ? void 0 : M.comp) === "Form" && (M.compData = (B = M.compData) == null ? void 0 : B.map((n) => ((n == null ? void 0 : n.key) === "formContent" && (n.contents = Mt(n == null ? void 0 : n.contents)), n))), M;
1059
+ });
1060
+ w("change", {
1061
+ originalContents: b.value,
1062
+ currentContents: p == null ? void 0 : p.wholeValue,
1063
+ editContent: p == null ? void 0 : p.editValue,
1064
+ arrayToContents: j
1065
+ });
1066
+ };
1067
+ E(
1068
+ () => l.value,
1069
+ () => {
1070
+ g.value === l.value.length && l.value.length !== 0 && (A.value = l.value);
1071
+ },
1072
+ { deep: !0, immediate: !0 }
1073
+ );
1074
+ const ke = () => {
1075
+ J.value !== null && J.value.click();
1076
+ }, de = async (p) => {
1077
+ const j = p.target.files;
1078
+ if (!j) return;
1079
+ new FileReader(), A.value = [], l.value = [], g.value = j.length;
1080
+ const R = Array.from(j).map(async (M) => await new Promise((B) => {
1081
+ const n = new FileReader();
1082
+ n.onload = (L) => {
1083
+ try {
1084
+ l.value.push(L.target.result), ee.value++;
1085
+ } catch (G) {
1086
+ console.error("解析失败:", G);
1087
+ return;
1088
+ }
1089
+ }, n.onerror = () => B(`读取 ${M.name} 失败`), n.readAsText(M), p.target.value = "", J.value = null, I.value++;
1090
+ }));
1091
+ await Promise.all(R);
1092
+ };
1093
+ return E(
1094
+ () => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
1095
+ async () => {
1096
+ await dt(), A.value = e.content, O.value = e == null ? void 0 : e.jsonContents;
1097
+ },
1098
+ { deep: !0, immediate: !0 }
1099
+ ), E(
1100
+ () => ee.value,
1101
+ () => {
1102
+ var p;
1103
+ ((p = f.value) == null ? void 0 : p.length) !== 0 && ($.setOriginalData(f.value), $.setItemData(f.value));
1104
+ },
1105
+ { deep: !0, immediate: !0 }
1106
+ ), (p, j) => {
1107
+ const R = C("svg-icon"), M = C("el-button");
1108
+ return r(), P("div", ha, [
1109
+ (e == null ? void 0 : e.mode) === "edit" ? (r(), P("div", fa, [
1110
+ h("div", _a, [
1111
+ t(je)
1112
+ ]),
1113
+ (r(), P("div", {
1114
+ class: "model-show",
1115
+ key: x.value
1116
+ }, [
1117
+ t(Ve)
1118
+ ])),
1119
+ h("div", ga, [
1120
+ t(Ne)
1121
+ ])
1122
+ ])) : U("", !0),
1123
+ (e == null ? void 0 : e.mode) === "view" ? (r(), P("div", va, [
1124
+ (r(), S(pa, {
1125
+ showButton: F.showButton,
1126
+ platform: a(H),
1127
+ content: A.value,
1128
+ onChange: le,
1129
+ jsonContents: O.value,
1130
+ onContentChange: se,
1131
+ onBuildContent: W,
1132
+ key: x.value,
1133
+ onShowChild: fe
1134
+ }, {
1135
+ default: o(() => {
1136
+ var B;
1137
+ return [
1138
+ ((B = e == null ? void 0 : e.jsonContents) == null ? void 0 : B.length) === 0 && (e != null && e.showButton) ? (r(), S(M, {
1139
+ key: 0,
1140
+ id: "transparentBgButton",
1141
+ onClick: ke
1142
+ }, {
1143
+ icon: o(() => [
1144
+ t(R, { name: "import" })
1145
+ ]),
1146
+ default: o(() => [
1147
+ (r(), P("input", {
1148
+ type: "file",
1149
+ key: I.value,
1150
+ ref_key: "fileInput",
1151
+ ref: J,
1152
+ accept: ".txt, .inm, .iml, .imd",
1153
+ onChange: de,
1154
+ style: { display: "none" },
1155
+ multiple: ""
1156
+ }, null, 32)),
1157
+ j[0] || (j[0] = z(" 导入模型 "))
1158
+ ]),
1159
+ _: 1,
1160
+ __: [0]
1161
+ })) : U("", !0)
1162
+ ];
1163
+ }),
1164
+ _: 1
1165
+ }, 8, ["showButton", "platform", "content", "jsonContents"]))
1166
+ ])) : U("", !0)
1167
+ ]);
1168
+ };
1169
+ }
1170
+ }, Ua = /* @__PURE__ */ ye(ya, [["__scopeId", "data-v-b9caa997"]]);
1171
+ export {
1172
+ Ua as default
1173
+ };