ss-component-new 1.2.19 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{animationData-DHZB79in.js → animationData-BgVD7m_Z.js} +4 -4
  2. package/dist/{animationData-CM-r9wyr.cjs → animationData-CMbPkqzG.cjs} +1 -1
  3. package/dist/{array-DtLHXuRQ.cjs → array-CFSAyjws.cjs} +1 -1
  4. package/dist/{array-lSB-nT70.js → array-DPyu0w54.js} +2 -2
  5. package/dist/{index-BdpUfLri.cjs → index-10VrsYdM.cjs} +1 -1
  6. package/dist/{index-BA5XOzgo.js → index-B0IAWN2b.js} +6 -6
  7. package/dist/{index-CQF_xosZ.cjs → index-B1GAMEgu.cjs} +1 -1
  8. package/dist/{index-Cwgs7EkD.js → index-B1XSRq6_.js} +1 -1
  9. package/dist/index-B3GHAekq.cjs +1 -0
  10. package/dist/{index-qagc_PIZ.js → index-B3VR9DS9.js} +127 -127
  11. package/dist/{index-CYp77kPp.js → index-B42dCx1W.js} +35 -35
  12. package/dist/{index-BXBJvXWT.js → index-BHMxqTVw.js} +1 -1
  13. package/dist/{index-BZPwTn-e.js → index-BISAvhZU.js} +3 -3
  14. package/dist/{index-B66Gznvh.cjs → index-BIvF4-_X.cjs} +1 -1
  15. package/dist/{index-DLovX_qy.js → index-BIxz3VQK.js} +11 -11
  16. package/dist/{index-CDLzfr4U.js → index-BKM1OHVI.js} +2 -2
  17. package/dist/{index-CYe2gI66.cjs → index-BKPxS6l5.cjs} +1 -1
  18. package/dist/{index-CCZA5OMk.js → index-BKd-eN-X.js} +45 -45
  19. package/dist/{index-d7fMw53g.cjs → index-BSzMEymQ.cjs} +1 -1
  20. package/dist/{index-C0lRDd5G.cjs → index-BVORb8w5.cjs} +1 -1
  21. package/dist/{index-CJ18eFLi.cjs → index-BaEflW9q.cjs} +1 -1
  22. package/dist/{index-C461j30b.js → index-Bgje9P6C.js} +1 -1
  23. package/dist/{index-CKvtRDgL.cjs → index-Bm44NMcZ.cjs} +1 -1
  24. package/dist/{index-DoJxkMbN.js → index-BnP-OVLZ.js} +19 -19
  25. package/dist/{index-CUm-3IJT.cjs → index-BoBLST3L.cjs} +1 -1
  26. package/dist/{index-Cp9R4hVX.cjs → index-Bpa1jsWq.cjs} +1 -1
  27. package/dist/{index-DW-CHCUy.js → index-BsorG9sX.js} +3 -3
  28. package/dist/{index-CohL-xT-.js → index-Byuw-d13.js} +2 -2
  29. package/dist/{index-DWyHMwpG.js → index-CETOzEkF.js} +6 -6
  30. package/dist/{index-BwjuTBrR.js → index-CFrBvay9.js} +1 -1
  31. package/dist/{index-ClF5mrVY.cjs → index-CPVt8Wrk.cjs} +1 -1
  32. package/dist/{index-BkRpCoTx.cjs → index-CTVVACAH.cjs} +1 -1
  33. package/dist/{index-ct6Uwcq4.cjs → index-CahUIEFl.cjs} +1 -1
  34. package/dist/{index--LhAkpOq.cjs → index-CbslhDEf.cjs} +1 -1
  35. package/dist/{index-Dw4KeMlJ.cjs → index-Cu7pB5GB.cjs} +1 -1
  36. package/dist/{index-Cf79bLZO.js → index-Cu_QyXxB.js} +2 -2
  37. package/dist/{index-DcmGr3J0.cjs → index-CyqP7oeY.cjs} +1 -1
  38. package/dist/{index-BKgbkArH.cjs → index-CyzuptEh.cjs} +1 -1
  39. package/dist/{index-n6maO8qu.js → index-D0fqSkIt.js} +2 -2
  40. package/dist/{index-BfNqdIOP.js → index-D3w8CFxz.js} +4 -4
  41. package/dist/{index-Cqd0F9a9.js → index-DAkKNbYV.js} +12 -12
  42. package/dist/{index-DhqF2CA-.js → index-DRGXzdw7.js} +2 -2
  43. package/dist/{index-CijoI-9f.js → index-DZgwOX56.js} +6 -6
  44. package/dist/{index-DFXZiHSV.cjs → index-DaOTArXF.cjs} +1 -1
  45. package/dist/{index-9YqHJG26.js → index-DhcAF24X.js} +8 -8
  46. package/dist/{index-BovzU-BN.js → index-DmmUjSu_.js} +4 -4
  47. package/dist/{index-BWHJGJ1e.cjs → index-Do4CoXhH.cjs} +1 -1
  48. package/dist/{index-CAkJ-S5C.cjs → index-DpmVXC_Q.cjs} +1 -1
  49. package/dist/{index-C26I2eIi.cjs → index-DubsCmcm.cjs} +1 -1
  50. package/dist/{index-CAAtUOzM.cjs → index-DwkFRUcM.cjs} +1 -1
  51. package/dist/{index-CvSBsAV7.cjs → index-FGO3o5gd.cjs} +1 -1
  52. package/dist/{index-CutRp0mU.js → index-IplqGB4d.js} +6 -6
  53. package/dist/{index-Ckc2csf3.js → index-Z-Tg_cZ7.js} +2 -2
  54. package/dist/{index-CY02zKVE.cjs → index-bL_GpYsf.cjs} +1 -1
  55. package/dist/{index-CqnPwWag.js → index-lzrjiUS5.js} +2 -2
  56. package/dist/{index-Cd58A7uv.cjs → index-rhNfaMfG.cjs} +1 -1
  57. package/dist/{index-B19xwKx1.js → index-sUsojzpW.js} +1 -1
  58. package/dist/{index-CwVl7hYK.js → index-w38DtIEl.js} +6 -6
  59. package/dist/{index-BdioXHog.js → index-x1q2XfBL.js} +12 -12
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CqTDROhf.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Be4dFvUC.js} +2 -2
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DMNlG9dC.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIRzfvAn.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DZZXEjAk.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-6zdxGopn.js} +13 -13
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CM9szr9Y.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-97ZyXl6J.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DCpKvb-8.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BgIXU87c.js} +11641 -11513
  65. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CY0MiFwy.cjs +56 -0
  66. package/dist/{index.vue_vue_type_style_index_1_lang-CecxMizO.cjs → index.vue_vue_type_style_index_1_lang-29vzgcAi.cjs} +1 -1
  67. package/dist/{index.vue_vue_type_style_index_1_lang-BswQV5Lr.js → index.vue_vue_type_style_index_1_lang-CtkjAjQ8.js} +3 -3
  68. package/dist/index.vue_vue_type_style_index_1_lang-DUZFMfkl.js +8310 -0
  69. package/dist/index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs +32 -0
  70. package/dist/{isString-BNK38WbE.js → isString-BrYdkZh8.js} +1 -1
  71. package/dist/{main-oZpjzC8J.cjs → main-Bt-9WV5Z.cjs} +1 -1
  72. package/dist/{main-DD4ds9VF.js → main-DNN-2mgC.js} +5 -5
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +11 -11
  76. package/dist/ss-component2.cjs +1 -1
  77. package/dist/ss-component2.js +12 -12
  78. package/dist/{threeLatheView-Bp0kjo_V.js → threeLatheView-DuqX5kKf.js} +2 -2
  79. package/dist/{threeModel-CFk-bjEz.cjs → threeModel-14TQ7qah.cjs} +1 -1
  80. package/dist/{threeModel-od894OgJ.js → threeModel-KPFJkl4n.js} +3 -3
  81. package/dist/{threePreview-DFFjm93P.js → threePreview-B7C8gY5w.js} +1 -1
  82. package/dist/{threeSceneView-DKa3NvXL.cjs → threeSceneView-Bb-MdEV9.cjs} +1 -1
  83. package/dist/{threeSceneView-J9yJnd-8.js → threeSceneView-SrIIrGLz.js} +8 -8
  84. package/dist/{threeSceneViewForCPMPIP-C9RBmFtK.js → threeSceneViewForCPMPIP-CN_9lSRm.js} +25 -25
  85. package/dist/{threeSceneViewForCPMPIP-cGJ49EX2.cjs → threeSceneViewForCPMPIP-Da6YyhFH.cjs} +1 -1
  86. package/dist/{threeViewerHost-Cpea-3lX.js → threeViewerHost-BwiicdtA.js} +10 -10
  87. package/dist/{threeViewerHost-DqllErXG.cjs → threeViewerHost-U-AzJqIN.cjs} +1 -1
  88. package/dist/{useRayCaster-B2SPBFYC.js → useRayCaster-Bx73bXeL.js} +1 -1
  89. package/dist/{useRayCaster-CjOF8Be7.cjs → useRayCaster-CnW80o7b.cjs} +1 -1
  90. package/package.json +1 -1
  91. package/dist/index-BRbH6lIH.cjs +0 -1
  92. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-_Oz7xRLf.cjs +0 -56
  93. package/dist/index.vue_vue_type_style_index_1_lang-CT_2jezv.cjs +0 -32
  94. package/dist/index.vue_vue_type_style_index_1_lang-DMXip4Xp.js +0 -8260
@@ -1,7 +1,7 @@
1
- import { i as C, k as x } from "./index.vue_vue_type_style_index_1_lang-DMXip4Xp.js";
2
- import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-BswQV5Lr.js";
3
- import { d as I } from "./threeViewerHost-Cpea-3lX.js";
4
- import { c as P } from "./index-CYp77kPp.js";
1
+ import { i as C, k as x } from "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
2
+ import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-CtkjAjQ8.js";
3
+ import { d as I } from "./threeViewerHost-BwiicdtA.js";
4
+ import { c as P } from "./index-B42dCx1W.js";
5
5
  function N(r) {
6
6
  try {
7
7
  const c = new URL(r).pathname, s = c.substring(c.lastIndexOf("/") + 1);
@@ -1 +1 @@
1
- "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-CT_2jezv.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-CecxMizO.cjs"),U=require("./threeViewerHost-DqllErXG.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.管长||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.管长||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},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;
1
+ "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-29vzgcAi.cjs"),U=require("./threeViewerHost-U-AzJqIN.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.管长||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.管长||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},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;
@@ -1,4 +1,4 @@
1
- "use strict";const w=require("vue"),j=require("./index.vue_vue_type_style_index_1_lang-CT_2jezv.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
1
+ "use strict";const w=require("vue"),j=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.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
2
  `).replaceAll(`
3
3
  `,`\r
4
4
  `).includes(`\r
@@ -1,6 +1,6 @@
1
1
  import { watch as _e, unref as Ve, getCurrentScope as Ie, onScopeDispose as Xe, computed as je, ref as C, reactive as Ze } from "vue";
2
- import { av as P, aw as M } from "./index.vue_vue_type_style_index_1_lang-DMXip4Xp.js";
3
- import { c as s } from "./index-CYp77kPp.js";
2
+ import { aw as P, ax as M } from "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
3
+ import { c as s } from "./index-B42dCx1W.js";
4
4
  const Ge = typeof window < "u";
5
5
  var ue;
6
6
  Ge && ((ue = window == null ? void 0 : window.navigator) != null && ue.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-BRbH6lIH.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-CT_2jezv.cjs"),a=require("./index-1z9RrjZc.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,_)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-B3GHAekq.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),a=require("./index-1z9RrjZc.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,_)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x } from "./index-CohL-xT-.js";
3
- import { s as w, a as L } from "./index-BovzU-BN.js";
2
+ import { S as I, t as x } from "./index-Byuw-d13.js";
3
+ import { s as w, a as L } from "./index-DmmUjSu_.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CqTDROhf.js";
6
- import { d as E } from "./index-CwVl7hYK.js";
7
- import "./index.vue_vue_type_style_index_1_lang-DMXip4Xp.js";
8
- import { u as N, s as U } from "./index-CYp77kPp.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Be4dFvUC.js";
6
+ import { d as E } from "./index-w38DtIEl.js";
7
+ import "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
8
+ import { u as N, s as U } from "./index-B42dCx1W.js";
9
9
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
11
11
  __name: "index",
@@ -1 +1 @@
1
- "use strict";const a=require("./index-1z9RrjZc.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-CT_2jezv.cjs"),E=require("vue"),h=M.useMenuState(a.pinia),p=a.useLoginState(a.pinia),x=E.ref(!1),D=E.ref(!1),q=async()=>{const _=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([_,I]).then(s=>{var r,u,n,o,i,l,c,y,g,d,S,f,m,v;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const K=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;h.setRawMenus(K??[]),x.value=((y=t==null?void 0:t.data)==null?void 0:y.result)&&((d=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(p.setStructureData(e.data.result),p.setIsStructureExist(!0),D.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((v=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:v.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:x.value,structureExist:D.value}};exports.verifyStructureDataToStore=q;
1
+ "use strict";const a=require("./index-1z9RrjZc.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),E=require("vue"),h=M.useMenuState(a.pinia),p=a.useLoginState(a.pinia),x=E.ref(!1),D=E.ref(!1),q=async()=>{const _=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([_,I]).then(s=>{var r,u,n,o,i,l,c,y,g,d,S,f,m,v;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const K=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;h.setRawMenus(K??[]),x.value=((y=t==null?void 0:t.data)==null?void 0:y.result)&&((d=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(p.setStructureData(e.data.result),p.setIsStructureExist(!0),D.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((v=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:v.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:x.value,structureExist:D.value}};exports.verifyStructureDataToStore=q;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as f, resolveComponent as m, createBlock as y, openBlock as g, withCtx as d, createTextVNode as h, toDisplayString as b, watch as B, normalizeStyle as C, renderSlot as c, createElementVNode as v } from "vue";
2
- import "./index.vue_vue_type_style_index_1_lang-DMXip4Xp.js";
2
+ import "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const D = /* @__PURE__ */ _({
5
5
  __name: "index",
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),b=require("./index-1z9RrjZc.cjs"),ql=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIRzfvAn.cjs"),Qe=require("./index-DaOTArXF.cjs"),ul=require("./threeViewerHost-U-AzJqIN.cjs"),te=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),rl=require("./index.vue_vue_type_style_index_1_lang-29vzgcAi.cjs"),jl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./three-viewport-gizmo-BV37JzRa.cjs");const Ol=require("./index-CPVt8Wrk.cjs");require("./index-Bpa1jsWq.cjs");const da=require("./isString-BmAegMGI.cjs"),Jl=K=>K.match(/\((.*)\)/)[1],gr={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(K){const Z=K,Q=a.ref(null),P=a.ref(!1),M=a.ref(null);return a.watch(()=>Z==null?void 0:Z.isVisible,()=>{P.value=Z==null?void 0:Z.isVisible},{deep:!0,immediate:!0}),a.watch(()=>M.value,()=>{a.nextTick(()=>{var i,ae;(ae=(i=Q.value)==null?void 0:i.updatePopper)==null||ae.call(i)})},{deep:!0,immediate:!0}),(i,ae)=>{const pe=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(pe,{visible:P.value,title:Z==null?void 0:Z.title,placement:Z==null?void 0:Z.placement,width:Z==null?void 0:Z.width,ref_key:"popOverRef",ref:Q},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(i.$slots,"reference",{ref_key:"referenceRef",ref:M})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(i.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},hr={class:"extra-button-content"},yr={class:"table-operator-wrap"},vr={class:"extra-button-filter"},br={class:"form-content-value"},kr={key:0,class:"extra-header"},mr={class:"drop-menu",style:{width:"120px"}},Sr={key:0},Dr={key:1},Tr={__name:"header",props:{lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(K,{emit:Z}){const Q=Z,P=K,M=a.ref(""),i=a.ref(!1),ae=a.ref([]),pe=a.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Ne=I=>{const ie=I.raw;if(!ie)return;const G=new FileReader;G.onload=re=>{try{const be=new Uint8Array(re.target.result),Ce=rl.readSync(be,{type:"array"}),we=Ce.SheetNames[0],Ue=Ce.Sheets[we],z=rl.utils.decode_range(Ue["!ref"]).e.c+1,ke=new Array(z).fill(""),N=[];for(const Y in Ue){if(Y[0]==="!")continue;const{r:Oe,c:qe}=rl.utils.decode_cell(Y);let je=Ue[Y].v;if(Ue[Y].t==="n"&&je>0&&je<1e6&&(je=new Date((je-25569)*86400*1e3).toISOString().split("T")[0]),(je==null||je==="")&&(je=""),Oe===0)ke[qe]=je;else{if(!N[Oe-1]){N[Oe-1]={};for(let fe=0;fe<z;fe++)N[Oe-1][`col_${fe}`]=""}N[Oe-1][`col_${qe}`]=je}}for(let Y=0;Y<z;Y++)ke[Y]===void 0&&(ke[Y]="");const De=N==null?void 0:N[0];if(!(De!=null&&De.hasOwnProperty("col_0")))return b.ElMessage.error("导入的数据列不匹配,请检查是否错位");Q("getImportData",ke,N)}catch(be){throw b.ElMessage.error(be.message),new Error(be.message)}},G.readAsArrayBuffer(ie)},de=I=>{var G;const ie=(G=ae.value)==null?void 0:G.reduce((re,be,Ce)=>(Ce===0?re[be.label]=I:re[be.label]=be==null?void 0:be.value,re),{});Q("filter",ie,I,!0)},se=I=>{Q("buttonClick",I)},Re=I=>{var ie,G;ae.value=(G=(ie=te.getColumnChild(b.cloneDeep(I)))==null?void 0:ie.filter(re=>(re==null?void 0:re.label)!==""&&(re==null?void 0:re.label)!=="操作"))==null?void 0:G.map(re=>({label:(re==null?void 0:re.label)??"",value:"",name:(re==null?void 0:re.label)??"",isFormColHidden:re==null?void 0:re.isTableColHidden,width:2}))},ze=a.ref(!1),Xe=I=>{var ie;if((I==null?void 0:I.buttonName)==="确认"&&(Q("filter",I==null?void 0:I.content),ze.value=(I==null?void 0:I.content)&&Object.values(I==null?void 0:I.content).length>0),(I==null?void 0:I.buttonName)==="清空"){const G=b.cloneDeep(I==null?void 0:I.content);for(const re in G)G[re]="";ae.value=(ie=ae.value)==null?void 0:ie.map(re=>({...re,value:""})),Q("filter",G),ze.value=!1}i.value=!1},nl=()=>{var ie,G;ae.value=(ie=ae.value)==null?void 0:ie.map(re=>({...re,value:""}));const I=(G=ae.value)==null?void 0:G.reduce((re,be)=>(re[be.label]=be.value,re),{});Q("filter",I)};return a.onMounted(()=>{Re(P.columns)}),a.watch(()=>P.columns,()=>{Re(P.columns)},{deep:!0,immediate:!0}),(I,ie)=>{var Ue,ue;const G=a.resolveComponent("el-icon"),re=a.resolveComponent("svg-icon"),be=a.resolveComponent("el-input"),Ce=a.resolveComponent("el-button"),we=a.resolveComponent("el-upload");return a.openBlock(),a.createElementBlock("div",hr,[a.createElementVNode("div",{class:a.normalizeClass(K.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(P==null?void 0:P.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((P==null?void 0:P.level)-1)*12+"px",fontWeight:600-((P==null?void 0:P.level)-1)*100>=400?600-((P==null?void 0:P.level)-1)*100:400,fontSize:17-(P==null?void 0:P.level)>=14?17-(P==null?void 0:P.level)+"px":"14px"})},a.toDisplayString(K.compName),7),a.createElementVNode("div",yr,[a.createElementVNode("div",vr,[a.createVNode(gr,{title:"",width:800,placement:"bottom-start",isVisible:i.value},{reference:a.withCtx(()=>{var z,ke,N,De;return[a.createVNode(be,{modelValue:M.value,"onUpdate:modelValue":ie[1]||(ie[1]=Y=>M.value=Y),style:{"min-width":"80px"},placeholder:ze.value?(N=(ke=(z=K.filterValues)==null?void 0:z.filter(Y=>Y))==null?void 0:ke.slice(0,3))==null?void 0:N.join("/"):"搜索","prefix-icon":a.unref(b.search_default),clearable:"",onInput:de,disabled:((De=ae.value)==null?void 0:De.length)===0},{suffix:a.withCtx(()=>{var Y,Oe;return[!M.value&&((Oe=(Y=K.filterValues)==null?void 0:Y.filter(qe=>qe))!=null&&Oe.join("/"))?(a.openBlock(),a.createBlock(G,{key:0,style:{cursor:"pointer"},onClick:nl},{default:a.withCtx(()=>[a.createVNode(a.unref(b.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:ie[0]||(ie[0]=Y=>i.value=!i.value)},[a.createVNode(re,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",br,[(a.openBlock(),a.createBlock(Qe.ssForm,{rowContents:ae.value,buttonValue:pe.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:pe.value,isStartJustify:!1,onOnButtonClick:Xe},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),K.buttons&&((Ue=K.buttons)==null?void 0:Ue.length)>0?(a.openBlock(),a.createElementBlock("div",kr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ue=K.buttons)==null?void 0:ue.filter(z=>K.isDevMode||(z==null?void 0:z.label)!=="修改模板"),(z,ke)=>(a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ke},[(z==null?void 0:z.type)==="upload"?(a.openBlock(),a.createBlock(we,{key:0,class:"upload-button-wrap","on-change":Ne,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!K.lockingPage},{default:a.withCtx(()=>[a.createVNode(Ce,{disabled:!!K.lockingPage,style:a.normalizeStyle({background:(z==null?void 0:z.background)??"var(--ssbutton-theme-bg)",color:(z==null?void 0:z.color)??"var(--ssbutton-theme-color)"})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(z==null?void 0:z.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(z==null?void 0:z.type)==="popover"?(a.openBlock(),a.createBlock(Qe._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(z==null?void 0:z.type)==="popover"?(a.openBlock(),a.createBlock(Ce,{key:0,disabled:!!K.lockingPage,style:a.normalizeStyle({background:(z==null?void 0:z.background)??"var(--ssbutton-theme-bg)",color:(z==null?void 0:z.color)??"var(--ssbutton-theme-color)"})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(z==null?void 0:z.label),1)]),_:2},1032,["disabled","style"])):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",mr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z==null?void 0:z.contents,N=>(a.openBlock(),a.createBlock(Ce,{key:N==null?void 0:N.label,disabled:!!K.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:De=>se(N==null?void 0:N.label)},{default:a.withCtx(()=>{var De,Y;return[a.createTextVNode(a.toDisplayString(N==null?void 0:N.label),1),(De=N==null?void 0:N.label)!=null&&De.includes("选中")?(a.openBlock(),a.createElementBlock("span",Sr,"("+a.toDisplayString(K.selectNums)+")",1)):a.createCommentVNode("",!0),(Y=N==null?void 0:N.label)!=null&&Y.includes("全部")?(a.openBlock(),a.createElementBlock("span",Dr,"("+a.toDisplayString(K.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),z!=null&&z.type?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Ce,{key:2,id:"themeButton",disabled:!!K.lockingPage,style:a.normalizeStyle({background:(z==null?void 0:z.background)??"var(--ssbutton-theme-bg)",color:(z==null?void 0:z.color)??"var(--ssbutton-theme-color)"}),onClick:N=>se(z==null?void 0:z.label)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(z==null?void 0:z.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):a.createCommentVNode("",!0)])])}}},Cr=jl._export_sfc(Tr,[["__scopeId","data-v-b0b94ddf"]]),Ar=a.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(K,{emit:Z}){const Q=K,P=Z,M=ae=>{P("buttonClick",ae)},i=ae=>{var pe;return ae!=null&&ae.includes("删除")?((pe=Q.selectTableItems)==null?void 0:pe.length)>0?"warning-active-type":"warning-type":"default-type"};return(ae,pe)=>{const Ne=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(K.buttons,de=>(a.openBlock(),a.createBlock(Ne,{key:de==null?void 0:de.label,disabled:!!K.lockingPage,class:a.normalizeClass(i(de==null?void 0:de.label)),onClick:se=>M(de==null?void 0:de.label)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(de==null?void 0:de.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),xr=jl._export_sfc(Ar,[["__scopeId","data-v-70b12973"]]),pa=b.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(K){this.selectArray=K},setSelectString(K){this.selectString=K}}}),Er={class:"calculator-content"},_r={class:"calculator-child"},Nr={class:"calculator-child"},Br=a.defineComponent({__name:"calculator",setup(K){const Z=a.ref(),Q=a.ref();return a.onMounted(()=>{Z.value=[{type:"Upload",label:"输入",name:"input"}],Q.value=[{type:"Upload",label:"输出",name:"output"}]}),(P,M)=>(a.openBlock(),a.createElementBlock("div",Er,[a.createElementVNode("div",_r,[a.createVNode(Qe.ssForm,{rowContents:Z.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",Nr,[a.createVNode(Qe.ssForm,{rowContents:Q.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Ur=jl._export_sfc(Br,[["__scopeId","data-v-73db0fe7"]]),fa=b.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(K){this.selectIndex=K},setSelectMenu(K){this.selectMenu=K},setSelectTitle(K){this.selectTitle=K}}}),Rl=(K,Z)=>{let Q=K,P=Z;return Array.isArray(Q)&&(Q=Q==null?void 0:Q.map((M,i)=>{if(Array.isArray(M)){let ae={};return M=M==null?void 0:M.forEach((pe,Ne)=>{var de;(de=P==null?void 0:P[Ne])!=null&&de.prop?ae[P[Ne].prop]=pe:Array.isArray(pe)&&(ae.children=Rl(pe,P))}),Object.assign(ae,{id:i})}else return M})),Q},ga=(K,Z,Q)=>{let P=K,M=Z;return P=P==null?void 0:P.map((i,ae)=>{var pe,Ne;return!Array.isArray(i)||!((pe=M==null?void 0:M[ae])!=null&&pe.label)&&!Q||(i.unshift(((Ne=M==null?void 0:M[ae])==null?void 0:Ne.label)??""),i.some(de=>Array.isArray(de))&&(i=i==null?void 0:i.map(de=>{var se;return Array.isArray(de)&&(de=ga(de,(se=M==null?void 0:M[ae])==null?void 0:se.children,Q)),de}))),i}),P},Or=(K,Z,Q)=>{if(Z==="")return K==null?void 0:K.filter(P=>(P==null?void 0:P.id)!==Q);{const P=Z.split("-");return jr(K,P,Q)}},jr=(K,Z,Q)=>{let P=K,M=Z;return(M==null?void 0:M.length)===0?P=P==null?void 0:P.filter(i=>i.id!==Q):P=P==null?void 0:P.map(i=>(i.id.toString()===(M==null?void 0:M[0])&&(M==null||M.shift(),i=ha(i,M,Q)),i)),P},ha=(K,Z,Q)=>{var i,ae;let P=K,M=Z;return(M==null?void 0:M.length)===0?P.children=(i=P.children)==null?void 0:i.filter(pe=>pe.id!==Q):P.children=(ae=P.children)==null?void 0:ae.map(pe=>(pe.id.toString()===(M==null?void 0:M[0])&&(M==null||M.shift(),pe=ha(pe,M,Q)),pe)),P},Lr=(K,Z,Q)=>{if(Z==="")return Q;{const P=Z.split("-");return wr(K,P,Q)}},wr=(K,Z,Q)=>{let P=K,M=Z;return(M==null?void 0:M.length)===0?P=Q:P=P==null?void 0:P.map(i=>(i.id.toString()===(M==null?void 0:M[0])&&(M==null||M.shift(),i=ya(i,M,Q)),i)),P},ya=(K,Z,Q)=>{var i;let P=K,M=Z;return(M==null?void 0:M.length)===0?P.children=Q:P.children=(i=P.children)==null?void 0:i.map(ae=>(ae.id.toString()===(M==null?void 0:M[0])&&(M==null||M.shift(),ae=ya(ae,M,Q)),ae)),P},va=b.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(K){this.objUrl=K},setBlobUrls(K){this.blobUrls=K}}}),Wl=async(K,Z)=>{var ae,pe,Ne,de,se,Re,ze,Xe,nl,I,ie,G,re,be,Ce,we,Ue;let Q=(pe=(ae=b.cloneDeep(K))==null?void 0:ae.optionUrl)==null?void 0:pe.menuSelect,P=[];Q==null||Q.forEach(ue=>{});let M="",i=await te.menuToParent(Q);if(i==null||i.forEach(ue=>{var z,ke,N,De;(ue==null?void 0:ue.name)===(((De=(N=(ke=(z=b.cloneDeep(K))==null?void 0:z.optionUrl)==null?void 0:ke.groupSelect)==null?void 0:N[0])==null?void 0:De.replaceAll("'",""))??"")&&(M=ue==null?void 0:ue.id)}),Z){M=Z;const ue=await b.getInsofDataApi({id:M}),z=(Re=(se=(de=(Ne=ue==null?void 0:ue.data)==null?void 0:Ne.result)==null?void 0:de[0])==null?void 0:se.key)==null?void 0:Re.pageKey;i=await te.getItemData(z,sessionStorage.getItem("systemKey"),"")}if(M!==""){let ue;Z?ue=(ze=i==null?void 0:i.find(N=>(N==null?void 0:N.id)===Z))==null?void 0:ze.compData:ue=(Xe=i==null?void 0:i.find(N=>{var De,Y,Oe,qe;return(N==null?void 0:N.name)===(((Y=(De=K==null?void 0:K.groupSelect)==null?void 0:De.split(":"))==null?void 0:Y[0])||((qe=(Oe=K==null?void 0:K.optionUrl)==null?void 0:Oe.groupSelect)==null?void 0:qe[0]))}))==null?void 0:Xe.compData;let z=(I=(nl=ue==null?void 0:ue.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:nl.contents)==null?void 0:I.map(N=>N==null?void 0:N.label);(G=(ie=ue==null?void 0:ue.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:ie.contents)!=null&&G.every(N=>Array.isArray(N))&&(z=(Ce=te.getColumnChild((be=(re=ue==null?void 0:ue.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:re.contents)==null?void 0:be[0]))==null?void 0:Ce.map(N=>N==null?void 0:N.prop));let ke=(Ue=(we=ue==null?void 0:ue.find(N=>(N==null?void 0:N.key)==="tableContents"))==null?void 0:we.contents)==null?void 0:Ue.map(N=>(N=N==null?void 0:N.filter(De=>!(De!=null&&De.id)),N));ke==null||ke.forEach(N=>{P.push(te.getValueToObjectValue(N,z))})}return P},Mr={class:"table-content"},Pr={class:"menu-config-wrap"},$r=["onClick"],Fr={key:0,class:"viewport-wrap"},Kr=["onClick"],Vr={title:"选择显示列信息"},zr={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},qr=["title"],Jr={class:"col-operate-wrap"},Rr={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Wr={class:"pop-view"},Gr={class:"pop-wrapper"},Hr={class:"file-list-pop"},Qr=["title","onClick"],Xr=["onClick"],Yr=["onClick"],Zr={class:"form-content"},Ir={key:0,class:"dialog-footer"},en={class:"dialog-footer"},ln={__name:"index",props:{level:{type:Number,default:1},compName:{type:String,default:"",required:!1},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(K,{emit:Z}){const Q=a.ref([]),P=va(b.pinia),M=a.ref(null),i=K,ae=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),pe=te.useOriginalState(b.pinia);let Ne="$R";const{originalPath:de}=b.storeToRefs(pe),se=de.value,Re=a.ref(!1),ze=a.ref(!1),Xe=a.ref(!1),nl=a.reactive({column:{},status:!1,text:"合计"}),I=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),ie=Z,G=a.ref([]),re=a.reactive({prop:"",order:null}),be=a.ref([]),Ce=a.ref(!1),we=a.ref(!1),Ue=a.ref(null);ul.useThreeSystem();const ue=a.ref([]),z=a.ref(!1),ke=a.ref(),N=te.useMenuState(),{importLoading:De,activeMenuPath:Y,contentLoading:Oe,linkMenuInfo:qe}=b.storeToRefs(N),je=te.useTableComp(b.pinia),fe=te.useModelComp(b.pinia),{extraContents:ge,cacheUpdatingData:cl,tableViewContents:dl,tableLoading:rn,pageMapState:Ye,lockingPage:ml}=b.storeToRefs(fe),X=a.ref([]),Sl=a.ref([]),Dl=a.ref(new Map);a.ref(!1);const Ke=a.ref("");a.ref();const Ll=a.ref(!0),ol=a.ref(0),Gl=a.ref(!0),Me=a.ref(""),Ve=a.ref(!1),ba=a.ref({label:"查看三维模型"}),Tl=a.ref(!1),wl=a.ref(),Le=a.ref([]),Ze=a.ref([]),Cl=a.ref(!1),pl=a.ref([]),tl=a.ref([]),Ie=a.ref([]),Te=a.ref([]),Pe=a.ref(),Ee=a.ref(),ka=pa(b.pinia),Al=a.ref(),Ml=a.ref(0),xl=fa(b.pinia),{selectIndex:ma,selectMenu:Je,selectTitle:Pl}=b.storeToRefs(xl),{selectString:el}=b.storeToRefs(ka),Sa=b.useLoginState(b.pinia),{loginUserInfo:me}=b.storeToRefs(Sa),Da=a.ref(720),ll=a.ref(!1),El=a.ref(!1),$e=a.ref([]),al=a.ref(),fl=a.ref(!0),Hl=a.ref(!0),_l=a.ref([]),Ta=a.inject("contentRef");a.provide("contentRef",Ta),a.watch(()=>{var e;return(e=X.value)==null?void 0:e.length},e=>{I.total=e}),a.watch(()=>dl.value,async()=>{var s,u,c,d,f,k,B,g,C,U,w,x,R,q,F,o,S,y;if(((s=dl.value)==null?void 0:s.length)===0||!((u=i==null?void 0:i.itemData)!=null&&u.find(T=>(T==null?void 0:T.key)==="columnPath"))||!((c=i==null?void 0:i.itemData)!=null&&c.find(T=>(T==null?void 0:T.key)==="pageColumn")))return;let e=(C=(g=(B=(k=(f=(d=i==null?void 0:i.itemData)==null?void 0:d.find(T=>(T==null?void 0:T.key)==="pageColumn"))==null?void 0:f.contents)==null?void 0:k.split("["))==null?void 0:B[1])==null?void 0:g.split("]"))==null?void 0:C[0],l=((R=(x=(w=(U=i==null?void 0:i.itemData)==null?void 0:U.find(T=>(T==null?void 0:T.key)==="pageColumn"))==null?void 0:w.contents)==null?void 0:x.split("["))==null?void 0:R[0])+((F=(q=dl.value)==null?void 0:q.find(T=>(T==null?void 0:T.key)===e))==null?void 0:F.value),n=((S=(o=i==null?void 0:i.itemData)==null?void 0:o.find(T=>(T==null?void 0:T.key)==="pageGroup"))==null?void 0:S.contents)??"",r=await te.getItemData(l,sessionStorage.getItem("systemKey"),""),t=(y=r==null?void 0:r.find(T=>(T==null?void 0:T.name)===(n===""?i==null?void 0:i.compName:n)))==null?void 0:y.compData;ua(t,i.allMapContents)},{deep:!0});const Ca=async(e,l)=>{var n,r,t,s,u;try{const c=await b.getInsofDataApi({id:(i==null?void 0:i.parentTableId)||(i==null?void 0:i.index)});let d;((n=c==null?void 0:c.data)==null?void 0:n.code)===200&&(d=((t=(r=c==null?void 0:c.data)==null?void 0:r.result)==null?void 0:t[0])||null);const f={type:"data",pageKey:i!=null&&i.parentTableId?(s=d==null?void 0:d.key)==null?void 0:s.pageKey:Y.value,tableId:(i==null?void 0:i.parentTableId)||(i==null?void 0:i.index),systemKey:sessionStorage.getItem("systemKey")},k=l==null?void 0:l.map(C=>{const U=Object.keys(C),w={};return U.forEach((x,R)=>{w[e[R]]=C[x]}),w}),B=k==null?void 0:k.map(C=>({key:f,value:{tableData:C}})),g=await b.batchAddInsofDataApi({dataList:B});((u=g==null?void 0:g.data)==null?void 0:u.code)===200?(fe.setRefreshCurStructure(!0),b.ElMessage.success("导入数据成功")):b.ElMessage.error("导入数据响应失败")}catch(c){throw b.ElMessage.error("导入数据处理失败"),new Error(c)}},Aa=async e=>{var l,n;if(e!=null&&e.includes(".txt")||e!=null&&e.includes(".cpt")||e!=null&&e.includes(".cyd")){const r=await b.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),t=new Blob([r.data],{type:"application/octet-stream;charset=UTF-8"});let s=URL.createObjectURL(t);ke.value=[{name:(n=e==null?void 0:e.split("/"))==null?void 0:n[((l=e==null?void 0:e.split("/"))==null?void 0:l.length)-1],blobUrl:s}],z.value=!0}};a.onBeforeUnmount(()=>{Hl.value=!1;let e=Ml.value;Ml.value=e+1});const Ql=a.computed(()=>{var r,t;const e=(I.currentPage-1)*I.pageSize,l=e+I.pageSize,n=(r=G.value)==null?void 0:r.find(s=>{var u;return(s==null?void 0:s.sortable)&&((u=s==null?void 0:s.label)==null?void 0:u.includes("时间"))});return n&&(re.order="descending",re.prop=n==null?void 0:n.prop),(t=X.value)==null?void 0:t.slice(e,l)}),xa=e=>{I.currentPage=e},Ea=e=>{var l;I.pageSize=e,e*I.currentPage>((l=X.value)==null?void 0:l.length)&&(I.currentPage=1,b.ElMessage.warning("分页无效,返回第一页"))},_a=(e,l)=>{var u,c;const n=(c=(u=G.value)==null?void 0:u.map(d=>d==null?void 0:d.prop))==null?void 0:c.filter(d=>d!=="operate");let r;const t=(e==null?void 0:e.length)===(n==null?void 0:n.length);if(e!=null&&e.includes("序号"))return b.ElMessage.error("导入的数据不需要包含序号列");if(r=t?e:e.slice(0,n==null?void 0:n.length),!(r==null?void 0:r.every(d=>n==null?void 0:n.find(f=>d===f))))return b.ElMessage.error("导入的数据表头不匹配");Ca(r,l)},Na=(e,l)=>{var n;fe.setRefreshCurStructure(!1),((n=G.value)==null?void 0:n.length)===0||_a(e,l)},Ba=(e,l,n,r)=>{const t=[],s=[],u=f=>Object.keys(f).length;for(const f in e)if(e[f]!==void 0){const k=e[f],B=[];for(const[g,C]of Object.entries(k))B.push(C),s.length<u(k)&&s.push(g);t.push(B)}t.unshift(s);const c=rl.utils.aoa_to_sheet(t),d=rl.utils.book_new();rl.utils.book_append_sheet(d,c,r),rl.writeFileSync(d,`${l}.xlsx`),$e.value=[]},Nl=async(e,l,n,r=!1,t)=>{var s,u,c,d,f,k,B,g;try{fe.setRefreshCurStructure(!1);const C=await b.getInsofDataApi({id:i==null?void 0:i.index});if(((s=C==null?void 0:C.data)==null?void 0:s.code)===200){let U=(f=(d=(c=(u=C==null?void 0:C.data)==null?void 0:u.result)==null?void 0:c[0])==null?void 0:d.value)==null?void 0:f.pageData;r?U={...U,compData:(B=U==null?void 0:U.compData)==null?void 0:B.map(x=>{var R;return(x==null?void 0:x.key)==="header"?{...x,contents:(R=x==null?void 0:x.contents)==null?void 0:R.map(q=>({...q,[e]:n}))}:x})}:U={...U,compData:(k=U==null?void 0:U.compData)==null?void 0:k.map(x=>{var R,q;return(x==null?void 0:x.key)==="header"?{...x,contents:(R=x==null?void 0:x.contents)==null?void 0:R.map(F=>(F==null?void 0:F.prop)===(l==null?void 0:l.prop)?{...F,[e]:n}:F)}:(x==null?void 0:x.key)==="tableToForm"&&t?{...x,contents:(q=x==null?void 0:x.contents)==null?void 0:q.map(F=>(F==null?void 0:F.prop)===(l==null?void 0:l.prop)?{...F,[t]:n}:F)}:x})};const w=await b.updateInsofDataApi({id:i==null?void 0:i.index,value:{pageData:U}});((g=w==null?void 0:w.data)==null?void 0:g.code)===200?(b.ElMessage.success("编辑成功"),fe.setRefreshCurStructure(!0)):b.ElMessage.error("编辑响应失败")}}catch(C){b.ElMessage.error(C)}},Ua=async(e,l)=>{await Nl("label",l,e)},Oa=async(e,l)=>{await Nl("columnType",l,e,!1,"type")},ja=()=>{cl.value?ll.value=!1:ca()},La=e=>{$e.value=e},wa=(e,l)=>{al.value===l?fl.value=!1:fl.value=!0,al.value=l==null?void 0:l.changeProp},gl=a.computed(()=>{var n,r,t;const e=(n=G.value)==null?void 0:n.some(s=>s==null?void 0:s.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(t=(r=G.value)==null?void 0:r.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:t.map(s=>({...s,filterable:!!(s!=null&&s.filterable),showSummary:!!(s!=null&&s.showSummary),operable:!!(s!=null&&s.operable)}))}),Ma=async(e,l,n)=>{const r=b.cloneDeep(G.value);await a.nextTick(),G.value=r==null?void 0:r.map(t=>(n==null?void 0:n.label)===(t==null?void 0:t.label)?{...t,[l]:e}:t),await Nl(l,n,e)},$l=async(e,l)=>{await Nl(l,null,e,!0)},Pa=()=>{Ve.value=!1},$a=e=>{ie("clickTrigger",e)},Xl=async e=>{var s,u,c,d,f,k,B,g,C,U,w,x,R,q,F;const l=e==null?void 0:e.row,n=e==null?void 0:e.rowData,r=e==null?void 0:e.suffix;if((s=l==null?void 0:l.toString())!=null&&s.includes(".urdf")||e!=null&&e.isUrdf||r!=null&&r.includes(".urdf")){if(l.includes(",")){b.ElMessage.error("当前版本仅允许单个urdf预览!");return}pl.value=[l],we.value=!0,Ue.value={data:b.cloneDeep(n)},Ce.value=!0;return}let t=[];if((u=l==null?void 0:l.toString())!=null&&u.includes(".stl")||(c=l==null?void 0:l.toString())!=null&&c.includes(".STL")||(d=l==null?void 0:l.toString())!=null&&d.includes(".obj")||(f=l==null?void 0:l.toString())!=null&&f.includes(".mtl")){pl.value=(k=l==null?void 0:l.toString())==null?void 0:k.split(","),we.value=!1,Ce.value=!0;return}if((B=l==null?void 0:l.toString())!=null&&B.includes(".stl")||(g=l==null?void 0:l.toString())!=null&&g.includes(".STL")||(C=l==null?void 0:l.toString())!=null&&C.includes(".obj")||(U=l==null?void 0:l.toString())!=null&&U.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let o,S=[],y={};if(Array.isArray(l)?o=l:o=l==null?void 0:l.split(","),o==null||o.forEach(T=>{T.includes(".mtl")?S.push(T):y.blob=y.blob?y.blob+","+T:T}),(S==null?void 0:S.length)>0&&(y.mtlBlobs=S),r&&(y.suffix=r),(x=(w=Object.values(y))==null?void 0:w[0])!=null&&x.includes("http:"))t.push(y);else{const T=new Blob([y.blob],{type:"application/octet-stream;charset=UTF-8"});let D=URL.createObjectURL(T),H="";(R=l==null?void 0:l.split("/"))==null||R.forEach((j,_)=>{var J;_===((J=l==null?void 0:l.split("/"))==null?void 0:J.length)-1&&(H=j)}),(q=y.blob)!=null&&q.includes(".stl")&&(H=(H==null?void 0:H.replaceAll(">",""))+".urdf"),ke.value=[{name:H,blobUrl:D}],z.value=!0}}else{const o=await b.axios.get(l,{responseType:"blob",headers:{"Content-Type":"application/json"}}),S=new Blob([o.data],{type:"application/octet-stream;charset=UTF-8"});let y=URL.createObjectURL(S),T="";(F=l==null?void 0:l.split("/"))==null||F.forEach((D,H)=>{var j;H===((j=l==null?void 0:l.split("/"))==null?void 0:j.length)-1&&(T=D)}),ke.value=[{name:T,blobUrl:y}],z.value=!0}(t==null?void 0:t.length)>0&&P.setBlobUrls(t)},Bl=e=>{var r,t,s,u;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const l=(u=(r=e==null?void 0:e.url)==null?void 0:r.split("."))==null?void 0:u[((s=(t=e==null?void 0:e.url)==null?void 0:t.split("."))==null?void 0:s.length)-1];return(e==null?void 0:e.name)+"."+l},Fa=async e=>{let l=null,n=null,r=null;if(e!=null&&e.downloadUrl){const s=await Fl(),u=Qe.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),c=await b.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{u.close()}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});l=URL.createObjectURL(d),n=e==null?void 0:e.name;const f=n==null?void 0:n.lastIndexOf(".");r=n==null?void 0:n.slice(f)}else{const s=await ul.downloadAvatarApi({url:e==null?void 0:e.url});!e.url.toUpperCase().includes(".OBJ")&&!e.url.toUpperCase().includes(".STL")&&!e.url.toUpperCase().includes(".MTL")&&!e.url.toUpperCase().includes(".URDF")?(l=URL.createObjectURL(s.data),n=Bl(e)):l=e==null?void 0:e.url}if(r!=null&&r.includes(".urdf")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){const s={row:`${l}`,suffix:r};Xl(s);return}const t={name:n,blobUrl:l};ke.value=[t],z.value=!0},Ka=async e=>{let l=null,n=null;if(e!=null&&e.downloadUrl){const s=await Fl(),u=await b.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),c=new Blob([u.data],{type:"application/octet-stream;charset=UTF-8"});l=URL.createObjectURL(c),n=e==null?void 0:e.name}else{const s=await ul.downloadAvatarApi({url:e==null?void 0:e.url});l=URL.createObjectURL(s.data),n=Bl(e)}const r={name:n,blobUrl:l},t=document.createElement("a");t.href=r.blobUrl,t.download=r.name,t.style.display="none",document.body.appendChild(t),t.click(),setTimeout(()=>{document.body.removeChild(t)},100)},Va=(e,l)=>{if(Object.values(l).length!==0)return Object.values(l).find(n=>{var r,t,s;return((r=n==null?void 0:n.toString())==null?void 0:r.includes(".txt"))||((t=n==null?void 0:n.toString())==null?void 0:t.includes(".cpt"))||((s=n==null?void 0:n.toString())==null?void 0:s.includes(".obj"))})?[...e,ba.value]:e},za=(e,l={})=>[...e==null?void 0:e.values()].filter(n=>Object.keys(l).every(r=>{var u;const t=n[r],s=(u=l[r])==null?void 0:u.toLowerCase();return s&&t&&typeof t=="string"?t.toLowerCase().includes(s):!0})),Yl=a.ref([]),qa=async(e,l,n=!1)=>{var r;if(e){if(fe.setTableLoading(!0),Yl.value=Object.values(e),e&&((r=Object.values(e))!=null&&r.every(t=>!t)))return X.value=Sl.value;if(n){X.value=[...Dl.value.values()].filter(t=>Object.values(t).some(s=>typeof s=="string"?s==null?void 0:s.toLowerCase().includes(l==null?void 0:l.toLowerCase()):!1));return}X.value=za(Dl.value,e),fe.setTableLoading(!1)}},Ja=async e=>{var u,c,d,f,k,B,g,C,U,w,x,R,q,F,o;const l=await b.getInsofDataApi({keyLikes:{pageKey:`loading${((u=me.value)==null?void 0:u.account)||((c=me.value)==null?void 0:c.账号)}`,systemKey:sessionStorage.getItem("systemKey")}}),n=await b.getInsofDataApi({keyLikes:{pageKey:`updateLoading${((d=me.value)==null?void 0:d.account)||((f=me.value)==null?void 0:f.账号)}`,systemKey:sessionStorage.getItem("systemKey")}});let r=(B=(k=l==null?void 0:l.data)==null?void 0:k.result)==null?void 0:B.map(S=>S==null?void 0:S.id);const t=(C=(g=n==null?void 0:n.data)==null?void 0:g.result)==null?void 0:C.map(S=>S==null?void 0:S.id);r=[...b.cloneDeep(r),...t],(r==null?void 0:r.length)>0&&(r!=null&&r.every(S=>S!==null&&S))&&await b.batchDeleteInsofDataApi({ids:r});let s=await te.getItemData(Y.value,sessionStorage.getItem("systemKey"),e.id);if(s=s==null?void 0:s.filter(S=>S.comp!=="methodButton"),s&&s.length>0){const S=!Array.isArray(Pl.value)&&((U=Pl.value)==null?void 0:U.key)!=="main"?[]:Pl.value;S.push({key:Je.value===""?(w=e==null?void 0:e.id)==null?void 0:w.toString():Je.value+"-"+((x=e==null?void 0:e.id)==null?void 0:x.toString()),value:e[(R=Object.keys(e))==null?void 0:R.filter(y=>y!=="index"&&y!=="id")[0]]}),xl.setSelectMenu(Je.value===""?(q=e==null?void 0:e.id)==null?void 0:q.toString():Je.value+"-"+((F=e==null?void 0:e.id)==null?void 0:F.toString())),xl.setSelectTitle(S),xl.setSelectIndex((o=e==null?void 0:e.id)==null?void 0:o.toString()),ie("pageChange",s)}},Zl=async(e,l,n,r)=>{var s,u,c,d,f,k,B,g,C,U,w,x,R,q,F,o,S,y,T,D,H,j,_,J,m;if((r==null?void 0:r.isExistChild)===!0){let O=(u=(s=G.value)==null?void 0:s.find(L=>(L==null?void 0:L.isMainKey)===!0))==null?void 0:u.prop,E=(c=r==null?void 0:r.rowContent)==null?void 0:c[O],p=(f=(d=r==null?void 0:r.columnType)==null?void 0:d.childPath)==null?void 0:f.split(se),$=[];p==null||p.forEach((L,v)=>{(p==null?void 0:p.length)-1===v&&$.push(E),$.push(L)}),$=$.join(se);let V=await te.getItemData($,sessionStorage.getItem("systemKey"),""),ee=await te.getItemData((k=r==null?void 0:r.columnType)==null?void 0:k.childPath,sessionStorage.getItem("systemKey"),"");if(!V||(V==null?void 0:V.length)===0){let L=[];ee==null||ee.forEach(W=>{var Se,ye,A,h;let le={type:"structure",pageKey:$,version:1,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",createUserId:(Se=me.value)==null?void 0:Se.id,parentPageKey:"",createUserLayer:((ye=me.value)==null?void 0:ye.dept)||((A=me.value)==null?void 0:A.部门名称)},he={pageData:{comp:W==null?void 0:W.comp,compData:(h=W==null?void 0:W.compData)==null?void 0:h.filter(oe=>(oe==null?void 0:oe.key)!=="tableContents"),name:W==null?void 0:W.name,isShow:W==null?void 0:W.isShow}};L.push({key:le,value:he})}),(L==null?void 0:L.length)>0&&await b.batchAddInsofDataApi({dataList:L});let v=await te.getItemData($,sessionStorage.getItem("systemKey"),"");_l.value=v}else _l.value=V;ie("routeUrl",_l.value,{isEdit:!0,routerUrl:$});return}if((r==null?void 0:r.data)==="查看"&&(e!=null&&e.every(O=>(O==null?void 0:O.url)&&(O==null?void 0:O.name)))){let O=b.cloneDeep(e);O=await((B=b.cloneDeep(O))==null?void 0:B.map(async p=>{var ee,L,v,W;const $=await ul.downloadAvatarApi({url:p==null?void 0:p.url});let V=URL.createObjectURL($.data);return{name:(p==null?void 0:p.name)+"."+((W=(ee=p==null?void 0:p.url)==null?void 0:ee.split("."))==null?void 0:W[((v=(L=p==null?void 0:p.url)==null?void 0:L.split("."))==null?void 0:v.length)-1]),blobUrl:V}}));let E=await Promise.all(O);ke.value=E,z.value=!0}const t=b.cloneDeep(G.value);if((r==null?void 0:r.isMainKey)===!0&&(t==null?void 0:t.length)>0){(g=t==null?void 0:t[0])==null||g.prop;let O=b.cloneDeep(Y).value+se+(r==null?void 0:r.data),E=b.cloneDeep(Y).value,p=(U=(C=Ye.value[O])==null?void 0:C.filter(L=>{var v,W;return((v=L==null?void 0:L.key)==null?void 0:v.type)==="structure"&&((W=L==null?void 0:L.key)==null?void 0:W.parentTable)===""}))==null?void 0:U.map(L=>{var v;return(v=L==null?void 0:L.value)==null?void 0:v.pageData}),$={};(w=G.value)==null||w.forEach(L=>{(L==null?void 0:L.label)!=="操作"&&($[L.label]=n[L.prop]??n[L.label])});let V=(R=(x=i==null?void 0:i.itemData)==null?void 0:x.find(L=>(L==null?void 0:L.key)==="mainRouters"))==null?void 0:R.contents,ee;if((V==null?void 0:V.length)>0){let L=O==null?void 0:O.split(se)[((q=O==null?void 0:O.split(se))==null?void 0:q.length)-1],v=V==null?void 0:V.find(W=>(W==null?void 0:W.key)===L);ee=(v==null?void 0:v.routerContent)+se+(v==null?void 0:v.key)}if((p==null?void 0:p.length)>0)await te.getItemData(O+se+`updateLoading${((F=me.value)==null?void 0:F.account)||((o=me.value)==null?void 0:o.账号)}`,sessionStorage.getItem("systemKey"),"")||await te.loadingConstruct(O,O+se+`updateLoading${((S=me.value)==null?void 0:S.account)||((y=me.value)==null?void 0:y.账号)}`,$,ee),fe.setRouteToChildPath(E),N.setActiveMenuPath(O+se+`updateLoading${((T=me.value)==null?void 0:T.account)||((D=me.value)==null?void 0:D.账号)}`);else{(H=t==null?void 0:t[0])==null||H.prop;let L=b.cloneDeep(Y).value+se+(r==null?void 0:r.data),v=b.cloneDeep(Y).value;await te.getItemData(v+se,sessionStorage.getItem("systemKey"),""),await te.loadingConstruct(v+se,L,$),await te.loadingConstruct(L,L+se+`updateLoading${((j=me.value)==null?void 0:j.account)||((_=me.value)==null?void 0:_.账号)}`,$,ee),fe.setRouteToChildPath(v),N.setActiveMenuPath(L+se+`updateLoading${((J=me.value)==null?void 0:J.account)||((m=me.value)==null?void 0:m.账号)}`)}}},Ra=()=>{z.value=!1},Wa=e=>{ie("rowClick",e)};a.watch(()=>i.changedContent,()=>{var n,r;if(!i.changedContent)return;let e=(n=X.value)==null?void 0:n.map(t=>{var s;return t.id===((s=i.changedContent)==null?void 0:s.id)&&(t={...i.changedContent,id:i.changedContent.newId?i.changedContent.newId:i.changedContent.id},delete t.newId),t});const l=(r=i.itemData)==null?void 0:r.map(t=>((t==null?void 0:t.key)==="tableContents"&&(t.contents=e),t));X.value=e,ie("contentChange",{contents:l,index:i.index}),ie("change",{content:e,index:i==null?void 0:i.index,buttonName:"",id:i==null?void 0:i.index})},{deep:!0,immediate:!0});const Ga=()=>{},Ha=async()=>{const e=Y.value,l=sessionStorage.getItem("systemKey"),n=await te.getItemData(e,l,""),r=(n==null?void 0:n.find(c=>(c==null?void 0:c.name)==="方法明细"))||(n==null?void 0:n[0]),t=(r==null?void 0:r.compData)||[],s=t==null?void 0:t.find(c=>{const d=c==null?void 0:c.key;return d==="formContent"||d==="tableContents"});return s==null?void 0:s.contents},Fl=async()=>`Bearer ${b.Local.get("access-token")}`,Qa=async(e,{token:l,inputData:n}={})=>await b.axios.post(e,n,{headers:{Authorization:l}}).catch(t=>(N.setImportLoading(!1),Promise.reject(t))),Xa=e=>{const l=[],n=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(n):l.push(r)};return n(e),l},Ya=async(e,l,n)=>{var q,F,o,S,y,T,D,H;N.setImportLoading(!0),fe.setFreshContent(!1);let r=await Ha().catch(j=>(N.setImportLoading(!1),Promise.reject(j)));r=r==null?void 0:r.filter(j=>{var _;return((_=j==null?void 0:j.find(J=>J==null?void 0:J.id))==null?void 0:_.id)===(l==null?void 0:l.id)});let t=te.getEqualChild([(q=G.value)==null?void 0:q.filter(j=>(j==null?void 0:j.label)!=="操作")]);const s=(o=(F=te.tableToForm(r,t))==null?void 0:F[0])==null?void 0:o.find(j=>{const _=j==null?void 0:j.key;return _==="算法体"||_==="方法体"}),u=s==null?void 0:s.value;if(!u){console.log("未搜索到isMain, 缺少算法执行接口"),N.setImportLoading(!1);return}const c=G.value?te.getEqualChild([G.value]):[],d=c.find(j=>{const _=j==null?void 0:j.prop;return _==="输入"||_==="输入数据.输入1"||_==="样本输入数据"}),f=d==null?void 0:d.prop;let k=l==null?void 0:l[f];const B=await Fl().catch(j=>(N.setImportLoading(!1),Promise.reject(j))),g=await Qa(u,{token:B,inputData:k}).catch(j=>(N.setImportLoading(!1),Promise.reject(j))),C=(S=g==null?void 0:g.data)==null?void 0:S.data,U=c.find(j=>(j==null?void 0:j.prop)==="输出数据.输出1"),w=U==null?void 0:U.prop;let x=[],R=[];if(((y=Object.values(C))==null?void 0:y.length)>0){let j=[];const _=new FormData,J=(T=Xa(C))==null?void 0:T.map(async O=>{var E,p;if(!Array.isArray(O)&&(O!=null&&O.includes("http"))){let $=await b.axios.get(O,{responseType:"blob"}),V=(p=O==null?void 0:O.split("/"))==null?void 0:p[((E=O==null?void 0:O.split("/"))==null?void 0:E.length)-1];_.append("files",$.data,V)}else j.push(O)});if(await Promise.all(J),!te.isFormDataEmpty(_)){let O=await ul.uploadAmountApi(_),E=(H=(D=O==null?void 0:O.data)==null?void 0:D.result)==null?void 0:H.map(p=>{var $,V,ee,L,v,W;return{name:(W=(v=(L=($=p==null?void 0:p.url)==null?void 0:$.split("/"))==null?void 0:L[((ee=(V=p==null?void 0:p.url)==null?void 0:V.split("/"))==null?void 0:ee.length)-1])==null?void 0:v.split("."))==null?void 0:W[0],url:p==null?void 0:p.url}});j=[...j,...E]}let m={};for(let O in l)O!=="id"&&(m[O]=l[O]);m[w]=j,R.push({id:l==null?void 0:l.id,value:{tableData:m}})}(R==null?void 0:R.length)>0&&await b.batchUpdateInsofDataApi({dataList:R}),(x==null?void 0:x.length)>0&&await b.batchAddInsofDataApi({dataList:x}),vl(!0),N.setImportLoading(!1),fe.setFreshContent(!0)},Il=(e,l)=>(e=e==null?void 0:e.map(n=>{var r,t;return n!=null&&n.children&&((r=n.children)!=null&&r.find(s=>s.id===(l==null?void 0:l.id))?n.children=(t=n.children)==null?void 0:t.filter(s=>(s==null?void 0:s.id)!==(l==null?void 0:l.id)):n.children=Il(n.children,l)),n}),e),Ul=async(e,l,n)=>{var r,t,s,u,c,d,f,k,B,g,C,U,w,x,R;if(Ke.value="",Cl.value=!0,Ll.value=!0,ie("onButtonClick",e,l),e==="删除")te.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var q,F;(q=X.value)!=null&&q.find(o=>(o==null?void 0:o.id)===(l==null?void 0:l.id))?X.value=(F=b.cloneDeep(X.value))==null?void 0:F.filter(o=>(o==null?void 0:o.id)!==(l==null?void 0:l.id)):X.value=Il(b.cloneDeep(X.value),l),Or(Al.value,Je.value,l==null?void 0:l.id),fe.setTableLoading(i==null?void 0:i.index),ie("change",{content:X.value,singleContent:l,index:i==null?void 0:i.index,type:"delete",buttonName:e,column:G.value})});else if(e==="批量删除"){if(((r=$e.value)==null?void 0:r.length)===0)return b.ElMessage.warning("请先勾选操作的数据");te.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,o;const q=(F=$e.value)==null?void 0:F.map(S=>S.id);X.value=(o=b.cloneDeep(X.value))==null?void 0:o.filter(S=>!(q!=null&&q.includes(S.id))),fe.setTableLoading(i==null?void 0:i.index),ie("change",{content:X.value,singleContent:null,selectItems:$e.value,index:i==null?void 0:i.index,type:"batchDelete",buttonName:e,column:G.value})})}else if(e==="复制新增"){Me.value="新增";const q=b.cloneDeep(l),F=(t=G.value)==null?void 0:t.find(y=>y==null?void 0:y.isMainKey),o=F||((s=G.value)==null?void 0:s[0]),S=(u=Ie.value)==null?void 0:u.find(y=>(y==null?void 0:y.label)==="新建");await la(!0,S,{data:q,firstCol:o})}else if(e==="新增")Me.value="新增",yl(""),Ve.value=!0;else if(e==="编辑")Me.value="编辑",yl(l),Ve.value=!0;else if(e==="查看")Me.value="查看",yl(l),Cl.value=!1,Ll.value=!1,Ve.value=!0;else if(e==="查看三维模型"){const q={};for(let o in l)o!=="id"&&(q[o]=l[o]);let F=(c=Object.values(q))==null?void 0:c[1];je.setTableShowThree(F)}else if(((d=n==null?void 0:n.extra)==null?void 0:d.type)==="modelExample")Me.value=e,Tl.value=!0;else if(e==="新建"){let q=Ye.value,F=[];for(let D in q)D!=null&&D.includes(`loading${((f=me.value)==null?void 0:f.account)||((k=me.value)==null?void 0:k.账号)}`)&&(F=[...F,...D]);let o=[];for(let D in q)D!=null&&D.includes(`updateLoading${((B=me.value)==null?void 0:B.account)||((g=me.value)==null?void 0:g.账号)}`)&&(o=[...o,...D]);let S=F==null?void 0:F.map(D=>D==null?void 0:D.id);const y=o==null?void 0:o.map(D=>D==null?void 0:D.id);S=[...b.cloneDeep(S),...y],(S==null?void 0:S.length)>0&&(S!=null&&S.every(D=>D!==null&&D))&&await b.batchDeleteInsofDataApi({ids:S});const T=(C=Ie.value)==null?void 0:C.find(D=>(D==null?void 0:D.label)==="新建");await la(!1,T)}else if(e==="修改模板"){let q=b.cloneDeep(Y).value;fe.setRouteToChildPath(q),N.setActiveMenuPath(q+se)}else if(e==="执行")Ya(e,l);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((U=$e.value)==null?void 0:U.length)===0)return b.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&((w=X.value)==null?void 0:w.length)===0)return b.ElMessage.warning("暂无数据导出");const q=(R=(x=G.value)==null?void 0:x.map(o=>o==null?void 0:o.label))==null?void 0:R.filter(o=>o!=="操作"),F=e==="导出全部"?b.cloneDeep(X.value):b.cloneDeep($e.value);F==null||F.forEach(o=>{o==null||delete o.id}),Ba(F,i==null?void 0:i.compName,q,i==null?void 0:i.compName)}},Za=async e=>{var n,r,t,s,u,c;const l=await b.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((n=l==null?void 0:l.data)==null?void 0:n.code)===200)return Array.isArray((r=l==null?void 0:l.data)==null?void 0:r.result)&&((s=(t=l==null?void 0:l.data)==null?void 0:t.result)==null?void 0:s.length)>0?(c=(u=l==null?void 0:l.data)==null?void 0:u.result)==null?void 0:c.map(d=>{var f;return{id:d==null?void 0:d.id,...(f=d==null?void 0:d.value)==null?void 0:f.pageData}}):[]},Ia=async(e,l)=>{var n,r,t,s,u,c,d,f,k,B,g,C,U,w,x,R,q,F,o,S;try{let y,T;const D=(n=Ye.value[Y.value+se])==null?void 0:n.filter(p=>{var $;return(($=p==null?void 0:p.key)==null?void 0:$.type)==="structureMethod"}),H=(r=Ye.value[Y.value+se])==null?void 0:r.filter(p=>{var $;return(($=p==null?void 0:p.key)==null?void 0:$.type)==="structure"}),j=D==null?void 0:D.find(p=>{var $,V;return((V=($=p==null?void 0:p.value)==null?void 0:$.pageData)==null?void 0:V.method)==="保存"});if(!j)return;const _=(c=(u=Ye.value[(s=(t=j==null?void 0:j.value)==null?void 0:t.pageData)==null?void 0:s.path])==null?void 0:u.filter(p=>{var $;return(($=p==null?void 0:p.key)==null?void 0:$.type)==="data"}))==null?void 0:c.find(p=>{var $,V,ee,L;return((V=($=p==null?void 0:p.value)==null?void 0:$.tableData)==null?void 0:V.算法名称)===((L=(ee=j==null?void 0:j.value)==null?void 0:ee.pageData)==null?void 0:L.method)});if(!_)return;const J={buttonName:(f=(d=j==null?void 0:j.value)==null?void 0:d.pageData)==null?void 0:f.method,api:(B=(k=_==null?void 0:_.value)==null?void 0:k.tableData)==null?void 0:B.算法体,content:H==null?void 0:H.map(p=>{var $;return($=p==null?void 0:p.value)==null?void 0:$.pageData}),extraContent:[],extraValues:(C=(g=j==null?void 0:j.value)==null?void 0:g.pageData)==null?void 0:C.data,methodName:(w=(U=j==null?void 0:j.value)==null?void 0:U.pageData)==null?void 0:w.path};if(!e)return;const m={...e,compData:(x=e==null?void 0:e.compData)==null?void 0:x.map(p=>{var $;return(p==null?void 0:p.key)==="formContent"?{...p,contents:($=p==null?void 0:p.contents)==null?void 0:$.map(V=>(V==null?void 0:V.prop)===l?{...V,value:""}:V)}:p})},O={key:{pageKey:Y.value+se,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:m}},E=await b.axios.post(J.api,O,{headers:{"Content-Type":"application/json"}});return((R=E==null?void 0:E.data)==null?void 0:R.code)===200&&(y=(F=(q=E==null?void 0:E.data)==null?void 0:q.result)==null?void 0:F.latestReportCode,T=(S=(o=E==null?void 0:E.data)==null?void 0:o.result)==null?void 0:S.status),{newMainKeyValue:y,newStatus:T}}catch(y){throw b.ElMessage.error(y),new Error(y)}},ea=(e,l,n,r)=>{var t;ie("contentChange",{contents:(t=e==null?void 0:e.compData)==null?void 0:t.map(s=>{var u;return(s==null?void 0:s.key)==="formContent"?{...s,contents:(u=s==null?void 0:s.contents)==null?void 0:u.map(c=>(c==null?void 0:c.key)===l?{...c,value:n}:hl.value&&(c==null?void 0:c.prop)===hl.prop?{...c,value:hl.value}:c)}:s}),index:e==null?void 0:e.id},r)},hl=a.reactive({prop:"状态",value:""}),er=a.ref(["系统自动生成信息","审批意见"]),lr=async(e,l,n)=>{var d,f;let r=e==null?void 0:e[l==null?void 0:l.prop],t=1,s,u;const c=b.cloneDeep(Y).value+se+r;if(c){hl.value="",s=(d=Ye.value[c])==null?void 0:d.filter(g=>{var C;return((C=g==null?void 0:g.key)==null?void 0:C.type)==="structure"});const k=s==null?void 0:s.find(g=>{var C,U,w;return((w=(U=(C=g==null?void 0:g.value)==null?void 0:C.pageData)==null?void 0:U.comp)==null?void 0:w.toUpperCase())==="FORM"});u={...(f=k==null?void 0:k.value)==null?void 0:f.pageData,id:k==null?void 0:k.id};const B=await Ia(u,l==null?void 0:l.prop);if(hl.value=B==null?void 0:B.newStatus,B!=null&&B.newMainKeyValue)return B==null?void 0:B.newMainKeyValue}if(X.value.some(k=>(k==null?void 0:k[l==null?void 0:l.prop])===r)){const k=r;for(;X.value.some(B=>(B==null?void 0:B[l==null?void 0:l.prop])===`${k}(${t})`);)t++;r=`${k}(${t})`}return r},la=async(e,l,n)=>{var u,c,d,f,k,B,g,C;let r,t;const s=await lr(n==null?void 0:n.data,n==null?void 0:n.firstCol);if(e?(r=b.cloneDeep(Y).value+se+((f=n==null?void 0:n.data)==null?void 0:f[(d=n==null?void 0:n.firstCol)==null?void 0:d.prop]),t=b.cloneDeep(Y).value+se+s):(r=b.cloneDeep(Y).value+se,t=b.cloneDeep(r)+`loading${((u=me.value)==null?void 0:u.account)||((c=me.value)==null?void 0:c.账号)}`),l){const U=(B=(k=Ye.value[t])==null?void 0:k.filter(w=>{var x;return((x=w==null?void 0:w.key)==null?void 0:x.parentTable)===""}))==null?void 0:B.map(w=>{var x;return{id:w==null?void 0:w.id,...(x=w==null?void 0:w.value)==null?void 0:x.pageData}});if((U==null?void 0:U.length)>0)if(e){const w=U==null?void 0:U.find(x=>{var R;return((R=x==null?void 0:x.comp)==null?void 0:R.toUpperCase())==="FORM"});w&&ea(w,(g=n==null?void 0:n.firstCol)==null?void 0:g.label,s,Y.value)}else fe.setRouteToChildPath(b.cloneDeep(Y).value),N.setActiveMenuPath(t);else if(await te.loadingConstruct(r,t,null,null,e?er.value:null),e){const w=await Za(t);if((w==null?void 0:w.length)>0){const x=w==null?void 0:w.find(R=>{var q;return((q=R==null?void 0:R.comp)==null?void 0:q.toUpperCase())==="FORM"});x&&ea(x,(C=n==null?void 0:n.firstCol)==null?void 0:C.label,s,Y.value)}}else fe.setRouteToChildPath(b.cloneDeep(Y).value),N.setActiveMenuPath(t)}else e?(Ke.value="",Ee.value=n==null?void 0:n.data,vl(!0,n==null?void 0:n.firstCol,s)):(fe.setRouteToChildPath(b.cloneDeep(Y).value),N.setActiveMenuPath(t))},ar=()=>{Ce.value=!1,pl.value=[],we.value=!1},yl=e=>{var u,c,d,f,k,B,g,C,U,w,x,R,q,F;const l=[];let n=[];for(let o in e)Array.isArray(e==null?void 0:e[o])&&n.push(o);be.value=b.cloneDeep(G.value),(c=te.getColumnChild((u=b.cloneDeep(G.value))==null?void 0:u.filter(o=>(o==null?void 0:o.label)!=="操作")))==null||c.forEach((o,S)=>{var y;n.find(T=>T===(o==null?void 0:o.prop))||(o!=null&&o.formType&&((y=o==null?void 0:o.formType)==null?void 0:y.toUpperCase())==="SELECT"?l.push({label:(o==null?void 0:o.prop)||(o==null?void 0:o.label)||"",name:(o==null?void 0:o.prop)??"t"+S,prop:o==null?void 0:o.prop,type:!(o!=null&&o.formType)||(o==null?void 0:o.formType)===""?"Input":o==null?void 0:o.formType,value:(e==null?void 0:e[o==null?void 0:o.prop])??(o==null?void 0:o.value)??"",id:(o==null?void 0:o.id)??S,contents:(o==null?void 0:o.options)??[],width:1,isFormColHidden:o==null?void 0:o.isFormColHidden,disabled:o==null?void 0:o.disabled,optionUrl:{groupSelect:o==null?void 0:o.groupSelect,menuSelect:o==null?void 0:o.formMenuSelect,type:"Select",selectRelateType:o==null?void 0:o.selectRelateType}}):l.push({label:(o==null?void 0:o.prop)||(o==null?void 0:o.label)||"",prop:o==null?void 0:o.prop,name:(o==null?void 0:o.prop)??"t"+S,type:!(o!=null&&o.formType)||(o==null?void 0:o.formType)===""?"Input":o==null?void 0:o.formType,value:(e==null?void 0:e[o==null?void 0:o.prop])??(o==null?void 0:o.value)??"",id:(o==null?void 0:o.id)??S,contents:(o==null?void 0:o.options)??[],width:1,isFormColHidden:o==null?void 0:o.isFormColHidden,disabled:o==null?void 0:o.disabled}))}),e===""||!e||(Ke.value=(e==null?void 0:e.id)??"");let r=te.getColumnChild((d=b.cloneDeep(G.value))==null?void 0:d.filter(o=>(o==null?void 0:o.label)!=="操作"));Le.value&&((f=Le.value)==null?void 0:f.length)>0&&(Le.value=(k=b.cloneDeep(Le).value)==null?void 0:k.map(o=>{var y;let S=(o==null?void 0:o.prop)||((y=r==null?void 0:r.find(T=>(T==null?void 0:T.label)===(o==null?void 0:o.label)))==null?void 0:y.prop);return S&&(o.value=e[S]),o})),Te.value=Le.value&&((B=Le.value)==null?void 0:B.length)>0?te.getTableFormToForm(Le.value):l;let t=[],s=(g=i.itemData)==null?void 0:g.filter(o=>(o==null?void 0:o.key)==="filterAllType");if((s==null?void 0:s.length)>0&&(t=(s==null?void 0:s.map(S=>S==null?void 0:S.value)).flat()),(t==null?void 0:t.length)>0){let o=t==null?void 0:t.find(S=>{var y;return(y=S==null?void 0:S.content)==null?void 0:y.includes("@Type")});if(o!=null&&o.content){let S=(w=(U=(C=o==null?void 0:o.content)==null?void 0:C.replace(":",Ne))==null?void 0:U.split(Ne))==null?void 0:w[1];if(((x=S==null?void 0:S.trim())==null?void 0:x.toUpperCase())==="MANUAL"){let y=(q=(R=i.itemData)==null?void 0:R.find(T=>(T==null?void 0:T.key)==="contentTableId"))==null?void 0:q.contents;Te.value=(F=Te.value)==null?void 0:F.map((T,D)=>{var H;return D===0&&(T.type="Select",(H=T==null?void 0:T.optionUrl)!=null&&H.menuId?(T.optionUrl.menuId=y,T.optionUrl.menuFilter=t):T.optionUrl={menuId:y,menuFilter:t}),T})}}}},rr=()=>{var l;const e=(l=M.value)==null?void 0:l.$el;e&&ql.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:n=>{var u;const{oldIndex:r,newIndex:t}=n;if(r===t)return;const s=gl.value.splice(r,1)[0];gl.value.splice(t,0,s),G.value=(u=G.value)==null?void 0:u.slice().sort((c,d)=>{if(c.label==="操作")return 1;if(d.label==="操作")return-1;const f=gl.value.findIndex(B=>B.label===c.label),k=gl.value.findIndex(B=>B.label===d.label);return f-k})}})};a.onMounted(()=>{wl.value=window.innerWidth-240*2});const nr=()=>{a.nextTick(()=>{rr()})},Kl=(e,l)=>{var r;if(!e&&!(e!=null&&e.children))return{contents:e,currentSelectContents:void 0};let n;return e.children=(r=e.children)==null?void 0:r.map(t=>{var s,u;if((t==null?void 0:t.id)===Ke.value){let c={};for(let d in t){let f=(s=l==null?void 0:l.find(k=>(k==null?void 0:k.prop)===d))==null?void 0:s.label;f?c[d]=(u=Ee.value)==null?void 0:u[f]:c[d]=t[d]}t=Object.assign(c,Ee.value),n=t}else{let c=Kl(t,l);t=c==null?void 0:c.contents,n=c==null?void 0:c.currentSelectContents}return t}),{contents:e,currentSelectContents:n}},aa=(e,l)=>{let n,r;return e!=null&&e.find(t=>(t==null?void 0:t.id)===Ke.value)?n=e==null?void 0:e.map(t=>{var s,u;if((t==null?void 0:t.id)===Ke.value){let c={};for(let d in t){let f=(s=l==null?void 0:l.find(k=>(k==null?void 0:k.prop)===d))==null?void 0:s.label;f?c[d]=(u=Ee.value)==null?void 0:u[f]:c[d]=t[d]}t=Object.assign(c,Ee.value),r=t}return t}):n=e==null?void 0:e.map(t=>{var s,u,c,d;if((t==null?void 0:t.id)===Ke.value){let f={};for(let k in t){let B=(s=l==null?void 0:l.find(g=>(g==null?void 0:g.prop)===k))==null?void 0:s.label;B?f[k]=(u=Ee.value)==null?void 0:u[B]:f[k]=t[k]}t=Object.assign(f,Ee.value),r=t}else t=(c=Kl(t,l))==null?void 0:c.contents,r=(d=Kl(t,l))==null?void 0:d.currentSelectContents;return t}),{newContents:n,currentSelectContents:r}},ra=(e,l,n)=>{var r,t;return e[l==null?void 0:l.prop]=n,typeof e.id=="number"&&(e.id=(r=e.id)==null?void 0:r.toString()),e.children&&((t=e.children)==null?void 0:t.length)>0&&(e.children=e.children.map(ra)),e},Vl=e=>{var n;const l=[];return l.push({...e}),e!=null&&e.children&&Array.isArray(e.children)&&((n=e.children)==null||n.forEach(r=>{l.push(...Vl(r))})),(l==null?void 0:l.length)>0?l==null?void 0:l.map(r=>{const t={...r};return delete t.children,t}):[]},vl=(e=!0,l,n)=>{var f,k,B,g,C,U,w,x,R,q,F,o,S,y,T,D,H,j,_,J,m,O;let r=te.getColumnChild((f=b.cloneDeep(G.value))==null?void 0:f.filter(E=>(E==null?void 0:E.label)!=="操作")),t,s=b.cloneDeep(X.value);if(!Ee.value){Ve.value=!1;return}if(Ke.value===""){ol.value++;let E;l&&n?E={id:ol.value.toString(),[l==null?void 0:l.prop]:n,children:Ee.value.children}:E={id:ol.value.toString()},E!=null&&E.children&&(E={...E,children:(k=E.children)==null?void 0:k.map(p=>ra(p,l,n))}),s.push(Object.assign(Ee.value,E)),t=Object.assign(Ee.value,E)}else s=(B=aa(s,r))==null?void 0:B.newContents,t=(g=aa(s,r))==null?void 0:g.currentSelectContents;const u=(C=i.itemData)==null?void 0:C.filter(E=>(E==null?void 0:E.key)==="childTree")[0];if(((U=u==null?void 0:u.contents)==null?void 0:U.length)>0){Me.value="编辑";const E=[];s==null||s.forEach((p,$)=>{var ee;let V={};if(Array.isArray(p)){let L=[];p==null||p.filter(v=>!(v!=null&&v.id)).forEach((v,W)=>{var le,he,Se,ye,A,h,oe;if((he=(le=Pe.value)==null?void 0:le[W])!=null&&he.prop&&!Array.isArray(v)){let ce={};ce[Pe.value[W].column]=v,ge!=null&&ge.value&&((Se=ge==null?void 0:ge.value)==null?void 0:Se.length)>0&&((ye=ge==null?void 0:ge.value)!=null&&ye.find(ne=>JSON.stringify(ne==null?void 0:ne[0])===JSON.stringify(ce)))&&(L=(A=ge==null?void 0:ge.value)==null?void 0:A.find(ne=>JSON.stringify(ne==null?void 0:ne[0])===JSON.stringify(ce))),L&&L.length>0?V[Pe.value[W].prop]=L!=null&&L.find(ne=>{var ve;return((ve=Object.keys(ne))==null?void 0:ve[0])===Pe.value[W].column})?(h=L==null?void 0:L.find(ne=>{var ve;return((ve=Object.keys(ne))==null?void 0:ve[0])===Pe.value[W].column}))==null?void 0:h[Pe.value[W].column]:v:V[Pe.value[W].prop]=v}else Array.isArray(v)&&((oe=Pe.value[W])!=null&&oe.prop?V[Pe.value[W].prop]=v:V.children=Rl(v,Pe.value))})}else V=p;Array.isArray(p)&&p.some(L=>L==null?void 0:L.id)?E.push(Object.assign(V,{id:(ee=p==null?void 0:p.find(L=>L.id))==null?void 0:ee.id})):V.id?E.push(V):E.push(Object.assign(V,{id:$.toString()}))}),X.value=ia(E,u,G.value)}else X.value=s;ta(X.value),Al.value=X.value;const c=Lr(Al.value,Je.value,s);let d=[];if(cl.value?(d=(w=b.cloneDeep(cl).value.singleContent)==null?void 0:w.filter(E=>(E==null?void 0:E.id)!==(t==null?void 0:t.id)),d.push(t)):d=[t],ll.value){const E={content:c,singleContent:((x=u==null?void 0:u.contents)==null?void 0:x.length)>0?d==null?void 0:d.flatMap(Vl):d,index:i==null?void 0:i.index,buttonName:"编辑",column:G.value,parentTableId:i==null?void 0:i.parentTableId};fe.setCacheUpdatingData(E)}if(e&&!((F=(q=(R=Te.value)==null?void 0:R[0])==null?void 0:q.optionUrl)!=null&&F.menuId)){const E={content:c,singleContent:((o=u==null?void 0:u.contents)==null?void 0:o.length)>0?Vl(t):t,index:i==null?void 0:i.index,buttonName:Me.value,column:G.value,parentTableId:i==null?void 0:i.parentTableId};fe.setTableLoading(i==null?void 0:i.index),Ve.value=!1,Ee.value=void 0,ie("change",E)}if((T=(y=(S=Te.value)==null?void 0:S[0])==null?void 0:y.optionUrl)!=null&&T.menuId){Ve.value=!1;let E=(D=i.itemData)==null?void 0:D.filter(p=>(p==null?void 0:p.key)==="filterAllType");if((E==null?void 0:E.length)>0){let $=(_=(j=(H=(E==null?void 0:E.map(V=>V==null?void 0:V.value)).flat().find(V=>{var ee;return(ee=V==null?void 0:V.content)==null?void 0:ee.includes("@Num")}))==null?void 0:H.content)==null?void 0:j.split(":"))==null?void 0:_[1];$=parseInt($),X.value=(O=X.value)==null?void 0:O.slice(((J=X.value)==null?void 0:J.length)-$,(m=X.value)==null?void 0:m.length)}}};a.onUnmounted(()=>{G.value=[],X.value=[],be.value=[],ue.value=[],Le.value=[],Ze.value=[],pl.value=[],tl.value=[],Te.value=[],$e.value=[],M.value=null});const na=async(e,l,n)=>{var f,k,B,g,C,U,w,x,R,q,F;al.value=n==null?void 0:n.prop;const r=b.cloneDeep(i.itemData),t=r==null?void 0:r.map(o=>{var S;return(o==null?void 0:o.key)==="header"&&((S=o.contents)==null||S.map((y,T)=>{var D,H,j,_,J,m,O,E,p,$,V,ee,L,v,W,le,he,Se,ye;return y.type=y!=null&&y.type?y.type:(_=(j=(H=(D=y==null?void 0:y.key)==null?void 0:D.split("$"))==null?void 0:H[1])==null?void 0:j.split("("))!=null&&_[0]?(m=(J=te.FormType)==null?void 0:J.find(A=>{var h,oe,ce,ne;return(A==null?void 0:A.key)===((ne=(ce=(oe=(h=y==null?void 0:y.key)==null?void 0:h.split("$"))==null?void 0:oe[1])==null?void 0:ce.split("("))==null?void 0:ne[0])}))==null?void 0:m.value:"Input",y.options=y!=null&&y.options?y.options:((p=(E=(O=y==null?void 0:y.key)==null?void 0:O.split("$"))==null?void 0:E[1])==null?void 0:p.length)>0?(L=(ee=Jl((V=($=y==null?void 0:y.key)==null?void 0:$.split("$"))==null?void 0:V[1]))==null?void 0:ee.split(","))==null?void 0:L.map(A=>({label:A,value:A})):[],(v=y==null?void 0:y.key)!=null&&v.includes("$")&&(y.key=(le=(W=y==null?void 0:y.key)==null?void 0:W.split("$"))==null?void 0:le[0]),y.value=(he=Object.values(l))==null?void 0:he[T],y.optionUrl=y!=null&&y.formMenuSelect&&((Se=y==null?void 0:y.formMenuSelect)==null?void 0:Se.length)>0?{groupSelect:(ye=y==null?void 0:y.groupSelect)==null?void 0:ye.split(/[::]/).map(A=>A.trim()),menuSelect:y==null?void 0:y.formMenuSelect,selectRelateType:"",type:(y==null?void 0:y.formType)??(y!=null&&y.groupSelect?"Select":"")}:null,y})),o});let s=b.cloneDeep(Te.value),u=(k=(f=b.cloneDeep(t))==null?void 0:f.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:k.contents;s=s==null?void 0:s.map(o=>{var S;return o.value=(S=u==null?void 0:u.find((y,T)=>T===(o==null?void 0:o.id)))==null?void 0:S.value,o});let c="",d=(C=(g=(B=b.cloneDeep(t))==null?void 0:B.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:g.contents)==null?void 0:C.find((o,S)=>{var y,T,D;return(o==null?void 0:o.label)===al.value||(S==null?void 0:S.toString())===((D=(T=(y=al.value)==null?void 0:y.split("a"))==null?void 0:T[1])==null?void 0:D.toString())});if((x=(w=(U=b.cloneDeep(t))==null?void 0:U.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:w.contents)==null||x.forEach(o=>{var S,y,T,D,H;c===""&&((T=(y=(S=o==null?void 0:o.optionUrl)==null?void 0:S.groupSelect)==null?void 0:y[1])!=null&&T.includes("["))&&(c=(H=(D=o==null?void 0:o.optionUrl)==null?void 0:D.groupSelect)==null?void 0:H[1])}),(R=d==null?void 0:d.optionUrl)!=null&&R.menuSelect){let o=await Wl(d),S;if(o==null||o.forEach(y=>{var T,D,H,j,_,J,m,O,E,p;c===((D=(T=d==null?void 0:d.optionUrl)==null?void 0:T.groupSelect)==null?void 0:D[1])&&((_=(j=(H=d==null?void 0:d.optionUrl)==null?void 0:H.groupSelect)==null?void 0:j[1])!=null&&_.includes("["))&&((p=b.cloneDeep(y))==null?void 0:p[(E=(O=(m=(J=d==null?void 0:d.optionUrl)==null?void 0:J.groupSelect)==null?void 0:m[1])==null?void 0:O.replaceAll("[",""))==null?void 0:E.replaceAll("]","")])===(d==null?void 0:d.value)&&(S=y)}),S){let y=b.cloneDeep(s);y=y==null?void 0:y.map(D=>{var H,j,_,J,m,O,E,p,$,V,ee;return(S!=null&&S[D==null?void 0:D.label]||S!=null&&S[(J=(_=(j=(H=D==null?void 0:D.optionUrl)==null?void 0:H.groupSelect)==null?void 0:j[1])==null?void 0:_.replaceAll("[",""))==null?void 0:J.replaceAll("]","")])&&((E=(O=(m=D==null?void 0:D.optionUrl)==null?void 0:m.groupSelect)==null?void 0:O[1])!=null&&E.includes("["))&&(D.value=(S==null?void 0:S[D==null?void 0:D.label])||(S==null?void 0:S[(ee=(V=($=(p=D==null?void 0:D.optionUrl)==null?void 0:p.groupSelect)==null?void 0:$[1])==null?void 0:V.replaceAll("[",""))==null?void 0:ee.replaceAll("]","")])),D}),X.value=(q=b.cloneDeep(X.value))==null?void 0:q.map(D=>{if((D==null?void 0:D.id)===(l==null?void 0:l.id)){const H={};return y==null||y.forEach(j=>{H[j.name]=j.value}),H.id=D==null?void 0:D.id,H}return D});let T=b.cloneDeep(y);T=T==null?void 0:T.map(D=>{var H,j,_,J;return(j=(H=D==null?void 0:D.optionUrl)==null?void 0:H.menuSelect)!=null&&j.some(m=>m==null?void 0:m.includes)&&(D.optionUrl.menuSelect=(J=(_=D==null?void 0:D.optionUrl)==null?void 0:_.menuSelect)==null?void 0:J.map(m=>{var O,E,p,$;if(m!=null&&m.includes("[")){let V=(E=(O=m==null?void 0:m.replaceAll("[","").replaceAll("]",""))==null?void 0:O.split(":"))==null?void 0:E[1];m=($=(p=b.cloneDeep(y))==null?void 0:p.find(ee=>(ee==null?void 0:ee.label)===V))==null?void 0:$.value}return m})),D}),X.value=(F=b.cloneDeep(X.value))==null?void 0:F.map(D=>{if((D==null?void 0:D.id)===(l==null?void 0:l.id)){const H={};return T==null||T.forEach(j=>{H[j.name]=j.value}),H.id=D==null?void 0:D.id,H}return D})}}},or=async e=>{var f,k,B,g,C,U,w,x,R,q,F,o,S,y,T,D,H,j;if(!e)return;Ee.value=e;const l=b.cloneDeep(i.itemData);let n=l==null?void 0:l.map(_=>{var J;return(_==null?void 0:_.key)==="header"&&((J=_.contents)==null||J.map((m,O)=>{var E,p,$,V,ee,L,v,W,le,he,Se,ye,A,h,oe,ce,ne,ve,Ae;return m.type=m!=null&&m.type?m.type:(V=($=(p=(E=m==null?void 0:m.key)==null?void 0:E.split("$"))==null?void 0:p[1])==null?void 0:$.split("("))!=null&&V[0]?(L=(ee=te.FormType)==null?void 0:ee.find(xe=>{var We,Be,Ge,He;return(xe==null?void 0:xe.key)===((He=(Ge=(Be=(We=m==null?void 0:m.key)==null?void 0:We.split("$"))==null?void 0:Be[1])==null?void 0:Ge.split("("))==null?void 0:He[0])}))==null?void 0:L.value:"Input",m.options=m!=null&&m.options?m.options:((le=(W=(v=m==null?void 0:m.key)==null?void 0:v.split("$"))==null?void 0:W[1])==null?void 0:le.length)>0?(A=(ye=Jl((Se=(he=m==null?void 0:m.key)==null?void 0:he.split("$"))==null?void 0:Se[1]))==null?void 0:ye.split(","))==null?void 0:A.map(xe=>({label:xe,value:xe})):[],(h=m==null?void 0:m.key)!=null&&h.includes("$")&&(m.key=(ce=(oe=m==null?void 0:m.key)==null?void 0:oe.split("$"))==null?void 0:ce[0]),m.value=(ne=Object.values(e))==null?void 0:ne[O],m.optionUrl=m!=null&&m.formMenuSelect&&((ve=m==null?void 0:m.formMenuSelect)==null?void 0:ve.length)>0?{groupSelect:(Ae=m==null?void 0:m.groupSelect)==null?void 0:Ae.split(/[::]/).map(xe=>xe.trim()),menuSelect:m==null?void 0:m.formMenuSelect,selectRelateType:"",type:(m==null?void 0:m.formType)??(m!=null&&m.groupSelect?"Select":"")}:null,m})),_}),r=Te.value,t=(k=(f=b.cloneDeep(n))==null?void 0:f.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:k.contents;if(t=t==null?void 0:t.filter(_=>(_==null?void 0:_.label)!=="操作"),t.push({label:"操作",type:"operate"}),r=r==null?void 0:r.map(_=>{var J;return _.value=_.value??((J=t==null?void 0:t.find((m,O)=>(m==null?void 0:m.prop)===(_==null?void 0:_.name)))==null?void 0:J.value),_}),!fl.value)return;let s="",u=(C=(g=(B=b.cloneDeep(n))==null?void 0:B.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:g.contents)==null?void 0:C.find((_,J)=>{var m,O,E;return(_==null?void 0:_.label)===al.value||(J==null?void 0:J.toString())===((E=(O=(m=al.value)==null?void 0:m.split("a"))==null?void 0:O[1])==null?void 0:E.toString())}),c=(U=u==null?void 0:u.optionUrl)==null?void 0:U.menuSelect,d=!0;if((R=(x=(w=b.cloneDeep(n))==null?void 0:w.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:x.contents)==null||R.forEach(_=>{var J,m,O,E,p,$;d&&((O=(m=(J=_==null?void 0:_.optionUrl)==null?void 0:J.groupSelect)==null?void 0:m[1])!=null&&O.includes("["))&&(s=(p=(E=_==null?void 0:_.optionUrl)==null?void 0:E.groupSelect)==null?void 0:p[1],JSON.stringify(c)===JSON.stringify(($=_==null?void 0:_.optionUrl)==null?void 0:$.menuSelect)&&(d=!1))}),(q=u==null?void 0:u.optionUrl)!=null&&q.menuSelect&&fl.value||(S=(o=(F=Te.value)==null?void 0:F[0])==null?void 0:o.optionUrl)!=null&&S.menuId){let _=await Wl(u,(D=(T=(y=Te.value)==null?void 0:y[0])==null?void 0:T.optionUrl)==null?void 0:D.menuId),J;if((H=u==null?void 0:u.optionUrl)==null||H.menuSelect,_==null||_.forEach(m=>{var O,E,p,$,V,ee,L,v,W,le,he,Se,ye,A,h,oe,ce;s===((E=(O=u==null?void 0:u.optionUrl)==null?void 0:O.groupSelect)==null?void 0:E[1])&&((V=($=(p=u==null?void 0:u.optionUrl)==null?void 0:p.groupSelect)==null?void 0:$[1])!=null&&V.includes("["))&&((le=b.cloneDeep(m))==null?void 0:le[(W=(v=(L=(ee=u==null?void 0:u.optionUrl)==null?void 0:ee.groupSelect)==null?void 0:L[1])==null?void 0:v.replaceAll("[",""))==null?void 0:W.replaceAll("]","")])===(u==null?void 0:u.value)&&(J=m),(ye=(Se=(he=Te.value)==null?void 0:he[0])==null?void 0:Se.optionUrl)!=null&&ye.menuId&&m[(h=(A=Te.value)==null?void 0:A[0])==null?void 0:h.prop]===e[(ce=(oe=Te.value)==null?void 0:oe[0])==null?void 0:ce.prop]&&(J=m)}),J){let m=b.cloneDeep(r);m=m==null?void 0:m.map(p=>{var $,V,ee,L,v,W,le,he,Se,ye,A,h,oe,ce,ne,ve,Ae,xe;return(J!=null&&J[p==null?void 0:p.label]||J!=null&&J[(L=(ee=(V=($=p==null?void 0:p.optionUrl)==null?void 0:$.groupSelect)==null?void 0:V[1])==null?void 0:ee.replaceAll("[",""))==null?void 0:L.replaceAll("]","")])&&((le=(W=(v=p==null?void 0:p.optionUrl)==null?void 0:v.groupSelect)==null?void 0:W[1])!=null&&le.includes("["))&&(p.value=(J==null?void 0:J[p==null?void 0:p.label])||(J==null?void 0:J[(A=(ye=(Se=(he=p==null?void 0:p.optionUrl)==null?void 0:he.groupSelect)==null?void 0:Se[1])==null?void 0:ye.replaceAll("[",""))==null?void 0:A.replaceAll("]","")])),(ce=(oe=(h=Te.value)==null?void 0:h[0])==null?void 0:oe.optionUrl)!=null&&ce.menuId&&(p.value=(J==null?void 0:J[p==null?void 0:p.label])||(J==null?void 0:J[(xe=(Ae=(ve=(ne=p==null?void 0:p.optionUrl)==null?void 0:ne.groupSelect)==null?void 0:ve[1])==null?void 0:Ae.replaceAll("[",""))==null?void 0:xe.replaceAll("]","")])),p}),Te.value=b.cloneDeep(m);let O=b.cloneDeep(m);O=O==null?void 0:O.map(p=>{var $,V,ee,L,v,W;return(V=($=p==null?void 0:p.optionUrl)==null?void 0:$.menuSelect)!=null&&V.some(le=>le==null?void 0:le.includes("["))&&(p.optionUrl.oldMenuSelect=(L=(ee=b.cloneDeep(p))==null?void 0:ee.optionUrl)==null?void 0:L.menuSelect,p.optionUrl.menuSelect=(W=(v=p==null?void 0:p.optionUrl)==null?void 0:v.menuSelect)==null?void 0:W.map(le=>{var he,Se,ye,A;if(le!=null&&le.includes("[")){let h=(Se=(he=le==null?void 0:le.replaceAll("[","").replaceAll("]",""))==null?void 0:he.split(":"))==null?void 0:Se[1];le=(A=(ye=b.cloneDeep(m))==null?void 0:ye.find(oe=>(oe==null?void 0:oe.label)===h))==null?void 0:A.value}return le})),p}),Te.value=O;let E={};(j=Te.value)==null||j.forEach(p=>{E[p.prop]=p==null?void 0:p.value}),Ee.value=E}}fl.value=!1},tr=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",sr=e=>{var s,u;const l=(u=(s=Le.value)==null?void 0:s.find(c=>(c==null?void 0:c.label)===(e==null?void 0:e.label)))==null?void 0:u.multiple,n=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;X.value.forEach(c=>{const d=c==null?void 0:c[n];l&&da.isString(d)&&(c[n]=[d]),!l&&!da.isString(d)&&(c[n]="")})},oa=(e,l)=>{var n;return l==null||l.forEach(r=>{e[r==null?void 0:r.prop]=r==null?void 0:r.value}),e.children&&((n=e.children)==null?void 0:n.length)>0&&(e.children=e.children.map(r=>oa(r,l))),e},zl=e=>{var n,r,t,s,u,c;yl("");const l=(n=Te.value)==null?void 0:n.reduce((d,f)=>(d[f.name]=f.value,d),{});if(((r=Object.keys(l))==null?void 0:r.length)>0){Ee.value=l,Ke.value="",ol.value=(t=X.value)==null?void 0:t.length,tl.value=(s=Ie.value)==null?void 0:s.filter(f=>(f==null?void 0:f.label)!=="新增");const d=(c=(u=be.value)==null?void 0:u.filter(f=>(f==null?void 0:f.label)!=="操作"))==null?void 0:c.map(f=>{var B,g,C;const k=(g=(B=Le.value)==null?void 0:B.find(U=>(U==null?void 0:U.label)===(f==null?void 0:f.label)))==null?void 0:g.multiple;return sr(f),{...f,contents:(f==null?void 0:f.options)??[],optionUrl:f!=null&&f.formMenuSelect&&((C=f==null?void 0:f.formMenuSelect)==null?void 0:C.length)>0?{groupSelect:f==null?void 0:f.groupSelect,menuSelect:f==null?void 0:f.formMenuSelect,selectRelateType:"",type:f==null?void 0:f.formType,multiple:k}:null}});G.value=d==null?void 0:d.map(f=>oa(f,[{prop:"type",value:"edit"},{prop:"columnType",value:tr(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)}])),e==="createClick"&&vl(!1)}},sl={START:"开始时间",END:"结束时间",HOURS:"工时"},ir=(e,l)=>Number(ql.dayjs(l).diff(ql.dayjs(e),"day",!0).toFixed(1)),ta=e=>{var s;const l=i.itemData,n=(s=l==null?void 0:l.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:s.contents,r=new Map;return n==null||n.forEach((u,c)=>{const{label:d}=u;r.set(d,c)}),!r.has(sl.START)||!r.has(sl.END)||!r.has(sl.HOURS)?e:e==null?void 0:e.map(u=>{const c=u==null?void 0:u[sl.START],d=u==null?void 0:u[sl.END],f=ir(c,d);return c&&d&&(u[sl.HOURS]=`${f}天`),u})},sa=(e,l,n=0)=>{if(n>((l==null?void 0:l.length)??""))return e;const r=l==null?void 0:l[n],t=new Map;for(const u of e){const c=u[r];t.has(c)||t.set(c,[]),t.get(c)&&t.get(c).push(u)}const s=[];for(const[u,c]of t){const[d,...f]=c,k={...d};n+1===((l==null?void 0:l.length)??"")?k.children=c==null?void 0:c.map(B=>(B.level=b.cloneDeep(n)+1,B)).filter((B,g)=>g!==0):f.length>0&&(k.children=sa(f,l,n+1)),k.level=n,s.push(k)}return s},ia=(e,l,n)=>{var t;if(!(l!=null&&l.contents)||((t=l==null?void 0:l.contents)==null?void 0:t.length)===0)return e;let r=[];return r=sa(e,l==null?void 0:l.contents,0),r},ua=(e,l)=>{var g,C,U,w,x,R,q,F,o,S,y,T,D,H,j,_,J,m,O,E,p,$,V,ee,L;const n=e==null?void 0:e.filter(v=>(v==null?void 0:v.key)==="header");e==null||e.filter(v=>(v==null?void 0:v.key)==="tableIndexColumn")[0];const r=e==null?void 0:e.filter(v=>(v==null?void 0:v.key)==="childTree")[0];let t=l;const s=e==null?void 0:e.find(v=>(v==null?void 0:v.key)==="page"),u=e==null?void 0:e.find(v=>(v==null?void 0:v.key)==="rowButton"),c=e==null?void 0:e.find(v=>(v==null?void 0:v.key)==="extraButton"),d=e==null?void 0:e.filter(v=>(v==null?void 0:v.key)==="tableContents"),f=e==null?void 0:e.filter(v=>(v==null?void 0:v.key)==="tableIndex");Le.value=(C=(g=e==null?void 0:e.filter(v=>(v==null?void 0:v.key)==="tableToForm"))==null?void 0:g[0])==null?void 0:C.contents,Gl.value=(s==null?void 0:s.contents)??!0;let k=[];el.value===""?k=n==null?void 0:n[0]:k=(n==null?void 0:n.find(v=>(v==null?void 0:v.selectLabel)==="("+el.value+")"))??(n==null?void 0:n.find(v=>!(v!=null&&v.selectLabel)));let B=[];if(el.value===""?B=f==null?void 0:f[0]:B=(f==null?void 0:f.find(v=>(v==null?void 0:v.selectLabel)==="("+el.value+")"))??(f==null?void 0:f.find(v=>!(v!=null&&v.selectLabel))),((U=k==null?void 0:k.contents)==null?void 0:U.length)>0){let v=[];if(k!=null&&k.contents.some(A=>Array.isArray(A)&&(A==null?void 0:A.find(h=>h.children))))Je.value===""?v=(x=(w=te.getGradeColumns(k==null?void 0:k.contents))==null?void 0:w[0])==null?void 0:x.filter(A=>!Array.isArray(A)):(Je.value.split("-"),v=(R=te.getGradeColumns(k==null?void 0:k.contents))==null?void 0:R[0]);else{let A=k!=null&&k.contents.some(h=>Array.isArray(h))?(q=k==null?void 0:k.contents)==null?void 0:q[0]:k==null?void 0:k.contents;A==null||A.forEach((h,oe)=>{var ve,Ae,xe,We;let ce="";(Ae=(ve=Y.value)==null?void 0:ve.split("/"))==null||Ae.forEach(Be=>{var Ge,He,bl;if(Be!==""){let il=(bl=(He=(Ge=Be==null?void 0:Be.split(se+"updateLoading"))==null?void 0:Ge[0])==null?void 0:He.split(se+"loading"))==null?void 0:bl[0];ce=ce===""?ce+il:ce+"/"+il}}),ce=ce+se+(h==null?void 0:h.directiveLabel);const ne=(xe=Le.value)==null?void 0:xe.find(Be=>(Be==null?void 0:Be.prop)===(h==null?void 0:h.prop));v.push({label:(h==null?void 0:h.label)??"",prop:(h==null?void 0:h.label)==="操作"?"operate":(h==null?void 0:h.prop)??"a"+oe,width:h!=null&&h.width?parseInt(h.width):"",fixed:(h==null?void 0:h.fixed)??void 0,sortable:(h==null?void 0:h.sortable)??!1,filterable:(h==null?void 0:h.filterable)??!1,operable:(h==null?void 0:h.operable)??!1,showSummary:(h==null?void 0:h.showSummary)??!1,align:(h==null?void 0:h.align)??"left",showOverflowTooltip:(h==null?void 0:h.showOverflowTooltip)??!0,isNotDrag:(h==null?void 0:h.isNotDrag)??!1,isEditCol:(h==null?void 0:h.isEditCol)??!1,isOperate:(h==null?void 0:h.isOperate)??!1,id:(h==null?void 0:h.id)??oe,type:(h==null?void 0:h.label)==="操作"?"operate":void 0,formType:(h==null?void 0:h.formType)??(h!=null&&h.groupSelect?"Select":""),isTableColHidden:h==null?void 0:h.isTableColHidden,isFormColHidden:h==null?void 0:h.isFormColHidden,disabled:h==null?void 0:h.disabled,options:(h==null?void 0:h.options)??[],value:(h==null?void 0:h.value)??"",formMenuSelect:(h==null?void 0:h.formMenuSelect)??[],isRoute:(h==null?void 0:h.isRoute)??!1,groupSelect:h!=null&&h.groupSelect?(We=h==null?void 0:h.groupSelect)==null?void 0:We.replaceAll('"',"").split(":"):[],isMainKey:(h==null?void 0:h.isMainKey)||(h==null?void 0:h.directiveLabel)&&!t[ce],columnType:(ne==null?void 0:ne.type)||(h==null?void 0:h.columnType)||"TEXTAREA",directiveLabel:h==null?void 0:h.directiveLabel,isExistChild:!!(h!=null&&h.directiveLabel&&t[ce]),childPath:ce})})}G.value=te.getNewColumnChild(v),ue.value=te.getNewColumnChild(v),Q.value=(F=G.value)==null?void 0:F.map(A=>A==null?void 0:A.label),ze.value=(o=G.value)==null?void 0:o.every(A=>A==null?void 0:A.filterable),Xe.value=(S=G.value)==null?void 0:S.every(A=>A==null?void 0:A.operable),Re.value=(y=G.value)==null?void 0:y.every(A=>A==null?void 0:A.sortable);let W=(D=(T=te.getAllLeafNodes(G.value))==null?void 0:T.filter(A=>(A==null?void 0:A.type)!=="operate"))==null?void 0:D.map((A,h)=>({prop:(A==null?void 0:A.prop)??"a"+h,column:A.label}));Pe.value=W;let le=[];el.value===""?le=d==null?void 0:d[0]:le=(d==null?void 0:d.find(A=>(A==null?void 0:A.selectLabel)==="("+el.value+")"))??(d==null?void 0:d.find(A=>!(A!=null&&A.selectLabel)));let he=Array.isArray((H=le==null?void 0:le.contents)==null?void 0:H[0])&&((j=le==null?void 0:le.contents)!=null&&j[0].every(A=>Array.isArray(A)))?(_=le==null?void 0:le.contents)==null?void 0:_[0]:le==null?void 0:le.contents;B!=null&&B.contents&&((J=B==null?void 0:B.contents)==null?void 0:J.length)!==0&&(he=(m=b.cloneDeep(he))==null?void 0:m.map((A,h)=>{if(!Array.isArray(A)){let oe={};for(let ce in A)ce!=="id"&&ce!=="index"&&(oe[ce]=A[ce]);A=Object.values(oe)}return A}));const Se=!!((O=G.value)!=null&&O.find(A=>A.prop==="index"));he=ga(he,B==null?void 0:B.contents,Se);const ye=[];he==null||he.forEach((A,h)=>{var ce;let oe={};if(Array.isArray(A)){let ne=[];A==null||A.filter(ve=>!(ve!=null&&ve.id)).forEach((ve,Ae)=>{var xe,We,Be,Ge,He,bl;if((xe=W==null?void 0:W[Ae])!=null&&xe.prop&&!Array.isArray(ve)){let il={};il[W[Ae].column]=ve,ge!=null&&ge.value&&((We=ge==null?void 0:ge.value)==null?void 0:We.length)>0&&((Be=ge==null?void 0:ge.value)!=null&&Be.find(Fe=>JSON.stringify(Fe==null?void 0:Fe[0])===JSON.stringify(il)))&&(ne=(Ge=ge==null?void 0:ge.value)==null?void 0:Ge.find(Fe=>JSON.stringify(Fe==null?void 0:Fe[0])===JSON.stringify(il))),ne&&ne.length>0?oe[W[Ae].prop]=ne!=null&&ne.find(Fe=>{var kl;return((kl=Object.keys(Fe))==null?void 0:kl[0])===W[Ae].column})?(He=ne==null?void 0:ne.find(Fe=>{var kl;return((kl=Object.keys(Fe))==null?void 0:kl[0])===W[Ae].column}))==null?void 0:He[W[Ae].column]:ve:oe[W[Ae].prop]=ve}else Array.isArray(ve)&&((bl=W[Ae])!=null&&bl.prop?oe[W[Ae].prop]=ve:oe.children=Rl(ve,W))})}else oe=A;Array.isArray(A)&&A.some(ne=>ne==null?void 0:ne.id)?ye.push(Object.assign(oe,{id:(ce=A==null?void 0:A.find(ne=>ne.id))==null?void 0:ce.id})):oe.id?ye.push(oe):ye.push(Object.assign(oe,{id:h.toString()}))}),X.value=ia(ye,r,G.value),Sl.value=ye,(E=Sl.value)==null||E.forEach(A=>{var h;(h=Dl.value)==null||h.set(A.id,A)})}else G.value=[],be.value=[],X.value=[],Sl.value=[],Dl.value=new Map;((p=u==null?void 0:u.contents)==null?void 0:p.length)>0?Ze.value=u==null?void 0:u.contents:Ze.value=[],(($=c==null?void 0:c.contents)==null?void 0:$.length)>0?(tl.value=c==null?void 0:c.contents,Ie.value=c==null?void 0:c.contents):(tl.value=[],Ie.value=[]),ol.value=((V=X==null?void 0:X.value)==null?void 0:V.length)??0,ta(X.value),Al.value=X.value,ll.value&&(G.value=(L=(ee=be.value)==null?void 0:ee.filter(v=>(v==null?void 0:v.label)!=="操作"))==null?void 0:L.map(v=>{var W;return{...v,type:"edit",optionUrl:v!=null&&v.formMenuSelect&&((W=v==null?void 0:v.formMenuSelect)==null?void 0:W.length)>0?{groupSelect:v==null?void 0:v.groupSelect,menuSelect:v==null?void 0:v.formMenuSelect,selectRelateType:"",type:v==null?void 0:v.formType}:null}}),zl())};a.watch(()=>[i.itemData,el.value,ma.value,Je.value,ge==null?void 0:ge.value],async()=>{var e,l,n,r,t,s;if((e=i==null?void 0:i.itemData)!=null&&e.find(u=>(u==null?void 0:u.key)==="columnPath")&&!((l=dl.value)!=null&&l.find(u=>{var c,d;return(u==null?void 0:u.key)===((d=(c=i==null?void 0:i.itemData)==null?void 0:c.find(f=>(f==null?void 0:f.key)==="columnPath"))==null?void 0:d.contents)}))){let u=dl.value,c={key:(r=(n=i==null?void 0:i.itemData)==null?void 0:n.find(d=>(d==null?void 0:d.key)==="columnPath"))==null?void 0:r.contents,value:(s=(t=i==null?void 0:i.itemData)==null?void 0:t.find(d=>(d==null?void 0:d.key)==="columnUsingPath"))==null?void 0:s.contents};u!=null&&u.find(d=>(d==null?void 0:d.key)===(c==null?void 0:c.key))?u=u==null?void 0:u.map(d=>((d==null?void 0:d.key)===(c==null?void 0:c.key)&&(d.value=c.value),d)):u.push(c),fe.setTableViewContents(u)}ua(i.itemData,i.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>i==null?void 0:i.operatingForm,e=>{e!=null&&e.form&&(yl(e==null?void 0:e.form),Me.value=e==null?void 0:e.dialogTitle,Cl.value=!0,Ve.value=!0)},{immediate:!0,deep:!0});const ca=()=>{ll.value=!ll.value},ur=()=>{El.value=!El.value};a.watch(()=>ll.value,e=>{e?(zl("viewChange"),fe.setCacheUpdatingData(null)):(tl.value=Ie.value,G.value=ue.value,cl.value&&(fe.setTableLoading(i==null?void 0:i.index),ie("change",cl.value)))},{immediate:!0}),a.watch(()=>{var e;return(e=Ql.value)==null?void 0:e.length},e=>{e===0&&(I.currentPage=1)}),a.ref(!1);const cr=(e,l)=>{var n;zl("createClick"),l===I.pageSize&&(I.currentPage=Math.ceil(((n=X.value)==null?void 0:n.length)/I.pageSize))},dr=(e,l,n)=>{var r;na(n,e,l),Ee.value=b.cloneDeep(e),Ke.value=e==null?void 0:e.id,ol.value=(r=X.value)==null?void 0:r.length,Me.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",vl(!1)},_e=e=>{var d,f,k,B,g,C,U,w,x,R;const{row:l,column:n,item:r,slotData:t}=e;let s=l!=null&&l[n==null?void 0:n.prop]||(l==null?void 0:l[n==null?void 0:n.prop])===0?((f=(d=l==null?void 0:l[n==null?void 0:n.prop])==null?void 0:d[0])==null?void 0:f.contents)??((l==null?void 0:l[n==null?void 0:n.prop])===0?"0":l==null?void 0:l[n==null?void 0:n.prop]):((B=(k=l==null?void 0:l[r==null?void 0:r.prop])==null?void 0:k[0])==null?void 0:B.contents)??(l==null?void 0:l[r==null?void 0:r.prop])??((C=(g=t==null?void 0:t[r==null?void 0:r.prop])==null?void 0:g[0])==null?void 0:C.contents)??(t==null?void 0:t[r==null?void 0:r.prop])??((x=(w=l==null?void 0:l[(U=r==null?void 0:r.child)==null?void 0:U.prop])==null?void 0:w[0])==null?void 0:x.contents)??(l==null?void 0:l[(R=r==null?void 0:r.child)==null?void 0:R.prop]),c=Array.isArray(s)&&!(s!=null&&s.every(q=>typeof q=="string"||typeof q=="number"))?"查看":s;return c=Array.isArray(c)?c.join(","):c,c},pr=e=>{var f,k,B,g,C,U,w,x,R,q;const{row:l,column:n,item:r,slotData:t}=e;let s=l!=null&&l[n==null?void 0:n.prop]?((k=(f=l==null?void 0:l[n==null?void 0:n.prop])==null?void 0:f[0])==null?void 0:k.contents)??(l==null?void 0:l[n==null?void 0:n.prop]):((g=(B=l==null?void 0:l[r==null?void 0:r.prop])==null?void 0:B[0])==null?void 0:g.contents)??(l==null?void 0:l[r==null?void 0:r.prop])??((U=(C=t==null?void 0:t[r==null?void 0:r.prop])==null?void 0:C[0])==null?void 0:U.contents)??(t==null?void 0:t[r==null?void 0:r.prop])??((R=(x=l==null?void 0:l[(w=r==null?void 0:r.child)==null?void 0:w.prop])==null?void 0:x[0])==null?void 0:R.contents)??(l==null?void 0:l[(q=r==null?void 0:r.child)==null?void 0:q.prop]);const c=Array.isArray(s)&&!(s!=null&&s.every(F=>typeof F=="string"||typeof F=="number")),d=Array.isArray(s)&&(s==null?void 0:s.find(F=>F==null?void 0:F.url));return c&&d},fr=(e,l)=>e.find(n=>Object.values(n).some(r=>r===l));return a.watch(()=>qe.value,async e=>{if(e){N.setContentLoading(!0),await a.nextTick();const l=fr(X.value,e==null?void 0:e.data);if(!l)return N.setContentLoading(!1);await Zl(e==null?void 0:e.data,null,l,{data:e==null?void 0:e.data,isMainKey:!0}),N.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>i==null?void 0:i.cacheNewData,e=>{var l;e&&(Array.isArray(e)||(e==null?void 0:e.compId)===(i==null?void 0:i.index)&&(X.value=(l=X.value)==null?void 0:l.map(n=>{var r;return(n==null?void 0:n.id)===((r=e==null?void 0:e.data)==null?void 0:r.id)?{...n,id:e==null?void 0:e.resId}:n})))},{immediate:!0,deep:!0}),(e,l)=>{var f,k,B;const n=a.resolveComponent("svg-icon"),r=a.resolveComponent("el-popover"),t=a.resolveComponent("el-switch"),s=a.resolveComponent("el-checkbox"),u=a.resolveComponent("el-checkbox-group"),c=a.resolveComponent("el-button"),d=a.resolveComponent("LookComponent");return a.openBlock(),a.createElementBlock("div",Mr,[Hl.value?(a.openBlock(),a.createBlock(Qe.ssTable,{id:"excel-table",pageObj:I,summaryInfo:nl,columns:G.value,defaultSort:re,isCardViewport:El.value,checkedColumns:Q.value,key:Ml.value+JSON.stringify(G.value),tableData:Ql.value,isEditViewport:ll.value,isShowPagination:Gl.value,isShowEdit:!1,isShowDelete:!1,allowSelect:K.allowSelect,onDbClickRow:Ja,extraButton:tl.value,rowButton:Ze.value,cacheExtraButtons:Ie.value,isClearSelection:((f=$e.value)==null?void 0:f.length)===0,onDoCurrentChange:xa,onDoSizeChange:Ea,onContentClick:Zl,onRowClick:Wa,onSelectChange:La,onCellChange:dr,onChange:na,onPreview:Xl,onSubmitEditingTable:ja,onHandleColEditChange:Ua,onHandleColTypeChange:Oa,onClickButton:Ul},a.createSlots({headerButton:a.withCtx(g=>{var C,U;return[K.showHeader?(a.openBlock(),a.createBlock(Cr,{key:0,lockingPage:a.unref(ml)===a.unref(Y),filterValues:Yl.value,selectNums:(C=$e.value)==null?void 0:C.length,dataNums:(U=X.value)==null?void 0:U.length,compName:K.compName,isDevMode:K.isDevMode,buttons:g.buttons,onButtonClick:l[0]||(l[0]=w=>Ul(w,"",{})),columns:G.value,onFilter:qa,onGetImportData:Na,level:K.level},null,8,["lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var g,C;return[((g=X.value)==null?void 0:g.length)>0&&K.allowOperate?(a.openBlock(),a.createElementBlock("div",Fr,[(C=Ze.value)!=null&&C.some(U=>(U==null?void 0:U.label)==="编辑")&&!El.value&&a.unref(ml)!==a.unref(Y)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:ca},[a.createVNode(n,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0),a.createElementVNode("span",{title:"卡片视图",onClick:ur},[a.createVNode(n,{name:"cardViewport",class:"view-icon"})])])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:g,index:C})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:U=>cr(g,C)},[a.createVNode(n,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,Kr)]),operateCol:a.withCtx(()=>[a.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:nr},{reference:a.withCtx(()=>[a.createElementVNode("span",Vr,[a.createVNode(n,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",zr,[l[11]||(l[11]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(t,{"model-value":Re.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:l[2]||(l[2]=g=>$l(g,"sortable"))},null,8,["model-value"]),a.createVNode(t,{"model-value":ze.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:l[3]||(l[3]=g=>$l(g,"filterable"))},null,8,["model-value"]),a.createVNode(t,{"model-value":Xe.value,"active-text":"编辑所有表头","inactive-text":"",onChange:l[4]||(l[4]=g=>$l(g,"operable"))},null,8,["model-value"]),l[12]||(l[12]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(u,{modelValue:Q.value,"onUpdate:modelValue":l[5]||(l[5]=g=>Q.value=g),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:M},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(gl.value,g=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:g.label},[a.createVNode(s,{value:g.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:g.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(g.label),9,qr)]),_:2},1032,["value"]),a.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(n,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var C;return[a.createElementVNode("div",Jr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((C=Object.keys(g))==null?void 0:C.filter(U=>{var w;return(w=ae.value)==null?void 0:w.find(x=>(x==null?void 0:x.value)===U)}),U=>{var w,x;return a.openBlock(),a.createElementBlock("div",{key:U},[a.createVNode(t,{"model-value":g==null?void 0:g[U],"active-text":(x=(w=ae.value)==null?void 0:w.find(R=>(R==null?void 0:R.value)===U))==null?void 0:x.label,onChange:R=>Ma(R,U,g)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",Rr,[a.createVNode(n,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(g=>{var C,U,w,x,R,q,F,o,S,y,T,D,H,j,_,J,m,O;return[pr(g)?(a.openBlock(),a.createBlock(r,{key:0,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",Wr,a.toDisplayString(_e(g)),1)]),default:a.withCtx(()=>{var E,p;return[a.createElementVNode("div",Gr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((p=g==null?void 0:g.row)==null?void 0:p[(E=g==null?void 0:g.column)==null?void 0:E.prop],$=>(a.openBlock(),a.createElementBlock("div",Hr,[a.createElementVNode("div",{class:"prop-url",title:Bl($),onClick:V=>Fa($)},a.toDisplayString(Bl($)),9,Qr),a.createElementVNode("div",{class:"prop-download",onClick:V=>Ka($)}," 下载 ",8,Xr)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock("div",{key:1,style:a.normalizeStyle({color:!Array.isArray(_e(g))&&((U=(C=_e(g))==null?void 0:C.toString())!=null&&U.includes(".txt")||(x=(w=_e(g))==null?void 0:w.toString())!=null&&x.includes(".cpt")||(q=(R=_e(g))==null?void 0:R.toString())!=null&&q.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(_e(g))&&((o=(F=_e(g))==null?void 0:F.toString())!=null&&o.includes(".txt")||(y=(S=_e(g))==null?void 0:S.toString())!=null&&y.includes(".cpt")||(D=(T=_e(g))==null?void 0:T.toString())!=null&&D.includes(".cyd"))?"underline":"",cursor:!Array.isArray(_e(g))&&((j=(H=_e(g))==null?void 0:H.toString())!=null&&j.includes(".txt")||(J=(_=_e(g))==null?void 0:_.toString())!=null&&J.includes(".cpt")||(O=(m=_e(g))==null?void 0:m.toString())!=null&&O.includes(".cyd"))?"pointer":"",marginLeft:(g==null?void 0:g.colIndex)===0?`${((g==null?void 0:g.level)??0)*20}px`:0}),onClick:E=>Aa(_e(g))},a.toDisplayString(_e(g)===0?"0":_e(g)),13,Yr))]}),_:2},[((k=Ze.value)==null?void 0:k.length)>0&&a.unref(ml)!==a.unref(Y)?{name:"actions",fn:a.withCtx(({item:g})=>[a.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(n,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:a.withCtx(()=>[a.createElementVNode("div",Pr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Va(Ze.value,g),(C,U)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:U,onClick:w=>Ul(C==null?void 0:C.label,g,{extra:C})},[a.createElementVNode("div",{style:a.normalizeStyle({color:C==null?void 0:C.textColor}),class:"extra-button-label"},a.toDisplayString(C==null?void 0:C.label),5)],8,$r))),128))])]),_:2},1024)]),key:"0"}:void 0,((B=X.value)==null?void 0:B.length)>0?{name:"batchButton",fn:a.withCtx(g=>[a.createVNode(xr,{lockingPage:a.unref(ml)===a.unref(Y),buttons:g.buttons,selectTableItems:$e.value,onButtonClick:l[1]||(l[1]=C=>Ul(C,"",{}))},null,8,["lockingPage","buttons","selectTableItems"])]),key:"1"}:void 0]),1032,["pageObj","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):a.createCommentVNode("",!0),a.createVNode(Ol.ssDialog,{title:Me.value,visible:Ve.value,width:Da.value,onBeforeDestroy:Pa,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",Zr,[a.createVNode(Qe.ssForm,{rowContents:Te.value,isEnableWrap:!1,showOperator:!1,onChange:or,onClickTrigger:$a,isEdit:Ll.value,onBlurChange:wa},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Cl.value?(a.openBlock(),a.createElementBlock("div",Ir,[a.createVNode(c,{onClick:l[6]||(l[6]=g=>Ve.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>l[13]||(l[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(c,{class:"ok-button",onClick:l[7]||(l[7]=g=>vl(!0)),id:"themeButton"},{default:a.withCtx(()=>l[14]||(l[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(Ol.ssDialog,{title:Me.value,visible:Tl.value,width:wl.value,onBeforeDestroy:l[9]||(l[9]=g=>Tl.value=!1)},{default:a.withCtx(()=>[a.createVNode(Ur)]),footer:a.withCtx(()=>[a.createElementVNode("div",en,[a.createVNode(c,{onClick:l[8]||(l[8]=g=>Tl.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>l[15]||(l[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(c,{class:"ok-button",onClick:Ga,id:"themeButton"},{default:a.withCtx(()=>l[16]||(l[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["title","visible","width"]),z.value?(a.openBlock(),a.createBlock(Qe.ssFilePreview,{key:1,fileDataList:ke.value,onDestroy:Ra},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ce.value?(a.openBlock(),a.createBlock(Ol.ssDialog,{key:2,visible:Ce.value,onBeforeDestroy:ar,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(ul.ThreeViewerHost,{"file-urls":pl.value,isThreeScene:we.value,isSelfWindow:!0,threeData:Ue.value},null,8,["file-urls","isThreeScene","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(Ol.ssDialog,{visible:e.componentVisible,onBeforeDestroy:l[10]||(l[10]=g=>e.componentVisible=!1),width:wl.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(d,{dialogItem:_l.value},null,8,["dialogItem"])]),_:1},8,["visible","width"])])}}},an=jl._export_sfc(ln,[["__scopeId","data-v-c6360b92"]]);exports.formGetOptions=Jl;exports.getSelectRow=Wl;exports.ssTable=an;exports.useFormComp=va;exports.useFormToTableComp=pa;exports.useUnit=fa;