ss-component-new 1.2.3 → 1.2.4
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-C0QRmW6_.js → OrbitControls-DA4VpOM_.js} +1 -1
- package/dist/{STLLoader-CiUjaQtA.js → STLLoader-DmGTF0Nv.js} +1 -1
- package/dist/{animationData-8FTxP8vs.js → animationData-9n1X4UvO.js} +14 -14
- package/dist/animationData-CfT99nMO.cjs +1 -0
- package/dist/array-BPHS7JFA.cjs +11 -0
- package/dist/array-pg68Qbs1.js +1207 -0
- package/dist/config.js +1 -1
- package/dist/{iconfont-pt17sMx3.js → iconfont-ljBfzBSE.js} +2 -2
- package/dist/{index-DnDcbPOW.js → index---6UATT0.js} +5 -5
- package/dist/{index-D4F0CrLQ.cjs → index-1DtctdYW.cjs} +1 -1
- package/dist/index-5hLZZ6t-.cjs +1 -0
- package/dist/{index-CEdmOpLw.js → index-8CcD03tl.js} +6 -6
- package/dist/{index-BkoHg0EZ.js → index-B5gNufYw.js} +5 -5
- package/dist/{index-CwFSFQX2.js → index-B5srJr0o.js} +6 -6
- package/dist/{index-Kn3M4A0O.cjs → index-B5vIeQUq.cjs} +1 -1
- package/dist/{index-CSeo-uxt.cjs → index-B8J_v2Ky.cjs} +1 -1
- package/dist/{index-CgqgVzlH.cjs → index-B9nZeing.cjs} +1 -1
- package/dist/{index-CH7Xo-Sp.js → index-BAj0dyBF.js} +3 -3
- package/dist/{index-BileCy93.js → index-BEJOd_29.js} +4 -4
- package/dist/{index-kGrlXtNc.cjs → index-BKhDFqMM.cjs} +1 -1
- package/dist/{index-CfduEaC5.js → index-BNNxPuEV.js} +1 -1
- package/dist/{index-CoR64Xpr.cjs → index-BOVdAFDH.cjs} +1 -1
- package/dist/{index-BS8EpPTs.cjs → index-Bi7yv8jC.cjs} +1 -1
- package/dist/{index-Be9Zt5tl.js → index-BjXcyVvp.js} +2 -2
- package/dist/{index-CxnH4vfV.cjs → index-BrsIZVyD.cjs} +1 -1
- package/dist/index-Bsdjuxq1.cjs +1 -0
- package/dist/{index-CvrTrN91.js → index-BuKHInQb.js} +1 -1
- package/dist/{index-DeuO5bnv.cjs → index-Bx4qIiIa.cjs} +1 -1
- package/dist/{index-CpaF7pM_.cjs → index-C-AOuDkl.cjs} +1 -1
- package/dist/{index-DJ40Hyyr.cjs → index-C0HHmjrg.cjs} +1 -1
- package/dist/{index-sB_mbukA.js → index-C1lB8apW.js} +4 -4
- package/dist/{index-C_AbUtWk.cjs → index-CAHYTZ1Q.cjs} +1 -1
- package/dist/{index-Ct9LJbIa.cjs → index-CCIJ-P3X.cjs} +1 -1
- package/dist/{index-hOfuCmcV.js → index-CCsSOTaB.js} +2 -2
- package/dist/{index-CjqqJUqa.js → index-CDXq3gs4.js} +1013 -1010
- package/dist/{index-BAkiJ74E.cjs → index-CK_O7QdV.cjs} +1 -1
- package/dist/{index-D6k9CkOL.js → index-CLtFz5gE.js} +13 -13
- package/dist/{index-DyLtJwnU.cjs → index-CMlYJD5U.cjs} +1 -1
- package/dist/index-CdPbJekh.js +7294 -0
- package/dist/{index-CjI5pDiU.cjs → index-CmlXlH2b.cjs} +1 -1
- package/dist/{index-BcyUCzHm.js → index-CpE8hbs0.js} +6 -6
- package/dist/{index-7XENlCpz.cjs → index-CxNBcsll.cjs} +1 -1
- package/dist/{index-ClODZ600.js → index-CyP2hcVu.js} +6 -6
- package/dist/{index-flJIivzF.cjs → index-D-r_YKrq.cjs} +13 -13
- package/dist/{index-CElxXJY-.js → index-D0_4keB8.js} +7 -7
- package/dist/index-DBScQH7L.js +2643 -0
- package/dist/{index-BNO8srTI.cjs → index-DCf7Tz40.cjs} +1 -1
- package/dist/{index-Da8foj5C.js → index-DEwcUkb-.js} +5 -5
- package/dist/{index-Bfs3oOac.js → index-DFg-bhPI.js} +1 -1
- package/dist/{index-BqB108UB.cjs → index-DJ1PTHpx.cjs} +1 -1
- package/dist/{index-BGr_ESuH.cjs → index-DOlPMLvf.cjs} +1 -1
- package/dist/{index-BnGZhWPa.cjs → index-DPaTtF3h.cjs} +1 -1
- package/dist/{index-Bzf_z3RK.cjs → index-DPyzaxnq.cjs} +1 -1
- package/dist/{index-DkcEb3i0.js → index-DS5z17Mc.js} +2123 -2130
- package/dist/{index-D7Z7_kkD.js → index-DSsZtYMz.js} +2 -2
- package/dist/{index-hm9E8BQd.js → index-Dk8D9SRm.js} +1 -1
- package/dist/{index-CDcMFEYg.js → index-DsHRVZ0E.js} +2 -2
- package/dist/{index-ZP8xxEio.cjs → index-DszzdQnM.cjs} +1 -1
- package/dist/{index-CKHNyMzP.js → index-FxX6NP0J.js} +1 -1
- package/dist/{index-BhmbDqk0.cjs → index-LXb5DfDE.cjs} +1 -1
- package/dist/{index-BFjyLFP1.cjs → index-NFCeQcv4.cjs} +1 -1
- package/dist/{index-BCqSX1fo.js → index-PIEkAjRf.js} +12 -12
- package/dist/{index-DbzvXPKu.js → index-UN4JU0ly.js} +176 -176
- package/dist/{index-Bry_sSrG.js → index-Y7MUJdPv.js} +4 -4
- package/dist/{index-CISjtweI.js → index-bj8hK6Pe.js} +24 -24
- package/dist/{index-1z9RrjZc.cjs → index-d6tSWKtY.cjs} +1 -1
- package/dist/{index-CiktIOnl.cjs → index-nUEWiqy9.cjs} +1 -1
- package/dist/{index-Bmv3M7uZ.js → index-pLeOyTaj.js} +6 -6
- package/dist/{index-D0FR_AhB.js → index-xHEf6hcO.js} +2 -2
- package/dist/index-zQVJFawn.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BnK7zR_5.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BTu7I4mn.js} +10362 -10383
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5Xqazal.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cmc1oALS.cjs} +123 -123
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Bu0MMp-F.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Bg_c-oAL.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D-u_Cg-8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-C795GAHK.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-9kDr7Iek.js +37436 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Bn5qXF4J.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-Ca71BDvm.cjs → index.vue_vue_type_style_index_1_lang-Bn7P4fYM.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DMTvCBLP.js → index.vue_vue_type_style_index_1_lang-D1n_3_F6.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-Exyt6qTf.js +7798 -0
- package/dist/index.vue_vue_type_style_index_1_lang-zN5mc8b0.cjs +32 -0
- package/dist/{isString-CZMLuMzD.js → isString-BAN9KLwf.js} +1 -1
- package/dist/{isString-BmAegMGI.cjs → isString-ChvWbctO.cjs} +1 -1
- package/dist/{main-gNJqytEB.cjs → main-BUEuCNq-.cjs} +1 -1
- package/dist/{main-Dji-qcpb.js → main-Dk3BZDsa.js} +5 -5
- 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-CkQ98n-T.js → three-viewport-gizmo-BHznJ6W3.js} +2 -2
- package/dist/{threeLatheView-BmVBnC8n.js → threeLatheView-DcuDjVv0.js} +4 -4
- package/dist/{threeLatheView-CZdorls1.cjs → threeLatheView-DfSxRY8B.cjs} +1 -1
- package/dist/{threeModel-AI7JwNc8.cjs → threeModel-DjjtL0-a.cjs} +1 -1
- package/dist/{threeModel-ejibS2N7.js → threeModel-YRFvkgXU.js} +5 -5
- package/dist/{threePreview-C_mY_TBC.cjs → threePreview-ByUYJkts.cjs} +1 -1
- package/dist/{threePreview-CYX5wKoL.js → threePreview-CyYfnbB6.js} +4 -4
- package/dist/threeSceneView-mhrcH0WG.cjs +5 -0
- package/dist/threeSceneView-zvyCHrp1.js +1469 -0
- package/dist/{threeSceneViewForCPMPIP-OOuWUtK1.cjs → threeSceneViewForCPMPIP-DA-twBdG.cjs} +3 -3
- package/dist/{threeSceneViewForCPMPIP-CDxxtlbo.js → threeSceneViewForCPMPIP-axjwKt9X.js} +85 -86
- package/dist/threeViewerHost-B02OtfCk.cjs +1 -0
- package/dist/{threeViewerHost-DTgKwwlG.js → threeViewerHost-D7L1FW__.js} +65 -78
- package/dist/{useRayCaster-5KTcOfSB.js → useRayCaster-CAqupK7D.js} +5 -5
- package/dist/useRayCaster-ClcofJkf.cjs +1 -0
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/animationData-C3K2hxaU.cjs +0 -1
- package/dist/array-B-rkzr_a.js +0 -1142
- package/dist/array-DRbhAcfX.cjs +0 -11
- package/dist/index-0Pm0ddJB.cjs +0 -1
- package/dist/index-8qtn1JAM.cjs +0 -1
- package/dist/index-BTh-u_yw.js +0 -3370
- package/dist/index-CYNps_oO.js +0 -7210
- package/dist/index-DlDK9CYq.cjs +0 -1
- package/dist/index-HrI-8Xdy.cjs +0 -1
- package/dist/index-hol6Hhnu.js +0 -2567
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BDNNr7wB.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BqbQkXoK.js +0 -34117
- package/dist/index.vue_vue_type_style_index_1_lang-BayGiM6k.cjs +0 -32
- package/dist/index.vue_vue_type_style_index_1_lang-bErlZPyW.js +0 -8085
- package/dist/isUndefined-ClRzgwTy.cjs +0 -1
- package/dist/isUndefined-chfCDxUU.js +0 -84
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeSceneView-BO8STZl6.js +0 -1472
- package/dist/threeSceneView-CXqoIpeL.cjs +0 -5
- package/dist/threeViewerHost-ChVCHaag.cjs +0 -1
- package/dist/useRayCaster-C428LZl9.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -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-BHznJ6W3.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, o 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-BHznJ6W3.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, k as x } from "./index.vue_vue_type_style_index_1_lang-Exyt6qTf.js";
|
|
2
|
+
import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-D1n_3_F6.js";
|
|
3
|
+
import { d as I } from "./threeViewerHost-D7L1FW__.js";
|
|
4
|
+
import { c as P } from "./index-UN4JU0ly.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 B(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 j(r) {
|
|
|
36
36
|
if (s)
|
|
37
37
|
return s[2].trim();
|
|
38
38
|
}
|
|
39
|
-
async function
|
|
39
|
+
async function j(r) {
|
|
40
40
|
let c, s;
|
|
41
41
|
if (/^https?:\/\//.test(r))
|
|
42
42
|
try {
|
|
@@ -56,7 +56,7 @@ async function B(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 = B(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.管长 || 0, y = l.外径 || 0;
|
|
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.夹持长度 || 0;
|
|
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.夹持位置 || 0;
|
|
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 j(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-zN5mc8b0.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-Bn7P4fYM.cjs"),U=require("./threeViewerHost-B02OtfCk.cjs"),T=require("./index-d6tSWKtY.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.管长||0,u=m.外径||0;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.夹持长度||0;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.夹持位置||0;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 z=require("vue"),i=require("./index-d6tSWKtY.cjs"),Me=typeof window<"u";var le;Me&&((le=window==null?void 0:window.navigator)!=null&&le.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ue(e){return e==null}function Ee(){}const Le=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(Le)));function We(){const e=new Map;return{on(t,r){const n=e.get(t);n!=null&&n.add(r)||e.set(t,new Set([r]))},off(t,r){const n=e.get(t);n&&n.delete(r)},clear(t){const r=e.get(t);r&&r.clear()},clearAll(){e.clear()},emit(t,...r){const n=e.get(t);n&&n.forEach(o=>{o(...r)})}}}function Ve(e,t=16){if(typeof e!="function")return Ee;const r=(...a)=>{e(...a)};if(t<=0)return Oe(r);let n=0,o;return function(...a){const l=Date.now(),s=l-n;clearTimeout(o),s>=t?(n=l,r(...a)):o=setTimeout(()=>{n=Date.now(),r(...a)},Math.max(0,t-s))}}function Je(e,t=100){if(typeof e!="function")return Ee;const r=(...o)=>{e(...o)};if(t<=0)return Oe(r);let n;return function(...o){clearTimeout(n),n=setTimeout(()=>{r(...o)},t)}}function Oe(e){if(typeof e!="function")return e;let t=!1,r,n;return function(...o){return r=o,t||(t=!0,n=Promise.resolve().then(()=>(t=!1,n=void 0,e(...r)))),n}}const U=new Set,Te=new WeakMap;function Ie(){U.forEach(e=>{e(...Te.get(e))}),U.clear()}function Ge(e,...t){if(typeof e!="function")return e;Te.set(e,t),!U.has(e)&&(U.add(e),U.size===1&&Promise.resolve().then(Ie))}const q=typeof window<"u";var ie;q&&(ie=window==null?void 0:window.navigator)!=null&&ie.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function se(e){return e!=null}function ce(){}const Xe=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(Xe)));const Ze=q&&("ontouchstart"in window||Ke()>0),He=Ze?"pointerdown":"click";function Ke(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function Ye(e,t,r=window.Event){const{type:n,bubbles:o=!1,cancelable:a=!1,...l}=t;if(!se(n)||n==="")return!1;let s;return se(r)?s=new r(n,{bubbles:o,cancelable:a}):(s=document.createEvent("HTMLEvents"),s.initEvent(n,o,a)),Object.assign(s,l),e.dispatchEvent(s)}const Qe="clickoutside",et=new Set;q&&document.addEventListener(He,e=>{const t=e.target,r=e.composedPath&&e.composedPath();et.forEach(n=>{n!==t&&(r?!r.includes(n):!n.contains(t))&&(!n.__transferElement||n.__transferElement!==t&&!n.__transferElement.contains(t))&&Ye(n,{type:Qe})})},!0);const tt=[["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 H;if(q){for(const e of tt)if(e[1]in document){H=e;break}}z.computed(()=>!1);const rt=new Set,nt=new WeakMap;if(q&&H){const e=H[2],t=H[4];document.addEventListener(t,()=>{if(rt.forEach(r=>{r.value=!1}),document[e]){const r=nt.get(document[e]);r&&(r.value=!0)}},!1)}const De=new Map;De.set("x",0);De.set("y",0);var N=[],ot=function(){return N.some(function(e){return e.activeTargets.length>0})},at=function(){return N.some(function(e){return e.skippedTargets.length>0})},fe="ResizeObserver loop completed with undelivered notifications.",lt=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:fe}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=fe),window.dispatchEvent(e)},W;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(W||(W={}));var $=function(e){return Object.freeze(e)},it=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,$(this)}return e}(),Se=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,$(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,a=t.right,l=t.bottom,s=t.left,m=t.width,f=t.height;return{x:r,y:n,top:o,right:a,bottom:l,left:s,width:m,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ae=function(e){return e instanceof SVGElement&&"getBBox"in e},Ae=function(e){if(ae(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,a=o.offsetWidth,l=o.offsetHeight;return!(a||l||e.getClientRects().length)},ue=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},st=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},L=typeof window<"u"?window:{},I=new WeakMap,de=/auto|scroll/,ct=/^tb|vertical/,ft=/msie|trident/i.test(L.navigator&&L.navigator.userAgent),S=function(e){return parseFloat(e||"0")},C=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new it((r?t:e)||0,(r?e:t)||0)},pe=$({devicePixelContentBoxSize:C(),borderBoxSize:C(),contentBoxSize:C(),contentRect:new Se(0,0,0,0)}),Be=function(e,t){if(t===void 0&&(t=!1),I.has(e)&&!t)return I.get(e);if(Ae(e))return I.set(e,pe),pe;var r=getComputedStyle(e),n=ae(e)&&e.ownerSVGElement&&e.getBBox(),o=!ft&&r.boxSizing==="border-box",a=ct.test(r.writingMode||""),l=!n&&de.test(r.overflowY||""),s=!n&&de.test(r.overflowX||""),m=n?0:S(r.paddingTop),f=n?0:S(r.paddingRight),A=n?0:S(r.paddingBottom),c=n?0:S(r.paddingLeft),x=n?0:S(r.borderTopWidth),u=n?0:S(r.borderRightWidth),d=n?0:S(r.borderBottomWidth),T=n?0:S(r.borderLeftWidth),y=c+f,p=m+A,g=T+u,b=x+d,_=s?e.offsetHeight-b-e.clientHeight:0,j=l?e.offsetWidth-g-e.clientWidth:0,F=o?y+g:0,R=o?p+b:0,D=n?n.width:S(r.width)-F-j,B=n?n.height:S(r.height)-R-_,V=D+y+j+g,J=B+p+_+b,P=$({devicePixelContentBoxSize:C(Math.round(D*devicePixelRatio),Math.round(B*devicePixelRatio),a),borderBoxSize:C(V,J,a),contentBoxSize:C(D,B,a),contentRect:new Se(c,m,D,B)});return I.set(e,P),P},_e=function(e,t,r){var n=Be(e,r),o=n.borderBoxSize,a=n.contentBoxSize,l=n.devicePixelContentBoxSize;switch(t){case W.DEVICE_PIXEL_CONTENT_BOX:return l;case W.BORDER_BOX:return o;default:return a}},ut=function(){function e(t){var r=Be(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=$([r.borderBoxSize]),this.contentBoxSize=$([r.contentBoxSize]),this.devicePixelContentBoxSize=$([r.devicePixelContentBoxSize])}return e}(),je=function(e){if(Ae(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},dt=function(){var e=1/0,t=[];N.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(s){var m=new ut(s.target),f=je(s.target);l.push(m),s.lastReportedSize=_e(s.target,s.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e},he=function(e){N.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(je(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},pt=function(){var e=0;for(he(e);ot();)e=dt(),he(e);return at()&<(),e>0},ee,Fe=[],ht=function(){return Fe.splice(0).forEach(function(e){return e()})},gt=function(e){if(!ee){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return ht()}).observe(r,n),ee=function(){r.textContent="".concat(t?t--:t++)}}Fe.push(e),ee()},bt=function(e){gt(function(){requestAnimationFrame(e)})},K=0,mt=function(){return!!K},yt=250,vt={attributes:!0,characterData:!0,childList:!0,subtree:!0},ge=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],be=function(e){return e===void 0&&(e=0),Date.now()+e},te=!1,kt=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=yt),!te){te=!0;var n=be(t);bt(function(){var o=!1;try{o=pt()}finally{if(te=!1,t=n-be(),!mt())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,vt)};document.body?r():L.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ge.forEach(function(r){return L.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ge.forEach(function(r){return L.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),oe=new kt,me=function(e){!K&&e>0&&oe.start(),K+=e,!K&&oe.stop()},wt=function(e){return!ae(e)&&!st(e)&&getComputedStyle(e).display==="inline"},zt=function(){function e(t,r){this.target=t,this.observedBox=r||W.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=_e(this.target,this.observedBox,!0);return wt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),xt=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),G=new WeakMap,ye=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},X=function(){function e(){}return e.connect=function(t,r){var n=new xt(t,r);G.set(t,n)},e.observe=function(t,r,n){var o=G.get(t),a=o.observationTargets.length===0;ye(o.observationTargets,r)<0&&(a&&N.push(o),o.observationTargets.push(new zt(r,n&&n.box)),me(1),oe.schedule())},e.unobserve=function(t,r){var n=G.get(t),o=ye(n.observationTargets,r),a=n.observationTargets.length===1;o>=0&&(a&&N.splice(N.indexOf(n),1),n.observationTargets.splice(o,1),me(-1))},e.disconnect=function(t){var r=this,n=G.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Et=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,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ue(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X.observe(this,t,r)},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(!ue(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 Q=new WeakMap;function Ot(e){var t;for(let r=0,n=e.length;r<n;++r){const o=e[r],a=Q.get(o.target);if(typeof a=="function"){const{inlineSize:l,blockSize:s}=((t=o.borderBoxSize)==null?void 0:t[0])??{},{offsetWidth:m,offsetHeight:f}=o.target;a(Object.assign(o,{offsetWidth:m,offsetHeight:f,width:l??m,height:s??f}))}}}const Re=new(q&&window.ResizeObserver||Et)(Ot);function ve(e,t){Q.set(e,t),Re.observe(e)}function ke(e){Q.has(e)&&(Re.unobserve(e),Q.delete(e))}function Tt(e={}){let t=ce;const r=z.watch(()=>z.unref(e.target),o=>{t(),!(!o||typeof e.onResize!="function")&&(ve(o,e.onResize),t=()=>{ke(o),t=ce})},{immediate:!0}),n=()=>{r(),t()};return z.getCurrentScope()&&z.onScopeDispose(n),{observeResize:ve,unobserveResize:ke,unobserve:n}}const Dt=z.ref(!1);z.computed(()=>Dt.value);const we="__theme_style__",re="__theme_observer__",ze=z.reactive(new Map),xe=new Map;z.watch(ze,()=>{if(!q)return;xe.clear();const e=document.head.querySelector(`#${we}`);e&&document.head.removeChild(e);const t=document.createElement("style");let r=`.${re} { width: 1px }`,n=1;for(const[o,[a,l]]of ze.entries())r+=` html.${a} .${re}, .${l} .${re} { width: ${++n}px }`,xe.set(n,o);t.textContent=r,t.id=we,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)}})();const w=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],k=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];z.ref(0);const Ne=e=>{var t,r;if(Array.isArray(Object.keys(e))&&((t=Object.keys(e))==null?void 0:t.length)>0){let n=[];return(r=Object.entries(e))==null||r.forEach(([o,a])=>{var s,m;let l=[];if(l.push(o),((s=Object.keys(a))==null?void 0:s.length)>0){let f=[];(m=Ne(a))==null||m.forEach(A=>{f.push(A)}),f==null||f.forEach(A=>{l.push(A)})}n.push(l)}),n}},St=(e,t)=>{var n;let r=t;return Array.isArray(Object.keys(e))&&((n=Object.entries(e))==null||n.forEach(([o,a])=>{let l=[o];if(typeof a=="object"&&a!==null){let s=Ne(a);s==null||s.forEach(m=>{l.push(m)})}r.push(l)})),r},At=e=>{const t={};return e.forEach(n=>{const o=n.split("/");let a=t;o.forEach(l=>{a[l]||(a[l]={}),a=a[l]})}),St(t,[])},Bt=e=>At(e);z.ref(0);z.ref(1);const $e=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 r=[];let n="";for(const o of t)o.includes("{")||n.includes("{")||o.includes("[")||n.includes("[")||o.includes("【")||n.includes("【")||o.includes("(")||n.includes("(")||o.includes("(")||n.includes("(")||o.includes("/*")||n.includes("/*")?(n+=o.trim(),i.cloneDeep(n).split("{").length-1===i.cloneDeep(n).split("}").length-1&&i.cloneDeep(n).split("【").length-1===i.cloneDeep(n).split("】").length-1&&i.cloneDeep(n).split("[").length-1===i.cloneDeep(n).split("]").length-1&&i.cloneDeep(n).split("(").length-1===i.cloneDeep(n).split(")").length-1&&i.cloneDeep(n).split("(").length-1===i.cloneDeep(n).split(")").length-1&&i.cloneDeep(n).split("/*").length-1===i.cloneDeep(n).split("*/").length-1&&n[n.length-1]!==","?(r.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n=""):n!=null&&n.includes("*/")&&(n=n.replace(/\/\*[\s\S]*?\*\//g,""))):r.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return r},_t=e=>{const[t,r]=e.split(/=(.+)/),n=t.replace(/['"]/g,"").trim(),o=r.replace(/^['"]|['"]$/g,"");return{key:n,value:o}},qe=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 r=[];let n="";for(const o of t)o.includes("{")||n.includes("{")||o.includes("[")||n.includes("[")||o.includes("【")||n.includes("【")||o.includes("(")||n.includes("(")||o.includes("(")||n.includes("(")||o.includes("/*")||n.includes("/*")?(n=n!==""?n+":"+o.trim():o.trim(),i.cloneDeep(n).split("{").length-1===i.cloneDeep(n).split("}").length-1&&i.cloneDeep(n).split("【").length-1===i.cloneDeep(n).split("】").length-1&&i.cloneDeep(n).split("[").length-1===i.cloneDeep(n).split("]").length-1&&i.cloneDeep(n).split("(").length-1===i.cloneDeep(n).split(")").length-1&&i.cloneDeep(n).split("(").length-1===i.cloneDeep(n).split(")").length-1&&i.cloneDeep(n).split("/*").length-1===i.cloneDeep(n).split("*/").length-1&&(r.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n="")):r.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return r},jt=e=>{var r,n,o,a,l,s,m,f;const t=(n=(r=e.split("("))==null?void 0:r[1])==null?void 0:n.trim();return((o=qe(t.slice(0,t.length-1)))==null?void 0:o.length)>0?t.slice(0,t.length-1):(f=(m=(s=(l=(a=e.split("("))==null?void 0:a[1])==null?void 0:l.trim())==null?void 0:s.split(")"))==null?void 0:m[0])==null?void 0:f.trim()},Z=z.ref(0),ne=z.ref(0),Ft=e=>{const t=e.trim().replace(/^'|'$/g,""),r=/((?:\$?[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,n={};let o;for(;(o=r.exec(t))!==null;){const a=o[1];let l=o[2].trim();(l.match(/\[/g)||[]).length!==(l.match(/\]/g)||[]).length&&(l=l==null?void 0:l.replace(/]$/,"")),n[a]?(n[a+ne.value]&&ne.value++,n[a+ne.value]=a+"="+l):n[a]=a+"="+l}return n},Ce=e=>{const[t,r]=e.split("=").map(a=>a.trim()),n=t.replace(/['"]/g,""),o=r.replace(/^['"]|['"]$/g,"");return{key:n,value:o}},Rt=e=>{var l;let t=[];const[r,n]=e.split(/=(.+)/),o=r.replace(/['"]/g,"").trim(),a=n.replace(/^['"]|['"]$/g,"");return(l=Object.values(Ft(a)))==null||l.forEach(s=>{t.push(Ce(s))}),{key:o,value:t}},Y=e=>{try{return JSON.parse(e),!0}catch{return!1}},Pe=e=>{try{const t=e.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(i.cloneDeep(t).split("{").length-1>1){let r=i.cloneDeep(t).replace(/^\{(.*)\}$/,"[$1]");if(Y(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Y(r)){const n=JSON.parse(r);let o=[];return n==null||n.forEach(a=>{var l;(l=Object.entries(i.cloneDeep(a)))==null||l.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(i.cloneDeep(a)).length})})}),o}else return console.error("转换类型不正确:"),[]}else if(Y(t)){const r=JSON.parse(t);return Object.entries(r).map(([n,o])=>(Z.value++,{id:Z.value,key:n,value:o===""?"":o,width:1}))}else return t}catch(t){return console.error("转换失败:",t),[]}},Nt=(e,t)=>{try{if(w!=null&&w.find(r=>(r==null?void 0:r.key)===t))return JSON.parse(e.replace(/[’]|[‘]|[']/g,'"'));if(i.cloneDeep(e).split("[").length-1>1){const r=i.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(r)}else{const r=i.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(Y(r)){const n=JSON.parse(r);return Array.isArray(n)?n.map(o=>({label:o})):n}else return Pe(i.cloneDeep(e))}}catch(r){return console.error("解析失败:",r),e}},$t=e=>({[e==null?void 0:e.key]:Nt(e==null?void 0:e.value,e==null?void 0:e.key)}),qt=e=>{try{if(i.cloneDeep(e).split("[").length-1>1){const t=i.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(i.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(r=>({label:r}))}catch(t){return console.error("解析失败:",t),e}},Ct=e=>{var t,r,n,o,a,l;try{const s=$e((r=(t=i.cloneDeep(e))==null?void 0:t.replace("(","("))==null?void 0:r.replace(")",")")),m=(n=i.cloneDeep(s))==null?void 0:n.map(c=>{var u,d;let x=(d=(u=i.cloneDeep(c))==null?void 0:u.split("="))==null?void 0:d[0];return x!=null&&x.includes("GroupContents")?Rt(c):Ce(c)}),f=[];(o=i.cloneDeep(m))==null||o.forEach(c=>{var x,u,d,T,y;w!=null&&w.find(p=>{var g,b;return((g=p==null?void 0:p.key)==null?void 0:g.toUpperCase())===((b=c==null?void 0:c.key)==null?void 0:b.toUpperCase())})?f.push({comp:((x=w==null?void 0:w.find(p=>{var g,b;return((g=p==null?void 0:p.key)==null?void 0:g.toUpperCase())===((b=c==null?void 0:c.key)==null?void 0:b.toUpperCase())}))==null?void 0:x.value)??"",name:(u=c==null?void 0:c.value)==null?void 0:u.replace(/[’]|[‘]|[']/g,""),compData:[]}):k!=null&&k.find(p=>{var g,b;return((g=p==null?void 0:p.key)==null?void 0:g.toUpperCase())===((b=c==null?void 0:c.key)==null?void 0:b.toUpperCase())})&&((f==null?void 0:f.length)===0&&(d=c.key)!=null&&d.includes("Menus")&&f.push({comp:"Menu",name:"",compData:[]}),(T=f==null?void 0:f[(f==null?void 0:f.length)-1])!=null&&T.compData&&f[(f==null?void 0:f.length)-1].compData.push({key:(y=k==null?void 0:k.find(p=>{var g,b;return((g=p==null?void 0:p.key)==null?void 0:g.toUpperCase())===((b=c==null?void 0:c.key)==null?void 0:b.toUpperCase())}))==null?void 0:y.value,contents:c==null?void 0:c.value}))});let A=(a=i.cloneDeep(f))==null?void 0:a.map(c=>{var x;return c!=null&&c.compData&&(c.compData=(x=c==null?void 0:c.compData)==null?void 0:x.map(u=>{var d,T,y,p,g,b,_,j,F,R,D;if((u==null?void 0:u.key)==="formFlex")u.contents=((T=(d=u.contents)==null?void 0:d.replace(/[’]|[‘]|[']/g,""))==null?void 0:T.toUpperCase())!=="Vertical".toUpperCase();else if((u==null?void 0:u.key)==="groupContents")u.contents=(y=i.cloneDeep(u.contents))==null?void 0:y.map(B=>$t(i.cloneDeep(B)));else if(((g=(p=u.contents)==null?void 0:p.trim())!=null&&g.startsWith("[")||(_=(b=u.contents)==null?void 0:b.trim())!=null&&_.startsWith("【"))&&((F=(j=u.contents)==null?void 0:j.trim())!=null&&F.endsWith("]")||(D=(R=u.contents)==null?void 0:R.trim())!=null&&D.endsWith("】")))u.contents=qt(i.cloneDeep(u.contents));else{if(!u.contents)return;u.contents=Pe(i.cloneDeep(u.contents))}return u})),c});return A=(l=i.cloneDeep(A))==null?void 0:l.map(c=>{var x;return(c==null?void 0:c.comp)==="Group"&&(c.compData=(x=c.compData)==null?void 0:x.map(u=>{var T;let d=[];return(T=u.contents)==null||T.forEach(y=>{var p,g,b,_,j,F,R,D,B,V,J,P;if(w!=null&&w.find(h=>{var v,E,O;return((v=h==null?void 0:h.key)==null?void 0:v.toUpperCase())===((O=(E=Object.keys(y))==null?void 0:E[0])==null?void 0:O.toUpperCase())}))d.push({comp:(p=w==null?void 0:w.find(h=>{var v,E,O;return((v=h==null?void 0:h.key)==null?void 0:v.toUpperCase())===((O=(E=Object.keys(y))==null?void 0:E[0])==null?void 0:O.toUpperCase())}))==null?void 0:p.value,name:(b=(g=Object.values(y))==null?void 0:g[0])==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(k!=null&&k.find(h=>{var v,E,O;return((v=h==null?void 0:h.key)==null?void 0:v.toUpperCase())===((O=(E=Object.keys(y))==null?void 0:E[0])==null?void 0:O.toUpperCase())})){if((d==null?void 0:d.length)===0)return;(_=d==null?void 0:d[(d==null?void 0:d.length)-1])!=null&&_.compData&&d[(d==null?void 0:d.length)-1].compData.push({key:(j=k==null?void 0:k.find(h=>{var v,E,O;return((v=h==null?void 0:h.key)==null?void 0:v.toUpperCase())===((O=(E=Object.keys(y))==null?void 0:E[0])==null?void 0:O.toUpperCase())}))==null?void 0:j.value,contents:(F=Object.values(y))==null?void 0:F[0]})}else if((D=(R=Object.keys(y))==null?void 0:R[0])!=null&&D.includes("$")){const h=(V=(B=Object.keys(i.cloneDeep(y)))==null?void 0:B[0])==null?void 0:V.split("$");d[(d==null?void 0:d.length)-1].compData.push({key:(J=k==null?void 0:k.find(v=>{var E,O;return((E=v==null?void 0:v.key)==null?void 0:E.toUpperCase())===((O=h==null?void 0:h[0])==null?void 0:O.toUpperCase())}))==null?void 0:J.value,contents:(P=Object.values(y))==null?void 0:P[0],selectLabel:h==null?void 0:h[1]})}return y}),u.contents=d,u})),c}),A}catch{return!1}},Pt=e=>Ct(e),M=z.ref(0),Mt=e=>e.reduce((r,n)=>{var a,l;const o=Object.values(r);return(((a=Object.keys(r))==null?void 0:a.length)===0||o[o.length-1].length>=(n==null?void 0:n.width))&&(r[M.value]=[],M.value++),r[M.value-1].push(n),((l=Object.keys(r))==null?void 0:l.length)===(n==null?void 0:n.width)&&(r[M.value]=[],M.value++),r},{});exports.Zr=We;exports.arrayToNumberArray=Mt;exports.contentTrans=qe;exports.contentTransArray=$e;exports.eo=Ve;exports.expandStringToJson=Pt;exports.getContentValue=jt;exports.ie=Ue;exports.menuArray=Bt;exports.no=Je;exports.oo=Ge;exports.parseGroupValue=_t;exports.wo=Tt;
|