ss-component-new 1.2.6 → 1.2.7
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.
- package/dist/{OrbitControls-DA4VpOM_.js → OrbitControls-C0QRmW6_.js} +1 -1
- package/dist/{STLLoader-DmGTF0Nv.js → STLLoader-CiUjaQtA.js} +1 -1
- package/dist/{animationData-GqECkAbz.js → animationData-CMKGpOzN.js} +14 -14
- package/dist/animationData-CjOlng3t.cjs +1 -0
- package/dist/array-BI6c3lN7.cjs +11 -0
- package/dist/array-zuPH84bL.js +1142 -0
- package/dist/{iconfont-ljBfzBSE.js → iconfont-pt17sMx3.js} +2 -2
- package/dist/{index-C5CKSB0e.cjs → index-1aEh3d97.cjs} +1 -1
- package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
- package/dist/{index-DJGsDpDp.js → index-Ah-8x9yf.js} +13 -13
- package/dist/{index-DPBmAgEA.cjs → index-B3bZrnX5.cjs} +1 -1
- package/dist/{index-HvKjB6_P.js → index-B5Qn4jv8.js} +5 -5
- package/dist/{index-67QO-qDa.cjs → index-B7PZ70Ke.cjs} +1 -1
- package/dist/{index-CRrAiL5l.js → index-BPOERPtt.js} +4 -4
- package/dist/{index-DcUUpSE1.cjs → index-BQ7is--r.cjs} +1 -1
- package/dist/{index-BpR7F1Fp.cjs → index-BQdJqnJf.cjs} +1 -1
- package/dist/{index-CBuqdsPh.js → index-BX3CpqTk.js} +4 -4
- package/dist/{index-DPWc4No_.js → index-B_HoaLPL.js} +2 -2
- package/dist/{index-B7hLDNQ6.cjs → index-BaOQV1JK.cjs} +1 -1
- package/dist/{index-BNvpuVyw.cjs → index-Bc20prdj.cjs} +1 -1
- package/dist/index-BhLnI2fF.cjs +1 -0
- package/dist/{index-Bs2K1FVH.js → index-BnNuMzEv.js} +2 -2
- package/dist/{index-CArSUfnV.js → index-BniAk5Lo.js} +1010 -1013
- package/dist/{index-_66uQhcl.js → index-BoHTgzWr.js} +2129 -2122
- package/dist/{index--rLSLEk3.js → index-Br5wm1ow.js} +24 -24
- package/dist/{index-mtuIEfrj.cjs → index-BxL4p0ej.cjs} +1 -1
- package/dist/{index-8yRiF_z8.cjs → index-BzOBvH4x.cjs} +1 -1
- package/dist/{index-D9oqICYV.cjs → index-C2WJz0OJ.cjs} +1 -1
- package/dist/{index-DVmoPvzr.cjs → index-C2aGGJxk.cjs} +1 -1
- package/dist/{index-DGepdvRW.js → index-CHksmnYA.js} +2 -2
- package/dist/{index-CMCrQ36H.js → index-CJW7oNUN.js} +5 -5
- package/dist/index-CJXXl1EN.cjs +1 -0
- package/dist/{index-CTkF2kl_.js → index-CKHNyMzP.js} +1 -1
- package/dist/{index-DZ8a7BZ1.cjs → index-CQAvn30B.cjs} +1 -1
- package/dist/{index-C8UOMPgt.js → index-CQzgMbjC.js} +2 -2
- package/dist/{index-LADv0t0E.js → index-CUUjf1P3.js} +12 -12
- package/dist/{index-CedgKpsz.cjs → index-CW99kzgY.cjs} +1 -1
- package/dist/{index-BHJ-tVLT.cjs → index-CXbvmuYZ.cjs} +1 -1
- package/dist/{index-BsfJJu0R.js → index-CXchqN8w.js} +6 -6
- package/dist/{index-BaRkv5oc.cjs → index-Cia5yg2S.cjs} +1 -1
- package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
- package/dist/{index-D-WcrLQv.js → index-CkCmJLPU.js} +4 -4
- package/dist/{index-C1FOuBuy.js → index-CvrTrN91.js} +1 -1
- package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
- package/dist/{index-D6mwkqWY.cjs → index-Czw_p2Ax.cjs} +13 -13
- package/dist/index-D46pfmEc.js +2567 -0
- package/dist/{index-g4qw0jRy.js → index-DDNAWKqD.js} +6 -6
- package/dist/{index-CA-FC_OL.cjs → index-DKHaw4wr.cjs} +1 -1
- package/dist/{index-CbA74tCL.js → index-DLN_fbq6.js} +4 -4
- package/dist/{index-DWs7-g1h.cjs → index-DauH8AzR.cjs} +1 -1
- package/dist/{index-DV_ZZQBO.js → index-DbzvXPKu.js} +176 -176
- package/dist/{index-9zEdW6xv.js → index-DsnxblRp.js} +6 -6
- package/dist/{index-_uyv24Pt.cjs → index-Duqrg0DV.cjs} +1 -1
- package/dist/{index-FK1YYpjN.cjs → index-Dv_9EftF.cjs} +1 -1
- package/dist/{index-B14iwpkN.cjs → index-Dx63Z3PG.cjs} +1 -1
- package/dist/index-DxukQK2k.cjs +1 -0
- package/dist/index-Dy3FE211.cjs +1 -0
- package/dist/{index-CRj9VM12.js → index-HZr3I0-O.js} +6 -6
- package/dist/{index-CbDu4gfZ.js → index-IknA4u4L.js} +5 -5
- package/dist/{index-DGi-ANHr.js → index-Kbl8xHWJ.js} +7 -7
- package/dist/{index-BMMYAqF1.js → index-MqvNXMd6.js} +1 -1
- package/dist/{index-Cm3z0Vmi.cjs → index-PBT5kNaR.cjs} +1 -1
- package/dist/{index-CShBWCYm.js → index-UDddsXT4.js} +1 -1
- package/dist/{index-Bw_JtuzR.js → index-UuJKyKlu.js} +3 -3
- package/dist/index-W6FccWpW.js +7210 -0
- package/dist/index-d3F4mRMM.js +3370 -0
- package/dist/{index-BNOx3XL5.js → index-fnqbVNnP.js} +1 -1
- package/dist/{index-CZaBF851.cjs → index-hseXzBbE.cjs} +1 -1
- package/dist/{index-87kRWJv8.cjs → index-k3lVcyGc.cjs} +1 -1
- package/dist/{index-DvpVQvAe.js → index-sBAb1SLC.js} +2 -2
- package/dist/{index-BYUPvuvs.cjs → index-tEinx-qZ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js} +10383 -10362
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs} +123 -123
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DuybmJnl.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C-NVC3BN.js +34117 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs → index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-hBa3nAgx.js → index.vue_vue_type_style_index_1_lang-D909xoIu.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js +8126 -0
- package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
- package/dist/{isString--ZVOCy4V.js → isString-CZMLuMzD.js} +1 -1
- package/dist/isUndefined-ClRzgwTy.cjs +1 -0
- package/dist/isUndefined-chfCDxUU.js +84 -0
- package/dist/{main-C6Iw-pcH.cjs → main-CSuKoOz4.cjs} +1 -1
- package/dist/{main-CygliYyN.js → main-D6-NZoCw.js} +5 -5
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{three-viewport-gizmo-BHznJ6W3.js → three-viewport-gizmo-CkQ98n-T.js} +2 -2
- package/dist/{threeLatheView-DzpPpdDr.js → threeLatheView-BmVBnC8n.js} +4 -4
- package/dist/{threeLatheView-CdUoB0Te.cjs → threeLatheView-CZdorls1.cjs} +1 -1
- package/dist/{threeModel-BUCLJlE5.cjs → threeModel-CIXJ7OQA.cjs} +1 -1
- package/dist/{threeModel-BfMMeZCc.js → threeModel-CPolYsAh.js} +5 -5
- package/dist/{threePreview-BEqzg370.js → threePreview-CYX5wKoL.js} +4 -4
- package/dist/{threePreview-C-JW_pcY.cjs → threePreview-C_mY_TBC.cjs} +1 -1
- package/dist/threeSceneView-CUBwHIv3.js +1472 -0
- package/dist/threeSceneView-C_0lI1AI.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-Bexwqkry.js → threeSceneViewForCPMPIP-BHhBMxdP.js} +86 -85
- package/dist/{threeSceneViewForCPMPIP-DwLWGNUd.cjs → threeSceneViewForCPMPIP-D4KdOIxO.cjs} +3 -3
- package/dist/{threeViewerHost-CTjd2V1D.js → threeViewerHost-Cbz8Cw7s.js} +78 -65
- package/dist/threeViewerHost-DOwyFQG3.cjs +1 -0
- package/dist/{useRayCaster-D0_7oJan.js → useRayCaster-CF6KDZ1R.js} +5 -5
- package/dist/useRayCaster-CqS7g8Ix.cjs +1 -0
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/animationData-B0K2ghu6.cjs +0 -1
- package/dist/array-D65aMM6H.js +0 -1207
- package/dist/array-DMPAgNcb.cjs +0 -11
- package/dist/index-8Dyi4QCI.js +0 -7293
- package/dist/index-BEoEUXZe.js +0 -2643
- package/dist/index-BsM9qdbC.cjs +0 -1
- package/dist/index-CePZE-QA.cjs +0 -1
- package/dist/index-D8510-YQ.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js +0 -37436
- package/dist/index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js +0 -7804
- package/dist/index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs +0 -32
- package/dist/threeSceneView-BTsG2QJg.cjs +0 -5
- package/dist/threeSceneView-DV5dsTZZ.js +0 -1471
- package/dist/threeViewerHost-CRqcYbJE.cjs +0 -1
- package/dist/useRayCaster-DN56HpNP.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aJ as S, V as p, M as u, aK as _, Q as E, aL as P, J as c, aM as w, j as O, l as R } from "./three-viewport-gizmo-
|
|
1
|
+
import { aJ as S, V as p, M as u, aK as _, Q as E, aL as P, J as c, aM as w, j as O, l as R } from "./three-viewport-gizmo-CkQ98n-T.js";
|
|
2
2
|
const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as Y, F as Z, C as P, b as S,
|
|
1
|
+
import { y as Y, F as Z, C as P, b as S, n as ie, p as R, ax as A, ab as H, aa as X, a9 as B, h as ne, af as K, ah as N, e as Q, V as O, z as ae, au as oe, a6 as le, at as W, J as $, aD as ce, Y as he, _ as q } from "./three-viewport-gizmo-CkQ98n-T.js";
|
|
2
2
|
const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), re = new O(), L = new O(), D = new P();
|
|
3
3
|
function me() {
|
|
4
4
|
const I = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as C,
|
|
2
|
-
import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-
|
|
3
|
-
import { d as I } from "./threeViewerHost-
|
|
4
|
-
import { c as P } from "./index-
|
|
1
|
+
import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
|
|
2
|
+
import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-D909xoIu.js";
|
|
3
|
+
import { d as I } from "./threeViewerHost-Cbz8Cw7s.js";
|
|
4
|
+
import { c as P } from "./index-DbzvXPKu.js";
|
|
5
5
|
function N(r) {
|
|
6
6
|
try {
|
|
7
7
|
const c = new URL(r).pathname, s = c.substring(c.lastIndexOf("/") + 1);
|
|
@@ -10,7 +10,7 @@ function N(r) {
|
|
|
10
10
|
return console.error("无法解析URL以提取文件名:", r, c), "未知文件名";
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function j(r) {
|
|
14
14
|
if (!r) return;
|
|
15
15
|
const c = r.match(/filename\*\s*=\s*([^;]+)/i);
|
|
16
16
|
if (c) {
|
|
@@ -36,7 +36,7 @@ function B(r) {
|
|
|
36
36
|
if (s)
|
|
37
37
|
return s[2].trim();
|
|
38
38
|
}
|
|
39
|
-
async function
|
|
39
|
+
async function B(r) {
|
|
40
40
|
let c, s;
|
|
41
41
|
if (/^https?:\/\//.test(r))
|
|
42
42
|
try {
|
|
@@ -56,7 +56,7 @@ async function j(r) {
|
|
|
56
56
|
if (n.status !== 200)
|
|
57
57
|
throw new Error(`下载失败: ${n.status}`);
|
|
58
58
|
const h = n.headers["content-disposition"];
|
|
59
|
-
s =
|
|
59
|
+
s = j(h) || "无文件名", c = n.data;
|
|
60
60
|
} catch (n) {
|
|
61
61
|
throw console.error("通过 API 下载文件时出错:", n), n;
|
|
62
62
|
}
|
|
@@ -79,7 +79,7 @@ function V(r) {
|
|
|
79
79
|
const z = async () => {
|
|
80
80
|
const r = "弯管仿真加工分析";
|
|
81
81
|
let c = {};
|
|
82
|
-
const s = sessionStorage.getItem("systemKey"), n = await C(`${r}
|
|
82
|
+
const s = sessionStorage.getItem("systemKey"), n = await C(`${r}/管件解析`, s, "");
|
|
83
83
|
let h = ["管长", "外径"], l = {};
|
|
84
84
|
n == null || n.forEach((e) => {
|
|
85
85
|
var i;
|
|
@@ -90,7 +90,7 @@ const z = async () => {
|
|
|
90
90
|
}));
|
|
91
91
|
}));
|
|
92
92
|
});
|
|
93
|
-
const f = l
|
|
93
|
+
const f = l.管长, y = l.外径;
|
|
94
94
|
console.log("管长", f, "外径", y, l);
|
|
95
95
|
const E = f, k = y / 2, u = await C(`${r}/加工位姿生成`, s, "");
|
|
96
96
|
let A = ["夹持长度"], d = {};
|
|
@@ -103,7 +103,7 @@ const z = async () => {
|
|
|
103
103
|
}));
|
|
104
104
|
}));
|
|
105
105
|
});
|
|
106
|
-
const L = d
|
|
106
|
+
const L = d.夹持长度;
|
|
107
107
|
console.log("夹持长度", L, d);
|
|
108
108
|
const U = Number(L), w = {}, g = await C(`${r}/仿真动画生成`, s, "");
|
|
109
109
|
g == null || g.forEach((e) => {
|
|
@@ -120,7 +120,7 @@ const z = async () => {
|
|
|
120
120
|
}), w[e.name] = $, w[e.name + "Content"] = e;
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
const T = P(w)
|
|
123
|
+
const T = P(w);
|
|
124
124
|
return c = {
|
|
125
125
|
initialPipeLength: E,
|
|
126
126
|
pipeRadius: k,
|
|
@@ -130,7 +130,7 @@ const z = async () => {
|
|
|
130
130
|
}, H = async () => {
|
|
131
131
|
const r = "双弯管仿真加工分析";
|
|
132
132
|
let c = {};
|
|
133
|
-
const s = sessionStorage.getItem("systemKey"), n = await C(`${r}
|
|
133
|
+
const s = sessionStorage.getItem("systemKey"), n = await C(`${r}/管件解析`, s, "");
|
|
134
134
|
let h = ["管长", "外径"], l = {};
|
|
135
135
|
n == null || n.forEach((e) => {
|
|
136
136
|
var i;
|
|
@@ -154,7 +154,7 @@ const z = async () => {
|
|
|
154
154
|
}));
|
|
155
155
|
}));
|
|
156
156
|
});
|
|
157
|
-
const L = d
|
|
157
|
+
const L = d.夹持位置;
|
|
158
158
|
console.log("夹持长度", L, d);
|
|
159
159
|
const U = Number(L), w = {}, g = await C(`${r}/仿真动画生成`, s, "");
|
|
160
160
|
g == null || g.forEach((e) => {
|
|
@@ -178,7 +178,7 @@ const z = async () => {
|
|
|
178
178
|
clampLength: U,
|
|
179
179
|
animationData: T
|
|
180
180
|
}, c;
|
|
181
|
-
}, X = async (r) => await
|
|
181
|
+
}, X = async (r) => await B(r), Y = async (r) => await V(r), J = async (r) => {
|
|
182
182
|
const c = await X(r);
|
|
183
183
|
return await Y(c);
|
|
184
184
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs"),U=require("./threeViewerHost-DOwyFQG3.cjs"),T=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await U.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=I.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=I.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let $=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let $=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";const w=require("vue"),j=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),l=require("./index-1z9RrjZc.cjs"),Ve=typeof window<"u";var fe;Ve&&((fe=window==null?void 0:window.navigator)!=null&&fe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Je(e){return e==null}function Se(){}const Ie=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ie)));function Xe(){const e=new Map;return{on(t,n){const r=e.get(t);r!=null&&r.add(n)||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(o=>{o(...n)})}}}function Ze(e,t=16){if(typeof e!="function")return Se;const n=(...i)=>{e(...i)};if(t<=0)return Ae(n);let r=0,o;return function(...i){const a=Date.now(),s=a-r;clearTimeout(o),s>=t?(r=a,n(...i)):o=setTimeout(()=>{r=Date.now(),n(...i)},Math.max(0,t-s))}}function Ge(e,t=100){if(typeof e!="function")return Se;const n=(...o)=>{e(...o)};if(t<=0)return Ae(n);let r;return function(...o){clearTimeout(r),r=setTimeout(()=>{n(...o)},t)}}function Ae(e){if(typeof e!="function")return e;let t=!1,n,r;return function(...o){return n=o,t||(t=!0,r=Promise.resolve().then(()=>(t=!1,r=void 0,e(...n)))),r}}const P=new Set,_e=new WeakMap;function He(){P.forEach(e=>{e(..._e.get(e))}),P.clear()}function Ye(e,...t){if(typeof e!="function")return e;_e.set(e,t),!P.has(e)&&(P.add(e),P.size===1&&Promise.resolve().then(He))}const q=typeof window<"u";var ue;q&&(ue=window==null?void 0:window.navigator)!=null&&ue.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function de(e){return e!=null}function pe(){}const Ke=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ke)));const Qe=q&&("ontouchstart"in window||tt()>0),et=Qe?"pointerdown":"click";function tt(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function rt(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...a}=t;if(!de(r)||r==="")return!1;let s;return de(n)?s=new n(r,{bubbles:o,cancelable:i}):(s=document.createEvent("HTMLEvents"),s.initEvent(r,o,i)),Object.assign(s,a),e.dispatchEvent(s)}const nt="clickoutside",ot=new Set;q&&document.addEventListener(et,e=>{const t=e.target,n=e.composedPath&&e.composedPath();ot.forEach(r=>{r!==t&&(n?!n.includes(r):!r.contains(t))&&(!r.__transferElement||r.__transferElement!==t&&!r.__transferElement.contains(t))&&rt(r,{type:nt})})},!0);const it=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let G;if(q){for(const e of it)if(e[1]in document){G=e;break}}w.computed(()=>!1);const at=new Set,lt=new WeakMap;if(q&&G){const e=G[2],t=G[4];document.addEventListener(t,()=>{if(at.forEach(n=>{n.value=!1}),document[e]){const n=lt.get(document[e]);n&&(n.value=!0)}},!1)}const je=new Map;je.set("x",0);je.set("y",0);var R=[],st=function(){return R.some(function(e){return e.activeTargets.length>0})},ct=function(){return R.some(function(e){return e.skippedTargets.length>0})},he="ResizeObserver loop completed with undelivered notifications.",ft=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:he}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=he),window.dispatchEvent(e)},L;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(L||(L={}));var M=function(e){return Object.freeze(e)},ut=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,M(this)}return e}(),Be=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,M(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,g=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:g,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),oe=function(e){return e instanceof SVGElement&&"getBBox"in e},Ce=function(e){if(oe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ge=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},dt=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},U=typeof window<"u"?window:{},J=new WeakMap,be=/auto|scroll/,pt=/^tb|vertical/,ht=/msie|trident/i.test(U.navigator&&U.navigator.userAgent),_=function(e){return parseFloat(e||"0")},$=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ut((n?t:e)||0,(n?e:t)||0)},me=M({devicePixelContentBoxSize:$(),borderBoxSize:$(),contentBoxSize:$(),contentRect:new Be(0,0,0,0)}),Re=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(Ce(e))return J.set(e,me),me;var n=getComputedStyle(e),r=oe(e)&&e.ownerSVGElement&&e.getBBox(),o=!ht&&n.boxSizing==="border-box",i=pt.test(n.writingMode||""),a=!r&&be.test(n.overflowY||""),s=!r&&be.test(n.overflowX||""),g=r?0:_(n.paddingTop),f=r?0:_(n.paddingRight),B=r?0:_(n.paddingBottom),c=r?0:_(n.paddingLeft),k=r?0:_(n.borderTopWidth),u=r?0:_(n.borderRightWidth),d=r?0:_(n.borderBottomWidth),S=r?0:_(n.borderLeftWidth),b=c+f,O=g+B,E=S+u,D=k+d,T=s?e.offsetHeight-D-e.clientHeight:0,p=a?e.offsetWidth-E-e.clientWidth:0,m=o?b+E:0,v=o?O+D:0,A=r?r.width:_(n.width)-m-p,C=r?r.height:_(n.height)-v-T,W=A+b+p+E,V=C+O+T+D,F=M({devicePixelContentBoxSize:$(Math.round(A*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:$(W,V,i),contentBoxSize:$(A,C,i),contentRect:new Be(c,g,A,C)});return J.set(e,F),F},Me=function(e,t,n){var r=Re(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case L.DEVICE_PIXEL_CONTENT_BOX:return a;case L.BORDER_BOX:return o;default:return i}},gt=function(){function e(t){var n=Re(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=M([n.borderBoxSize]),this.contentBoxSize=M([n.contentBoxSize]),this.devicePixelContentBoxSize=M([n.devicePixelContentBoxSize])}return e}(),qe=function(e){if(Ce(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},bt=function(){var e=1/0,t=[];R.forEach(function(i){if(i.activeTargets.length!==0){var a=[];i.activeTargets.forEach(function(s){var g=new gt(s.target),f=qe(s.target);a.push(g),s.lastReportedSize=Me(s.target,s.observedBox),f<e&&(e=f)}),t.push(function(){i.callback.call(i.observer,a,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},ve=function(e){R.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(qe(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},mt=function(){var e=0;for(ve(e);st();)e=bt(),ve(e);return ct()&&ft(),e>0},Q,$e=[],vt=function(){return $e.splice(0).forEach(function(e){return e()})},yt=function(e){if(!Q){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return vt()}).observe(n,r),Q=function(){n.textContent="".concat(t?t--:t++)}}$e.push(e),Q()},wt=function(e){yt(function(){requestAnimationFrame(e)})},H=0,kt=function(){return!!H},zt=250,xt={attributes:!0,characterData:!0,childList:!0,subtree:!0},ye=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],we=function(e){return e===void 0&&(e=0),Date.now()+e},ee=!1,Et=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=zt),!ee){ee=!0;var r=we(t);wt(function(){var o=!1;try{o=mt()}finally{if(ee=!1,t=r-we(),!kt())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,xt)};document.body?n():U.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ye.forEach(function(n){return U.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ye.forEach(function(n){return U.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ne=new Et,ke=function(e){!H&&e>0&&ne.start(),H+=e,!H&&ne.stop()},Dt=function(e){return!oe(e)&&!dt(e)&&getComputedStyle(e).display==="inline"},Ot=function(){function e(t,n){this.target=t,this.observedBox=n||L.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Me(this.target,this.observedBox,!0);return Dt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Tt=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),I=new WeakMap,ze=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},X=function(){function e(){}return e.connect=function(t,n){var r=new Tt(t,n);I.set(t,r)},e.observe=function(t,n,r){var o=I.get(t),i=o.observationTargets.length===0;ze(o.observationTargets,n)<0&&(i&&R.push(o),o.observationTargets.push(new Ot(n,r&&r.box)),ke(1),ne.schedule())},e.unobserve=function(t,n){var r=I.get(t),o=ze(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&R.splice(R.indexOf(r),1),r.observationTargets.splice(o,1),ke(-1))},e.disconnect=function(t){var n=this,r=I.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),St=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");X.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");X.unobserve(this,t)},e.prototype.disconnect=function(){X.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const K=new WeakMap;function At(e){var t;for(let n=0,r=e.length;n<r;++n){const o=e[n],i=K.get(o.target);if(typeof i=="function"){const{inlineSize:a,blockSize:s}=((t=o.borderBoxSize)==null?void 0:t[0])??{},{offsetWidth:g,offsetHeight:f}=o.target;i(Object.assign(o,{offsetWidth:g,offsetHeight:f,width:a??g,height:s??f}))}}}const Fe=new(q&&window.ResizeObserver||St)(At);function xe(e,t){K.set(e,t),Fe.observe(e)}function Ee(e){K.has(e)&&(Fe.unobserve(e),K.delete(e))}function _t(e={}){let t=pe;const n=w.watch(()=>w.unref(e.target),o=>{t(),!(!o||typeof e.onResize!="function")&&(xe(o,e.onResize),t=()=>{Ee(o),t=pe})},{immediate:!0}),r=()=>{n(),t()};return w.getCurrentScope()&&w.onScopeDispose(r),{observeResize:xe,unobserveResize:Ee,unobserve:r}}const jt=w.ref(!1);w.computed(()=>jt.value);const De="__theme_style__",te="__theme_observer__",Oe=w.reactive(new Map),Te=new Map;w.watch(Oe,()=>{if(!q)return;Te.clear();const e=document.head.querySelector(`#${De}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${te} { width: 1px }`,r=1;for(const[o,[i,a]]of Oe.entries())n+=` html.${i} .${te}, .${a} .${te} { width: ${++r}px }`,Te.set(r,o);t.textContent=n,t.id=De,document.head.appendChild(t)});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();w.ref(0);const Ne=e=>{var t,n;if(Array.isArray(Object.keys(e))&&((t=Object.keys(e))==null?void 0:t.length)>0){let r=[];return(n=Object.entries(e))==null||n.forEach(([o,i])=>{var s,g;let a=[];if(a.push(o),((s=Object.keys(i))==null?void 0:s.length)>0){let f=[];(g=Ne(i))==null||g.forEach(B=>{f.push(B)}),f==null||f.forEach(B=>{a.push(B)})}r.push(a)}),r}},Bt=(e,t)=>{var r;let n=t;return Array.isArray(Object.keys(e))&&((r=Object.entries(e))==null||r.forEach(([o,i])=>{let a=[o];if(typeof i=="object"&&i!==null){let s=Ne(i);s==null||s.forEach(g=>{a.push(g)})}n.push(a)})),n},Ct=e=>{const t={};return e.forEach(r=>{const o=r.split("/");let i=t;o.forEach(a=>{i[a]||(i[a]={}),i=i[a]})}),Bt(t,[])},Rt=e=>Ct(e);w.ref(0);w.ref(1);const Pe=e=>{let t;e.replaceAll(" ",`\r
|
|
2
|
+
`).replaceAll(`
|
|
3
|
+
`,`\r
|
|
4
|
+
`).includes(`\r
|
|
5
|
+
`)?t=e.replaceAll(`
|
|
6
|
+
`,`\r
|
|
7
|
+
`).replaceAll(" ",`\r
|
|
8
|
+
`).split(`\r
|
|
9
|
+
`).filter(o=>o.trim()!==""):t=e.replaceAll(" ",`\r
|
|
10
|
+
`).split(`
|
|
11
|
+
`).filter(o=>o.trim()!=="");const n=[];let r="";for(const o of t)o.includes("{")||r.includes("{")||o.includes("[")||r.includes("[")||o.includes("【")||r.includes("【")||o.includes("(")||r.includes("(")||o.includes("(")||r.includes("(")||o.includes("/*")||r.includes("/*")?(r+=o.trim(),l.cloneDeep(r).split("{").length-1===l.cloneDeep(r).split("}").length-1&&l.cloneDeep(r).split("【").length-1===l.cloneDeep(r).split("】").length-1&&l.cloneDeep(r).split("[").length-1===l.cloneDeep(r).split("]").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("/*").length-1===l.cloneDeep(r).split("*/").length-1&&r[r.length-1]!==","?(n.push(r.replace(/\/\*[\s\S]*?\*\//g,"")),r=""):r!=null&&r.includes("*/")&&(r=r.replace(/\/\*[\s\S]*?\*\//g,""))):n.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},Mt=e=>{const[t,n]=e.split(/=(.+)/),r=t.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:r,value:o}},Ue=e=>{let t;e!=null&&e.includes(":")?t=e.split(":").filter(o=>o.trim()!==""):t=e==null?void 0:e.split(":").filter(o=>o.trim()!=="");const n=[];let r="";for(const o of t)o.includes("{")||r.includes("{")||o.includes("[")||r.includes("[")||o.includes("【")||r.includes("【")||o.includes("(")||r.includes("(")||o.includes("(")||r.includes("(")||o.includes("/*")||r.includes("/*")?(r=r!==""?r+":"+o.trim():o.trim(),l.cloneDeep(r).split("{").length-1===l.cloneDeep(r).split("}").length-1&&l.cloneDeep(r).split("【").length-1===l.cloneDeep(r).split("】").length-1&&l.cloneDeep(r).split("[").length-1===l.cloneDeep(r).split("]").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("/*").length-1===l.cloneDeep(r).split("*/").length-1&&(n.push(r.replace(/\/\*[\s\S]*?\*\//g,"")),r="")):n.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},qt=e=>{var n,r,o,i,a,s,g,f;const t=(r=(n=e.split("("))==null?void 0:n[1])==null?void 0:r.trim();return((o=Ue(t.slice(0,t.length-1)))==null?void 0:o.length)>0?t.slice(0,t.length-1):(f=(g=(s=(a=(i=e.split("("))==null?void 0:i[1])==null?void 0:a.trim())==null?void 0:s.split(")"))==null?void 0:g[0])==null?void 0:f.trim()},Z=w.ref(0),re=w.ref(0),$t=e=>{const t=e.trim().replace(/^'|'$/g,""),n=/((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g,r={};let o;for(;(o=n.exec(t))!==null;){const i=o[1];let a=o[2].trim();(a.match(/\[/g)||[]).length!==(a.match(/\]/g)||[]).length&&(a=a==null?void 0:a.replace(/]$/,"")),r[i]?(r[i+re.value]&&re.value++,r[i+re.value]=i+"="+a):r[i]=i+"="+a}return r},Le=e=>{const[t,n]=e.split("=").map(i=>i.trim()),r=t.replace(/['"]/g,""),o=n.replace(/^['"]|['"]$/g,"");return{key:r,value:o}},Ft=e=>{var a;let t=[];const[n,r]=e.split(/=(.+)/),o=n.replace(/['"]/g,"").trim(),i=r.replace(/^['"]|['"]$/g,"");return(a=Object.values($t(i)))==null||a.forEach(s=>{t.push(Le(s))}),{key:o,value:t}},Y=e=>{try{return JSON.parse(e),!0}catch{return!1}},We=e=>{try{const t=e.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(l.cloneDeep(t).split("{").length-1>1){let n=l.cloneDeep(t).replace(/^\{(.*)\}$/,"[$1]");if(Y(n)&&!n.includes("$")||(n=n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Y(n)){const r=JSON.parse(n);let o=[];return r==null||r.forEach(i=>{var a;(a=Object.entries(l.cloneDeep(i)))==null||a.forEach(s=>{Z.value++,o.push({id:Z.value,key:(s==null?void 0:s[0])??"",value:(s==null?void 0:s[1])===""?"":s==null?void 0:s[1],width:Object.keys(l.cloneDeep(i)).length})})}),o}else return console.error("转换类型不正确:"),[]}else if(Y(t)){const n=JSON.parse(t);return Object.entries(n).map(([r,o])=>(Z.value++,{id:Z.value,key:r,value:o===""?"":o,width:1}))}else return t}catch(t){return console.error("转换失败:",t),[]}},Nt=(e,t)=>{var n;try{if((n=j.viewMainDict)!=null&&n.find(r=>(r==null?void 0:r.key)===t))return JSON.parse(e.replace(/[’]|[‘]|[']/g,'"'));if(l.cloneDeep(e).split("[").length-1>1){const r=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(r)}else{const r=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(Y(r)){const o=JSON.parse(r);return Array.isArray(o)?o.map(i=>({label:i})):o}else return We(l.cloneDeep(e))}}catch(r){return console.error("解析失败:",r),e}},Pt=e=>({[e==null?void 0:e.key]:Nt(e==null?void 0:e.value,e==null?void 0:e.key)}),Ut=e=>{try{if(l.cloneDeep(e).split("[").length-1>1){const t=l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(l.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(n=>({label:n}))}catch(t){return console.error("解析失败:",t),e}},Lt=e=>{var t,n,r,o,i,a;try{const s=Pe((n=(t=l.cloneDeep(e))==null?void 0:t.replace("(","("))==null?void 0:n.replace(")",")")),g=(r=l.cloneDeep(s))==null?void 0:r.map(c=>{var u,d;let k=(d=(u=l.cloneDeep(c))==null?void 0:u.split("="))==null?void 0:d[0];return k!=null&&k.includes("GroupContents")?Ft(c):Le(c)}),f=[];(o=l.cloneDeep(g))==null||o.forEach(c=>{var k,u,d,S,b,O,E,D,T;(k=j.viewMainDict)!=null&&k.find(p=>{var m,v;return((m=p==null?void 0:p.key)==null?void 0:m.toUpperCase())===((v=c==null?void 0:c.key)==null?void 0:v.toUpperCase())})?f.push({comp:((d=(u=j.viewMainDict)==null?void 0:u.find(p=>{var m,v;return((m=p==null?void 0:p.key)==null?void 0:m.toUpperCase())===((v=c==null?void 0:c.key)==null?void 0:v.toUpperCase())}))==null?void 0:d.value)??"",name:(S=c==null?void 0:c.value)==null?void 0:S.replace(/[’]|[‘]|[']/g,""),compData:[]}):(b=j.viewChildDict)!=null&&b.find(p=>{var m,v;return((m=p==null?void 0:p.key)==null?void 0:m.toUpperCase())===((v=c==null?void 0:c.key)==null?void 0:v.toUpperCase())})&&((f==null?void 0:f.length)===0&&(O=c.key)!=null&&O.includes("Menus")&&f.push({comp:"Menu",name:"",compData:[]}),(E=f==null?void 0:f[(f==null?void 0:f.length)-1])!=null&&E.compData&&f[(f==null?void 0:f.length)-1].compData.push({key:(T=(D=j.viewChildDict)==null?void 0:D.find(p=>{var m,v;return((m=p==null?void 0:p.key)==null?void 0:m.toUpperCase())===((v=c==null?void 0:c.key)==null?void 0:v.toUpperCase())}))==null?void 0:T.value,contents:c==null?void 0:c.value}))});let B=(i=l.cloneDeep(f))==null?void 0:i.map(c=>{var k;return c!=null&&c.compData&&(c.compData=(k=c==null?void 0:c.compData)==null?void 0:k.map(u=>{var d,S,b,O,E,D,T,p,m,v,A;if((u==null?void 0:u.key)==="formFlex")u.contents=((S=(d=u.contents)==null?void 0:d.replace(/[’]|[‘]|[']/g,""))==null?void 0:S.toUpperCase())!=="Vertical".toUpperCase();else if((u==null?void 0:u.key)==="groupContents")u.contents=(b=l.cloneDeep(u.contents))==null?void 0:b.map(C=>Pt(l.cloneDeep(C)));else if(((E=(O=u.contents)==null?void 0:O.trim())!=null&&E.startsWith("[")||(T=(D=u.contents)==null?void 0:D.trim())!=null&&T.startsWith("【"))&&((m=(p=u.contents)==null?void 0:p.trim())!=null&&m.endsWith("]")||(A=(v=u.contents)==null?void 0:v.trim())!=null&&A.endsWith("】")))u.contents=Ut(l.cloneDeep(u.contents));else{if(!u.contents)return;u.contents=We(l.cloneDeep(u.contents))}return u})),c});return B=(a=l.cloneDeep(B))==null?void 0:a.map(c=>{var k;return(c==null?void 0:c.comp)==="Group"&&(c.compData=(k=c.compData)==null?void 0:k.map(u=>{var S;let d=[];return(S=u.contents)==null||S.forEach(b=>{var O,E,D,T,p,m,v,A,C,W,V,F,ie,ae,le,se,ce;if((O=j.viewMainDict)!=null&&O.find(h=>{var y,z,x;return((y=h==null?void 0:h.key)==null?void 0:y.toUpperCase())===((x=(z=Object.keys(b))==null?void 0:z[0])==null?void 0:x.toUpperCase())}))d.push({comp:(D=(E=j.viewMainDict)==null?void 0:E.find(h=>{var y,z,x;return((y=h==null?void 0:h.key)==null?void 0:y.toUpperCase())===((x=(z=Object.keys(b))==null?void 0:z[0])==null?void 0:x.toUpperCase())}))==null?void 0:D.value,name:(p=(T=Object.values(b))==null?void 0:T[0])==null?void 0:p.replace(/[’]|[‘]|[']/g,""),compData:[]});else if((m=j.viewChildDict)!=null&&m.find(h=>{var y,z,x;return((y=h==null?void 0:h.key)==null?void 0:y.toUpperCase())===((x=(z=Object.keys(b))==null?void 0:z[0])==null?void 0:x.toUpperCase())})){if((d==null?void 0:d.length)===0)return;(v=d==null?void 0:d[(d==null?void 0:d.length)-1])!=null&&v.compData&&d[(d==null?void 0:d.length)-1].compData.push({key:(C=(A=j.viewChildDict)==null?void 0:A.find(h=>{var y,z,x;return((y=h==null?void 0:h.key)==null?void 0:y.toUpperCase())===((x=(z=Object.keys(b))==null?void 0:z[0])==null?void 0:x.toUpperCase())}))==null?void 0:C.value,contents:(W=Object.values(b))==null?void 0:W[0]})}else if((F=(V=Object.keys(b))==null?void 0:V[0])!=null&&F.includes("$")){const h=(ae=(ie=Object.keys(l.cloneDeep(b)))==null?void 0:ie[0])==null?void 0:ae.split("$");d[(d==null?void 0:d.length)-1].compData.push({key:(se=(le=j.viewChildDict)==null?void 0:le.find(y=>{var z,x;return((z=y==null?void 0:y.key)==null?void 0:z.toUpperCase())===((x=h==null?void 0:h[0])==null?void 0:x.toUpperCase())}))==null?void 0:se.value,contents:(ce=Object.values(b))==null?void 0:ce[0],selectLabel:h==null?void 0:h[1]})}return b}),u.contents=d,u})),c}),B}catch{return!1}},Wt=e=>Lt(e),N=w.ref(0),Vt=e=>e.reduce((n,r)=>{var i,a;const o=Object.values(n);return(((i=Object.keys(n))==null?void 0:i.length)===0||o[o.length-1].length>=(r==null?void 0:r.width))&&(n[N.value]=[],N.value++),n[N.value-1].push(r),((a=Object.keys(n))==null?void 0:a.length)===(r==null?void 0:r.width)&&(n[N.value]=[],N.value++),n},{});exports.Zr=Xe;exports.arrayToNumberArray=Vt;exports.contentTrans=Ue;exports.contentTransArray=Pe;exports.eo=Ze;exports.expandStringToJson=Wt;exports.getContentValue=qt;exports.ie=Je;exports.menuArray=Rt;exports.no=Ge;exports.oo=Ye;exports.parseGroupValue=Mt;exports.wo=_t;
|