ss-component-new 1.1.652 → 1.1.653

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 (60) hide show
  1. package/dist/{OrbitControls-DQKCQqAM.js → OrbitControls-mRDk-CFe.js} +1 -1
  2. package/dist/{OrbitControls-RNnt_mcM.cjs → OrbitControls-vGwW_cWN.cjs} +1 -1
  3. package/dist/{index-CGPCGRRh.js → index-B2qyUYLc.js} +2 -2
  4. package/dist/{index-CoVdQV0i.js → index-B3Lx1yip.js} +1 -1
  5. package/dist/{index-DhtFD1-B.cjs → index-BAXOETod.cjs} +1 -1
  6. package/dist/{index-4u-23Xo4.js → index-BG9H9Qni.js} +3718 -3712
  7. package/dist/{index-BtpXvIA6.js → index-BHr-BW96.js} +2 -2
  8. package/dist/{index-CzetAh_D.js → index-BLV5l4R8.js} +5733 -5577
  9. package/dist/{index-B5_rLo35.cjs → index-BROrPZko.cjs} +1 -1
  10. package/dist/index-BaOr2wAK.cjs +1 -0
  11. package/dist/{index-DqWKrP7p.cjs → index-BdsE5z3_.cjs} +1 -1
  12. package/dist/{index-wGULs5QZ.cjs → index-Beb9S5gs.cjs} +183 -183
  13. package/dist/{index-d9EmloJa.cjs → index-Bf4kCF97.cjs} +13 -13
  14. package/dist/{index-CYAUSnqq.js → index-BgeUym2U.js} +5 -5
  15. package/dist/{index-AQlYfiDo.cjs → index-BrECcQU1.cjs} +1 -1
  16. package/dist/{index-Cz_HbE8e.js → index-BzKAW_PT.js} +2 -2
  17. package/dist/{index-D5kNDyke.cjs → index-C4aTLnJh.cjs} +1 -1
  18. package/dist/{index-BblcmVmO.js → index-CQjHLPoz.js} +1 -1
  19. package/dist/{index-he-22_jo.cjs → index-CSuLNsDU.cjs} +1 -1
  20. package/dist/{index-DA3sQfEs.js → index-CX2l1K2K.js} +1 -1
  21. package/dist/{index-dWBhk9Dk.js → index-Cc20qlYT.js} +91 -91
  22. package/dist/{index-CjMBj5BR.js → index-CchZ9k7R.js} +2 -2
  23. package/dist/{index-DJVi8ojh.cjs → index-CgN1-UR1.cjs} +1 -1
  24. package/dist/{index-D7XVufPP.js → index-CjTg7w1G.js} +1 -1
  25. package/dist/{index-DzjLEJ2G.cjs → index-Cmx0b-H9.cjs} +1 -1
  26. package/dist/index-CxKdAqmo.cjs +1 -0
  27. package/dist/{index-Ce2J4d7D.js → index-DHekAkut.js} +1 -1
  28. package/dist/{index-C3rKctcY.js → index-DQISIign.js} +1 -1
  29. package/dist/{index-ZjWIhy36.cjs → index-Dsz9CbWY.cjs} +1 -1
  30. package/dist/{index-D7YhWesS.js → index-DuSYVCRx.js} +3 -3
  31. package/dist/{index-C0beLcSH.cjs → index-K6fDxSbJ.cjs} +1 -1
  32. package/dist/{index-DkYoWwCG.cjs → index-SEnxhXOq.cjs} +1 -1
  33. package/dist/{index-DQKyxjSf.cjs → index-Uvy0X3kn.cjs} +1 -1
  34. package/dist/{index-C42OOZRy.js → index-hPBRipv2.js} +2 -2
  35. package/dist/{index-kmklo8FV.js → index-vS9J-CWm.js} +2309 -2327
  36. package/dist/{index-DDzG6c2B.cjs → index-zCk6kmbR.cjs} +1 -1
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-DrQm9pS8.cjs → index.vue_vue_type_script_setup_true_lang-CH5vPYjU.cjs} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-D32wqX6B.js → index.vue_vue_type_script_setup_true_lang-CI7GcLW5.js} +1 -1
  39. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D3x-AlQS.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bj0rjhcm.cjs} +35 -35
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-uJF9vYMQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DY2sTvK_.js} +973 -978
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-9D6uXhMg.cjs → index.vue_vue_type_style_index_0_scoped_264dc673_lang-CdgVMbYx.cjs} +1 -1
  42. package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-DsD_HsX5.js → index.vue_vue_type_style_index_0_scoped_264dc673_lang-G0ymECie.js} +7 -7
  43. package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-kQnSo8kS.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BzcsnNuf.js} +4 -4
  44. package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-MGyd1nJE.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DSIiVdpD.cjs} +1 -1
  45. package/dist/{main-Br1m2nJe.cjs → main-Au0Y3Inu.cjs} +1 -1
  46. package/dist/{main-COl_jsOs.js → main-Yz6RMc79.js} +2 -2
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.css +2 -2
  49. package/dist/ss-component.js +7 -7
  50. package/dist/ss-component2.cjs +1 -1
  51. package/dist/ss-component2.js +8 -8
  52. package/dist/{threeModel-CLfnrscV.cjs → threeModel-CYQ0W7om.cjs} +1 -1
  53. package/dist/{threeModel-y4tbC87W.js → threeModel-Dw65EtfY.js} +31 -31
  54. package/package.json +1 -1
  55. package/dist/index-DpYdEBga.cjs +0 -1
  56. package/dist/index-G2O6ETUf.cjs +0 -1
  57. package/dist/obj/model.mtl +0 -42
  58. package/dist/obj/model.obj +0 -26110
  59. package/public/obj/model.mtl +0 -42
  60. package/public/obj/model.obj +0 -26110
@@ -0,0 +1 @@
1
+ "use strict";const W=require("./index-Beb9S5gs.cjs"),e=require("vue"),l=require("./menu-ScIJ5kqr.cjs"),Ce=require("./index-Bf4kCF97.cjs"),ge=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bj0rjhcm.cjs"),_2=require("./OrbitControls-vGwW_cWN.cjs"),Bl=require("./modelComp-CkSDfH0-.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$l=require("./login-9FT8kgSz.cjs"),Xe=require("./index-4u6cukm_.cjs"),i2=require("./index-Dsz9CbWY.cjs"),A2=require("./index-C31XRLFj.cjs"),d2=l.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(c){this.objUrl=c},setBlobUrls(c){this.blobUrls=c}}});function x2(c){let d=null,t=null,o=null,r=null,N=null,$=null,m=null,U=null;const M=1e3/30;let ee=0;const L=e.ref([]),E=e.ref(new W.Vector3),P=e.ref(new W.Vector3),Y=()=>{if(!c.value)return;d=new W.Scene,d.background=new W.Color(15790320);const J=c.value;t=new W.PerspectiveCamera(75,J.clientWidth/J.clientHeight,.1,1e4),t.position.set(8,-8,6),t.up.set(0,0,1),t.lookAt(0,0,0),o=new W.WebGLRenderer({antialias:!0,alpha:!0}),o.setSize(J.clientWidth,J.clientHeight),o.localClippingEnabled=!0,o.shadowMap.enabled=!0,o.shadowMap.type=W.PCFSoftShadowMap,o.toneMapping=W.ACESFilmicToneMapping,o.toneMappingExposure=1,o.outputColorSpace=W.SRGBColorSpace,J.appendChild(o.domElement),r=new _2.OrbitControls(t,o.domElement),r.enableDamping=!0,r.dampingFactor=.05,r.mouseButtons={LEFT:null,MIDDLE:W.MOUSE.PAN,RIGHT:W.MOUSE.ROTATE},r.panSpeed=.7,N=new W.Xe(t,o,{container:J,type:"cube",placement:"top-right",offset:{top:10,right:10},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),N.attachControls(r),H(),u()},s=(J,B)=>{m&&(d.remove(m),m.dispose()),U&&(d.remove(U),U.geometry.dispose(),U.material.dispose());const n=Math.min(Math.max(Math.floor(J/20),30),40);m=new W.GridHelper(J,n,13421772,14540253),m.rotateX(Math.PI/2),m.position.copy(B),d.add(m);const R=new W.PlaneGeometry(J,J),Q=new W.ShadowMaterial({opacity:.3,color:0});U=new W.Mesh(R,Q),U.position.copy(B),U.position.z-=.01,U.receiveShadow=!0,d.add(U)},v=()=>{if(L.value.length===0)return;const J=new W.Box3;let B=!1;if(L.value.forEach(pe=>{if(pe.userData.boundingBox)J.union(pe.userData.boundingBox),B=!0;else if(pe.userData.modelId&&modelBoundingBoxes.has(pe.userData.modelId)){const he=modelBoundingBoxes.get(pe.userData.modelId);J.union(he.box),B=!0}else J.expandByObject(pe),B=!0}),!B){console.warn("无法计算包围盒,网格更新失败");return}const n=J.getSize(new W.Vector3),R=J.getCenter(new W.Vector3),Q=Math.max(n.x,n.y,n.z),C=Math.max(Q*8,50),oe=new W.Vector3(R.x,R.y,J.min.z);s(C,oe)},H=()=>{const J=new W.AmbientLight(4210752,.6);d.add(J);const B=new W.DirectionalLight(16777215,2);B.position.set(10,10,8),B.castShadow=!0,B.shadow.mapSize.width=4096,B.shadow.mapSize.height=4096,B.shadow.camera.near=.5,B.shadow.camera.far=50,B.shadow.camera.left=-50,B.shadow.camera.right=50,B.shadow.camera.top=50,B.shadow.camera.bottom=-50,d.add(B);const n=new W.DirectionalLight(16777215,.8);n.position.set(-8,-8,6),d.add(n);const R=new W.DirectionalLight(16777215,.6);R.position.set(0,-15,2),d.add(R);const Q=new W.HemisphereLight(16777215,4473924,.8);d.add(Q);const C=new W.PointLight(16777215,1,50);C.position.set(15,15,15),d.add(C);const oe=new W.PointLight(16777215,.5,50);oe.position.set(-15,-15,15),d.add(oe)},u=()=>{$=requestAnimationFrame(u),r&&r.update();const J=performance.now(),B=J-ee;B<M||(ee=J-B%M,o&&d&&t&&o.render(d,t),N&&N.render())},y=J=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(n=>{J[n]&&J[n].dispose&&J[n].dispose()}),J.dispose&&J.dispose()},k=J=>{J==null||J.traverse(B=>{B.geometry&&B.geometry.dispose(),B.material&&(Array.isArray(B.material)?B.material.forEach(n=>{y(n)}):y(B.material))})};return{currentModels:L,initialCameraPosition:E,initialTargetPosition:P,initThreeJS:Y,handleResize:()=>{if(!c.value||!t||!o||!N)return;const J=c.value,B=J.clientWidth,n=J.clientHeight;t.aspect=B/n,t.updateProjectionMatrix(),o.setSize(B,n),N.update()},fitCameraToAllModels:J=>{if(!t||!r||L.value.length===0)return;const B=new W.Box3;let n=!1;if(L.value.forEach(he=>{if(he.userData.boundingBox)B.union(he.userData.boundingBox),n=!0;else if(he.userData.modelId&&J.has(he.userData.modelId)){const h=J.get(he.userData.modelId);B.union(h.box),n=!0}else B.expandByObject(he),n=!0}),!n){console.warn("无法计算包围盒");return}const R=B.getSize(new W.Vector3),Q=B.getCenter(new W.Vector3),oe=Math.max(R.x,R.y,R.z)*.8,pe=new W.Vector3(Q.x+oe,Q.y-oe,Q.z+oe);t.position.copy(pe),t.lookAt(Q),r.target.copy(Q),r.update(),E.value.copy(pe),P.value.copy(Q),v()},getThreeJSObjects:()=>({scene:d,camera:t,renderer:o,controls:r,gizmo:N}),clearAllModels:()=>{if(!d)return;L.value.forEach(B=>{d.remove(B),k(B)});const J=[];d.children.forEach(B=>{!B.isLight&&!B.isCamera&&B.type!=="GridHelper"&&B!==U&&J.push(B)}),J.forEach(B=>{d.remove(B),k(B)}),L.value=[],v()},cleanup:()=>{$&&cancelAnimationFrame($),m&&m.dispose(),U&&(U.geometry.dispose(),U.material.dispose()),o&&o.dispose(),r&&r.dispose(),N&&N.dispose()},updateGridForModels:v}}function B2(c,d){const t=e.ref(!1);let o=null,r=12700,N=new W.Vector3,$=new W.Vector3,m=new W.Vector3,U=0,q=null;const M=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,ee=s=>{const v=new W.Vector3,H=U*1.2,u=new W.Vector3(m.x+H,m.y,m.z),y=new W.Vector3(m.x,m.y+H,m.z),k=new W.Vector3(m.x,m.y-H,m.z);if(s<=.567){const re=s/.567*Math.PI*2;v.x=m.x+Math.cos(re)*H,v.z=m.z+Math.sin(re)*H,v.y=m.y}else if(s<=.724){const x=(s-.567)/.157,re=M(x);v.lerpVectors(u,y,re)}else if(s<=.881){const x=(s-.724)/.157,de=M(x)*Math.PI;v.x=m.x+Math.sin(de)*H,v.y=m.y+Math.cos(de)*H,v.z=m.z}else{const x=(s-.881)/.119,re=M(x);v.lerpVectors(k,N,re)}return v},L=()=>{const{camera:s,controls:v}=c();if(!s||!v)return;o||(o=Date.now());const H=Date.now()-o,u=Math.min(H/r,1);if(u>=1){P();return}const y=ee(u);s.position.copy(y),s.lookAt(m),v.target.copy(m),q=requestAnimationFrame(L)},E=()=>{if(d.value.length===0)return;const{camera:s,controls:v}=c();if(!s||!v)return;N.copy(s.position),$.copy(v.target);const H=new W.Box3;d.value.forEach(O=>{H.expandByObject(O)});const u=H.getSize(new W.Vector3);m=H.getCenter(new W.Vector3),U=Math.max(u.x,u.y,u.z)*1.2;const y=new W.Vector3(m.x+U*1.2,m.y,m.z);v.enabled=!1;const k=s.position.clone(),x=1e3,re=Date.now(),de=()=>{const O=Date.now()-re,X=Math.min(O/x,1),J=M(X);s.position.lerpVectors(k,y,J),s.lookAt(m),v.target.copy(m),X<1?requestAnimationFrame(de):(t.value=!0,o=null,L())};de()},P=()=>{t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{controls:s}=c();s&&(s.enabled=!0,s.target.copy($))};return{isAnimating:t,toggleAnimation:()=>{if(t.value){t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{camera:s,controls:v}=c();if(!s||!v)return;v.enabled=!0;const H=s.position.clone(),u=v.target.clone(),y=1500,k=Date.now(),x=()=>{const re=Date.now()-k,de=Math.min(re/y,1),O=M(de);s.position.lerpVectors(H,N,O),v.target.lerpVectors(u,$,O),de<1&&requestAnimationFrame(x)};x()}else E()},startAnimation:E,stopAnimation:P}}function V2(c,d){const t=e.ref(!1),o=e.ref("none");let r=[],N=[],$=new W.Box3,m=new W.Vector3;const U=()=>{r=[new W.Plane(new W.Vector3(1,0,0),0),new W.Plane(new W.Vector3(0,1,0),0),new W.Plane(new W.Vector3(0,0,1),0)]},q=()=>{$.makeEmpty(),d.value.forEach(Y=>{$.expandByObject(Y)}),m=$.getCenter(new W.Vector3)},M=Y=>{const s=$.getSize(new W.Vector3);let v,H,u;Y==="x"?(v=new W.PlaneGeometry(s.z*1.2,s.y*1.2),H=new W.Vector3(m.x,m.y,m.z),u=new W.Euler(0,Math.PI/2,0)):Y==="y"?(v=new W.PlaneGeometry(s.x*1.2,s.z*1.2),H=new W.Vector3(m.x,m.y,m.z),u=new W.Euler(Math.PI/2,0,0)):Y==="z"&&(v=new W.PlaneGeometry(s.x*1.2,s.y*1.2),H=new W.Vector3(m.x,m.y,m.z),u=new W.Euler(0,0,0));const y=new W.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:W.DoubleSide,depthWrite:!1}),k=new W.Mesh(v,y);return k.position.copy(H),k.rotation.copy(u),k},ee=()=>{if(L(),E(),o.value==="none")return;q();let Y=null;if(o.value==="x"?(r[0].constant=-m.x,Y=r[0]):o.value==="y"?(r[1].constant=-m.y,Y=r[1]):o.value==="z"&&(r[2].constant=-m.z,Y=r[2]),Y){d.value.forEach(v=>{v.traverse(H=>{H.isMesh&&H.material&&(Array.isArray(H.material)?H.material.forEach(u=>{u.clippingPlanes=[Y]}):H.material.clippingPlanes=[Y])})});const{scene:s}=c();if(s){const v=M(o.value);s.add(v),N.push(v)}}},L=()=>{d.value.forEach(Y=>{Y.traverse(s=>{s.isMesh&&s.material&&(Array.isArray(s.material)?s.material.forEach(v=>{v.clippingPlanes=[]}):s.material.clippingPlanes=[])})})},E=()=>{const{scene:Y}=c();Y&&N.forEach(s=>{Y.remove(s),s.geometry.dispose(),s.material.dispose()}),N=[]};return{isClipping:t,activeClippingAxis:o,toggleClipping:()=>{t.value=!t.value,t.value?(U(),d.value.length>0&&q()):(o.value="none",L(),E())},updateClippingPlanes:ee,clearClippingPlanes:L,clearClippingMeshes:E}}const Nl="http://139.196.154.85:20026/chfs/shared/Insofrobot/";function E2(c,d,t,o){return{loadUrdfFromUrl:async N=>{t.value=!0,o.value="正在初始化 URDF 加载器...";const{scene:$}=c();if(!$)return console.error("场景尚未初始化,无法加载 URDF 模型。"),t.value=!1,null;const m=new W.LoadingManager;m.onProgress=(q,M,ee)=>{o.value=`正在加载资源: ${M} / ${ee}`};const U=new W.URDFLoader(m);U.packages=q=>`${Nl.endsWith("/")?Nl:Nl+"/"}${q}/`,U.loadMeshCb=(q,M,ee)=>{o.value=`正在加载网格: ${q}`;const L=(()=>{const E=q.split("?")[0].split("#")[0],P=E.lastIndexOf(".");return P>=0?E.slice(P+1).toLowerCase():void 0})();switch(L){case"obj":{const E=(()=>{try{return new URL(".",q).toString()}catch{const H=q.lastIndexOf("/");return H>=0?q.slice(0,H+1):q}})(),P=(()=>{var u;return(((u=q.split("/").pop())==null?void 0:u.split("?")[0].split("#")[0])??"").replace(/\.[^/.?#]+$/,"")})(),Y=`${E}${P}.mtl`,s=H=>{const u=new W.OBJLoader(M);H&&u.setMaterials(H),u.load(q,y=>ee(y),void 0,y=>{console.error(`加载 OBJ 失败: ${q}`,y),ee(new W.Group)})},v=new W.MTLLoader(M);v.setResourcePath(E),v.load(Y,H=>{try{H.preload()}catch{}s(H)},void 0,H=>{console.warn("未找到或加载材质失败"),s(void 0)});break}case"stl":{new W.STLLoader(M).load(q,P=>{const Y=new W.MeshPhongMaterial({color:12303291,shininess:30}),s=new W.Mesh(P,Y);s.castShadow=!0,s.receiveShadow=!0,ee(s)},void 0,P=>{console.error(`加载 STL 失败: ${q}`,P),ee(new W.Group)});break}default:console.error(`不支持的网格格式: .${L} (路径: ${q})`),ee(new W.Group)}};try{const q=N.split("/").pop();o.value=`正在下载 URDF 文件: ${q}`;const M=await U.loadAsync(N);return M.traverse(ee=>{if(ee.isMesh){const L=ee;L.castShadow=!0,L.receiveShadow=!0}}),$.add(M),d.value.push(M),console.log("URDF 模型加载并添加到场景成功!",M),M}catch(q){return console.error(`加载 URDF 模型 (${N}) 时发生错误:`,q),o.value="模型加载失败",null}finally{t.value=!1,o.value.includes("失败")||(o.value="")}}}}const M2=Bl.useModelComp(l.pinia),{systemPath:r2}=l.storeToRefs(M2),wl=e.ref(),c2=new Map;function z2(c,d,t,o,r){const N=async L=>{try{const E=await Ce.downloadAvatarApi({url:L});if(E.status!==200)throw new Error(`下载失败: ${E.status}`);return E.data}catch(E){throw console.error("addModelFromUrl失败:",E),E}},$=L=>new Promise((E,P)=>{const Y=new FileReader;Y.onload=s=>{try{const v=s.target.result,u=new W.MTLLoader().parse(v);u.preload(),E(u)}catch(v){P(v)}},Y.onerror=()=>{P(new Error("MTL文件读取失败"))},Y.readAsText(L)}),m=async L=>{const E={materials:{},create:function(P){return this.materials[P]?this.materials[P]:(console.warn(`Material '${P}' not found, using default material`),new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))},getAsArray:function(){const P=[];for(const Y in this.materials)P.push(this.materials[Y]);return P},preload:function(){for(const P in this.materials)this.materials[P].map&&(this.materials[P].map.needsUpdate=!0)}};for(const P of L){const Y=await $(P);Object.assign(E.materials,Y.materials)}return E.preload(),E},U=async(L,E=[])=>new Promise((P,Y)=>{const s=new FileReader;s.onload=async v=>{try{const H=v.target.result;let u=null;E&&E.length>0&&(E.length===1?u=await $(E[0]):u=await m(E));const y=new W.OBJLoader;u&&y.setMaterials(u);const k=y.parse(H);u||k.traverse(x=>{x.isMesh&&(x.material=new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))}),P(k)}catch(H){Y(H)}},s.onerror=()=>{Y(new Error("OBJ文件读取失败"))},s.readAsText(L)}),q=async L=>{var E;try{t.value=!0;const{scene:P}=c();if(!P)throw new Error("Scene not initialized");r();const Y=[];for(let s=0;s<L.length;s++){const v=L[s];o.value=`正在加载模型 ${s+1}/${L.length}...`;const H=await N(v.objUrl),u=((E=v.objUrl)==null?void 0:E.split("/").pop())||`model_${s}.obj`,y=new File([H],u,{type:H.type});let k=[];if(v.mtlUrls){const re=Array.isArray(v.mtlUrls)?v.mtlUrls:[v.mtlUrls];for(let de=0;de<re.length;de++){const O=re[de],X=await N(O),J=(O==null?void 0:O.split("/").pop())||`material_${s}_${de}.mtl`,B=new File([X],J,{type:X.type});k.push(B)}}const x=await U(y,k);P.add(x),d.value.push(x),Y.push(x)}return t.value=!1,Y}catch(P){throw console.error("加载模型失败:",P),t.value=!1,P}},M=async(L,E,P=[],Y=[])=>{let s;const v=L.toLowerCase();switch(v){case".txt":case".cpt":case".obj":const H=await E.text();if(v===".txt"||v===".cpt"){const w=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,g=[...H.matchAll(w)].map(K=>({x:parseFloat(K[1]),y:parseFloat(K[2]),z:parseFloat(K[3])})),V=new W.BufferGeometry,G=g.flatMap(K=>[K.x,K.y,K.z]);if(V.setAttribute("position",new W.Float32BufferAttribute(G,3)),v===".txt"){const K=new W.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});s=new W.Points(V,K)}else if(v===".cpt"){const K=new W.LineBasicMaterial({color:"#5B5C99",linewidth:100});s=new W.Line(V,K)}}else if(v===".obj"){const w=new W.OBJLoader;if(P&&P.length>0){const te=new W.MTLLoader;for(const g of P){const V=await g.text(),G=te.parse(V);G.preload(),w.setMaterials(G);break}}s=w.parse(H),(!P||P.length===0)&&s.traverse(te=>{te.isMesh&&(te.material=new W.MeshPhongMaterial({color:"#B3B3D4"})),te instanceof W.Mesh&&(te.material.side=W.DoubleSide)})}break;case".stl":const u=await E.arrayBuffer(),k=new W.STLLoader().parse(u),x=new W.MeshPhongMaterial({color:"#B3B3D4",side:W.DoubleSide});s=new W.Mesh(k,x);break;case".nc":const re=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],de={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},O=new W.Group,X=re.map(w=>new Promise((te,g)=>{new W.STLLoader().load(r2.value===""?`/model/${w}`:`${r2.value}\\${w}`,G=>{const K=new W.MeshPhongMaterial({color:de[w]||"#B3B3D4",side:W.DoubleSide}),p=new W.Mesh(G,K);te(p)},void 0,g)}));try{(await Promise.all(X)).forEach(te=>O.add(te)),s=O}catch(w){throw console.error("加载NC文件对应的STL文件失败:",w),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const J=new W.PCDLoader,B=new W.Group;try{const w=await l.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),te=new Blob([w.data],{type:"application/octet-stream;charset=UTF-8"}),g=await l.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),V=new Blob([g.data],{type:"application/octet-stream;charset=UTF-8"}),G=await new Promise((p,ce)=>{const le=URL.createObjectURL(te);J.load(le,a=>{const i=new Float32Array(a.geometry.attributes.position.count*3);for(let f=0;f<a.geometry.attributes.position.count;f++)i[f*3]=1,i[f*3+1]=0,i[f*3+2]=0;a.geometry.setAttribute("color",new W.BufferAttribute(i,3)),a.material.vertexColors=!0,a.scale.set(.3,.3,.3),URL.revokeObjectURL(le),p(a)},void 0,ce)}),K=await new Promise((p,ce)=>{const le=URL.createObjectURL(V);J.load(le,a=>{const i=new Float32Array(a.geometry.attributes.position.count*3);for(let f=0;f<a.geometry.attributes.position.count;f++)i[f*3]=0,i[f*3+1]=1,i[f*3+2]=0;a.geometry.setAttribute("color",new W.BufferAttribute(i,3)),a.material.vertexColors=!0,a.scale.set(.3,.3,.3),URL.revokeObjectURL(le),p(a)},void 0,ce)});B.add(G),B.add(K),s=B}catch(w){throw console.error("PCD文件加载失败:",w),new Error("无法加载PCD文件")}break;case".urdf":const n=URL.createObjectURL(E),R=new W.URDFLoader,Q="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",C={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},oe=new Map,pe=new Map,he=new Map,h=async w=>{if(oe.has(w))return console.log(`从缓存加载: ${w}`),oe.get(w);try{const te=await l.axios.get(`${Q}/${w}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),g=new Blob([te.data],{type:"application/octet-stream;charset=UTF-8"});return C.enableCache&&oe.set(w,g),g}catch(te){throw console.error(`加载文件失败: ${w}`,te),new Error(`无法加载文件: ${w}`)}},T=(w="default")=>{if(pe.has(w))return pe.get(w);const te=new W.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:W.FrontSide});return pe.set(w,te),te},D=w=>{try{w.isBufferGeometry&&w.mergeVertices&&w.mergeVertices(),w.computeVertexNormals&&w.computeVertexNormals(),w.computeBoundingSphere&&w.computeBoundingSphere(),w.deleteAttribute&&w.deleteAttribute("uv2")}catch(te){console.warn("几何体优化失败,使用原始几何体:",te)}return w},b=async(w,te,g)=>{const V=`stl_${te}`;if(he.has(V)){const ce=he.get(V);return new W.Mesh(ce,T())}const G=await w.arrayBuffer();let p=new W.STLLoader(g).parse(G);return p=D(p),he.set(V,p),new W.Mesh(p,T())},z=async(w,te,g)=>{const V=`obj_${te}`;if(oe.has(V))return oe.get(V).clone();const G=await w.text(),K=new W.OBJLoader(g),p=te.replace(".obj",".mtl");try{const a=await(await h(p)).text(),f=new W.MTLLoader(g).parse(a);f.preload(),K.setMaterials(f)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${p}`)}const ce=K.parse(G);return ce.traverse(le=>{le.isMesh&&(le.geometry=D(le.geometry),le.castShadow=!0,le.receiveShadow=!0,le.renderOrder=1)}),oe.set(V,ce),ce},_=(w,te)=>{const g=new W.LOD;if(g.addLevel(w,0),w.geometry){const V=w.geometry.clone(),G=new W.Mesh(V,w.material);g.addLevel(G,50)}return g};let F=0,j=0;const I=[];R.loadMeshCb=async(w,te,g,V,G)=>{const K=w.split("/").pop(),p=g||(()=>{});F++;const ce=new Promise(async(le,a)=>{try{const i=await h(K);if(!i||i.size===0)throw new Error(`文件为空: ${K}`);const f=K.split(".").pop().toLowerCase();let A;switch(f){case"stl":A=await b(i,K,te);break;case"obj":A=await z(i,K,te);break;default:throw new Error(`不支持的文件格式: ${f}`)}C.enableLOD&&A.isMesh&&(A=_(A,K)),p(A),j++,V&&V({loaded:j,total:F,progress:j/F}),le(A)}catch(i){console.error(`mesh文件加载失败: ${K}`,i);const f=new W.Group;p(f),le(f);const A=new W.BoxGeometry(.1,.1,.1),S=new W.MeshStandardMaterial({color:16711680,wireframe:!0});return new W.Mesh(A,S)}});I.push(ce)};try{if(!n){wl.value=void 0;break}if(s=await R.loadAsync(n),console.log(`URDF文件加载完成,等待${F}个mesh文件加载...`),I.length>0)try{await Promise.allSettled(I),console.log(`所有mesh文件处理完成,成功加载: ${j}/${F}`)}catch(g){console.warn("部分mesh文件加载失败,但继续显示模型",g)}s.traverse(g=>{g.isMesh&&(g.castShadow=!0,g.receiveShadow=!0,g.renderOrder=1,g.material&&(g.material.needsUpdate=!0))}),console.time("计算包围盒");const w=new W.Box3;w.expandByObject(s);const te=`urdf_${Date.now()}`;s.userData.boundingBox=w.clone(),s.userData.modelId=te,c2.set(te,{box:w.clone(),center:w.getCenter(new W.Vector3),size:w.getSize(new W.Vector3),maxSize:Math.max(...w.getSize(new W.Vector3).toArray())}),wl.value=s,console.log("URDF模型加载完成并优化")}catch(w){console.error("URDF加载失败:",w),wl.value=void 0}finally{n&&URL.revokeObjectURL(n)}break;default:throw new Error(`不支持的文件格式: ${L}`)}return s};return{addModelsFromUrls:q,loadModelByDefaultPath:async L=>{console.log(L);try{t.value=!0,o.value="正在加载模型...";const{scene:E}=c();if(!E)throw new Error("Scene not initialized");r(),await new Promise(Y=>setTimeout(Y,100));const P=[];for(let Y=0;Y<L.length;Y++){const s=L[Y],v=await M(s.suffix,s.blob,s.mtlBlobs||[],s.meshFiles||[]);v&&(E.add(v),d.value.push(v),P.push(v))}return t.value=!1,o.value="",P}catch(E){throw console.error("加载模型失败:",E),t.value=!1,o.value="",E}},urdfModel:wl,modelBoundingBoxes:c2}}const F2={class:"panel-content"},N2={__name:"animationPanel",props:{animationData:Object,model:Object},setup(c){const d=c;e.ref();const t=e.ref();return e.watch(()=>[d==null?void 0:d.animationData],()=>{var r;let o=((r=l.cloneDeep(d==null?void 0:d.animationData))==null?void 0:r.动画输出Content)??[];o&&(t.value=o)},{deep:!0,immediate:!0}),(o,r)=>{var N,$,m;return e.openBlock(),e.createElementBlock("div",F2,[(e.openBlock(),e.createBlock(W.ssTable,{itemData:(N=t.value)==null?void 0:N.compData,key:($=t.value)==null?void 0:$.id,index:(m=t.value)==null?void 0:m.id,showHeader:!1},null,8,["itemData","index"]))])}}},S2=Ve._export_sfc(N2,[["__scopeId","data-v-9363d85a"]]),T2={class:"panel-content"},I2={key:0,class:"joints-list"},L2={class:"joint-info-row"},$2={class:"joint-left"},P2={class:"joint-name"},O2={class:"joint-range"},R2={class:"joint-type"},U2={key:0,class:"joint-control-row"},H2={class:"slider-container"},j2=["min","max","value","onInput","disabled"],J2={class:"value-display"},K2={class:"joint-value"},G2={class:"unit"},W2={key:1,class:"empty-state"},Dl=.001,q2=1e3,Sl=60,X2={__name:"jointPanel",props:{model:Object,scene:Object,animationData:Object},setup(c,{expose:d}){const t=c;e.ref(!0);const o=e.ref([]),r=e.ref(null),N=e.ref(null),$=e.ref(12.5),m=e.ref(),U=e.ref(1302),q=e.ref(30),M=e.ref(!1),ee=e.ref(!1),L=e.ref(0),E=e.ref(0),P=e.ref(null),Y=W.MathUtils.degToRad,s=e.ref(1),v=()=>q2/Sl/s.value;let H=[];e.watch(()=>t.animationData,b=>{var _;U.value=b.extra.管长,$.value=b.extra.外径/2;let z=((_=l.cloneDeep(b))==null?void 0:_.动画输出)??[];z&&z.length>0&&(H=z)},{deep:!0}),e.computed(()=>H.length>0);const u=(b,z=!1)=>b==="revolute"?z?Math.PI:-Math.PI:b==="prismatic"?z?1:-1:0,y=()=>{if(!r.value)return l.ElMessage.error("未加载 URDF"),!1;let b=null;return r.value.traverse(z=>{b||z.name==="Pipe_Link"&&z.traverse(_=>{_ instanceof W.Mesh&&!b&&(b=_)})}),b?(b.position.y-=q.value*Dl,m.value=b,b.material=new W.MeshPhongMaterial({color:11184810,shininess:80,side:W.DoubleSide}),!0):(l.ElMessage.error('在 "Pipe_Link" 内未找到任何 Mesh'),!1)},k=b=>{if(!b||!b.joints)return console.warn("URDF模型没有关节信息"),[];let z=null;if(b.traverse(F=>{F.name==="Pipe_Link"&&!z&&(z=F)}),z)m.value=z;else return console.warn("未找到管子模型"),[];const _=[];return Object.keys(b.joints).forEach(F=>{const j=b.joints[F];if(j._jointType==="fixed")return;const I=j.limit?{lower:j.limit.lower??u(j._jointType,!1),upper:j.limit.upper??u(j._jointType,!0)}:{lower:u(j._jointType,!1),upper:u(j._jointType,!0)};_.push({name:F,type:j._jointType||"unknown",limit:I,currentValue:j.angle||0,urdfJoint:j})}),_.sort((F,j)=>F.name.localeCompare(j.name))},x=(b,z)=>{const _=o.value.find(j=>j.name===b);if(!_)return;const F=parseFloat(z);if(_.limit){const j=Math.max(_.limit.lower,Math.min(_.limit.upper,F));_.currentValue=j}else _.currentValue=F;t.model&&t.model.setJointValue?t.model.setJointValue(b,_.currentValue):_.urdfJoint&&_.urdfJoint.setJointValue(_.currentValue)},re=b=>b.reduce((z,_)=>{let F=0;const j=_.Y??0,I=_.C??0,w=_.R??0;return j>0&&(F+=j),I>0&&w>0&&(F+=w*Y(I)),z+F},0),de=b=>{const z=[],_=b.Y??0,F=b.B??0,j=b.C??0,I=b.R??0,w={pos:new W.Vector3(0,0,0),localY:new W.Vector3(0,1,0),localX:new W.Vector3(1,0,0),localZ:new W.Vector3(0,0,1)};if(!_&&!j)return z;if(z.push(w.pos.clone()),F!==0){const te=new W.Matrix4().makeRotationAxis(w.localY,Y(F));w.localX.applyMatrix4(te),w.localZ.applyMatrix4(te)}if(_>0&&(w.pos.add(w.localY.clone().multiplyScalar(_*Dl)),z.push(w.pos.clone())),j>0&&I>0){const te=Y(j),g=I*Dl,V=w.pos.clone().add(w.localX.clone().multiplyScalar(-g)),G=Math.max(16,Math.ceil(j/5));for(let K=1;K<=G;K++){const p=te*K/G,ce=new W.Matrix4().makeRotationAxis(w.localZ,p),a=w.localX.clone().multiplyScalar(g).applyMatrix4(ce),i=V.clone().add(a);z.push(i)}}return z},O=(b,z=0)=>{let _=H.slice(0,b+1);const F=H[b+1];if(F&&z>0){const G={...F,B:(F.B??0)*z,C:(F.C??0)*z};_.push(G)}const j=re(_),I=Math.max(0,U.value-j),w=[];w.push(new W.Vector3(0,0,0));const te=new W.Vector3(0,I*Dl,0);I>0&&w.push(te);let g={pos:te.clone(),localY:new W.Vector3(0,1,0),localX:new W.Vector3(1,0,0),localZ:new W.Vector3(0,0,1)};const V=[];for(let G=_.length-1;G>=0;G--){const K=_[G],p=de(K);if(p.length>0){const ce=p.map(f=>{const A=f.clone(),S=new W.Matrix4;return S.makeBasis(g.localX,g.localY,g.localZ),A.applyMatrix4(S),A.add(g.pos)});V.push(ce);const le=ce[ce.length-1];g.pos=le.clone();const a=K.B??0,i=K.C??0;if(a!==0){const f=new W.Matrix4().makeRotationAxis(g.localY,Y(a));g.localX.applyMatrix4(f),g.localZ.applyMatrix4(f)}if(i>0){const f=Y(i),A=new W.Matrix4().makeRotationAxis(g.localZ,f);g.localY.applyMatrix4(A),g.localX.applyMatrix4(A)}}}for(const G of V)G.length>1&&w.push(...G.slice(1));w.length<2&&w.push(new W.Vector3(0,.001,0));try{const G=new W.CatmullRomCurve3(w,!1,"catmullrom",.01),K=new W.TubeGeometry(G,Math.max(2,w.length*4),$.value*Dl,18,!1);m.value.geometry.dispose(),m.value.geometry=K}catch(G){console.error("管件更新失败",G)}},X=(b,z,_=1)=>{b&&(Object.keys(b).forEach(F=>{const j=b[F],I=o.value.find(w=>w.name===F);I&&(I.currentValue=j,t.model&&t.model.setJointValue?t.model.setJointValue(F,j):I.urdfJoint&&I.urdfJoint.setJointValue(j))}),O(z,_))},J=(b,z,_)=>b+(z-b)*_,B=(b,z,_)=>{if(!b||!z)return b||z;const F={};return Object.keys(b).forEach(j=>{const I=b[j],w=z[j];F[j]=J(I,w||I,_)}),F},n=()=>{if(H.length===0){console.warn("没有动画数据");return}y(),M.value=!0,ee.value=!1,L.value=0,E.value=0,R()},R=()=>{if(!M.value||ee.value)return;const b=L.value;if(b>=H.length-1){const j=H[H.length-1];X(j,H.length-1,1),C();return}const z=E.value/Sl,_=H[b],F=H[b+1];if(F){const j=B(_,F,z);X(j,b,z)}else X(_,b);E.value++,E.value>Sl&&(E.value=0,L.value++),P.value=setTimeout(R,v())},Q=()=>{ee.value=!0,P.value&&(clearTimeout(P.value),P.value=null)},C=()=>{M.value=!1,ee.value=!1,s.value=1,P.value&&(clearTimeout(P.value),P.value=null)};d({startAnimation:n,pauseAnimation:Q,stopAnimation:C,resetAll:()=>{C(),L.value=0,E.value=0,o.value.forEach(b=>{(b.type==="revolute"||b.type==="prismatic")&&x(b.name,0)}),O(-1,0)},fastForward:()=>{s.value<4&&(s.value=Math.min(4,s.value*2))},fastBackward:()=>{s.value>.25&&(s.value=Math.max(.25,s.value/2))}}),e.watch(()=>t.model,b=>{b?(r.value=b,o.value=k(b)):o.value=[]},{immediate:!0});const h=()=>{!t.model||M.value&&!ee.value||o.value.forEach(b=>{b.urdfJoint&&b.urdfJoint.angle!==void 0&&(b.currentValue=b.urdfJoint.angle)})},T=()=>{const b=()=>{h(),N.value=requestAnimationFrame(b)};b()},D=()=>{N.value&&(cancelAnimationFrame(N.value),N.value=null)};return e.onMounted(()=>{T()}),e.onUnmounted(()=>{D(),C()}),(b,z)=>(e.openBlock(),e.createElementBlock("div",T2,[o.value.length>0?(e.openBlock(),e.createElementBlock("div",I2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,_=>{var F,j,I,w;return e.openBlock(),e.createElementBlock("div",{key:_.name,class:"joint-item"},[e.createElementVNode("div",L2,[e.createElementVNode("div",$2,[e.createElementVNode("span",P2,e.toDisplayString(_.name),1),e.createElementVNode("span",O2," ["+e.toDisplayString(((F=_.limit)==null?void 0:F.lower.toFixed(2))??(_.type==="revolute"?"-3.14":"-1.00"))+", "+e.toDisplayString(((j=_.limit)==null?void 0:j.upper.toFixed(2))??(_.type==="revolute"?"3.14":"1.00"))+"] ",1)]),e.createElementVNode("span",R2,e.toDisplayString(_.type),1)]),_.type==="revolute"||_.type==="prismatic"?(e.openBlock(),e.createElementBlock("div",U2,[e.createElementVNode("div",H2,[e.createElementVNode("input",{type:"range",min:((I=_.limit)==null?void 0:I.lower)??(_.type==="revolute"?-Math.PI:-1),max:((w=_.limit)==null?void 0:w.upper)??(_.type==="revolute"?Math.PI:1),step:.01,value:_.currentValue,onInput:te=>x(_.name,te.target.value),class:"joint-slider",disabled:M.value&&!ee.value},null,40,j2)]),e.createElementVNode("div",J2,[e.createElementVNode("span",K2,e.toDisplayString(_.currentValue?Number(_.currentValue).toFixed(3):"0.000"),1),e.createElementVNode("span",G2,e.toDisplayString(_.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",W2,z[0]||(z[0]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}},Y2=Ve._export_sfc(X2,[["__scopeId","data-v-b83e7f77"]]),Z2={class:"panel-content"},Q2="id",ea={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:c=>["breadth","firstLevel"].includes(c)}},emits:["nodeClick"],setup(c,{emit:d}){const t=c,o=d,r=e.ref([]),N={children:"children",label:"label"},$=E=>{o("nodeClick",E)},m=(E,P=0)=>{const Y=[];return Array.isArray(E)&&(E==null?void 0:E.length)>0&&E.forEach(s=>{if(!(s!=null&&s.isMesh)&&((s==null?void 0:s.type)==="URDFJoint"||(s==null?void 0:s.type)==="URDFLink")){const v={name:s==null?void 0:s.name,label:s==null?void 0:s.name,show:!0,level:P+1,isPenultimate:!1,type:s==null?void 0:s.type,id:s==null?void 0:s.id,limit:(s==null?void 0:s.limit)??"",children:m(s==null?void 0:s.children,P+1),path:s==null?void 0:s.name};Y.push(v)}}),Y},U=E=>E?[{name:E==null?void 0:E.name,label:E==null?void 0:E.name,show:!0,level:1,isPenultimate:!1,type:E==null?void 0:E.type,id:E==null?void 0:E.id,limit:(E==null?void 0:E.limit)??"",children:m(E==null?void 0:E.children,1),path:E==null?void 0:E.name}]:[],q=(E,P)=>{const Y=[],s=[...E];for(;s.length>0&&Y.length<P;){const v=s.shift();v.children&&v.children.length>0&&(Y.push(v.id),s.push(...v.children))}return Y},M=(E,P)=>{const Y=[];return E.forEach(s=>{if(s.children&&s.children.length>0){Y.push(s.id);const v=s.children.filter(H=>H.children&&H.children.length>0).slice(0,P).map(H=>H.id);Y.push(...v)}}),Y.slice(0,P+1)},ee=e.computed(()=>!r.value||r.value.length===0?[]:t.expandStrategy==="firstLevel"?M(r.value,t.maxExpandCount):q(r.value,t.maxExpandCount)),L=e.computed(()=>t!=null&&t.model?U(t.model):[]);return e.watch(L,E=>{r.value=JSON.parse(JSON.stringify(E))},{immediate:!0}),(E,P)=>{const Y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Z2,[e.createVNode(Y,{data:r.value,props:N,"default-expanded-keys":ee.value,"node-key":Q2,onNodeClick:$},null,8,["data","default-expanded-keys"])])}}},la=Ve._export_sfc(ea,[["__scopeId","data-v-0dda287c"]]),aa=["xlink:href"],oa=e.defineComponent({__name:"svgIcon",props:{backgroundColor:{default:"#f0f0f0"},prefix:{default:"icon"},name:{},size:{default:16},spin:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(c){const d=c,t=e.computed(()=>({backgroundColor:d.backgroundColor})),o=e.computed(()=>`#${d.prefix}-${d.name}`),r=e.computed(()=>{const{size:N}=d;let $=`${N}`;return $=`${$.replace("px","")}px`,{width:$,height:$}});return(N,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container",{active:N.active}]),style:e.normalizeStyle(t.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["svg-icon",[N.$attrs.class,N.spin&&"svg-icon-spin"]]),style:e.normalizeStyle(r.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":o.value},null,8,aa)],6))],6))}}),Me=Ve._export_sfc(oa,[["__scopeId","data-v-00a72991"]]);window._iconfont_svg_string_4634042='<svg><symbol id="icon-lookAround" viewBox="0 0 1041 1024"><path d="M520.685026 798.355937c-10.788594 0-21.577187-2.790872-31.241101-8.372615l-291.583615-168.36871A62.482203 62.482203 0 0 1 166.619208 567.505024V230.850913c0-22.368629 11.913273-42.987756 31.241102-54.109588l291.583615-168.36871a62.482203 62.482203 0 0 1 62.482203 0l291.583615 168.36871c19.327828 11.121832 31.241102 31.740959 31.241101 54.109588v336.654111a62.482203 62.482203 0 0 1-31.241101 54.109588l-291.583615 168.36871a62.857096 62.857096 0 0 1-31.241102 8.372615zM291.583615 531.39031l229.101411 132.295652 229.101412-132.295652v-264.507993l-229.101412-132.295651L291.583615 266.923972v264.466338z m520.685026 36.114714h0.416548-0.416548z" fill="#aaaaaa" ></path><path d="M520.685026 461.660172c-10.788594 0-21.577187-2.790872-31.241101-8.372616l-291.583615-168.327055a62.482203 62.482203 0 0 1 62.482203-108.219176L520.685026 326.990196l260.342513-150.248871a62.482203 62.482203 0 1 1 62.482204 108.219176l-291.583615 168.327055a62.857096 62.857096 0 0 1-31.241102 8.372616z" fill="#aaaaaa" ></path><path d="M520.685026 798.355937a62.482203 62.482203 0 0 1-62.482203-62.482203V399.177969a62.482203 62.482203 0 1 1 124.964406 0v336.695765a62.482203 62.482203 0 0 1-62.482203 62.482203z" fill="#aaaaaa" ></path><path d="M520.685026 1003.172599c-53.276492 0-520.685026-5.248505-520.685026-187.446609 0-62.982061 54.776065-111.259976 162.870276-143.584103 33.073913-9.622259 67.855673 8.914128 77.769516 41.98804s-8.872473 67.897327-41.946386 77.769516c-30.324696 9.080747-49.194321 17.619981-60.649392 24.11813 46.32014 26.242525 178.657446 62.19062 382.641012 62.19062s336.320872-35.948094 382.641012-62.19062c-11.455071-6.498149-30.324696-15.037384-60.649392-24.11813a62.482203 62.482203 0 1 1 35.82313-119.757556c108.094211 32.324126 162.870276 80.643697 162.870276 143.584103 0 182.198104-467.408534 187.446609-520.685026 187.446609z m398.886385-175.366717h0.416548-0.416548z" fill="#72B02D" ></path></symbol><symbol id="icon-xuanzhuan" viewBox="0 0 1024 1024"><path d="M378.963454 724.443778l91.182641 163.473426c6.246088 11.212239 2.252687 25.39393-9.010749 31.691216l-163.473427 91.18264c-18.123894 10.085896-39.422029-6.758062-33.739113-26.673866l72.290786-254.707264c5.682916-19.967002 32.663967-23.090045 42.749862-4.966152z" fill="#FC794B" ></path><path d="M414.64807 903.9932c-1.228739 0-2.40628-0.051197-3.635018-0.204789C169.002752 879.367232 0.000003 771.443028 0.000003 641.452727c0-52.221389 27.032248-102.19009 78.127293-144.581571a35.827969 35.827969 0 0 1 50.480676 4.710165 35.827969 35.827969 0 0 1-4.710164 50.480676C100.090998 571.824209 71.727616 603.310634 71.727616 641.452727c0 88.929954 148.984551 171.050647 346.504275 191.068847 19.711014 1.9967 34.046298 19.557422 32.049597 39.268436a35.879166 35.879166 0 0 1-35.633418 32.20319zM608.430381 904.095595c-18.175091 0-33.79031-13.772111-35.633418-32.254387-1.945503-19.711014 12.389781-37.271736 32.100795-39.217239 198.134093-19.813409 347.528224-101.985301 347.528223-191.171242 0-23.550822-10.649068-47.050447-31.58882-69.935703-13.362532-14.59127-12.389781-37.271736 2.20149-50.634268 14.59127-13.362532 37.271736-12.389781 50.634268 2.20149 32.971151 35.9918 50.429479 76.898555 50.429478 118.368481 0 130.297485-169.463527 238.221689-412.088195 262.489276-1.177541 0.102395-2.40628 0.153592-3.583821 0.153592z" fill="#FC794B" ></path><path d="M846.703267 184.413179l-325.308534 184.464377L196.137396 184.413179 521.394733 0z" fill="#BEC5CB" ></path><path d="M521.394733 737.703915l325.308534-184.41318V184.413179l-325.308534 184.464377z" fill="#808487" ></path><path d="M521.394733 737.703915L196.137396 553.290735V184.413179l325.257337 184.464377z" fill="#9CA3A9" ></path></symbol><symbol id="icon-clipping" viewBox="0 0 1024 1024"><path d="M341.930667 201.770667l353.706666 204.245333v408.448l-353.706666-204.245333z" fill="#4A80FF" fill-opacity="0.15" ></path><path d="M320.853333 165.248l396.117334 228.608v457.173333l-395.946667-228.608z m353.749334 252.970667L362.837333 238.336v359.722667l311.466667 179.882666z" fill="#72B02D" ></path><path d="M544.384 746.453333l-211.669333-211.669333 18.688-18.688 211.669333 211.669333z" fill="#72B02D" ></path><path d="M693.717333 530.261333l-266.453333-266.325333 20.906667-20.906667 266.325333 266.453334z" fill="#72B02D" ></path><path d="M688.853333 621.098667l-366.933333-366.933334 24.448-24.704 366.933333 366.933334z" fill="#72B02D" ></path><path d="M689.664 713.856L321.578667 345.770667l24.618666-24.618667 368.085334 368.128z" fill="#72B02D" ></path><path d="M683.605333 799.317333l-355.712-355.712 24.234667-24.234666 355.712 355.712z" fill="#72B02D" ></path><path d="M537.770667 944.938667h-51.2v-418.602667l-362.666667-209.28 25.6-44.330667 362.666667 209.066667 362.666666-209.066667 25.6 44.330667-362.666666 209.066667z" fill="#AAAAAA" ></path><path d="M512.170667 53.461333a31.146667 31.146667 0 0 1 15.488 4.266667l370.090666 213.632a31.232 31.232 0 0 1 15.317334 26.794667v426.922666a31.274667 31.274667 0 0 1-15.317334 26.837334l-369.834666 213.333333a31.488 31.488 0 0 1-31.061334 0l-369.834666-213.333333a31.146667 31.146667 0 0 1-15.914667-26.837334V298.069333a31.146667 31.146667 0 0 1 15.573333-27.008l369.792-213.333333a30.976 30.976 0 0 1 15.701334-4.266667z m349.866666 256l-349.866666-201.642666-349.866667 201.856v403.84l349.866667 201.813333 349.866666-201.898667z" fill="#AAAAAA" ></path></symbol><symbol id="icon-viewReset" viewBox="0 0 1024 1024"><path d="M643.2 515.2c-89.6-67.2-179.2-60.8-268.8 0-32 22.4-67.2 57.6-105.6 89.6 38.4 32 70.4 70.4 108.8 96 28.8 19.2 60.8 32 96 38.4 118.4 19.2 188.8-57.6 268.8-137.6-35.2-28.8-60.8-64-99.2-86.4zM508.8 704c-51.2 0-96-41.6-96-99.2s41.6-105.6 96-105.6 96 41.6 96 99.2c0 64-38.4 105.6-96 105.6z" fill="#AAAAAA" ></path><path d="M515.2 544c-3.2 41.6 12.8 60.8 51.2 51.2 0 32-19.2 57.6-51.2 57.6s-57.6-22.4-51.2-57.6c-6.4-32 16-51.2 51.2-51.2" fill="#AAAAAA" ></path><path d="M652.8 3.2c9.6-3.2 19.2-3.2 28.8 0 9.6 3.2 12.8 12.8 12.8 22.4v108.8c70.4 28.8 131.2 70.4 179.2 128 80 89.6 118.4 214.4 108.8 336-9.6 124.8-70.4 236.8-166.4 313.6-96 80-224 118.4-345.6 108.8-124.8-9.6-243.2-67.2-323.2-160S32 649.6 41.6 524.8c9.6-118.4 70.4-233.6 160-307.2 22.4-19.2 60.8-19.2 80 3.2 19.2 22.4 19.2 57.6-3.2 80-70.4 57.6-115.2 140.8-124.8 233.6s22.4 185.6 80 249.6c60.8 70.4 147.2 115.2 243.2 124.8 96 9.6 188.8-19.2 259.2-80s118.4-140.8 124.8-236.8c9.6-89.6-22.4-185.6-80-249.6-28.8-28.8-57.6-57.6-89.6-76.8v89.6c0 9.6-3.2 19.2-12.8 22.4-9.6 3.2-19.2 3.2-28.8 0l-227.2-160c-3.2-3.2-9.6-12.8-9.6-19.2 0-9.6 3.2-12.8 9.6-19.2L652.8 3.2z" fill="#72B02D" ></path></symbol><symbol id="icon-donghuafangzhen" viewBox="0 0 1024 1024"><path d="M868.864 228.864c-19.968 0-38.912 7.68-53.248 20.992l-291.328-170.496c-7.168-5.12-16.896-5.12-24.064 0L208.896 248.832c-14.336-12.8-33.28-20.48-53.76-20.48-43.52 0-79.872 36.864-79.872 80.896 0 33.792 21.504 63.488 53.248 74.24v318.976c0 9.216 4.608 17.408 12.288 22.016L437.248 896c11.776 30.72 41.472 51.712 74.752 52.224 33.28-0.512 62.464-20.992 74.752-52.224l296.448-171.52c7.68-4.608 12.288-13.312 12.288-22.016V386.048c31.744-11.776 53.248-42.496 53.248-76.288 0-44.032-36.352-80.896-79.872-80.896zM155.136 339.456c-16.896 0-29.184-12.288-29.184-29.696v-2.048c0.512-15.36 13.312-27.648 29.184-27.136h2.048c15.36 0.512 27.648 13.824 27.136 29.696 0 15.872-12.8 28.672-29.184 29.184zM512 897.024c-16.896 0-29.184-12.288-29.184-29.696 0-14.848 12.288-29.696 29.184-29.696h2.048c15.36 0.512 27.648 13.824 27.136 29.696 0 14.848-14.848 29.696-29.184 29.696z m74.752-58.368c-11.776-30.208-40.96-51.712-74.752-51.712-27.136 0-52.224 14.336-67.072 37.376l-3.072 1.024c-4.608 2.048-8.704 5.632-9.728 10.752l-252.416-146.944V384.512C212.48 373.76 234.496 343.04 235.52 308.736l3.072 0.512h2.048c3.584 0 7.168-1.536 10.24-3.584 7.168-5.632 8.192-16.384 2.048-23.552L512 130.56l278.528 162.816c-7.68 36.864 11.264 74.24 45.568 90.624 0.512 5.632 3.584 10.24 8.704 13.312v291.328l-258.048 150.016z m282.112-499.2c-16.896 0-29.184-12.288-29.184-29.696v-2.048c0.512-15.36 13.312-27.648 29.184-27.136h2.048c15.36 0.512 27.648 13.824 27.136 29.696v2.56c-1.024 14.848-13.824 27.136-29.184 26.624z" fill="#AAAAAA" ></path><path d="M422.912 724.992c-3.072-8.704-12.288-12.8-20.992-9.728-8.704 3.072-12.8 12.8-9.728 21.504l19.968 54.784c2.56 6.656 8.192 10.752 15.36 10.752 2.048 0 3.584-0.512 5.12-1.024 8.704-3.072 12.8-12.8 9.728-21.504l-19.456-54.784zM706.048 507.392c0-107.52-86.016-195.072-192-196.096-2.048-1.536-4.608-2.56-7.68-3.072l-24.064-3.072c-8.192-1.024-15.872 4.096-17.92 11.776-5.632 1.536-11.776 3.584-16.896 5.632 0.512-1.536 1.024-3.072 1.536-5.12 1.024-9.216-5.12-17.408-14.336-18.432l-48.128-5.632c-5.632-1.024-11.776 1.536-15.36 6.144-3.584 4.608-4.608 11.264-2.048 16.896 2.56 5.632 7.68 9.216 13.312 9.728l44.032 5.12C384 353.28 351.232 388.608 333.312 432.64c-25.088 60.928-17.92 130.048 18.432 184.832-1.024 3.584-1.024 7.168 0.512 10.24l19.968 54.784c1.024 3.072 3.072 5.632 6.144 7.68 7.168 5.12 17.408 3.072 22.528-4.096 3.072-4.608 3.584-10.24 2.048-15.36l-0.512-1.536c53.76 37.888 123.392 45.568 184.32 19.968 46.08-19.456 82.944-55.808 102.912-101.376l12.8-14.336c6.144-6.656 5.632-17.408-0.512-23.04 2.56-14.336 4.096-28.672 4.096-43.008z m-193.536 156.16C427.52 663.552 358.4 593.92 358.4 507.392c0-86.016 69.12-156.16 154.112-156.16s154.112 69.632 154.112 156.16c0 86.016-69.12 156.16-154.112 156.16z" fill="#72B02D" ></path><path d="M765.44 478.72c-6.144-5.632-15.872-5.632-22.016 0l-32.256 35.84c-4.096 4.608-5.632 11.776-3.072 17.92 2.56 6.144 8.192 9.728 14.848 9.728 4.608 0 8.704-2.048 11.776-5.12l32.256-35.84c5.12-7.168 4.608-16.896-1.536-22.528zM823.296 401.92c-5.632-1.024-11.776 0.512-15.872 5.12l-32.256 35.84c-4.608 4.608-5.632 11.776-3.072 17.92 1.024 2.048 2.56 4.096 4.096 5.632 6.656 6.144 16.896 5.632 23.04-1.536l32.256-35.84c4.096-4.096 5.632-10.752 3.584-16.384-1.024-5.632-5.632-9.728-11.776-10.752zM336.384 321.024c8.704 0 15.872-6.656 16.384-15.36 0.512-8.704-5.632-16.384-14.336-17.408l-48.128-5.632c-5.632-1.024-11.776 1.536-15.36 6.144-3.584 4.608-4.096 11.264-2.048 16.896 2.56 5.632 7.68 9.216 13.312 9.728l48.128 5.632h2.048z" fill="#72B02D" ></path></symbol><symbol id="icon-guanjianjiexi" viewBox="0 0 1024 1024"><path d="M298.496 200.704v83.456h-39.936v177.664h137.728V389.12h47.104v245.76h-47.104v-79.872H211.456c-10.752-3.584-54.272-14.336-54.272-57.856V280.064h-32.768V200.704h174.08m47.104-47.104H77.824v177.152h36.352v169.984c0 68.608 61.44 97.792 97.792 104.96H353.28v79.872h141.312V342.016H349.184v72.192h-43.52v-87.04h39.936V153.6zM627.712 389.12v79.872H812.544c10.752 3.584 54.272 14.336 54.272 54.272V740.352h32.768v83.456h-173.568v-83.456h39.936v-177.664h-137.728V634.88h-47.104V389.12h46.592m47.104-47.104h-141.312v340.48h141.312v-72.192h43.52v83.456h-39.936V870.4h267.776v-177.152h-36.352v-169.984c0-68.608-61.44-97.792-97.792-104.96H670.72V342.528h4.096z" fill="#AAAAAA" ></path></symbol><symbol id="icon-gongyishengcheng" viewBox="0 0 1024 1024"><path d="M889.344 391.68h29.696v-43.008h-208.896l1.024 45.056 28.16 3.072v20.992c55.808 5.632 108.032 28.672 150.016 66.56-0.512 0 0-92.672 0-92.672z m-366.592 102.912c13.312-13.312 27.648-24.576 43.008-34.816-2.048-70.144-5.632-153.088-8.704-179.712-5.632-48.64-34.816-204.288-226.816-202.752-191.488 1.536-223.744 164.864-230.912 207.36s-11.776 197.632-11.776 197.632h-24.576v43.008l208.896 1.024v-40.96h-24.064V316.928S245.76 230.912 335.36 231.424C424.448 232.448 415.232 327.68 414.72 327.68v313.856c4.608 0 6.144 77.824 50.176 144.896-13.312-32.256-20.48-67.072-20.48-102.912 0-71.168 27.648-138.24 78.336-188.928z" fill="#AAAAAA" ></path><path d="M75.264 601.6h31.232v281.088s41.984 29.184 141.824 0v-274.944l29.184-2.56v-44.032H75.264v40.448zM906.24 263.168h-29.184l1.024-188.416s-53.76-27.648-144.384 0l1.024 192-31.744 1.024V307.2h203.776l-0.512-44.032z" fill="#AAAAAA" ></path><path d="M934.912 627.712c-9.216-4.608-20.48-2.048-29.184 6.656l-21.504 21.504c-9.216 9.216-20.992 13.824-33.792 13.824s-24.576-5.12-33.792-13.824c-9.216-9.216-13.824-20.992-13.824-33.792s5.12-24.576 13.824-33.792l21.504-21.504c8.704-8.704 11.264-19.968 6.656-29.184-5.632-10.752-18.432-15.36-34.304-13.312-25.6 4.096-48.64 15.36-66.56 33.792-27.136 27.136-39.424 65.536-33.792 103.936l-178.176 178.176c-13.312 13.312-20.992 31.232-20.992 50.176s7.168 36.864 20.992 50.176c13.312 13.312 31.232 20.992 50.176 20.992 18.944 0 36.864-7.168 50.176-20.992l178.176-178.176c37.888 6.144 76.288-6.656 103.936-33.792 17.92-17.92 29.696-41.472 33.792-66.56 2.048-15.872-2.56-28.672-13.312-34.304z m-9.728 30.72c-3.072 20.48-12.8 38.912-27.136 53.76-23.04 23.04-56.32 33.28-89.088 26.624l-6.144-1.536-186.88 186.88c-8.704 9.216-20.992 13.824-33.792 13.824s-24.576-5.12-33.792-13.824c-9.216-9.216-13.824-20.992-13.824-33.792s5.12-24.576 13.824-33.792l186.88-186.88-1.536-6.144c-6.656-32.256 3.072-65.536 26.624-89.088 14.848-14.848 33.28-24.064 53.76-27.136 1.536-0.512 3.072-0.512 4.608-0.512 2.56 0 4.608 0.512 5.12 1.024-0.512 0.512-1.024 1.536-2.048 2.56l-21.504 21.504c-13.312 13.312-20.992 31.232-20.992 50.176s7.168 36.864 20.992 50.176c13.312 13.312 31.232 20.992 50.176 20.992 18.944 0 36.864-7.168 50.176-20.992l21.504-21.504c1.024-1.024 2.048-1.536 2.56-2.048 0.512 1.536 1.024 4.608 0.512 9.728z" fill="#72B02D" ></path><path d="M560.64 870.912c-12.8 12.8-12.8 33.28 0 45.568 6.144 6.144 14.336 9.216 23.04 9.216s16.896-3.072 23.04-9.216c6.144-6.144 9.728-14.336 9.728-23.04 0-8.704-3.584-16.896-9.728-23.04-12.8-12.288-33.792-12.288-46.08 0.512z m28.672 28.672c-3.072 3.072-8.704 3.072-11.776 0-3.072-3.072-3.072-8.704 0-11.776 1.536-1.536 3.584-2.56 6.144-2.56 2.048 0 4.096 1.024 6.144 2.56 1.536 1.536 2.56 3.584 2.56 6.144-0.512 2.048-1.536 4.096-3.072 5.632z m225.28-107.008c-4.096-4.096-10.24-4.096-14.336 0l-43.52 43.52c-4.096 4.096-4.096 10.24 0 14.336l102.4 102.4c15.872 15.872 41.984 15.872 57.856 0 15.872-15.872 15.872-41.984 0-57.856l-102.4-102.4z m-237.056-150.528l70.656 70.656 28.672-28.672-70.656-70.656-15.872-30.208-50.688-36.352-28.672 28.672 36.352 50.688 30.208 15.872z" fill="#72B02D" ></path></symbol><symbol id="icon-mojupipei" viewBox="0 0 1024 1024"><path d="M880.64 117.248c32.768 0 58.88 23.04 64.512 54.784l1.024 7.68v663.04c0.512 31.744-22.528 58.368-53.76 62.464l-7.68 1.024H151.552c-34.816 0-66.048-22.528-72.192-53.248l-1.024-6.656V183.296c0-31.744 27.648-59.904 61.952-65.024l7.168-1.024h142.848c24.064 0 44.032 16.896 48.64 39.936l1.024 6.656V406.528c0 7.68 5.12 14.848 12.288 16.896l3.584 0.512H424.96c13.312 0 25.088 9.216 29.184 22.528 6.144 23.552 33.792 46.08 58.368 46.08 22.528 0 48.128-19.456 55.808-39.424l2.048-5.632c2.048-10.24 9.216-18.432 19.456-21.504l5.12-1.024 3.072-0.512h71.168c6.144 0 11.776-3.584 14.336-9.728l1.024-3.584V164.864c0-23.04 15.872-41.984 37.888-46.592l6.144-1.024H880.64zM273.92 184.32H151.552l-2.048 0.512-2.048 0.512-2.56 1.536-1.536 649.728 3.072 1.536 3.072 1.024h1.024l328.192 3.072 2.048-286.72-2.048-0.512-10.24-3.584c-24.576-10.24-45.568-27.136-60.928-49.152l-6.144-9.216 1.024-1.536H349.184c-37.888-4.096-68.608-33.792-74.24-71.68l-1.024-8.192v-4.096V184.32z m476.16-3.072V409.6l-0.512 8.704c-3.584 36.864-32.256 66.56-68.608 72.192l-8.192 1.024h-4.096l-45.568-1.536-6.144 9.728c-14.848 22.528-36.352 40.448-61.44 51.2l-10.752 4.096-3.072 284.16h337.408v-655.36l-129.024-2.56z" fill="#AAAAAA" ></path></symbol><symbol id="icon-buchangshezhi" viewBox="0 0 1024 1024"><path d="M792.576 75.264h-686.08c-17.408 0-31.232 13.824-31.232 31.232v686.08c0 17.408 13.824 31.232 31.232 31.232h436.736c17.408 0 31.232-13.824 31.232-31.232s-13.824-31.232-31.232-31.232H137.728V262.656h624.128v280.576c0 17.408 13.824 31.232 31.232 31.232s31.232-13.824 31.232-31.232V106.496c-0.512-17.408-14.336-31.232-31.744-31.232z" fill="#AAAAAA" ></path><path d="M792.576 948.736c-17.408 0-31.232-13.824-31.232-31.232v-93.696h-93.696c-17.408 0-31.232-13.824-31.232-31.232 0-17.408 13.824-31.232 31.232-31.232h93.696v-93.696c0-17.408 13.824-31.232 31.232-31.232 17.408 0 31.232 13.824 31.232 31.232v93.696h93.696c17.408 0 31.232 13.824 31.232 31.232 0 17.408-13.824 31.232-31.232 31.232h-93.696v93.696c0 17.408-13.824 31.232-31.232 31.232z" fill="#72B02D" ></path><path d="M372.224 518.144l-110.08 110.08c-20.992 20.992-20.992 55.296 0 76.288s55.296 20.992 76.288 0l110.08-110.08c-16.896-6.144-32.768-15.872-46.592-29.696-13.824-13.312-23.552-29.696-29.696-46.592z m-57.856 162.304c-7.68 7.68-20.48 7.68-28.672 0-7.68-7.68-7.68-20.48 0-28.672 7.68-7.68 20.48-7.68 28.672 0 7.68 8.192 7.68 20.992 0 28.672z m340.48-292.864L592.384 450.56c-20.992 20.992-55.296 20.992-76.288 0s-20.992-55.296 0-76.288l62.976-62.976c-51.712-8.704-116.224 14.848-151.552 50.176-49.152 49.152-49.152 128.512 0 177.664s129.024 49.152 177.664 0c35.328-35.328 58.368-99.84 49.664-151.552z" fill="#AAAAAA" ></path></symbol><symbol id="icon-shuchujiagongchengxu" viewBox="0 0 1024 1024"><path d="M876.544 473.6v374.272c0 16.384-13.312 29.696-29.696 29.696h-522.24c-16.384 0-29.696-13.312-29.696-29.696V503.296c0-16.384 13.312-29.696 29.696-29.696h551.936m40.96-70.656H253.952c-16.384 0-29.696 13.312-29.696 29.696v486.4c0 16.384 13.312 29.696 29.696 29.696h663.552c16.384 0 29.696-13.312 29.696-29.696v-486.4c0-16.384-13.312-29.696-29.696-29.696z" fill="#AAAAAA" ></path><path d="M489.984 211.968H814.08l-41.984-41.984c-13.824-13.824-13.824-36.352 0-50.176 13.824-13.824 36.352-13.824 50.176 0L947.712 245.76l-0.512 0.512 0.512 0.512-125.952 125.952c-13.824 13.824-36.352 13.824-50.176 0-13.824-13.824-13.824-36.352 0-50.176l38.912-38.912H489.472c-19.456 0-35.328-15.872-35.328-35.328 0.512-20.48 16.384-36.352 35.84-36.352z" fill="#72B02D" ></path><path d="M531.456 717.824c0-11.776-7.68-22.016-18.944-25.6l-55.808-16.896-14.848-4.608 14.848-4.608 55.808-16.896c11.264-3.584 18.944-13.824 18.944-25.6v-2.048c0-18.432-17.92-31.232-35.328-25.088L363.52 641.024c-10.752 3.584-17.92 13.824-17.92 25.088v8.192c0 11.264 7.168 21.504 17.92 25.088l132.608 45.568c17.408 6.144 35.328-7.168 35.328-25.088v-2.048z m123.392-96.768v2.048c0 11.776 7.68 22.016 18.944 25.6l56.32 16.896 14.848 4.608-14.848 4.608-56.32 16.896c-11.264 3.584-18.944 13.824-18.944 25.6v2.56c0 18.432 17.92 31.232 35.328 25.088l132.608-45.568c10.752-3.584 17.92-13.824 17.92-25.088v-8.192c0-11.264-7.168-21.504-17.92-25.088l-132.608-45.568c-17.408-6.144-35.328 7.168-35.328 25.6z m-54.784-64l-70.144 248.32c-4.608 16.896 8.192 33.792 25.6 33.792 11.776 0 22.528-8.192 25.6-19.456l70.144-248.32c4.608-16.896-8.192-33.792-25.6-33.792-11.776 0-22.016 8.192-25.6 19.456zM147.456 814.08V173.056c0-14.848 11.776-26.624 26.624-26.624h463.872c19.456 0 35.328-15.872 35.328-35.328 0-19.456-15.872-35.328-35.328-35.328H107.008c-16.896 0-30.72 13.824-30.72 30.72v748.032c0 16.896 13.824 30.72 30.72 30.72h40.448c19.456 0 35.328-15.872 35.328-35.328 0.512-19.968-15.36-35.84-35.328-35.84z" fill="#AAAAAA" ></path></symbol><symbol id="icon-guanjiekongzhi" viewBox="0 0 1024 1024"><path d="M648.192 377.344h-71.68c-18.432 0-33.792-14.848-33.792-33.792H366.592c12.288-30.72 25.088-80.896 0-134.656H542.72c0-18.432 15.36-33.792 33.792-33.792h67.584c1.536 0 2.56 0 4.096 0.512L719.36 87.04c10.752-13.312 29.184-16.384 44.032-7.68l168.96 100.864c15.872 9.728 20.992 30.208 11.776 46.08-9.728 15.872-30.208 20.992-46.592 11.264l-143.872-85.504L677.888 245.76v61.44l75.776 93.696 143.872-85.504c15.872-9.728 36.864-4.608 46.592 11.776 9.728 15.872 4.608 36.352-11.264 46.08h-0.512l-168.96 100.864c-14.336 8.704-33.28 5.12-44.032-7.68l-71.168-89.088zM319.488 780.8L102.912 415.744c76.8 69.632 185.344 48.64 231.424-13.312l222.72 378.368H711.68c18.432 0 33.792 14.848 33.792 33.792v100.864c0 18.432-15.36 33.792-33.792 33.792H170.496c-18.432 0-33.792-14.848-33.792-33.792v-100.864c0-18.432 15.36-33.792 33.792-33.792h148.992z" fill="#AAAAAA" ></path><path d="M204.288 148.48C133.12 148.48 75.264 205.824 75.264 276.48S133.12 404.48 204.288 404.48c71.168 0 129.024-57.344 129.024-128S275.456 148.48 204.288 148.48z m0 202.752c-41.472 0-74.752-33.28-74.752-74.752 0-40.96 33.792-74.24 74.752-74.24C245.76 202.24 279.04 235.52 279.04 276.48c0 41.472-33.792 75.264-74.752 74.752z" fill="#72B02D" ></path></symbol><symbol id="icon-jiegoushu" viewBox="0 0 1024 1024"><path d="M233.984 472.064h317.44c0-44.032 35.328-79.36 79.36-79.36h238.08c44.032 0 79.36 35.328 79.36 79.36v79.36c0 44.032-35.328 79.36-79.36 79.36h-238.08c-44.032 0-79.36-35.328-79.36-79.36h-317.44v238.08h317.44c0-44.032 35.328-79.36 79.36-79.36h238.08c44.032 0 79.36 35.328 79.36 79.36v79.36c0 44.032-35.328 79.36-79.36 79.36h-238.08c-44.032 0-79.36-35.328-79.36-79.36h-317.44c-44.032 0-79.36-35.328-79.36-79.36V233.984h-39.936c-22.016 0-39.936-17.92-39.936-39.936V115.2c0-22.016 17.92-39.936 39.936-39.936h158.72c22.016 0 39.936 17.92 39.936 39.936V194.56c0 22.016-17.92 39.936-39.936 39.936h-39.936v237.568z" fill="#AAAAAA" ></path><path d="M551.936 75.264h317.44c44.032 0 79.36 35.328 79.36 79.36v79.36c0 44.032-35.328 79.36-79.36 79.36h-317.44c-44.032 0-79.36-35.328-79.36-79.36V154.624c-0.512-44.032 35.328-79.36 79.36-79.36z" fill="#72B02D" ></path></symbol><symbol id="icon-kuaitui" viewBox="0 0 1024 1024"><path d="M512 148.992c199.68 0 361.984 162.304 361.984 361.984S711.68 872.448 512 872.448s-361.984-162.304-361.984-361.984S312.32 148.992 512 148.992m0-74.752c-241.152 0-436.736 195.584-436.736 436.736s195.584 436.736 436.736 436.736 436.736-195.584 436.736-436.736-195.584-436.736-436.736-436.736z" fill="#AAAAAA" ></path><path d="M670.72 456.192v109.056l-75.264-54.784L670.72 456.192m25.6-102.912c-10.24 0-20.992 3.072-30.208 10.24l-144.896 105.472c-28.672 20.48-28.672 62.976 0 83.968l144.896 105.472c9.216 6.656 19.968 10.24 30.208 10.24 27.136 0 52.224-21.504 52.224-51.712V405.504c0-30.72-25.088-52.224-52.224-52.224z" fill="#72B02D" ></path><path d="M499.712 456.192v109.056L424.96 510.976l74.752-54.784m26.112-102.912c-10.24 0-20.992 3.072-30.208 10.24L350.208 468.992c-28.672 20.48-28.672 62.976 0 83.968l144.896 105.472c9.216 6.656 19.968 10.24 30.208 10.24 27.136 0 52.224-21.504 52.224-51.712V405.504c0-30.72-25.088-52.224-51.712-52.224z" fill="#72B02D" ></path><path d="M314.368 381.44c-21.504 0-38.912 17.408-38.912 38.912v181.248c0 21.504 17.408 38.912 38.912 38.912s38.912-17.408 38.912-38.912V420.352c0-21.504-17.408-38.912-38.912-38.912z" fill="#72B02D" ></path></symbol><symbol id="icon-bofang" viewBox="0 0 1024 1024"><path d="M512 150.016c199.68 0 361.984 162.304 361.984 361.984S711.68 873.984 512 873.984 150.016 711.68 150.016 512 312.32 150.016 512 150.016m0-74.752c-241.152 0-436.736 195.584-436.736 436.736s195.584 436.736 436.736 436.736 436.736-195.584 436.736-436.736-195.584-436.736-436.736-436.736z" fill="#AAAAAA" ></path><path d="M491.008 445.952l115.712 66.048-115.712 66.048V445.952m-23.552-87.04c-24.576 0-46.592 19.456-46.592 46.592v212.48c0 27.136 22.528 46.592 46.592 46.592 7.68 0 15.36-2.048 23.04-6.144l185.856-106.496c31.232-17.92 31.232-62.976 0-80.896L490.496 365.056c-7.168-4.096-15.36-6.144-23.04-6.144z" fill="#72B02D" ></path></symbol><symbol id="icon-kuaijin" viewBox="0 0 1024 1024"><path d="M515.584 151.04c199.168 0 360.96 161.792 360.96 360.96s-161.792 360.96-360.96 360.96-360.96-161.792-360.96-360.96 161.792-360.96 360.96-360.96m0-74.752c-240.64 0-435.712 195.072-435.712 435.712s195.072 435.712 435.712 435.712 435.712-195.072 435.712-435.712-195.072-435.712-435.712-435.712z" fill="#AAAAAA" ></path><path d="M358.912 458.24L433.152 512l-74.24 53.76v-107.52m-25.088-101.376c-26.624 0-51.2 20.992-51.2 51.2v207.872c0 30.208 24.576 51.2 51.2 51.2 10.24 0 20.48-3.072 29.696-9.728l142.848-103.936c28.16-20.48 28.16-61.952 0-82.432L363.52 366.592c-9.216-6.656-19.456-9.728-29.696-9.728z" fill="#72B02D" ></path><path d="M527.36 458.24l74.24 53.76-74.24 53.76v-107.52m-25.088-101.376c-26.624 0-51.2 20.992-51.2 51.2v207.872c0 30.208 24.576 51.2 51.2 51.2 10.24 0 20.48-3.072 29.696-9.728l142.848-103.936c28.16-20.48 28.16-61.952 0-82.432l-142.848-103.936c-9.216-7.168-19.968-10.24-29.696-10.24z" fill="#72B02D" ></path><path d="M710.144 384.512c-20.992 0-38.4 17.408-38.4 38.4v178.688c0 20.992 17.408 38.4 38.4 38.4s38.4-17.408 38.4-38.4V422.912c0-21.504-17.408-38.4-38.4-38.4z" fill="#72B02D" ></path></symbol><symbol id="icon-zanting" viewBox="0 0 1024 1024"><path d="M512 150.016c199.68 0 361.984 162.304 361.984 361.984S711.68 873.984 512 873.984 150.016 711.68 150.016 512 312.32 150.016 512 150.016m0-74.752c-241.152 0-436.736 195.584-436.736 436.736s195.584 436.736 436.736 436.736 436.736-195.584 436.736-436.736-195.584-436.736-436.736-436.736z" fill="#AAAAAA" ></path><path d="M416.768 353.28c-22.016 0-39.936 17.92-39.936 39.936v238.08c0 22.016 17.92 39.936 39.936 39.936s39.936-17.92 39.936-39.936V392.704c-0.512-21.504-17.92-39.424-39.936-39.424z m190.464 0c-22.016 0-39.936 17.92-39.936 39.936v238.08c0 22.016 17.92 39.936 39.936 39.936s39.936-17.92 39.936-39.936V392.704c0-21.504-17.92-39.424-39.936-39.424z" fill="#72B02D" ></path></symbol><symbol id="icon-zhongzhi" viewBox="0 0 1024 1024"><path d="M512 150.016c199.68 0 361.984 162.304 361.984 361.984S711.68 873.984 512 873.984 150.016 711.68 150.016 512 312.32 150.016 512 150.016m0-74.752c-241.152 0-436.736 195.584-436.736 436.736s195.584 436.736 436.736 436.736 436.736-195.584 436.736-436.736-195.584-436.736-436.736-436.736z" fill="#AAAAAA" ></path><path d="M580.096 421.376c12.288 0 22.528 10.24 22.528 22.528v136.192c0 12.288-10.24 22.528-22.528 22.528H443.904c-12.288 0-22.528-10.24-22.528-22.528V443.904c0-12.288 10.24-22.528 22.528-22.528h136.192m0-68.096H443.904C393.728 353.28 353.28 393.728 353.28 443.904v136.192c0 50.176 40.448 90.624 90.624 90.624h136.192c50.176 0 90.624-40.448 90.624-90.624V443.904c0-50.176-40.448-90.624-90.624-90.624z" fill="#72B02D" ></path></symbol><symbol id="icon-suoxiao" viewBox="0 0 1024 1024"><path d="M491.008 463.36c32.256 0 58.88-26.112 58.88-58.88s-26.112-58.88-58.88-58.88H285.696c-32.256 0-58.88 26.112-58.88 58.88s26.112 58.88 58.88 58.88h205.312z" fill="#72B02D" ></path><path d="M810.496 720.384l-158.208-158.208c29.184-48.128 46.08-104.96 46.08-165.376 0-175.616-142.848-318.976-318.976-318.976s-318.976 143.36-318.976 318.976 142.848 318.976 318.976 318.976c78.336 0 150.016-28.16 205.824-75.264l152.576 152.576c10.24 10.24 23.04 14.848 36.352 14.848 13.312 0 26.112-5.12 36.352-14.848 19.968-19.968 19.968-52.736 0-72.704z m-431.104-107.52c-119.296 0-216.064-96.768-216.064-216.064 0-119.296 96.768-216.064 216.064-216.064s216.064 96.768 216.064 216.064c0 119.296-97.28 216.064-216.064 216.064z" fill="#72B02D" ></path><path d="M811.008 106.496h-109.056V209.92h109.056c29.696 0 53.76 24.064 53.76 53.76v81.408H967.68v-81.92c0-86.016-70.144-156.672-156.672-156.672zM864.768 791.552c0 29.696-24.064 53.76-53.76 53.76h-109.056v102.912h109.056c86.528 0 156.672-70.144 156.672-156.672v-81.92h-102.912v81.92z m-690.176 0v-81.92H71.68v81.92c0 86.528 70.144 156.672 156.672 156.672h109.056v-102.912H228.352c-29.696 0-53.76-24.064-53.76-53.76z" fill="#AAAAAA" ></path></symbol><symbol id="icon-fangda" viewBox="0 0 1024 1024"><path d="M488.96 333.824h-47.104V286.72c0-34.816-28.16-62.976-62.976-62.976-34.816 0-62.976 28.16-62.976 62.976v47.104h-47.104c-34.816 0-62.976 28.16-62.976 62.976s28.16 62.976 62.976 62.976h47.104V506.88c0 34.816 28.16 62.976 62.976 62.976 34.816 0 62.976-28.16 62.976-62.976v-47.104h47.104c34.816 0 62.976-28.16 62.976-62.976 0-34.304-28.16-62.976-62.976-62.976z" fill="#72B02D" ></path><path d="M810.496 720.384l-158.208-158.208c29.184-48.128 46.08-104.96 46.08-165.376 0-175.616-142.848-318.976-318.976-318.976s-318.976 143.36-318.976 318.976 142.848 318.976 318.976 318.976c78.336 0 150.016-28.16 205.824-75.264l152.576 152.576c10.24 10.24 23.04 14.848 36.352 14.848s26.112-5.12 36.352-14.848c19.968-19.968 19.968-52.736 0-72.704z m-431.104-107.52c-119.296 0-216.064-96.768-216.064-216.064 0-119.296 96.768-216.064 216.064-216.064s216.064 96.768 216.064 216.064c0 119.296-97.28 216.064-216.064 216.064z" fill="#72B02D" ></path><path d="M811.008 106.496h-109.056V209.92h109.056c29.696 0 53.76 24.064 53.76 53.76v81.408H967.68v-81.92c0-86.016-70.144-156.672-156.672-156.672zM864.768 791.552c0 29.696-24.064 53.76-53.76 53.76h-109.056v102.912h109.056c86.528 0 156.672-70.144 156.672-156.672v-81.92h-102.912v81.92z m-690.176 0v-81.92H71.68v81.92c0 86.528 70.144 156.672 156.672 156.672h109.056v-102.912H228.352c-29.696 0-53.76-24.064-53.76-53.76z" fill="#AAAAAA" ></path></symbol><symbol id="icon-fangdazhichuangkou" viewBox="0 0 1024 1024"><path d="M949.248 858.624l-158.208-158.208c29.184-48.128 46.08-104.96 46.08-165.376 0-175.616-142.848-318.976-318.976-318.976s-318.976 142.848-318.976 318.976 142.848 318.976 318.976 318.976c78.336 0 150.016-28.16 205.824-75.264l152.576 152.576c10.24 10.24 23.04 14.848 36.352 14.848s26.112-5.12 36.352-14.848c19.968-19.968 19.968-52.736 0-72.704z m-431.616-107.52c-119.296 0-216.064-96.768-216.064-216.064 0-119.296 96.768-216.064 216.064-216.064s216.064 96.768 216.064 216.064c0 119.296-96.768 216.064-216.064 216.064z" fill="#72B02D" ></path><path d="M216.576 919.04h109.056v-102.912H216.576c-29.696 0-53.76-24.064-53.76-53.76V233.984c0-29.696 24.064-53.76 53.76-53.76H798.72c29.696 0 53.76 24.064 53.76 53.76v81.92h102.912v-81.92c0-86.528-70.144-156.672-156.672-156.672H216.576c-86.528 0-156.672 70.144-156.672 156.672v528.384c0 86.528 70.144 156.672 156.672 156.672z" fill="#AAAAAA" ></path></symbol><symbol id="icon-shiyingpingmu" viewBox="0 0 1024 1024"><path d="M876.032 75.264H147.968c-39.936 0-72.704 32.768-72.704 72.704v728.064c0 39.936 32.768 72.704 72.704 72.704h728.064c39.936 0 72.704-32.768 72.704-72.704V147.968c0-39.936-32.768-72.704-72.704-72.704z m0 764.416c0 22.016-14.336 36.352-36.352 36.352H184.32c-22.016 0-36.352-14.336-36.352-36.352V184.32c0-22.016 14.336-36.352 36.352-36.352h655.36c22.016 0 36.352 14.336 36.352 36.352v655.36z" fill="#AAAAAA" ></path><path d="M329.728 184.32H220.672c-3.584 0-10.752 0-14.336 3.584-7.168 3.584-14.336 10.752-18.432 18.432-3.584 3.584-3.584 10.752-3.584 14.336v109.056c0 22.016 14.336 36.352 36.352 36.352s36.352-14.336 36.352-36.352v-22.016l47.104 47.104c7.168 7.168 14.336 10.752 25.6 10.752 10.752 0 18.432-3.584 25.6-10.752 14.336-14.336 14.336-36.352 0-51.2l-47.104-47.104h22.016c22.016 0 36.352-14.336 36.352-36.352 0-21.504-14.848-35.84-36.864-35.84zM329.728 766.976h-22.016l47.104-47.104c14.336-14.336 14.336-36.352 0-51.2-14.336-14.336-36.352-14.336-51.2 0l-47.104 47.104v-22.016c0-22.016-14.336-36.352-36.352-36.352s-36.352 14.336-36.352 36.352v109.056c0 3.584 0 10.752 3.584 14.336 3.584 7.168 10.752 14.336 18.432 18.432 3.584 3.584 10.752 3.584 14.336 3.584h109.056c22.016 0 36.352-14.336 36.352-36.352s-13.824-35.84-35.84-35.84zM817.664 187.904c-3.584-3.584-10.752-3.584-14.336-3.584h-109.056c-22.016 0-36.352 14.336-36.352 36.352s14.336 36.352 36.352 36.352h22.016l-47.104 47.104c-14.336 14.336-14.336 36.352 0 51.2 7.168 7.168 14.336 10.752 25.6 10.752s18.432-3.584 25.6-10.752l47.104-47.104v22.016c0 22.016 14.336 36.352 36.352 36.352s36.352-14.336 36.352-36.352V220.672c0-3.584 0-10.752-3.584-14.336-4.096-7.68-11.264-14.848-18.944-18.432zM803.328 657.408c-22.016 0-36.352 14.336-36.352 36.352v22.016l-47.104-47.104c-14.336-14.336-36.352-14.336-51.2 0-14.336 14.336-14.336 36.352 0 51.2l47.104 47.104h-22.016c-22.016 0-36.352 14.336-36.352 36.352s14.336 36.352 36.352 36.352h109.056c3.584 0 10.752 0 14.336-3.584 7.168-3.584 14.336-10.752 18.432-18.432 3.584-3.584 3.584-10.752 3.584-14.336v-109.056c0.512-22.016-13.824-36.864-35.84-36.864z" fill="#72B02D" ></path></symbol><symbol id="icon-yangshitu-01" viewBox="0 0 1024 1024"><path d="M645.632 882.688H150.528l252.928-204.8 477.696 0.512z" fill="#72B02D" ></path><path d="M960 117.248v-1.024-1.024-0.512-1.024-0.512c0-0.512-0.512-1.024-0.512-1.536l-0.512-1.536s0-0.512-0.512-0.512-0.512-0.512-0.512-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024l-0.512-0.512-1.024-0.512H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024-0.512 0.512-0.512 1.024 0 0.512-0.512 1.024c0 0.512 0 1.024-0.512 1.536v0.512l-0.512 2.048V907.776c0 0.512 0 1.536 0.512 2.048v1.024c0 0.512 0 0.512 0.512 1.024s0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.536l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512 1.536 1.536c0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512l1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-241.664 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.536 0-0.512 0.512-1.024 0.512-1.536v-0.512V660.992v-2.048V117.76c1.024 0 1.024 0 1.024-0.512z m-542.72 23.552H880.64l-234.496 203.264-228.864 0.512V140.8z m0 247.296l217.088-0.512-1.024 247.296H417.28V388.096z m-43.008-223.744v180.736l-225.792 1.024 225.792-181.76zM113.152 389.12l261.632-0.512v256l-263.168 211.968 1.536-467.456z m532.48 493.568H150.528l252.928-204.288 477.696 0.512-235.52 203.776z m271.36-247.808h-239.104V375.808l239.104-208.896V634.88z" fill="#AAAAAA" ></path></symbol><symbol id="icon-zuoshitu-01" viewBox="0 0 1024 1024"><path d="M374.272 644.096l-262.656 211.968L112.64 373.76l261.632-209.408z" fill="#72B02D" ></path><path d="M960 117.248v-1.024-1.024-0.512-1.024-0.512c0-0.512-0.512-1.024-0.512-1.536l-0.512-1.536s0-0.512-0.512-0.512-0.512-0.512-0.512-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024l-0.512-0.512-1.024-0.512H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024-0.512 0.512-0.512 1.024 0 0.512-0.512 1.024c0 0.512 0 1.024-0.512 1.536v0.512l-0.512 2.048V907.776c0 0.512 0 1.536 0.512 2.048v1.024c0 0.512 0 0.512 0.512 1.024s0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.536l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512 1.536 1.536c0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512l1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-241.664 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.536 0-0.512 0.512-1.024 0.512-1.536v-0.512V660.992v-2.048V117.76c1.024 0 1.024 0 1.024-0.512zM112.64 373.76l261.632-209.408v479.744l-263.168 211.968L112.64 373.76z m520.192 507.904l-482.304 1.536 252.928-204.8h230.4l-1.024 203.264z m1.024-246.784H417.28V388.096l217.088-0.512-0.512 247.296z m12.288-290.304l-228.864 0.512V140.8H880.64l-234.496 203.776z m31.232 510.976v-177.664H880.64l-203.264 177.664z m239.616-220.672h-239.104V375.808l239.104-208.896V634.88z" fill="#AAAAAA" ></path></symbol><symbol id="icon-qianshitu-01" viewBox="0 0 1024 1024"><path d="M112.64 389.12h520.704v493.056H112.64z" fill="#72B02D" ></path><path d="M960 117.248v-1.024-1.024-0.512-1.024-0.512c0-0.512-0.512-1.024-0.512-1.536l-0.512-1.536s0-0.512-0.512-0.512-0.512-0.512-0.512-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024l-0.512-0.512-1.024-0.512H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024-0.512 0.512-0.512 1.024 0 0.512-0.512 1.024c0 0.512 0 1.024-0.512 1.536v0.512l-0.512 2.048V907.776c0 0.512 0 1.536 0.512 2.048v1.024c0 0.512 0 0.512 0.512 1.024s0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.536l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512 1.536 1.536c0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512l1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-241.664 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.536 0-0.512 0.512-1.024 0.512-1.536v-0.512V660.992v-2.048V117.76c1.024 0 1.024 0 1.024-0.512zM374.272 164.352v180.736l-225.792 1.024 225.792-181.76z m259.584 717.824H112.64V389.12h520.704v493.056z m12.288-537.6l-228.864 0.512V140.8H880.64l-234.496 203.776z m31.232 510.976v-177.664H880.64l-203.264 177.664z m239.616-220.672h-239.104V375.808l239.104-208.896V634.88z" fill="#AAAAAA" ></path></symbol><symbol id="icon-youshitu-01" viewBox="0 0 1024 1024"><path d="M916.992 659.456l-239.616 196.096V375.808l239.616-208.896z" fill="#72B02D" ></path><path d="M960 117.248v-1.024-1.024-0.512-1.024-0.512c0-0.512-0.512-1.024-0.512-1.536l-0.512-1.536s0-0.512-0.512-0.512-0.512-0.512-0.512-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024l-0.512-0.512-1.024-0.512H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024-0.512 0.512-0.512 1.024 0 0.512-0.512 1.024c0 0.512 0 1.024-0.512 1.536v0.512l-0.512 2.048V907.776c0 0.512 0 1.536 0.512 2.048v1.024c0 0.512 0 0.512 0.512 1.024s0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.536l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512 1.536 1.536c0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512l1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-241.664 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.536 0-0.512 0.512-1.024 0.512-1.536v-0.512V660.992v-2.048V117.76c1.024 0 1.024 0 1.024-0.512zM374.272 164.352v180.736l-225.792 1.024 225.792-181.76zM113.152 389.12l261.632-0.512v256l-263.168 211.968 1.536-467.456z m519.68 492.544l-482.304 1.536 252.928-204.8h230.4l-1.024 203.264z m1.024-246.784H417.28V388.096l217.088-0.512-0.512 247.296z m12.288-290.304l-228.864 0.512V140.8H880.64l-234.496 203.776z m270.848 314.88l-239.104 196.096V375.808l239.104-208.896v492.544z" fill="#AAAAAA" ></path></symbol><symbol id="icon-houshitu-01" viewBox="0 0 1024 1024"><path d="M960 118.784V117.76v-1.024-1.024-1.024-0.512-0.512c1.536 7.68-1.024 15.872-6.656 20.992L677.376 373.76v299.52h-43.008V389.12H374.272v254.976l-262.656 211.968L112.64 389.12l261.632-0.512v-42.496h269.824l280.064-243.2c3.072-2.56 6.656-4.096 10.752-5.12H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c-0.512 0.512-0.512 1.024-1.024 2.048 0 0.512 0 0.512-0.512 1.024 0 0.512 0 0.512-0.512 1.024 0 0.512 0 1.024-0.512 1.536v0.512c0 0.512 0 1.024-0.512 1.536V907.264c0 0.512 0 1.024 0.512 2.048v0.512s0 0.512 0.512 1.024c0 0.512 0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.024s0 0.512 0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512c0.512 0.512 1.024 1.024 1.536 1.024 0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512c0.512 0 1.024 0 1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-242.176 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024 0-0.512 0.512-1.024 0.512-1.536v-0.512V658.944v-2.048V118.272c1.536 1.024 1.536 1.024 1.536 0.512zM374.272 164.352v180.736l-225.792 1.024 225.792-181.76z m258.56 717.312l-482.304 1.536 252.928-204.8h230.4l-1.024 203.264z m44.544-26.112v-177.664H880.64l-203.264 177.664z m281.6-741.376v-0.512-0.512 1.024z" fill="#AAAAAA" ></path><path d="M916.992 634.88h-239.616V375.808l239.616-211.456zM644.096 346.112H417.28V141.824h462.336zM417.28 389.12H634.88v245.76H417.28z" fill="#72B02D" ></path><path d="M958.976 114.176c0 0.512 0.512 0.512 0 0z m-20.48-16.384H945.152l0.512 0.512 0.512 0.512h1.024l0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512 0.512c0 0.512 0.512 0.512 0.512 1.024s0 0.512 0.512 0.512c0 0.512 0.512 1.024 0.512 1.536 0 0.512 0.512 1.024 0.512 1.024-3.072-10.24-13.312-16.896-24.064-14.848h4.608v1.024z" fill="#C1272D" ></path></symbol><symbol id="icon-dingshitu-01" viewBox="0 0 1024 1024"><path d="M880.64 140.8l-234.496 203.776-497.664 1.536 256-206.336z" fill="#72B02D" ></path><path d="M960 117.248v-1.024-1.024-0.512-1.024-0.512c0-0.512-0.512-1.024-0.512-1.536l-0.512-1.536s0-0.512-0.512-0.512-0.512-0.512-0.512-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024l-0.512-0.512-1.024-0.512H393.216c-5.12 0-9.728 1.536-13.312 4.608L72.192 350.72l-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536l0.512 0.512c0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024-0.512 0.512-0.512 1.024 0 0.512-0.512 1.024c0 0.512 0 1.024-0.512 1.536v0.512l-0.512 2.048V907.776c0 0.512 0 1.536 0.512 2.048v1.024c0 0.512 0 0.512 0.512 1.024s0 0.512 0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.536l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512l1.024 1.024 0.512 0.512 1.024 1.024 0.512 0.512 1.536 1.536c0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512 1.024 0.512 0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512l1.024 0.512H655.872c7.68 0 14.848-4.096 18.432-10.752l276.992-241.664 1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.536 0-0.512 0.512-1.024 0.512-1.536v-0.512V660.992v-2.048V117.76c1.024 0 1.024 0 1.024-0.512zM113.152 389.12l261.632-0.512v256l-263.168 211.968 1.536-467.456z m519.68 492.544l-482.304 1.536 252.928-204.8h230.4l-1.024 203.264z m1.024-246.784H417.28V388.096l217.088-0.512-0.512 247.296z m12.288-290.304l-497.664 1.536 256-205.824 476.16 1.024-234.496 203.264z m31.232 510.976v-177.664H880.64l-203.264 177.664z m239.616-220.672h-239.104V375.808l239.104-208.896V634.88z" fill="#AAAAAA" ></path></symbol><symbol id="icon-toushitu-01" viewBox="0 0 1024 1024"><path d="M965.632 114.176V112.64v-1.024-0.512-1.024-0.512s0-0.512-0.512-1.024v-0.512c-0.512-1.024-0.512-2.048-1.024-3.072v-0.512c0-0.512-0.512-0.512-0.512-1.024s0-0.512-0.512-0.512l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512s-0.512-1.024-1.024-1.024l-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512-0.512h-1.024s-0.512 0-0.512-0.512c0 0-0.512 0-0.512-0.512H950.784h-0.512H392.704c-5.12 0-9.728 1.536-13.312 4.608l-312.32 251.392-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024-0.512 0.512-1.024 1.024s0 0.512-0.512 0.512c-0.512 0.512-0.512 1.024-1.024 1.536 0 0 0 0.512-0.512 0.512 0 0.512-0.512 0.512-0.512 1.024s0 0.512-0.512 1.024c0 0.512 0 0.512-0.512 1.024s0 0.512 0 1.024 0 1.024-0.512 1.536v0.512c0 0.512 0 1.024-0.512 1.536V912.896c0 0.512 0 1.024 0.512 2.048v0.512s0 0.512 0.512 1.024l0.512 1.024v1.024s0 0.512 0.512 1.024c0 0.512 0.512 1.024 0.512 1.024l0.512 0.512c0.512 0.512 0.512 1.024 1.024 1.536 0 0 0 0.512 0.512 0.512 0 0.512 0.512 0.512 1.024 1.024l0.512 0.512 1.024 1.024 0.512 0.512c0.512 0.512 1.024 1.024 1.536 1.024 0.512 0.512 1.024 0.512 1.536 1.024l0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 0.512 0.512 1.024 0.512l0.512 0.512c0.512 0 1.024 0.512 1.536 0.512h0.512c0.512 0 1.024 0 1.024 0.512h583.168c7.68 0 14.848-4.096 18.432-10.752L957.44 675.84l1.024-1.024 1.024-1.024 0.512-0.512 1.024-1.024 1.024-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024v-0.512c0-0.512 0.512-0.512 0.512-1.024v-0.512c0-0.512 0.512-1.024 0.512-1.024 0-0.512 0.512-1.024 0.512-1.536v-0.512V661.504v-1.536V658.432l1.024-544.256zM372.736 343.04l-229.888 0.512L372.736 158.72v184.32z m43.008 43.008l220.672-0.512-0.512 251.392h-220.16v-250.88z m-43.008 0v260.096l-267.264 215.552 1.536-474.624 265.728-1.024z m-227.84 502.272l257.024-208.384h233.984l-0.512 206.848-490.496 1.536z m503.296-545.792l-172.544 0.512H415.232V135.68h471.04l-238.08 206.848z m31.232 337.408h207.36l-207.36 181.248v-181.248z m0-43.008V373.76l243.2-212.48v475.648h-243.2z" fill="#AAAAAA" ></path></symbol><symbol id="icon-a-jixiebi3" viewBox="0 0 1024 1024"><path d="M483.386004 821.695719H164.779715l29.075502-22.648286h260.455285l29.075502 22.648286z" fill="#3F3F3F" ></path><path d="M483.386004 776.399147H164.779715l29.075502 22.648286h260.455285l29.075502-22.648286z" fill="#7A807D" ></path><path d="M483.386004 776.399147H164.779715l29.075502-22.648285h260.455285l29.075502 22.648285z" fill="#3F3F3F" ></path><path d="M483.386004 730.796518H164.779715l29.075502 22.954344h260.455285l29.075502-22.954344zM483.386004 685.499947H164.779715l29.075502 22.648285h260.455285l29.075502-22.648285z" fill="#7A807D" ></path><path d="M483.386004 730.796518H164.779715l29.075502-22.648286h260.455285l29.075502 22.648286z" fill="#3F3F3F" ></path><path d="M150.701051 623.064132h339.418227v62.435815H150.701051z" fill="#F7A53F" ></path><path d="M150.701051 821.695719h339.418227v31.217907H150.701051z" fill="#FFFFFF" ></path><path d="M607.951575 339.654504a74.984189 74.984189 0 0 1-23.872517 103.447575 75.290247 75.290247 0 0 1-103.753633-23.872518L293.324039 120.823095A75.290247 75.290247 0 0 1 317.196557 17.069462a75.290247 75.290247 0 0 1 103.753633 23.872517zM441.762128 517.474152v105.58998H198.752144v-105.58998a122.423166 122.423166 0 1 1 244.846331 0z" fill="#FFC200" ></path><path d="M627.233224 377.605685a103.141517 103.141517 0 0 1-52.948019 82.635637l-165.88339 118.750471-2.448463 1.836347a112.93537 112.93537 0 1 1-112.017197-194.346775l195.571007-84.471985a132.523077 132.523077 0 0 1 48.357151-12.854432A89.062853 89.062853 0 0 1 627.233224 377.605685z" fill="#FFE610" ></path><path d="M401.056425 493.601635a71.005436 71.005436 0 1 1-71.005436-71.311494 71.005436 71.005436 0 0 1 71.005436 71.311494z" fill="#FFFFFF" ></path><path d="M375.34756 493.601635a45.296571 45.296571 0 1 1-45.296571-45.60263 45.296571 45.296571 0 0 1 45.296571 45.60263z" fill="#48B8BF" ></path><path d="M592.342622 376.381453a49.88744 49.88744 0 1 1-49.581382-49.88744 49.88744 49.88744 0 0 1 49.581382 49.88744z" fill="#FFFFFF" ></path><path d="M574.285205 376.381453a30.605791 30.605791 0 1 1-30.605792-30.605791 30.605791 30.605791 0 0 1 30.605792 30.605791z" fill="#48B8BF" ></path><path d="M731.048068 230.789704l165.975207-62.099151 18.883774 50.46895-165.975207 62.068545z" fill="#FFE610" ></path><path d="M734.047436 202.785404l145.836596-54.294674 9.426584 25.31099-145.867202 54.294674z" fill="#F7A53F" ></path><path d="M808.419509 259.161272l23.872517 63.353988 31.523966 35.808776-19.893765 18.057417-48.051092-38.257239-27.851271-63.660046 40.399645-15.302896zM854.940312 242.022029l23.56646 63.04793-0.306058 47.745035 26.627038 0.612116 11.324143-60.293409-20.811938-66.414568-40.399645 15.302896zM716.173654 94.379691l102.345766-38.257239 37.216643 99.468822-102.345767 38.257239z" fill="#7A807D" ></path><path d="M841.473764 83.790087a66.108509 66.108509 0 0 1-65.802452 66.10851l-407.669142 15.608953a67.944857 67.944857 0 0 1-11.324142 0 82.635637 82.635637 0 0 1 0-165.271273 67.944857 67.944857 0 0 1 11.324142 0l407.669142 17.445301A66.108509 66.108509 0 0 1 841.473764 83.790087z" fill="#FFE610" ></path><path d="M402.892773 83.790087a46.520803 46.520803 0 1 1-46.520803-46.214745A46.520803 46.520803 0 0 1 402.892773 83.790087z" fill="#FFFFFF" ></path><path d="M386.059587 83.790087a30.605791 30.605791 0 1 1-30.605791-30.605791 30.605791 30.605791 0 0 1 30.605791 30.605791z" fill="#48B8BF" ></path><path d="M810.867972 83.790087a38.257239 38.257239 0 1 1-39.787528-38.257239A38.257239 38.257239 0 0 1 810.867972 83.790087z" fill="#FFFFFF" ></path><path d="M795.565077 83.790087a24.484633 24.484633 0 1 1-24.484633-24.484633 24.484633 24.484633 0 0 1 24.484633 24.484633z" fill="#48B8BF" ></path><path d="M106.93477 852.913626h639.66104v171.086374H106.93477z" fill="#FFE610" ></path><path d="M383.305066 709.678522h337.275822v207.201208H383.305066z" fill="#4D4D4D" ></path><path d="M407.177584 732.02075h291.061076v161.904636H407.177584z" fill="#FFFFFF" ></path><path d="M429.825869 755.893267h159.150116v16.22107h-159.150116zM429.825869 784.356653h131.604903v16.22107h-131.604903zM429.825869 812.820039h199.855818v16.22107h-199.855818zM429.825869 841.283425h146.601741v16.22107h-146.601741z" fill="#92D5D2" ></path><path d="M507.564579 732.326808l-31.830023 161.904636H407.177584v-161.904636h100.386995z" fill="#F5F5F5" opacity=".5" ></path><path d="M474.816383 916.87973h155.783478v31.830023h-155.783478z" fill="#7A807D" ></path><path d="M106.93477 977.173139h639.66104v46.826861H106.93477z" fill="#F7A53F" ></path><path d="M252.006221 899.740487h66.414567v48.969266H252.006221z" fill="#7A807D" ></path><path d="M319.64502 817.716966l-3.672695 11.324143-21.730112 70.699378h-21.730112l23.872518-76.820537 3.366637-11.324143 19.893764 6.121159z" fill="#999999" ></path><path d="M341.069074 809.147344A28.463386 28.463386 0 1 1 321.17531 773.950684a28.463386 28.463386 0 0 1 19.893764 35.19666z" fill="#48B8BF" ></path><path d="M322.705599 793.538391a13.16049 13.16049 0 1 1-26.014923 0 13.16049 13.16049 0 0 1 26.014923 0z" fill="#FFFFFF" ></path><path d="M165.085773 899.740487h66.414568v49.275324H165.085773z" fill="#7A807D" ></path><path d="M163.861542 817.716966l3.366637 11.324143 22.03617 70.699378h21.730111l-23.872517-76.820537-3.672695-11.324143-19.587706 6.121159z" fill="#999999" ></path><path d="M142.437488 809.147344a28.157328 28.157328 0 1 0 18.669532-35.19666 28.157328 28.157328 0 0 0-18.669532 35.19666z" fill="#F7A53F" ></path><path d="M160.800963 793.538391a13.16049 13.16049 0 1 0 12.854432-12.854433 12.854432 12.854432 0 0 0-12.854432 12.854433z" fill="#FFFFFF" ></path></symbol><symbol id="icon-jixiebi2" viewBox="0 0 1164 1024"><path d="M848.55632 485.108049h233.370249v430.146938h-233.370249z" fill="#FFE610" ></path><path d="M974.217224 605.245396h154.314351v64.211341h-154.314351zM974.217224 689.82485h154.314351v64.211341h-154.314351zM974.217224 774.749527h154.314351v64.211341h-154.314351z" fill="#54D9D9" ></path><path d="M306.557369 245.869021l99.078789 31.760448 69.389675 22.094225 145.683794 46.259783 69.734897 22.094225 119.101681 37.974449 66.627896 21.058558 1.035667-2.761778 21.749003-69.044453 23.129891-72.151453-22.784669-7.249667-79.746343-25.201225-20.368113-6.559223-337.972595-107.364124-21.40378-6.904445-87.686455-27.617781-45.224116 142.576794-0.345222 1.035667z" fill="#FFE610" ></path><path d="M412.33347 357.755556l10.70189-33.555604 441.470229 140.401894-10.667368 33.555604z" fill="#A3A3A3" ></path><path d="M380.331366 357.686512l25.408359-79.953476 69.424197 22.094225-25.408359 79.918953zM595.508402 425.626253l25.408359-79.953476 69.389674 22.059703-25.373836 79.953476z" fill="#3F3F3F" ></path><path d="M809.200982 411.575707a144.302906 144.302906 0 0 0 4.833112 37.284004 138.088905 138.088905 0 0 0 18.987224 43.152783 144.302906 144.302906 0 0 0 15.535002 19.677669 146.719461 146.719461 0 0 0 256.154919-100.114456 144.648128 144.648128 0 0 0-34.522226-94.5909 180.206021 180.206021 0 0 0-15.880224-16.570668 146.719461 146.719461 0 0 0-96.317012-34.522227 148.445573 148.445573 0 0 0-58.687784 10.356668 146.719461 146.719461 0 0 0-89.757788 129.803571 34.522226 34.522226 0 0 0-0.345223 5.523556z" fill="#FFC200" ></path><path d="M876.174101 411.575707A80.091565 80.091565 0 1 0 956.265666 331.484142a80.091565 80.091565 0 0 0-80.091565 80.091565z" fill="#FFFFFF" ></path><path d="M904.827549 411.575707a51.438117 51.438117 0 1 0 51.438117-51.092895 51.438117 51.438117 0 0 0-51.438117 51.092895z" fill="#54D9D9" ></path><path d="M218.076903 216.594173l37.007826-117.202958 88.894733 28.06657L306.902591 244.660743zM86.512699 119.345062l92.450522-16.467102 19.401491 108.745013-92.450522 16.467102z" fill="#8A8A8A" ></path><path d="M0 65.317778l45.224116 254.083585 21.058558-3.797445 31.415226-5.523556 22.094225-4.142667-13.808891-77.675009-19.332446-109.090235-12.082779-67.318341-14.499335 2.761778-21.403781 3.797445-38.664893 6.904445z" fill="#292929" ></path><path d="M95.626567 436.43171l16.570668-3.107-14.499335-123.244348-31.415226 5.523556 29.343893 120.827792z" fill="#7A807D" ></path><path d="M138.088905 153.349455a80.782009 80.782009 0 0 0 31.070003 63.520896 79.40112 79.40112 0 0 0 49.021562 16.915891 75.258453 75.258453 0 0 0 32.10567-6.904445 80.091565 80.091565 0 0 0 48.331117-73.532342 78.710676 78.710676 0 0 0-13.808891-44.18845 76.984564 76.984564 0 0 0-31.760448-27.617781l-7.59489-3.452222a83.543787 83.543787 0 0 0-12.428001-3.452223H217.835247A80.091565 80.091565 0 0 0 138.088905 153.349455z" fill="#FFC200" ></path><path d="M167.087575 153.694677A51.092895 51.092895 0 1 0 217.835247 103.637449a50.747673 50.747673 0 0 0-50.747672 50.057228z" fill="#FFFFFF" ></path><path d="M185.384355 153.694677a32.450893 32.450893 0 1 0 32.450892-34.522226 32.450893 32.450893 0 0 0-32.450892 34.522226z" fill="#54D9D9" ></path><path d="M38.664893 58.413333l21.403781-3.797445C66.627897 19.74844 108.745013 11.117883 141.88635 14.915328a89.757788 89.757788 0 0 1 81.472454 58.687784h9.321001a83.543787 83.543787 0 0 1 12.428001 3.452223l7.59489 3.452223c53.854673-42.807561 165.016241-17.951558 187.110466 48.331116l21.40378 6.904446C439.813162 59.449 307.593036 24.581551 241.655583 69.115223a113.923346 113.923346 0 0 0-108.745012-69.044452C90.793455 0.070771 41.081449 10.772661 38.664893 58.413333zM799.189537 244.14291l20.368113 6.559223a345.222262 345.222262 0 0 0 89.412566-34.522226c48.331117-22.784669 133.601015-34.522226 144.99335 34.522226a114.613791 114.613791 0 0 1 0 48.676339 180.206021 180.206021 0 0 1 15.880224 16.570668c15.880224-50.057228 3.797445-107.364124-54.545117-124.280014-83.198565-22.439447-141.541127 45.569339-216.109136 52.473784z" fill="#3F3F3F" ></path><path d="M44.18845 731.251522a105.638012 105.638012 0 0 0 105.638012 105.638012h698.729858v-31.415226H149.826462a74.222786 74.222786 0 0 1 0-148.445573h698.729858v-31.415225H149.826462a105.638012 105.638012 0 0 0-105.638012 105.638012z" fill="#8A8A8A" ></path><path d="M75.603675 731.251522a74.222786 74.222786 0 0 0 74.222787 74.222786h698.729858V655.993069H149.826462a74.222786 74.222786 0 0 0-74.222787 75.258453z" fill="#FFE610" ></path><path d="M103.566679 731.251522a51.092895 51.092895 0 1 0 50.747672-50.747673A50.747673 50.747673 0 0 0 103.566679 731.251522z" fill="#FFFFFF" ></path><path d="M121.863459 731.251522a32.450893 32.450893 0 1 0 32.450892-32.450893 32.450893 32.450893 0 0 0-32.450892 32.450893zM290.331922 731.251522a34.522226 34.522226 0 0 0 34.522227 34.522226h414.266714a34.522226 34.522226 0 0 0 34.522226-34.522226 34.522226 34.522226 0 0 0-34.522226-34.522226h-414.266714a34.522226 34.522226 0 0 0-34.522227 34.522226z" fill="#54D9D9" ></path><path d="M827.15254 877.625761h276.523032v61.794785h-276.523032z" fill="#F7A53F" ></path><path d="M839.925764 939.765768h250.976584v31.070004h-250.976584z" fill="#707070" ></path><path d="M747.75142 657.028735v148.445573h43.152783v31.415226h57.652117v-211.276024h-57.652117v31.415225h-43.152783z" fill="#B3B3B3" opacity=".76" ></path><path d="M14.499335 970.490549h1149.590133v53.509451H14.499335z" fill="#B86805" ></path><path d="M154.314351 836.889534H272.725587v133.601015H154.314351zM614.150404 836.889534h118.411236v133.601015h-118.411236z" fill="#F7A53F" ></path><path d="M614.150404 836.889534h118.411236v78.365453h-118.411236zM154.314351 836.889534H272.725587v78.365453H154.314351z" fill="#B3B3B3" opacity=".76" ></path></symbol><symbol id="icon-jixiebi4" viewBox="0 0 1123 1024"><path d="M502.569098 505.335276h543.234824v85.15391H502.569098z" fill="#FFE610" ></path><path d="M483.047648 203.089382a81.451566 81.451566 0 0 1-41.06236 73.373725l-302.919047 173.33701a82.124719 82.124719 0 0 1-81.788143-143.045105l302.919047-173.33701a82.124719 82.124719 0 0 1 83.807603 0 79.768682 79.768682 0 0 1 27.935868 28.945597A77.412645 77.412645 0 0 1 483.047648 203.089382z" fill="#FFC200" ></path><path d="M39.776109 803.542249h1082.094151v220.121174H39.776109z" fill="#FFE610" ></path><path d="M39.776109 971.830609h1082.094151v52.169391H39.776109zM466.218812 723.43699v146.747449H219.844654v-146.747449a123.187079 123.187079 0 0 1 246.374158 0z" fill="#FFC200" ></path><path d="M396.210854 790.415757a100.973016 100.973016 0 0 1-141.698798-23.896947l-235.603704-331.864645a100.973016 100.973016 0 0 1 23.896947-141.362222 100.973016 100.973016 0 0 1 141.698799 23.896947l235.603703 331.528068a100.973016 100.973016 0 0 1-24.233523 141.698799z" fill="#FFE610" ></path><path d="M146.470929 451.146424a86.16364 86.16364 0 1 1 29.282174-118.138428 86.16364 86.16364 0 0 1-29.282174 118.138428z" fill="#B8B8B8" ></path><path d="M131.661553 424.556864a56.881466 56.881466 0 1 1 19.52145-78.085799 56.544889 56.544889 0 0 1-19.52145 78.085799z" fill="#B8B8B8" ></path><path d="M120.554522 405.035414a35.677132 35.677132 0 0 1-36.686863-60.920386A35.677132 35.677132 0 1 1 120.554522 405.035414z" fill="#FFFFFF" ></path><path d="M370.9676 757.767815a56.881466 56.881466 0 1 1 19.184873-78.085798 56.881466 56.881466 0 0 1-19.184873 78.085798z" fill="#B8B8B8" ></path><path d="M358.850839 739.592672a35.677132 35.677132 0 1 1 12.116761-48.803624 35.677132 35.677132 0 0 1-12.116761 48.803624z" fill="#FFFFFF" ></path><path d="M423.136992 384.167657l-112.416624 66.305614-32.984519-55.871735 112.753201-65.969037 9.760725 16.492259 13.463069 22.887217 9.424148 16.155682z" fill="#8A8A8A" ></path><path d="M400.18246 345.023785l70.512822-41.398937 13.463069 22.887217-70.512823 41.432594z" fill="#C4C4C4" ></path><path d="M489.442606 313.823123a21.877487 21.877487 0 0 1-11.780186 27.935868 21.54091 21.54091 0 0 1-27.935867-12.116762l-29.955328-73.373725a21.54091 21.54091 0 0 1 12.116762-27.935868 21.204333 21.204333 0 0 1 27.599291 11.780186z" fill="#F7A53F" ></path><path d="M482.037918 318.19862a12.453339 12.453339 0 0 1-9.424148 14.809376 12.789915 12.789915 0 0 1-14.809376-9.424148 12.789915 12.789915 0 0 1 9.424148-14.809376 12.453339 12.453339 0 0 1 14.809376 9.424148z" fill="#707070" ></path><path d="M303.652257 388.543155a24.5701 24.5701 0 0 0-7.404688 8.077841l-24.906677 45.10128 32.311365 44.764704 36.350285-65.63246a24.906677 24.906677 0 0 0-36.013709-33.657672z m12.453338 6.394957a14.472799 14.472799 0 0 1 16.155683 12.116762 14.136222 14.136222 0 0 1-12.116762 16.155683 13.799645 13.799645 0 0 1-16.155683-11.780185 14.136222 14.136222 0 0 1 13.463069-16.49226z" fill="#B86805" ></path><path d="M305.33514 411.430372a13.799645 13.799645 0 0 0 16.155683 11.780185 14.136222 14.136222 0 0 0 12.116762-16.155683 14.472799 14.472799 0 0 0-16.155683-12.116762 14.136222 14.136222 0 0 0-12.116762 16.49226z" fill="#5E5E5E" ></path><path d="M625.4196 163.709906l-19.858026 12.116762-37.360016 22.55064-19.858027 12.116762-20.867756-34.667402-40.389207-66.64219-19.184872-31.301635 9.424148-5.721804 58.227772-35.340556 9.424148-5.385227 80.441836 132.27465z" fill="#8A8A8A" ></path><path d="M568.066927 198.276335l37.124412-22.516982 36.484917 60.14626-37.15807 22.55064z" fill="#4D4D4D" ></path><path d="M931.031261 336.373763l-85.15391 217.765137h-128.572307l-46.447587-118.811581-30.965058-79.768683-7.404688-19.184873 46.111011-46.447587h205.648375l46.784164 46.447587z" fill="#AEBABD" ></path><path d="M744.668732 483.861681l105.954351-43.182793 2.423352 5.890093-105.988009 43.182793zM840.8287 361.953594l-120.157889-26.252984 1.682884-6.058381 119.821312 26.252984-1.346307 6.058381zM683.916634 363.838423l6.125696-1.851172 32.984518 109.252803-6.159353 1.851172z" fill="#6A5060" ></path><path d="M880.544753 403.015954a49.813354 49.813354 0 1 1-49.813354-49.813355 50.149931 50.149931 0 0 1 49.813354 49.813355zM746.923796 359.597557a33.657672 33.657672 0 1 1-33.657672-33.657672 33.657672 33.657672 0 0 1 33.657672 33.657672zM767.454975 465.282647a26.589561 26.589561 0 0 1-26.58956 26.252984A26.252984 26.252984 0 0 1 741.201991 438.693086a26.589561 26.589561 0 0 1 26.252984 26.589561z" fill="#FFFFFF" ></path><path d="M846.887081 403.015954a16.155683 16.155683 0 1 1-16.155682-16.155683 16.155683 16.155683 0 0 1 16.155682 16.155683zM724.709732 359.597557a10.097302 10.097302 0 0 1-10.097302 9.760725 9.760725 9.760725 0 1 1 0-19.52145 10.097302 10.097302 0 0 1 10.097302 9.760725zM748.943256 465.282647A7.741265 7.741265 0 0 1 741.201991 472.350758a8.077841 8.077841 0 0 1-8.077841-8.077842 8.077841 8.077841 0 0 1 8.077841-8.077841 8.077841 8.077841 0 0 1 7.741265 9.087572z" fill="#788B90" opacity=".37" ></path><path d="M698.456748 219.581642h166.268899v46.11101h-166.268899z" fill="#F7A53F" ></path><path d="M702.159092 223.620562h5.048651v38.03317h-5.048651zM711.246663 223.620562h5.048651v38.03317h-5.048651zM720.334235 223.620562h5.048651v38.03317h-5.048651zM729.421806 223.620562h5.048651v38.03317h-5.048651zM738.509378 223.620562h5.04865v38.03317h-5.04865zM747.596949 223.620562h5.048651v38.03317h-5.048651zM756.68452 223.620562h5.048651v38.03317h-5.048651zM765.772092 223.620562h5.048651v38.03317h-5.048651zM774.859663 223.620562h5.048651v38.03317H774.859663zM783.610658 223.620562h5.048651v38.03317h-5.048651zM792.698229 223.620562h5.048651v38.03317h-5.048651zM801.785801 223.620562h5.04865v38.03317h-5.04865zM810.873372 223.620562h5.048651v38.03317h-5.048651zM819.960944 223.620562h5.04865v38.03317h-5.04865zM829.048515 223.620562h5.048651v38.03317h-5.048651zM838.136086 223.620562h5.048651v38.03317h-5.048651zM847.223658 223.620562h5.048651v38.03317h-5.048651zM856.311229 223.620562h5.048651v38.03317h-5.048651z" fill="#788B90" opacity=".38" ></path><path d="M738.845954 265.692652h85.490487v23.896947h-85.490487z" fill="#707070" ></path><path d="M735.816764 288.916446h-1.682884L640.228976 355.558636l-39.0429 26.926138-4.712074 3.365767-16.492259-23.896947a25.916407 25.916407 0 0 1 6.731534-36.013709l97.270672-67.315344a25.916407 25.916407 0 0 1 36.013709 6.731534z" fill="#58BFD2" ></path><path d="M670.857457 435.327319h-33.657672a12.116762 12.116762 0 0 1-10.433878-8.414418l-24.906677-44.428127 39.042899-26.926138z" fill="#8A8A8A" ></path><path d="M827.365631 288.916446h1.682884l94.241481 65.63246 39.0429 26.926138 4.712074 3.365767 16.492259-23.896947a25.916407 25.916407 0 0 0-6.731534-35.003979l-97.270672-67.315344a25.916407 25.916407 0 0 0-36.013709 6.731534z" fill="#58BFD2" ></path><path d="M892.324938 435.327319h33.657672a12.116762 12.116762 0 0 0 10.433878-8.414418l24.906677-44.428127-39.042899-26.926138z" fill="#8A8A8A" ></path><path d="M738.845954 265.692652h85.490487v12.116762h-85.490487zM922.95342 355.558636l-31.301635 79.768683-46.447588 118.811581 49.140201-194.541343-70.007957-69.671381h4.038921l94.578058 65.63246z" fill="#848484" opacity=".25" ></path><path d="M661.433309 321.900964l-48.467048-67.988497 21.204334-12.789915 38.033169 74.383455-10.770455 6.394957z" fill="#7A807D" ></path><path d="M535.553616 36.820483l-58.227772 33.657672-11.780186-19.184873A33.657672 33.657672 0 0 1 502.905674 1.143351a33.657672 33.657672 0 0 1 21.204334 15.482529z" fill="#F7A53F" ></path><path d="M527.475775 175.826668L483.047648 203.089382A77.412645 77.412645 0 0 0 471.940616 164.046483a79.768682 79.768682 0 0 0-27.599291-28.272444l42.745243-25.916408zM527.475775 175.826668l-40.389207-66.64219 40.389207 66.64219z" fill="#C4C4C4" ></path><path d="M956.274515 854.028757H600.512923l32.311365-25.243254h290.802285l32.647942 25.243254z" fill="#999999" ></path><path d="M650.999431 304.062398l-70.007958 14.809376 69.671381 8.414418-4.712074 38.033169 25.243254-25.243254 22.887217 25.243254-3.702344-36.350286 35.003979-1.682883-31.974789-19.52145 14.809376-35.677132-33.657672 24.906677-26.252984-43.754973 2.692614 50.823084z" fill="#FFFFFF" ></path><path d="M956.274515 803.542249H600.512923l32.311365 25.243254h290.802285l32.647942-25.243254z" fill="#7A807D" ></path><path d="M956.274515 803.542249H600.512923l32.311365-25.579831h290.802285l32.647942 25.579831z" fill="#999999" ></path><path d="M956.274515 752.719165H600.512923l32.311365 25.243253h290.802285l32.647942-25.243253zM956.274515 702.232657H600.512923l32.311365 25.243254h290.802285l32.647942-25.243254z" fill="#7A807D" ></path><path d="M956.274515 752.719165H600.512923l32.311365-25.243254h290.802285l32.647942 25.243254z" fill="#999999" ></path><path d="M584.693817 632.561276h378.985386v69.671381H584.693817zM584.693817 854.028757h378.985386v34.667402H584.693817z" fill="#FFC200" ></path><path d="M502.569098 590.489186h543.234824v42.07209H502.569098z" fill="#F7A53F" ></path><path d="M273.696929 882.637778h80.441836v59.574079H273.696929z" fill="#7A807D" ></path><path d="M355.821648 783.011069l-4.375497 13.799646-26.589561 85.827063h-26.252984l28.945598-93.231751 4.375497-13.799646 23.896947 7.404688z" fill="#999999" ></path><path d="M381.738055 772.913768a33.657672 33.657672 0 1 1-22.55064-43.08182 33.657672 33.657672 0 0 1 22.55064 43.08182z" fill="#F7A53F" ></path><path d="M359.523992 753.728895a15.819106 15.819106 0 1 1-15.819106-15.819106 15.819106 15.819106 0 0 1 15.819106 15.819106z" fill="#FFFFFF" ></path><path d="M168.348416 882.637778h80.441835v59.574079H168.348416z" fill="#7A807D" ></path><path d="M166.665532 783.011069l4.375497 13.799646 26.589561 85.827063h26.252984l-28.945598-93.231751-4.03892-13.799646-24.233524 7.404688z" fill="#999999" ></path><path d="M140.749125 772.913768a33.657672 33.657672 0 1 0 67.315343-20.53118 33.657672 33.657672 0 0 0-43.08182-22.55064 33.657672 33.657672 0 0 0-24.233523 43.08182z" fill="#68FF4B" ></path><path d="M162.963188 753.728895a15.819106 15.819106 0 1 0 15.819106-15.819106 15.819106 15.819106 0 0 0-15.819106 15.819106z" fill="#FFFFFF" ></path></symbol></svg>',(c=>{var d=(t=(t=document.getElementsByTagName("script"))[t.length-1]).getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var o,r,N,$,m,U=function(ee,L){L.parentNode.insertBefore(ee,L)};if(d&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(ee){console&&console.log(ee)}}o=function(){var ee,L=document.createElement("div");L.innerHTML=c._iconfont_svg_string_4634042,(L=L.getElementsByTagName("svg")[0])&&(L.setAttribute("aria-hidden","true"),L.style.position="absolute",L.style.width=0,L.style.height=0,L.style.overflow="hidden",L=L,(ee=document.body).firstChild?U(L,ee.firstChild):ee.appendChild(L))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),o()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(N=o,$=c.document,m=!1,M(),$.onreadystatechange=function(){$.readyState=="complete"&&($.onreadystatechange=null,q())})}function q(){m||(m=!0,N())}function M(){try{$.documentElement.doScroll("left")}catch{return void setTimeout(M,50)}q()}})(window);const ta={class:"obj-viewer-container"},na={class:"buttonGroup-top"},sa={class:"buttonGroup-topLeft"},ia={class:"buttonGroup-left"},ra={class:"buttonGroup-right"},ca={class:"buttonGroup-bottom"},ua={class:"left-panel"},pa={class:"panel-header"},da={key:1,class:"clipping-content"},ha={class:"radio-group"},fa={class:"radio-label"},ma={class:"radio-label"},va={class:"radio-label"},ya={class:"radio-label"},ga={class:"right-panel"},ba={class:"panel-header"},Da={key:0,class:"loading-overlay"},ka={__name:"threeView",props:{urdfUrl:{type:String,default:""},animationData:{type:Object,default:()=>{}}},emits:["getAnimationData"],setup(c,{emit:d}){const t=d,o=c;let r=null,N=!1;const $=e.ref(null),m=e.ref(!1),U=e.ref("");e.ref(!1);const q=e.ref(!1),M=e.ref(!1),ee=e.ref(""),L=e.ref(!1),E=e.ref(""),P=e.ref(),{currentModels:Y,initialCameraPosition:s,initialTargetPosition:v,initThreeJS:H,handleResize:u,getThreeJSObjects:y,clearAllModels:k,cleanup:x}=x2($),{loadUrdfFromUrl:re}=E2(y,Y,m,U),{isAnimating:de,toggleAnimation:O,stopAnimation:X}=B2(y,Y),{isClipping:J,activeClippingAxis:B,toggleClipping:n,updateClippingPlanes:R}=V2(y,Y),{urdfModel:Q}=z2(y,Y,m,U,k),C=()=>{if(q.value||Y.value.length===0)return;q.value=!0,de.value&&X();const{camera:T,controls:D}=y();if(!T||!D)return;D.enabled=!0;const b=w=>w<.5?4*w*w*w:1-Math.pow(-2*w+2,3)/2,z=T.position.clone(),_=D.target.clone(),F=1500,j=Date.now(),I=()=>{const w=Date.now()-j,te=Math.min(w/F,1),g=b(te);T.position.lerpVectors(z,s.value,g),D.target.lerpVectors(_,v.value,g),te<1?requestAnimationFrame(I):q.value=!1};I()},oe=async()=>N?Promise.resolve():new Promise(T=>{const D=()=>{N?T():requestAnimationFrame(D)};D()}),pe=T=>{M.value=!0,ee.value=T,T==="剖面视图"&&!J.value&&n()},he=T=>{L.value=!0,E.value=T,T==="动画仿真"&&t("getAnimationData")},h=()=>{e.nextTick(()=>{var T;(T=P.value)==null||T.startAnimation()})};return e.watch(()=>o.urdfUrl,async(T,D)=>{if(T)try{await oe();const b=await re(T)}catch(b){console.error("加载urdf模型失败",b),l.ElMessage.error("加载urdf模型失败")}},{immediate:!0}),e.onMounted(async()=>{await e.nextTick();try{H(),r=y().scene,N=!0,window.addEventListener("resize",u)}catch(T){console.error("Three.js初始化失败:",T)}}),e.onBeforeUnmount(()=>{N=!1,ee.value="",E.value="",window.removeEventListener("resize",u),de.value&&X(),x()}),(T,D)=>{var z,_,F,j;const b=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",ta,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:$,class:"threejs-container"},null,512),e.createElementVNode("div",na,[e.createVNode(Me,{name:"guanjianjiexi",size:"34"}),e.createVNode(Me,{name:"guanjiekongzhi",size:"34"}),e.createVNode(Me,{name:"gongyishengcheng",size:"34"}),e.createVNode(Me,{name:"buchangshezhi",size:"34"}),e.createVNode(Me,{name:"shuchujiagongchengxu",size:"34"})]),e.createElementVNode("div",sa,[e.createVNode(Me,{name:"viewReset",size:"24",onClick:C,title:"重置"}),e.createVNode(Me,{name:"fangda",size:"24",title:"放大"}),e.createVNode(Me,{name:"suoxiao",size:"24",title:"缩小"}),e.createVNode(Me,{name:"lookAround",size:"24",onClick:e.unref(O),title:e.unref(de)?"停止动画":"动画视图"},null,8,["onClick","title"])]),e.createElementVNode("div",ia,[e.createVNode(Me,{name:"jiegoushu",size:"24",onClick:D[0]||(D[0]=I=>pe("场景树")),active:M.value&&ee.value==="场景树",title:"场景树"},null,8,["active"]),e.createVNode(Me,{name:"clipping",size:"24",onClick:D[1]||(D[1]=I=>pe("剖面视图")),active:M.value&&ee.value==="剖面视图",title:"剖面视图"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24",onClick:D[2]||(D[2]=I=>pe("场景树3"))}),e.createVNode(Me,{name:"donghuafangzhen",size:"24",onClick:D[3]||(D[3]=I=>pe("场景4"))})]),e.createElementVNode("div",ra,[e.createVNode(Me,{name:"donghuafangzhen",size:"24"}),e.createVNode(Me,{name:"donghuafangzhen",size:"24"}),e.createVNode(Me,{name:"guanjiekongzhi",size:"24",onClick:D[4]||(D[4]=I=>he("关节控制")),active:L.value&&E.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:D[5]||(D[5]=I=>he("动画仿真")),active:L.value&&E.value==="动画仿真"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24"}),e.createVNode(Me,{name:"donghuafangzhen",size:"24"})]),e.createElementVNode("div",ca,[e.createVNode(Me,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:(z=P.value)==null?void 0:z.fastBackward},null,8,["onClick"]),e.createVNode(Me,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:h}),e.createVNode(Me,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:(_=P.value)==null?void 0:_.fastForward},null,8,["onClick"]),e.createVNode(Me,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:(F=P.value)==null?void 0:F.pauseAnimation},null,8,["onClick"]),e.createVNode(Me,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:(j=P.value)==null?void 0:j.resetAll},null,8,["onClick"])]),e.withDirectives(e.createElementVNode("div",ua,[e.createElementVNode("div",pa,[e.createElementVNode("span",null,e.toDisplayString(ee.value),1),e.createElementVNode("span",{class:"close",onClick:D[6]||(D[6]=I=>M.value=!1)}," X ")]),e.createVNode(b,{"max-height":"650px"},{default:e.withCtx(()=>[ee.value==="场景树"?(e.openBlock(),e.createBlock(la,{key:0,model:e.unref(Q)},null,8,["model"])):e.createCommentVNode("",!0),ee.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("div",ha,[e.createElementVNode("label",fa,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":D[7]||(D[7]=I=>e.isRef(B)?B.value=I:null),onChange:D[8]||(D[8]=(...I)=>e.unref(R)&&e.unref(R)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[16]||(D[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",ma,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":D[9]||(D[9]=I=>e.isRef(B)?B.value=I:null),onChange:D[10]||(D[10]=(...I)=>e.unref(R)&&e.unref(R)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[17]||(D[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",va,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":D[11]||(D[11]=I=>e.isRef(B)?B.value=I:null),onChange:D[12]||(D[12]=(...I)=>e.unref(R)&&e.unref(R)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[18]||(D[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",ya,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":D[13]||(D[13]=I=>e.isRef(B)?B.value=I:null),onChange:D[14]||(D[14]=(...I)=>e.unref(R)&&e.unref(R)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[19]||(D[19]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):e.createCommentVNode("",!0)]),_:1})],512),[[e.vShow,M.value]]),e.withDirectives(e.createElementVNode("div",ga,[e.createElementVNode("div",ba,[e.createElementVNode("span",null,e.toDisplayString(E.value),1),e.createElementVNode("span",{class:"close",onClick:D[15]||(D[15]=I=>L.value=!1)}," X ")]),e.createVNode(b,{"max-height":"650px"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(Y2,{ref_key:"jointRef",ref:P,model:e.unref(Q),scene:e.unref(r),animationData:c.animationData},null,8,["model","scene","animationData"]),[[e.vShow,E.value==="关节控制"]]),e.withDirectives(e.createVNode(S2,{animationData:c.animationData},null,8,["animationData"]),[[e.vShow,E.value==="动画仿真"]])]),_:1})],512),[[e.vShow,L.value]]),m.value?(e.openBlock(),e.createElementBlock("div",Da,[D[20]||(D[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(U.value),1)])):e.createCommentVNode("",!0)])}}},wa=Ve._export_sfc(ka,[["__scopeId","data-v-4ab753fe"]]),Ca={class:"form-content"},_a={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(c,{emit:d}){const t=e.ref(!1),o=e.ref(!1),r=e.ref(""),N=()=>{t.value=!1,o.value=null,r.value=""},$=c,m=d,U=e.ref([]),q=e.ref(!1),M=e.ref(!1),ee=e.ref([]),L=e.ref(),E=W.useFormToTableComp(l.pinia),P=d2(l.pinia),Y=e.ref(!1),s=e.ref(),v=$l.useLoginState(l.pinia),{loginUserInfo:H}=l.storeToRefs(v),u=e.ref(),y=e.ref(!0),k=(X,J)=>{u.value===J?y.value=!1:y.value=!0,u.value=J==null?void 0:J.changeProp},x=async X=>{var B,n,R,Q,C,oe,pe,he,h,T;let J=[];if((B=X==null?void 0:X.toString())!=null&&B.includes(".urdf")){r.value=X,t.value=!0;return}if((n=X==null?void 0:X.toString())!=null&&n.includes(".stl")||(R=X==null?void 0:X.toString())!=null&&R.includes(".STL")||(Q=X==null?void 0:X.toString())!=null&&Q.includes(".obj")||(C=X==null?void 0:X.toString())!=null&&C.includes(".mtl")){let D,b=[],z={};if(Array.isArray(X)?D=X:D=X==null?void 0:X.split(","),D==null||D.forEach(_=>{_.includes(".mtl")?b.push(_):z.blob=z.blob?z.blob+","+_:_}),(b==null?void 0:b.length)>0&&(z.mtlBlobs=b),(pe=(oe=Object.values(z))==null?void 0:oe[0])!=null&&pe.includes("http:"))J.push(z);else{const _=new Blob([z.blob],{type:"application/octet-stream;charset=UTF-8"});let F=URL.createObjectURL(_),j="";(he=X==null?void 0:X.split("/"))==null||he.forEach((I,w)=>{var te;w===((te=X==null?void 0:X.split("/"))==null?void 0:te.length)-1&&(j=I)}),(h=z.blob)!=null&&h.includes(".stl")&&(j=(j==null?void 0:j.replaceAll(">",""))+".urdf"),L.value=[{name:j,blobUrl:F}],M.value=!0}}else{const D=await l.axios.get(X,{responseType:"blob",headers:{"Content-Type":"application/json"}}),b=new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"});let z=URL.createObjectURL(b),_="";(T=X==null?void 0:X.split("/"))==null||T.forEach((F,j)=>{var I;j===((I=X==null?void 0:X.split("/"))==null?void 0:I.length)-1&&(_=F)}),L.value=[{name:_,blobUrl:z}],M.value=!0}(J==null?void 0:J.length)>0&&P.setBlobUrls(J)},re=()=>{M.value=!1},de=X=>{var Q,C,oe,pe;const J=(C=(Q=l.cloneDeep($.itemData))==null?void 0:Q.find(he=>(he==null?void 0:he.key)==="formContent"))==null?void 0:C.contents,B=l.cloneDeep(X.content);let n={};B&&((oe=Object.values(B))==null?void 0:oe.length)>0&&((pe=Object.values(B))==null||pe.forEach((he,h)=>{n[J[h].key]=he}));const R={content:n,index:$==null?void 0:$.index,buttonName:X==null?void 0:X.buttonName};m("change",R)},O=async X=>{var he,h,T,D,b,z,_,F,j,I,w,te;if(!X)return;const J=l.cloneDeep($.itemData),B=J==null?void 0:J.map(g=>{var V;return(g==null?void 0:g.key)==="formContent"&&((V=g.contents)==null||V.map((G,K)=>{var p,ce,le,a,i,f,A,S,Z,ve,ne,se,ie,me,be,ae,fe;return G.type=G!=null&&G.type?G.type:(a=(le=(ce=(p=G==null?void 0:G.key)==null?void 0:p.split("$"))==null?void 0:ce[1])==null?void 0:le.split("("))!=null&&a[0]?(f=(i=ge.FormType)==null?void 0:i.find(De=>{var ye,ke,xe,Ne;return(De==null?void 0:De.key)===((Ne=(xe=(ke=(ye=G==null?void 0:G.key)==null?void 0:ye.split("$"))==null?void 0:ke[1])==null?void 0:xe.split("("))==null?void 0:Ne[0])}))==null?void 0:f.value:"Input",G.options=G!=null&&G.options?G.options:((Z=(S=(A=G==null?void 0:G.key)==null?void 0:A.split("$"))==null?void 0:S[1])==null?void 0:Z.length)>0?(ie=(se=W.formGetOptions((ne=(ve=G==null?void 0:G.key)==null?void 0:ve.split("$"))==null?void 0:ne[1]))==null?void 0:se.split(","))==null?void 0:ie.map(De=>({label:De,value:De})):[],(me=G==null?void 0:G.key)!=null&&me.includes("$")&&(G.key=(ae=(be=G==null?void 0:G.key)==null?void 0:be.split("$"))==null?void 0:ae[0]),G.value=(fe=Object.values(X))==null?void 0:fe[K],G})),g});let n=l.cloneDeep(U).value,R=(h=(he=l.cloneDeep(B))==null?void 0:he.find(g=>(g==null?void 0:g.key)==="formContent"))==null?void 0:h.contents;if(n=n==null?void 0:n.map(g=>{var V;return g.value=(V=R==null?void 0:R.find(G=>(G==null?void 0:G.id)===(g==null?void 0:g.id)))==null?void 0:V.value,g}),!y.value){m("contentChange",{contents:B,index:$.index});return}let Q="",C=(b=(D=(T=l.cloneDeep(B))==null?void 0:T.find(g=>(g==null?void 0:g.key)==="formContent"))==null?void 0:D.contents)==null?void 0:b.find((g,V)=>{var G,K;return(g==null?void 0:g.label)===u.value||V.toString()===((K=(G=u.value)==null?void 0:G.split("t"))==null?void 0:K[1].toString())});if((F=(_=(z=l.cloneDeep(B))==null?void 0:z.find(g=>(g==null?void 0:g.key)==="formContent"))==null?void 0:_.contents)==null||F.forEach(g=>{var V,G,K,p,ce;Q===""&&((K=(G=(V=g==null?void 0:g.optionUrl)==null?void 0:V.groupSelect)==null?void 0:G[1])!=null&&K.includes("["))&&(Q=(ce=(p=g==null?void 0:g.optionUrl)==null?void 0:p.groupSelect)==null?void 0:ce[1])}),(j=C==null?void 0:C.optionUrl)!=null&&j.menuSelect&&y.value){let g=await W.getSelectRow(C),V;if(g==null||g.forEach(G=>{var K,p,ce,le,a,i,f,A,S,Z;Q===((p=(K=C==null?void 0:C.optionUrl)==null?void 0:K.groupSelect)==null?void 0:p[1])&&((a=(le=(ce=C==null?void 0:C.optionUrl)==null?void 0:ce.groupSelect)==null?void 0:le[1])!=null&&a.includes("["))&&((Z=l.cloneDeep(G))==null?void 0:Z[(S=(A=(f=(i=C==null?void 0:C.optionUrl)==null?void 0:i.groupSelect)==null?void 0:f[1])==null?void 0:A.replaceAll("[",""))==null?void 0:S.replaceAll("]","")])===(C==null?void 0:C.value)&&(V=G)}),V){let G=l.cloneDeep(n);G=G==null?void 0:G.map(p=>{var ce,le,a,i,f,A,S,Z,ve,ne,se;return(V!=null&&V[p==null?void 0:p.label]||V!=null&&V[(i=(a=(le=(ce=p==null?void 0:p.optionUrl)==null?void 0:ce.groupSelect)==null?void 0:le[1])==null?void 0:a.replaceAll("[",""))==null?void 0:i.replaceAll("]","")])&&((S=(A=(f=p==null?void 0:p.optionUrl)==null?void 0:f.groupSelect)==null?void 0:A[1])!=null&&S.includes("["))&&(p.value=(V==null?void 0:V[p==null?void 0:p.label])||(V==null?void 0:V[(se=(ne=(ve=(Z=p==null?void 0:p.optionUrl)==null?void 0:Z.groupSelect)==null?void 0:ve[1])==null?void 0:ne.replaceAll("[",""))==null?void 0:se.replaceAll("]","")])),p}),U.value=G;let K=l.cloneDeep(G);K=K==null?void 0:K.map(p=>{var ce,le,a,i;return(le=(ce=p==null?void 0:p.optionUrl)==null?void 0:ce.menuSelect)!=null&&le.some(f=>f==null?void 0:f.includes)&&(p.optionUrl.menuSelect=(i=(a=p==null?void 0:p.optionUrl)==null?void 0:a.menuSelect)==null?void 0:i.map(f=>{var A,S,Z,ve;if(f!=null&&f.includes("[")){let ne=(S=(A=f==null?void 0:f.replaceAll("[","").replaceAll("]",""))==null?void 0:A.split(":"))==null?void 0:S[1];f=(ve=(Z=l.cloneDeep(G))==null?void 0:Z.find(se=>(se==null?void 0:se.label)===ne))==null?void 0:ve.value}return f})),p}),U.value=K}}y.value=!1,m("contentChange",{contents:B,index:$.index});let oe=[],pe=[];if((w=l.cloneDeep((I=B==null?void 0:B.find(g=>(g==null?void 0:g.key)==="formContent"))==null?void 0:I.contents))==null||w.forEach(g=>{var V;Array.isArray(g==null?void 0:g.value)&&((V=g==null?void 0:g.value)!=null&&V.find(G=>{var K;return(K=G==null?void 0:G.url)==null?void 0:K.includes(".obj")}))&&(pe=g==null?void 0:g.value)}),(pe==null?void 0:pe.length)>0){const g=(te=l.cloneDeep(pe))==null?void 0:te.filter(V=>{var G;return(G=V==null?void 0:V.url)==null?void 0:G.includes(".obj")});g==null||g.forEach(V=>{var K,p,ce,le;const G=(K=pe==null?void 0:pe.filter(a=>{var i;return(a==null?void 0:a.name)===(V==null?void 0:V.name)&&((i=a==null?void 0:a.url)==null?void 0:i.includes(".mtl"))}))==null?void 0:K.map(a=>a==null?void 0:a.url);oe.push({objUrl:V==null?void 0:V.url,mtlUrls:((p=pe==null?void 0:pe.filter(a=>{var i;return(a==null?void 0:a.name)===(V==null?void 0:V.name)&&((i=a==null?void 0:a.url)==null?void 0:i.includes(".mtl"))}))==null?void 0:p.length)===1?(le=(ce=pe==null?void 0:pe.filter(a=>{var i;return(a==null?void 0:a.name)===(V==null?void 0:V.name)&&((i=a==null?void 0:a.url)==null?void 0:i.includes(".mtl"))}))==null?void 0:ce[0])==null?void 0:le.url:G})}),P.setObjUrl(oe)}};return e.watch(()=>$.itemData,async()=>{var Q,C,oe,pe,he,h,T,D,b,z,_,F,j,I;const X=(Q=$.itemData)==null?void 0:Q.find(w=>(w==null?void 0:w.key)==="formContent"),J=(C=l.cloneDeep($.itemData))==null?void 0:C.find(w=>(w==null?void 0:w.key)==="formButton"),B=(oe=l.cloneDeep($.itemData))==null?void 0:oe.find(w=>(w==null?void 0:w.key)==="formFlex"),n=(pe=l.cloneDeep($.itemData))==null?void 0:pe.find(w=>(w==null?void 0:w.key)==="formWrap"),R=(he=l.cloneDeep($.itemData))==null?void 0:he.find(w=>(w==null?void 0:w.key)==="enableWrap");if((n==null?void 0:n.contents)==="纵向"?q.value=!1:q.value=!0,Y.value=(R==null?void 0:R.contents)===void 0?!1:R==null?void 0:R.contents,s.value=typeof(B==null?void 0:B.contents)!="boolean"?!(!(B!=null&&B.contents)===""||((h=B==null?void 0:B.contents)==null?void 0:h.toUpperCase())==="VERTICAL"):B==null?void 0:B.contents,((T=X==null?void 0:X.contents)==null?void 0:T.length)>0&&Array.isArray(X==null?void 0:X.contents)){const w=await((D=X==null?void 0:X.contents)==null?void 0:D.map(async(p,ce)=>{var ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be;let le=(p==null?void 0:p.label)??(p==null?void 0:p.key)??"",a=(p==null?void 0:p.type)??"",i=(p==null?void 0:p.options)??[];if((ve=p==null?void 0:p.key)!=null&&ve.includes("$")&&(le=(ne=l.cloneDeep(p==null?void 0:p.key).split("$"))==null?void 0:ne[0],((ie=(se=l.cloneDeep(p==null?void 0:p.key).split("$"))==null?void 0:se[1])==null?void 0:ie.length)>0)){const[Pe,Ie]=(be=(me=l.cloneDeep(p==null?void 0:p.key).split("$"))==null?void 0:me[1])==null?void 0:be.split(/[()]/);a=((ae=ge.FormType.find(Le=>(Le==null?void 0:Le.key)===Pe))==null?void 0:ae.value)??"",((fe=Ie==null?void 0:Ie.split(","))==null?void 0:fe.length)>0&&(i=(De=Ie==null?void 0:Ie.split(","))==null?void 0:De.map(Le=>({label:Le,value:Le})))}let f=[];p!=null&&p.contents&&!Array.isArray(p==null?void 0:p.contents)&&(f=(ke=(ye=p==null?void 0:p.contents)==null?void 0:ye.split(","))==null?void 0:ke.map(Pe=>({label:Pe,value:Pe})));let A=await ge.judgeContents((xe=l.cloneDeep(p))==null?void 0:xe.optionUrl),S=A!==void 0&&!(p!=null&&p.value)?A:p!=null&&p.originalContent&&(p==null?void 0:p.originalContent)!==""?p.originalContent:p!=null&&p.value?p.value:(i==null?void 0:i.length)>0?(Ne=i==null?void 0:i[0])==null?void 0:Ne.value:(p==null?void 0:p.value)??"";return S==="loginUser"&&(S=((ue=H.value)==null?void 0:ue.姓名)??((Ee=H.value)==null?void 0:Ee.userName)??((Be=H.value)==null?void 0:Be.account)),{label:le??"",name:"t"+ce,type:A!==void 0||a===""?"Input":a,value:S,id:(p==null?void 0:p.id)??ce,contents:(f==null?void 0:f.length)>0?f:i??[],width:(p==null?void 0:p.width)??1,config:p==null?void 0:p.config,optionUrl:(p==null?void 0:p.optionUrl)??p,isFormColHidden:p==null?void 0:p.isFormColHidden}})),te=await Promise.all(w),g=te==null?void 0:te.map(p=>p==null?void 0:p.value);let V="";g==null||g.forEach(p=>{p!==""&&p!==void 0&&(V=V===""?p:V+"/"+p)}),E.setSelectArray(g),E.setSelectString(V),U.value=(b=l.cloneDeep(te))==null?void 0:b.map(p=>(p!=null&&p.value&&ge.IsJson(p==null?void 0:p.value)&&Array.isArray(JSON.parse(p==null?void 0:p.value))&&(p.value=JSON.parse(p.value)),p));let G=[],K=[];if((z=l.cloneDeep(U.value))==null||z.forEach(p=>{var ce;Array.isArray(p==null?void 0:p.value)&&((ce=p==null?void 0:p.value)!=null&&ce.find(le=>{var a;return(a=le==null?void 0:le.url)==null?void 0:a.includes(".obj")}))&&(K=p==null?void 0:p.value)}),(K==null?void 0:K.length)>0){const p=(_=l.cloneDeep(K))==null?void 0:_.filter(ce=>{var le;return(le=ce==null?void 0:ce.url)==null?void 0:le.includes(".obj")});p==null||p.forEach(ce=>{var a,i,f,A;const le=(a=K==null?void 0:K.filter(S=>{var Z;return(S==null?void 0:S.name)===(ce==null?void 0:ce.name)&&((Z=S==null?void 0:S.url)==null?void 0:Z.includes(".mtl"))}))==null?void 0:a.map(S=>S==null?void 0:S.url);G.push({objUrl:ce==null?void 0:ce.url,mtlUrls:((i=K==null?void 0:K.filter(S=>{var Z;return(S==null?void 0:S.name)===(ce==null?void 0:ce.name)&&((Z=S==null?void 0:S.url)==null?void 0:Z.includes(".mtl"))}))==null?void 0:i.length)===1?(A=(f=K==null?void 0:K.filter(S=>{var Z;return(S==null?void 0:S.name)===(ce==null?void 0:ce.name)&&((Z=S==null?void 0:S.url)==null?void 0:Z.includes(".mtl"))}))==null?void 0:f[0])==null?void 0:A.url:le})}),P.setObjUrl(G)}(F=l.cloneDeep(U.value))==null||F.forEach(p=>{var ce,le,a,i,f,A,S,Z,ve,ne,se,ie,me;if((le=(ce=p==null?void 0:p.value)==null?void 0:ce.toString())!=null&&le.includes(".stl")||(i=(a=p==null?void 0:p.value)==null?void 0:a.toString())!=null&&i.includes(".STL")||(A=(f=p==null?void 0:p.value)==null?void 0:f.toString())!=null&&A.includes(".obj")||(Z=(S=p==null?void 0:p.value)==null?void 0:S.toString())!=null&&Z.includes(".mtl")||(ne=(ve=p==null?void 0:p.value)==null?void 0:ve.toString())!=null&&ne.includes(".urdf")){let be={},ae=[],fe;Array.isArray(p==null?void 0:p.value)?fe=p==null?void 0:p.value:fe=(se=p==null?void 0:p.value)==null?void 0:se.split(","),fe==null||fe.forEach(De=>{De.includes(".mtl")?ae.push(De):be.blob=be.blob==="undefined"?De:be.blob+","+De}),(ae==null?void 0:ae.length)>0&&(be.mtlBlobs=ae),(me=(ie=Object.values(be))==null?void 0:ie[0])!=null&&me.includes("http:")}})}else U.value=[];if(((j=J==null?void 0:J.contents)==null?void 0:j.length)>0){const w=[];(I=J==null?void 0:J.contents)==null||I.forEach((te,g)=>{(te==null?void 0:te.label)!==""&&w.push({label:(te==null?void 0:te.label)??"",id:(te==null?void 0:te.id)??g,type:(te==null?void 0:te.type)??"",background:te==null?void 0:te.background})}),ee.value=w}else ee.value=[]},{deep:!0,immediate:!0}),(X,J)=>{const B=e.resolveComponent("ss-dialog");return e.openBlock(),e.createElementBlock("div",Ca,[e.createVNode(Ce.ssForm,{rowContents:U.value,formRules:c.formRules,buttonValue:ee.value,isRowFlex:!1,isEnableWrap:Y.value,onOnButtonClick:de,onChange:O,isButtonRow:q.value,onPreview:x,onBlurChange:k},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isButtonRow"]),M.value?(e.openBlock(),e.createBlock(Ce.ssFilePreview,{key:0,fileDataList:L.value,onDestroy:re},null,8,["fileDataList"])):e.createCommentVNode("",!0),e.createVNode(B,{visible:t.value,onBeforeDestroy:N,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createBlock(wa,{key:0,"urdf-url":r.value},null,8,["urdf-url"])):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}}},u2=Ve._export_sfc(_a,[["__scopeId","data-v-95debf8a"]]),_l=e.ref(0),h2=c=>{var d;return!c||(c==null?void 0:c.length)===0?[]:(d=l.cloneDeep(c))==null?void 0:d.map(o=>(_l.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??_l.value,children:h2(o==null?void 0:o.children)},o))},Aa=c=>{var t;return(t=l.cloneDeep(c))==null?void 0:t.map(o=>(_l.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??_l.value,children:h2(o==null?void 0:o.children)},o))},f2=(c,d)=>{var t;return c!=null&&c.find(o=>(o==null?void 0:o.id)===d)?(t=l.cloneDeep(c))==null?void 0:t.filter(r=>(r==null?void 0:r.id)!==d):(c=c==null?void 0:c.map(o=>(o.children=f2(o==null?void 0:o.children,d),o)),c)},m2=(c,d)=>{var t;return c!=null&&c.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(c))==null?void 0:t.map(r=>((r==null?void 0:r.id)===(d==null?void 0:d.id)&&(r=d),r)):(c=c==null?void 0:c.map(o=>(o.children=m2(o==null?void 0:o.children,d),o)),c)},v2=(c,d)=>{var t;return c!=null&&c.find(o=>{var r;return(o==null?void 0:o.id)===((r=d==null?void 0:d.contents)==null?void 0:r.id)})?(t=l.cloneDeep(c))==null?void 0:t.map(r=>{var N;return(r==null?void 0:r.id)===((N=d==null?void 0:d.contents)==null?void 0:N.id)&&(r=d==null?void 0:d.contents),r}):(c=c==null?void 0:c.map(o=>(o.children=v2(o==null?void 0:o.children,d),o)),c)},y2=(c,d)=>{var t;return c!=null&&c.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(c))==null?void 0:t.map(r=>((r==null?void 0:r.id)===(d==null?void 0:d.id)&&(r!=null&&r.children||(r.children=[]),r.children.push(d.contents)),r)):(c=c==null?void 0:c.map(o=>(o.children=y2(o==null?void 0:o.children,d),o)),c)},_e=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],xa=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],Ba=[{label:"新增",value:"add"}],We=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ba},{key:"background",label:"按钮背景色",type:"Color"}],qe=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:xa},{key:"textColor",label:"按钮颜色",type:"Color"}],Va={class:"table-header-child"},Ea={class:"table-header-child-main"},Ma={class:"table-header-child-content"},za={class:"table-header-child-content-item"},Fa={class:"fix-button"},Na={key:0},Sa={class:"form-content"},Ta={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(c,{emit:d}){const t=c,o=d,r=e.ref(!1),N=e.ref(""),$=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs($);e.ref(0);const U=e.ref(""),q=e.ref([]),M=e.ref([]),ee=u=>{var k;r.value=!0;let y=[];_e==null||_e.forEach(x=>{let re=l.cloneDeep(m.value)+1;$.setTableIndex(re),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:u[x.key],id:m.value,contents:x==null?void 0:x.options})}),u!=null&&u.children&&((k=u==null?void 0:u.children)==null?void 0:k.length)>0&&y.push({children:u==null?void 0:u.children,isFormColHidden:!0}),U.value=u==null?void 0:u.id,q.value=y,M.value=y},L=u=>{o("fixChange",l.cloneDeep(u))},E=u=>{o("deleteChange",l.cloneDeep(u))},P=u=>{r.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;$.setTableIndex(x),y.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:"",id:m.value,contents:k==null?void 0:k.options})}),N.value=u==null?void 0:u.id,q.value=y,M.value=y},Y=u=>{let y=l.cloneDeep(M.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=u==null?void 0:u[k.name]),k)),M.value=y},s=()=>{var y,k;q.value=M.value;let u={};if(U.value!=="")u.id=U.value,(y=q.value)==null||y.forEach(x=>{const re=_e==null?void 0:_e.find(de=>(de==null?void 0:de.label)===(x==null?void 0:x.label));re?u[re.key]=x.value:x!=null&&x.children&&x.children.length>0&&(u.children=x.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(u),id:N.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;$.setTableIndex(x),u.id="id"+m.value,(k=q.value)==null||k.forEach(re=>{const de=_e==null?void 0:_e.find(O=>(O==null?void 0:O.label)===(re==null?void 0:re.label));de?u[de.key]=re.value:re!=null&&re.children&&re.children.length>0&&(u.children=re.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(u),id:N.value,type:"add"})}U.value="",q.value=[],M.value=[]},v=()=>{r.value=!1,U.value="",N.value="",q.value=[],M.value=[]},H=u=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",u),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(u,y)=>{const k=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Va,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(x,re)=>(e.openBlock(),e.createElementBlock("div",Ea,[e.createElementVNode("div",Ma,[e.createElementVNode("div",za,e.toDisplayString(x.label),1),e.createElementVNode("div",Fa,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:de=>P(x)},null,8,["onClick"]),e.createVNode(k,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:de=>ee(x)},null,8,["onClick"]),e.createVNode(k,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:de=>H(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(e.openBlock(),e.createElementBlock("div",Na,[e.createVNode(g2,{tableChildContents:x==null?void 0:x.children,onDeleteChange:E,onFixChange:L},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ce.ssDialog,{visible:r.value,onBeforeDestroy:v,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Sa,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:Y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:v,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:s},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Ia=Ve._export_sfc(Ta,[["__scopeId","data-v-e0fef72d"]]),La={class:"table-header-child"},$a={class:"table-header-child-main"},Pa={class:"table-header-child-content"},Oa={class:"table-header-child-content-item"},Ra={class:"fix-button"},Ua={key:0},Ha={class:"form-content"},ja={class:"dialog-footer"},Ja={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(c,{emit:d}){const t=c,o=d,r=e.ref(!1),N=e.ref(""),$=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs($),U=e.ref(""),q=e.ref([]),M=e.ref([]),ee=u=>{o("fixChange",l.cloneDeep(u))},L=u=>{var k;r.value=!0;let y=[];_e==null||_e.forEach(x=>{let re=l.cloneDeep(m.value)+1;$.setTableIndex(re),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:u[x.key],id:m.value,contents:x==null?void 0:x.options})}),u!=null&&u.children&&((k=u==null?void 0:u.children)==null?void 0:k.length)>0&&y.push({children:u==null?void 0:u.children,isFormColHidden:!0}),U.value=u==null?void 0:u.id,q.value=y,M.value=y},E=u=>{r.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;$.setTableIndex(x),y.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:"",id:m.value,contents:k==null?void 0:k.options})}),N.value=u==null?void 0:u.id,q.value=y,M.value=y},P=u=>{let y=l.cloneDeep(M.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=u==null?void 0:u[k.name]),k)),M.value=y},Y=()=>{var y,k;q.value=M.value;let u={};if(U.value!=="")u.id=U.value,(y=q.value)==null||y.forEach(x=>{const re=_e==null?void 0:_e.find(de=>(de==null?void 0:de.label)===(x==null?void 0:x.label));re?u[re.key]=x.value:x!=null&&x.children&&x.children.length>0&&(u.children=x.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(u),id:N.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;$.setTableIndex(x),u.id="idChild"+m.value,(k=q.value)==null||k.forEach(re=>{const de=_e==null?void 0:_e.find(O=>(O==null?void 0:O.label)===(re==null?void 0:re.label));de?u[de.key]=re.value:re!=null&&re.children&&re.children.length>0&&(u.children=re.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(u),id:N.value,type:"add"})}U.value="",q.value=[],M.value=[]},s=()=>{r.value=!1,U.value="",N.value="",q.value=[],M.value=[]},v=u=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",u),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},H=u=>{o("deleteChange",u)};return(u,y)=>{const k=e.resolveComponent("svg-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",La,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(re,de)=>(e.openBlock(),e.createElementBlock("div",$a,[e.createElementVNode("div",Pa,[e.createElementVNode("div",Oa,e.toDisplayString(re.label),1),e.createElementVNode("div",Ra,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>E(re)},null,8,["onClick"]),e.createVNode(k,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>L(re)},null,8,["onClick"]),e.createVNode(k,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>v(re)},null,8,["onClick"])])]),re!=null&&re.children&&re.children.length>0?(e.openBlock(),e.createElementBlock("div",Ua,[e.createVNode(Ia,{tableChildContents:re==null?void 0:re.children,onDeleteChange:H,onFixChange:ee},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ce.ssDialog,{visible:r.value,onBeforeDestroy:s,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ha,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:P},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",ja,[e.createVNode(x,{onClick:s,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>y[0]||(y[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(x,{class:"ok-button button",onClick:Y,id:"themeButton"},{default:e.withCtx(()=>y[1]||(y[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},g2=Ve._export_sfc(Ja,[["__scopeId","data-v-ebd68fa1"]]),Ka={class:"table-operate-content"},Ga={class:"table-operate-item"},Wa={class:"operate-title"},qa={class:"operate-content"},Xa={class:"fix-content"},Ya={class:"fix-content-label"},Za={class:"fix-button"},Qa={key:0},e1={class:"operate-title"},l1={class:"operate-content"},a1={class:"fix-content"},o1={class:"fix-content-label"},t1={class:"fix-button"},n1={class:"operate-title"},s1={class:"operate-content"},i1={class:"fix-content"},r1={class:"fix-content-label"},c1={class:"fix-button"},u1={class:"operate-title"},p1={class:"operate-content"},d1={class:"fix-content"},h1={class:"fix-content-label"},f1={class:"fix-button"},m1={class:"operate-content"},v1={style:{display:"flex","justify-content":"space-between"}},y1={class:"form-content"},g1={class:"dialog-footer"},b1={class:"form-content"},D1={class:"dialog-footer"},k1={class:"form-content"},w1={class:"dialog-footer"},C1={class:"form-content"},_1={class:"dialog-footer"},A1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.ref([]),N=e.ref(!1),$=e.ref(!1),m=e.ref([]),U=e.ref(!1),q=e.ref([]),M=e.ref(!1),ee=e.ref([]),L=e.ref(""),E=e.ref(""),P=e.ref([]),Y=e.ref([]),s=e.ref([]),v=e.ref([]),H=e.ref(!1),u=e.ref([]),y=e.ref([]),k=e.ref(0),x=e.ref([]),re=e.ref([]),de=e.ref([]),O=()=>{H.value=!0;let a=[];We==null||We.forEach(i=>{k.value++,a.push({label:i==null?void 0:i.label,name:i==null?void 0:i.label,type:i.type,value:(i==null?void 0:i.key)==="background"?"var(--ssComponent-primary-color)":"",id:k.value,contents:i==null?void 0:i.options})}),u.value=a,y.value=a},X=()=>{var i,f,A;$.value=!0;let a=[];(A=(f=(i=ge.FormContent)==null?void 0:i.find(S=>(S==null?void 0:S.key)==="Input"))==null?void 0:f.value)==null||A.forEach(S=>{k.value++,a.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:(S==null?void 0:S.label)==="类型"?"Input":"",id:k.value,contents:S==null?void 0:S.options})}),x.value=a,re.value=a},J=a=>{a||(x.value=re.value)},B=async a=>{var i,f,A,S,Z,ve,ne,se,ie,me,be,ae;if((a==null?void 0:a.类型)!==((f=(i=re.value)==null?void 0:i.find(fe=>(fe==null?void 0:fe.label)==="类型"))==null?void 0:f.value)){let fe=[],De=await((Z=(S=(A=ge.FormContent)==null?void 0:A.find(ye=>(ye==null?void 0:ye.key)===((a==null?void 0:a.类型)===""?"Input":a==null?void 0:a.类型)))==null?void 0:S.value)==null?void 0:Z.value)?await((me=(ie=(se=ge.FormContent)==null?void 0:se.find(ye=>(ye==null?void 0:ye.key)===((a==null?void 0:a.类型)===""?"Input":a==null?void 0:a.类型)))==null?void 0:ie.value)==null?void 0:me.value):(ne=(ve=ge.FormContent)==null?void 0:ve.find(ye=>(ye==null?void 0:ye.key)===((a==null?void 0:a.类型)===""?"Input":a==null?void 0:a.类型)))==null?void 0:ne.value;if(De==null||De.forEach(ye=>{k.value++,fe.push({label:ye==null?void 0:ye.label,name:ye==null?void 0:ye.label,type:ye.type,value:(a==null?void 0:a[ye.label])??"",id:k.value,contents:ye==null?void 0:ye.options})}),a!=null&&a.菜单选项&&((be=a==null?void 0:a.菜单选项)==null?void 0:be.length)>0){const ye=await ge.menuToContentType(a==null?void 0:a.菜单选项);fe=fe==null?void 0:fe.map(ke=>((ke==null?void 0:ke.name)==="组信息选项"&&(ke.contents=ye),ke))}re.value=await ge.selectToBase(l.cloneDeep(fe)),x.value=await ge.selectToBase(l.cloneDeep(fe))}else{let fe=l.cloneDeep(x.value);if(fe=fe==null?void 0:fe.map(De=>(De.value=a==null?void 0:a[De.name],De)),a!=null&&a.菜单选项&&((ae=a==null?void 0:a.菜单选项)==null?void 0:ae.length)>0){const De=await ge.menuToContentType(a==null?void 0:a.菜单选项);fe=fe==null?void 0:fe.map(ye=>((ye==null?void 0:ye.name)==="组信息选项"&&(ye.contents=De),ye))}fe=ge.formToOptionsContents(fe),re.value=await ge.selectToBase(l.cloneDeep(fe))}},n=async a=>{await B(a),x.value=re.value},R=async a=>{var A,S,Z,ve,ne,se,ie,me,be;$.value=!0;let i=[];const f=await((Z=(S=(A=ge.FormContent)==null?void 0:A.find(ae=>(ae==null?void 0:ae.key)===((a==null?void 0:a.type)===""?"Input":a==null?void 0:a.type)))==null?void 0:S.value)==null?void 0:Z.value)?await((me=(ie=(se=ge.FormContent)==null?void 0:se.find(ae=>(ae==null?void 0:ae.key)===((a==null?void 0:a.type)===""?"Input":a==null?void 0:a.type)))==null?void 0:ie.value)==null?void 0:me.value):(ne=(ve=ge.FormContent)==null?void 0:ve.find(ae=>(ae==null?void 0:ae.key)===((a==null?void 0:a.type)===""?"Input":a==null?void 0:a.type)))==null?void 0:ne.value;if(f==null||f.forEach(ae=>{k.value++,i.push({label:ae==null?void 0:ae.label,name:ae==null?void 0:ae.label,type:ae.type,value:(ae==null?void 0:ae.label)==="类型"&&a[ae.key]===""?"Input":a[ae.key],id:k.value,contents:ae==null?void 0:ae.options})}),a!=null&&a.menuSelect&&((be=a==null?void 0:a.menuSelect)==null?void 0:be.length)>0){const ae=await ge.menuToContentType(a==null?void 0:a.menuSelect);i=i==null?void 0:i.map(fe=>((fe==null?void 0:fe.name)==="组信息选项"&&(fe.contents=ae),fe))}L.value=a==null?void 0:a.id,x.value=await ge.selectToBase(ge.formToOptionsContents(i)),re.value=await ge.selectToBase(ge.formToOptionsContents(i))},Q=a=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var i,f;de.value=(i=l.cloneDeep(de.value))==null?void 0:i.filter(A=>(A==null?void 0:A.id)!==(a==null?void 0:a.id)),o("change",(f=l.cloneDeep(t.originalItemContents))==null?void 0:f.map(A=>((A==null?void 0:A.key)==="tableToForm"&&(A.contents=de.value),A))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},C=()=>{$.value=!1,x.value=[],L.value=""},oe=async()=>{var A,S,Z,ve,ne,se,ie,me,be,ae;x.value=re.value;let a={};L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value);let i=await((Z=(S=(A=ge.FormContent)==null?void 0:A.find(fe=>{var De,ye;return(fe==null?void 0:fe.key)===(((ye=(De=x.value)==null?void 0:De.find(ke=>(ke==null?void 0:ke.label)==="类型"))==null?void 0:ye.value)??"label")}))==null?void 0:S.value)==null?void 0:Z.value)??((ne=(ve=ge.FormContent)==null?void 0:ve.find(fe=>{var De,ye;return(fe==null?void 0:fe.key)===(((ye=(De=x.value)==null?void 0:De.find(ke=>(ke==null?void 0:ke.label)==="类型"))==null?void 0:ye.value)??"label")}))==null?void 0:ne.value);if((se=x.value)==null||se.forEach(fe=>{const De=i==null?void 0:i.find(ye=>(ye==null?void 0:ye.label)===(fe==null?void 0:fe.label));De&&(a[De.key]=fe.value)}),a.name=a.label,(ie=de.value)!=null&&ie.find(fe=>fe.id===a.id))de.value=(me=de.value)==null?void 0:me.map(fe=>(fe.id===a.id&&(fe=a),fe));else{let fe=l.cloneDeep(de.value);de.value||(de.value=[]),fe.push(a),de.value=fe}de.value=de.value.map(({id:fe,...De})=>De),$.value=!1,L.value="";let f=l.cloneDeep(t.originalItemContents);(be=l.cloneDeep(t.originalItemContents))!=null&&be.find(fe=>(fe==null?void 0:fe.key)==="tableToForm")?f=(ae=l.cloneDeep(t.originalItemContents))==null?void 0:ae.map(fe=>((fe==null?void 0:fe.key)==="tableToForm"&&(fe.contents=de.value),fe)):f.push({key:"tableToForm",contents:de.value}),o("change",f)},pe=a=>{H.value=!0;let i=[];We==null||We.forEach(f=>{k.value++,i.push({label:f==null?void 0:f.label,name:f==null?void 0:f.label,type:f.type,value:a[f.key],id:k.value,contents:f==null?void 0:f.options})}),L.value=a==null?void 0:a.id,u.value=i,y.value=i};e.watch(()=>M.value,()=>{var i,f;let a=l.cloneDeep(t.originalItemContents);(i=l.cloneDeep(t.originalItemContents))!=null&&i.find(A=>(A==null?void 0:A.key)==="page")?a=(f=l.cloneDeep(t.originalItemContents))==null?void 0:f.map(A=>((A==null?void 0:A.key)==="page"&&(A.contents=M.value),A)):a.push({key:"page",contents:M.value}),o("change",a)},{deep:!0});const he=a=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var i,f;Y.value=(i=l.cloneDeep(Y.value))==null?void 0:i.filter(A=>(A==null?void 0:A.id)!==(a==null?void 0:a.id)),o("change",(f=l.cloneDeep(t.originalItemContents))==null?void 0:f.map(A=>((A==null?void 0:A.key)==="extraButton"&&(A.contents=Y.value),A))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},h=()=>{var f,A,S,Z,ve;u.value=y.value;let a={};if(L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value),(f=u.value)==null||f.forEach(ne=>{const se=We==null?void 0:We.find(ie=>(ie==null?void 0:ie.label)===(ne==null?void 0:ne.label));se?a[se.key]=ne.value:ne!=null&&ne.children&&ne.children.length>0&&(a.children=ne.children)}),(A=Y.value)!=null&&A.find(ne=>ne.id===a.id))Y.value=(S=Y.value)==null?void 0:S.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(Y.value)??[];ne.push(a),Y.value=ne}H.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Z=l.cloneDeep(t.originalItemContents))!=null&&Z.find(ne=>(ne==null?void 0:ne.key)==="extraButton")?i=(ve=l.cloneDeep(t.originalItemContents))==null?void 0:ve.map(ne=>((ne==null?void 0:ne.key)==="extraButton"&&(ne.contents=Y.value),ne)):i.push({key:"extraButton",contents:Y.value}),o("change",i)},T=a=>{let i=l.cloneDeep(y.value);i=i==null?void 0:i.map(f=>(f.children||(f.value=a==null?void 0:a[f.name]),f)),y.value=i},D=()=>{H.value=!1,u.value=[],L.value=""},b=a=>{U.value=!0;let i=[];qe==null||qe.forEach(f=>{k.value++,i.push({label:f==null?void 0:f.label,name:f==null?void 0:f.label,type:f.type,value:a[f.key],id:k.value,contents:f==null?void 0:f.options})}),L.value=a==null?void 0:a.id,s.value=i,v.value=i},z=a=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var i,f;P.value=(i=l.cloneDeep(P.value))==null?void 0:i.filter(A=>(A==null?void 0:A.id)!==(a==null?void 0:a.id)),o("change",(f=l.cloneDeep(t.originalItemContents))==null?void 0:f.map(A=>((A==null?void 0:A.key)==="rowButton"&&(A.contents=P.value),A))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>{N.value=!0;let a=[];_e==null||_e.forEach(i=>{k.value++,a.push({label:i==null?void 0:i.label,name:i==null?void 0:i.label,type:i.type,value:"",id:k.value,contents:i==null?void 0:i.options})}),q.value=a,ee.value=a},F=()=>{U.value=!0;let a=[];qe==null||qe.forEach(i=>{k.value++,a.push({label:i==null?void 0:i.label,name:i==null?void 0:i.label,type:i.type,value:"",id:k.value,contents:i==null?void 0:i.options})}),s.value=a,v.value=a},j=a=>{let i=l.cloneDeep(v.value);i=i==null?void 0:i.map(f=>(f.children||(f.value=a==null?void 0:a[f.name]),f)),v.value=i},I=()=>{var f,A,S,Z,ve;s.value=v.value;let a={};if(L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value),(f=s.value)==null||f.forEach(ne=>{const se=qe==null?void 0:qe.find(ie=>(ie==null?void 0:ie.label)===(ne==null?void 0:ne.label));se?a[se.key]=ne.value:ne!=null&&ne.children&&ne.children.length>0&&(a.children=ne.children)}),(A=P.value)!=null&&A.find(ne=>ne.id===a.id))P.value=(S=P.value)==null?void 0:S.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(P.value);ne.push(a),P.value=ne}U.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Z=l.cloneDeep(t.originalItemContents))!=null&&Z.find(ne=>(ne==null?void 0:ne.key)==="rowButton")?i=(ve=l.cloneDeep(t.originalItemContents))==null?void 0:ve.map(ne=>((ne==null?void 0:ne.key)==="rowButton"&&(ne.contents=P.value),ne)):i.push({key:"rowButton",contents:P.value}),o("change",i)},w=()=>{U.value=!1,L.value="",v.value=[],s.value=[]},te=a=>{N.value=!0;let i=[];_e==null||_e.forEach(f=>{k.value++,i.push({label:f==null?void 0:f.label,name:f==null?void 0:f.label,type:f.type,value:"",id:k.value,contents:f==null?void 0:f.options})}),q.value=i,E.value=a==null?void 0:a.id,ee.value=i},g=a=>{var i;m.value=f2(l.cloneDeep(m.value),a==null?void 0:a.id),o("change",(i=l.cloneDeep(t.originalItemContents))==null?void 0:i.map(f=>{var A;return(f==null?void 0:f.key)==="header"&&(f.contents=(A=m.value)!=null&&A.some(S=>S==null?void 0:S.children)?[m.value]:m.value),f}))},V=a=>{var f,A,S;a.type==="fix"?a.id!==""?m.value=v2(m.value,a):m.value=m2(m.value,a==null?void 0:a.contents):m.value=y2(m.value,a),m.value=(f=m.value)!=null&&f.some(Z=>Z==null?void 0:Z.children)?[m.value]:m.value,L.value="";let i=l.cloneDeep(t.originalItemContents);(A=l.cloneDeep(t.originalItemContents))!=null&&A.find(Z=>(Z==null?void 0:Z.key)==="header")?i=(S=l.cloneDeep(t.originalItemContents))==null?void 0:S.map(Z=>((Z==null?void 0:Z.key)==="header"&&(Z.contents=m.value),Z)):i.push({key:"header",contents:m.value}),o("change",i)},G=a=>{var f;N.value=!0;let i=[];_e==null||_e.forEach(A=>{k.value++,i.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:a[A.key],id:k.value,contents:A==null?void 0:A.options})}),a!=null&&a.children&&((f=a==null?void 0:a.children)==null?void 0:f.length)>0&&i.push({children:a==null?void 0:a.children,isFormColHidden:!0}),L.value=a==null?void 0:a.id,E.value="",q.value=i,ee.value=i},K=a=>{let i=l.cloneDeep(ee.value);i=i==null?void 0:i.map(f=>(f.children||(f.value=a==null?void 0:a[f.name]),f)),ee.value=i},p=()=>{N.value=!1,L.value="",E.value="",ee.value=[]},ce=()=>{var f,A,S,Z,ve,ne;q.value=ee.value;let a={};if(L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value),(f=q.value)==null||f.forEach(se=>{const ie=_e==null?void 0:_e.find(me=>(me==null?void 0:me.label)===(se==null?void 0:se.label));ie?a[ie.key]=se.value:se!=null&&se.children&&se.children.length>0&&(a.children=se.children)}),(A=m.value)!=null&&A.find(se=>se.id===a.id))m.value=(S=m.value)==null?void 0:S.map(se=>(se.id===a.id&&(se=a),se));else{let se=l.cloneDeep(m.value)??[];E.value===""?se.push(a):se=se==null?void 0:se.map(ie=>(ie.id===E.value&&(ie.children||(ie.children=[]),ie.children.push(a)),ie)),m.value=se}m.value=(Z=m.value)!=null&&Z.some(se=>se==null?void 0:se.children)?[m.value]:m.value,N.value=!1,L.value="",E.value="";let i=l.cloneDeep(t.originalItemContents);(ve=l.cloneDeep(t.originalItemContents))!=null&&ve.find(se=>(se==null?void 0:se.key)==="header")?i=(ne=l.cloneDeep(t.originalItemContents))==null?void 0:ne.map(se=>((se==null?void 0:se.key)==="header"&&(se.contents=m.value),se)):i.push({key:"header",contents:m.value}),o("change",i)},le=a=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var i,f;m.value=(i=l.cloneDeep(m.value))==null?void 0:i.filter(A=>(A==null?void 0:A.id)!==(a==null?void 0:a.id)),o("change",(f=l.cloneDeep(t.originalItemContents))==null?void 0:f.map(A=>{var S;return(A==null?void 0:A.key)==="header"&&(A.contents=(S=m.value)!=null&&S.some(Z=>Z==null?void 0:Z.children)?[m.value]:m.value),A})),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>t.originalItemContents,()=>{var a,i,f,A,S,Z,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne;if(!(!t.originalItemContents||t.originalItemContents.length===0))if(r.value=l.cloneDeep(t.originalItemContents),m.value=(i=(a=r.value)==null?void 0:a.find(ue=>(ue==null?void 0:ue.key)==="header"))==null?void 0:i.contents,P.value=(A=(f=r.value)==null?void 0:f.find(ue=>(ue==null?void 0:ue.key)==="rowButton"))==null?void 0:A.contents,Y.value=(Z=(S=r.value)==null?void 0:S.find(ue=>(ue==null?void 0:ue.key)==="extraButton"))==null?void 0:Z.contents,M.value=(ne=(ve=r.value)==null?void 0:ve.find(ue=>(ue==null?void 0:ue.key)==="page"))!=null&&ne.contents?!!((ie=(se=r.value)==null?void 0:se.find(ue=>(ue==null?void 0:ue.key)==="page"))!=null&&ie.contents):!1,de.value=(be=(me=r.value)==null?void 0:me.find(ue=>(ue==null?void 0:ue.key)==="tableToForm"))==null?void 0:be.contents,m.value=(ae=m.value)==null?void 0:ae.map((ue,Ee)=>(Array.isArray(ue)?ue=Aa(ue):ue={label:(ue==null?void 0:ue.label)??"",prop:(ue==null?void 0:ue.label)==="操作"?"operate":ue==null?void 0:ue.prop,width:ue!=null&&ue.width?parseInt(ue.width):"",fixed:(ue==null?void 0:ue.fixed)??void 0,sortable:(ue==null?void 0:ue.sortable)??!1,align:(ue==null?void 0:ue.align)??"left",showOverflowTooltip:(ue==null?void 0:ue.showOverflowTooltip)??!0,isNotDrag:(ue==null?void 0:ue.isNotDrag)??!1,isEditCol:(ue==null?void 0:ue.isEditCol)??!1,isOperate:(ue==null?void 0:ue.isOperate)??!1,id:(ue==null?void 0:ue.id)??Ee},ue)),m.value=(fe=m.value)!=null&&fe.every(ue=>Array.isArray(ue))?(De=m.value)==null?void 0:De[0]:m.value,P.value=(ye=P.value)==null?void 0:ye.map((ue,Ee)=>ue={label:(ue==null?void 0:ue.label)??"",type:(ue==null?void 0:ue.type)??"",textColor:(ue==null?void 0:ue.textColor)??"#000000",id:(ue==null?void 0:ue.id)??Ee}),Y.value=(ke=Y.value)==null?void 0:ke.map((ue,Ee)=>ue={label:(ue==null?void 0:ue.label)??"",type:(ue==null?void 0:ue.type)??"",background:(ue==null?void 0:ue.background)??"var(--ssComponent-primary-color)",id:(ue==null?void 0:ue.id)??Ee}),de.value)de.value=(Ne=de.value)==null?void 0:Ne.map(ue=>{k.value++;let Ee=ue;return Ee.id=k.value,Ee});else{let ue=[];const Ee=(xe=ge.getColumnChild(l.cloneDeep(m.value)))==null?void 0:xe.filter(Be=>(Be==null?void 0:Be.prop)!=="operate");Ee==null||Ee.forEach(Be=>{k.value++,ue.push({label:Be==null?void 0:Be.label,name:Be==null?void 0:Be.label,type:"Input",value:"",id:k.value,contents:Be==null?void 0:Be.options})}),de.value=ue}},{deep:!0,immediate:!0}),(a,i)=>{const f=e.resolveComponent("svg-icon"),A=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Ka,[e.createElementVNode("div",Ga,[e.createElementVNode("div",Wa,[i[2]||(i[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(A,{class:"icon-content",onClick:_,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(f,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[i[1]||(i[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(S,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",Xa,[e.createElementVNode("div",Ya,e.toDisplayString(S==null?void 0:S.label),1),e.createElementVNode("div",Za,[e.createVNode(f,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>te(S)},null,8,["onClick"]),e.createVNode(f,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>G(S)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>le(S)},null,8,["onClick"])])]),S!=null&&S.children&&S.children.length>0?(e.openBlock(),e.createElementBlock("div",Qa,[e.createVNode(g2,{tableChildContents:S==null?void 0:S.children,onDeleteChange:g,onFixChange:V},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",e1,[i[4]||(i[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(A,{class:"icon-content",id:"themeButton",onClick:F},{icon:e.withCtx(()=>[e.createVNode(f,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[i[3]||(i[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",l1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(S,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",a1,[e.createElementVNode("div",o1,e.toDisplayString(S==null?void 0:S.label),1),e.createElementVNode("div",t1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>b(S)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>z(S)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",n1,[i[6]||(i[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(A,{class:"icon-content",id:"themeButton",onClick:O},{icon:e.withCtx(()=>[e.createVNode(f,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[i[5]||(i[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",s1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(S,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",i1,[e.createElementVNode("div",r1,e.toDisplayString(S==null?void 0:S.label),1),e.createElementVNode("div",c1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>pe(S)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>he(S)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",u1,[i[8]||(i[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(A,{class:"icon-content",id:"themeButton",onClick:X},{icon:e.withCtx(()=>[e.createVNode(f,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[i[7]||(i[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",p1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de.value,(S,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",d1,[e.createElementVNode("div",h1,e.toDisplayString(S==null?void 0:S.label),1),e.createElementVNode("div",f1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>R(S)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>Q(S)},null,8,["onClick"])])])]))),128))]),i[10]||(i[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",m1,[e.createElementVNode("div",v1,[i[9]||(i[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:M.value,"onUpdate:modelValue":i[0]||(i[0]=S=>M.value=S)},null,8,["modelValue"])])])]),e.createVNode(Ce.ssDialog,{visible:N.value,onBeforeDestroy:p,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",y1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:K},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",g1,[e.createVNode(A,{onClick:p,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>i[11]||(i[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(A,{class:"ok-button button",onClick:ce,id:"themeButton"},{default:e.withCtx(()=>i[12]||(i[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Ce.ssDialog,{visible:U.value,onBeforeDestroy:w,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",b1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:j},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",D1,[e.createVNode(A,{onClick:w,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>i[13]||(i[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(A,{class:"ok-button button",onClick:I,id:"themeButton"},{default:e.withCtx(()=>i[14]||(i[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Ce.ssDialog,{visible:H.value,onBeforeDestroy:D,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",k1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:T},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",w1,[e.createVNode(A,{onClick:D,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>i[15]||(i[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(A,{class:"ok-button button",onClick:h,id:"themeButton"},{default:e.withCtx(()=>i[16]||(i[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Ce.ssDialog,{visible:$.value,onBeforeDestroy:C,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",C1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:B,onChangeVisible:J,onBlurChange:n},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",_1,[e.createVNode(A,{onClick:C,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>i[17]||(i[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(A,{class:"ok-button button",onClick:oe,id:"themeButton"},{default:e.withCtx(()=>i[18]||(i[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},x1=Ve._export_sfc(A1,[["__scopeId","data-v-cd424fc8"]]),B1={class:"form-operate-content"},V1={class:"form-operate-item"},E1={class:"operate-title"},M1={class:"operate-content"},z1={class:"fix-content"},F1={class:"fix-button"},N1={class:"operate-title"},S1={class:"operate-content"},T1={class:"fix-content"},I1={class:"fix-button"},L1={style:{display:"flex","justify-content":"space-between"}},$1={class:"form-content"},P1={class:"dialog-footer"},O1={class:"form-content"},R1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.ref(!1),N=e.ref([]),$=e.ref([]),m=e.ref(!1),U=e.ref([]),q=e.ref([]),M=e.ref(""),ee=e.ref(!1),L=e.ref(0),E=e.ref([]),P=e.ref([]),Y=(n,R)=>(console.log(345,n),(n==null?void 0:n.label)==="类型"&&R[n.key]===""?"Input":(n==null?void 0:n.key)==="isFormColHidden"&&!R[n.key]?!1:R[n.key]),s=async n=>{var C,oe,pe,he,h,T;r.value=!0;let R=[];const Q=await((pe=(oe=(C=ge.FormContent)==null?void 0:C.find(D=>(D==null?void 0:D.key)===((n==null?void 0:n.type)===""?"Input":n==null?void 0:n.type)))==null?void 0:oe.value)==null?void 0:pe.value)??((h=(he=ge.FormContent)==null?void 0:he.find(D=>(D==null?void 0:D.key)===((n==null?void 0:n.type)===""?"Input":n==null?void 0:n.type)))==null?void 0:h.value);if(Q==null||Q.forEach(D=>{L.value++,R.push({label:D==null?void 0:D.label,name:D==null?void 0:D.label,type:D.type,value:Y(D,n),id:L.value,contents:D==null?void 0:D.options,width:(n==null?void 0:n.width)??1})}),n!=null&&n.menuSelect&&((T=n==null?void 0:n.menuSelect)==null?void 0:T.length)>0){const D=await ge.menuToContentType(n==null?void 0:n.menuSelect);R=R==null?void 0:R.map(b=>((b==null?void 0:b.name)==="组信息选项"&&(b.contents=D),b))}M.value=n==null?void 0:n.id,N.value=await ge.selectToBase(ge.formToOptionsContents(R)),$.value=await ge.selectToBase(ge.formToOptionsContents(R))},v=n=>{var Q;m.value=!0;let R=[];(Q=ge.FormButton)==null||Q.forEach(C=>{L.value++,R.push({label:C==null?void 0:C.label,name:C==null?void 0:C.label,type:C.type,value:(C==null?void 0:C.label)==="类型"&&n[C.key]===""?"normal":n[C.key],id:L.value,contents:C==null?void 0:C.options})}),E.value=R,P.value=R,M.value=n==null?void 0:n.id};e.watch(()=>ee.value,()=>{var R,Q;let n=l.cloneDeep(t.originalItemContents);(R=l.cloneDeep(t.originalItemContents))!=null&&R.find(C=>(C==null?void 0:C.key)==="enableWrap")?n=(Q=l.cloneDeep(t.originalItemContents))==null?void 0:Q.map(C=>((C==null?void 0:C.key)==="enableWrap"&&(C.contents=!ee.value),C)):n.push({key:"enableWrap",contents:!ee.value}),o("change",n)},{deep:!0});const H=()=>{var Q,C,oe,pe,he;E.value=P.value;let n={};if(M.value!==""?n.id=M.value:(L.value++,n.id="id"+L.value),(Q=E.value)==null||Q.forEach(h=>{var D;const T=(D=ge.FormButton)==null?void 0:D.find(b=>(b==null?void 0:b.label)===(h==null?void 0:h.label));T&&(n[T.key]=h.value)}),(C=U.value)!=null&&C.find(h=>h.id===n.id))U.value=(oe=U.value)==null?void 0:oe.map(h=>(h.id===n.id&&(h=n),h));else{let h=l.cloneDeep(U.value);U.value||(U.value=[]),h.push(n),U.value=h}m.value=!1,M.value="";let R=l.cloneDeep(t.originalItemContents);(pe=l.cloneDeep(t.originalItemContents))!=null&&pe.find(h=>(h==null?void 0:h.key)==="formButton")?R=(he=l.cloneDeep(t.originalItemContents))==null?void 0:he.map(h=>((h==null?void 0:h.key)==="formButton"&&(h.contents=U.value),h)):R.push({key:"formButton",contents:U.value}),o("change",R)},u=n=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var R,Q;q.value=(R=l.cloneDeep(q.value))==null?void 0:R.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Q=l.cloneDeep(t.originalItemContents))==null?void 0:Q.map(C=>((C==null?void 0:C.key)==="formContent"&&(C.contents=q.value),C))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},y=n=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var R,Q;U.value=(R=l.cloneDeep(U.value))==null?void 0:R.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Q=l.cloneDeep(t.originalItemContents))==null?void 0:Q.map(C=>((C==null?void 0:C.key)==="formButton"&&(C.contents=U.value),C))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=()=>{var R;m.value=!0;let n=[];(R=ge.FormButton)==null||R.forEach(Q=>{L.value++,n.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:(Q==null?void 0:Q.label)==="类型"?"normal":"",id:L.value,contents:Q==null?void 0:Q.options})}),E.value=n,P.value=n},x=()=>{var R,Q,C;r.value=!0;let n=[];(C=(Q=(R=ge.FormContent)==null?void 0:R.find(oe=>(oe==null?void 0:oe.key)==="Input"))==null?void 0:Q.value)==null||C.forEach(oe=>{L.value++,n.push({label:oe==null?void 0:oe.label,name:oe==null?void 0:oe.label,type:oe.type,value:(oe==null?void 0:oe.label)==="类型"?"Input":"",id:L.value,contents:oe==null?void 0:oe.options})}),N.value=n,$.value=n},re=n=>{let R=l.cloneDeep(P.value);R=R==null?void 0:R.map(Q=>(Q.value=n==null?void 0:n[Q.name],Q)),P.value=R},de=async n=>{var R,Q,C,oe,pe,he,h,T,D,b,z,_;if((n==null?void 0:n.类型)!==((Q=(R=$.value)==null?void 0:R.find(F=>(F==null?void 0:F.label)==="类型"))==null?void 0:Q.value)){let F=[];const j=await((pe=(oe=(C=ge.FormContent)==null?void 0:C.find(I=>(I==null?void 0:I.key)===((n==null?void 0:n.类型)===""?"Input":n==null?void 0:n.类型)))==null?void 0:oe.value)==null?void 0:pe.value)?await((b=(D=(T=ge.FormContent)==null?void 0:T.find(I=>(I==null?void 0:I.key)===((n==null?void 0:n.类型)===""?"Input":n==null?void 0:n.类型)))==null?void 0:D.value)==null?void 0:b.value):(h=(he=ge.FormContent)==null?void 0:he.find(I=>(I==null?void 0:I.key)===((n==null?void 0:n.类型)===""?"Input":n==null?void 0:n.类型)))==null?void 0:h.value;if(j==null||j.forEach(I=>{var w,te;L.value++,F.push({label:I==null?void 0:I.label,name:I==null?void 0:I.label,type:I.type,value:(n==null?void 0:n[I.label])??"",id:L.value,contents:I==null?void 0:I.options,width:((te=(w=$.value)==null?void 0:w[0])==null?void 0:te.width)??1})}),n!=null&&n.菜单选项&&((z=n==null?void 0:n.菜单选项)==null?void 0:z.length)>0){const I=await ge.menuToContentType(n==null?void 0:n.菜单选项);F=F==null?void 0:F.map(w=>((w==null?void 0:w.name)==="组信息选项"&&(w.contents=I),w))}$.value=await ge.selectToBase(l.cloneDeep(F)),N.value=await ge.selectToBase(l.cloneDeep(F))}else{let F=l.cloneDeep($.value);if(F=F==null?void 0:F.map(j=>(j.value=n==null?void 0:n[j.name],j)),n!=null&&n.菜单选项&&((_=n==null?void 0:n.菜单选项)==null?void 0:_.length)>0){const j=await ge.menuToContentType(n==null?void 0:n.菜单选项);F=F==null?void 0:F.map(I=>((I==null?void 0:I.name)==="组信息选项"&&(I.contents=j),I))}F=ge.formToOptionsContents(F),$.value=await ge.selectToBase(l.cloneDeep(F))}},O=n=>{n||(N.value=$.value)},X=async n=>{await de(n),N.value=$.value},J=async()=>{var C,oe,pe,he,h,T,D,b,z,_,F,j;N.value=$.value;let n={};n.width=((oe=(C=N.value)==null?void 0:C[0])==null?void 0:oe.width)??1,M.value!==""?n.id=M.value:(L.value++,n.id="id"+L.value);let R=await((h=(he=(pe=ge.FormContent)==null?void 0:pe.find(I=>{var w,te;return(I==null?void 0:I.key)===(((te=(w=N.value)==null?void 0:w.find(g=>(g==null?void 0:g.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:he.value)==null?void 0:h.value)??((D=(T=ge.FormContent)==null?void 0:T.find(I=>{var w,te;return(I==null?void 0:I.key)===(((te=(w=N.value)==null?void 0:w.find(g=>(g==null?void 0:g.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:D.value);if((b=N.value)==null||b.forEach(I=>{const w=R==null?void 0:R.find(te=>(te==null?void 0:te.label)===(I==null?void 0:I.label));w&&(n[w.key]=I.value)}),n.width=n.width?n.width:1,n.key=n==null?void 0:n.label,n.isFormColHidden=n==null?void 0:n.isFormColHidden,(z=q.value)!=null&&z.find(I=>I.id===n.id))q.value=(_=q.value)==null?void 0:_.map(I=>(I.id===n.id&&(I=n),I));else{let I=l.cloneDeep(q.value);I.push(n),q.value=I}q.value=q.value.map(({id:I,...w})=>w),r.value=!1,M.value="";let Q=l.cloneDeep(t.originalItemContents);(F=l.cloneDeep(t.originalItemContents))!=null&&F.find(I=>(I==null?void 0:I.key)==="formContent")?Q=(j=l.cloneDeep(t.originalItemContents))==null?void 0:j.map(I=>((I==null?void 0:I.key)==="formContent"&&(I.contents=q.value),I)):Q.push({key:"formContent",contents:q.value}),o("change",Q)},B=()=>{r.value=!1,m.value=!1,M.value="",$.value=[],P.value=[]};return e.watch(()=>t.originalItemContents,()=>{var R,Q,C,oe,pe,he;if(!t.originalItemContents||t.originalItemContents.length===0)return;const n=l.cloneDeep(t.originalItemContents);q.value=((R=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:R.contents)??[],U.value=((Q=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formButton"))==null?void 0:Q.contents)??[],ee.value=(C=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="enableWrap"))!=null&&C.contents?!((oe=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="enableWrap"))!=null&&oe.contents):!0,q.value=(pe=l.cloneDeep(q.value))==null?void 0:pe.map((h,T)=>{var b;let D=h;return D.id=(h==null?void 0:h.id)??T,h!=null&&h.label||(h.label=(h==null?void 0:h.key)??(h==null?void 0:h.label)??""),h!=null&&h.type||(h.type=(h==null?void 0:h.type)??""),h.contents=((b=h==null?void 0:h.options)==null?void 0:b.length)===0?(h==null?void 0:h.contents)??"":h==null?void 0:h.options,D}),q.value=ge.formToOptionsContents(q.value),U.value=(he=U.value)==null?void 0:he.map((h,T)=>h={label:(h==null?void 0:h.label)??"",type:(h==null?void 0:h.type)??"",background:(h==null?void 0:h.background)??"var(--ssComponent-primary-color)",id:T})},{deep:!0,immediate:!0}),(n,R)=>{const Q=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",B1,[e.createElementVNode("div",V1,[e.createElementVNode("div",E1,[R[2]||(R[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",M1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",z1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",F1,[e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>s(oe)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>u(oe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",N1,[R[4]||(R[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:k},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[3]||(R[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",S1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",T1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",I1,[e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>v(oe)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>y(oe)},null,8,["onClick"])])])]))),128))]),R[6]||(R[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",L1,[R[5]||(R[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:ee.value,"onUpdate:modelValue":R[0]||(R[0]=oe=>ee.value=oe)},null,8,["modelValue"])])]),e.createVNode(Ce.ssDialog,{visible:r.value,onBeforeDestroy:B,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",$1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:N.value,key:N.value,isEnableWrap:!0,onChange:de,onChangeVisible:O,onBlurChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",P1,[e.createVNode(C,{onClick:B,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>R[7]||(R[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(C,{class:"ok-button button",onClick:J,id:"themeButton"},{default:e.withCtx(()=>R[8]||(R[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]})])]),_:1},8,["visible"]),e.createVNode(Ce.ssDialog,{visible:m.value,onBeforeDestroy:B,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",O1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:re},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:B,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:H},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},p2=Ve._export_sfc(R1,[["__scopeId","data-v-8cbdc3ef"]]),U1={class:"step-module content"},H1={class:"module-data"},j1={class:"step-module layout"},J1={class:"form-content"},K1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),N=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),$=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),m=e.reactive({visible:!1,width:"40%",title:"步骤条"}),U=e.ref("create"),q=e.ref({}),M=e.ref([]),ee=s=>{var v;q.value=s,o("change",(v=P())==null?void 0:v.compData)},L=(s,v)=>{var H,u;switch(s){case"create":(H=N.value)==null||H.forEach(y=>{y.value=""}),U.value="create",m.visible=!0;break;case"update":(u=N.value)==null||u.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),U.value="update",m.visible=!0;break;case"delete":M.value.splice(v,1),U.value="delete";break}},E=s=>{var v,H,u;if((s==null?void 0:s.buttonName)==="确认"){const y=l.cloneDeep(s==null?void 0:s.content);switch(Object.keys(y).forEach(k=>{y[k]===""&&delete y[k]}),U.value){case"create":M.value.push({...y,index:((v=M.value)==null?void 0:v.length)+1});break;case"update":M.value=(H=M.value)==null?void 0:H.map(k=>k.index===(y==null?void 0:y.index)?{...k,title:y==null?void 0:y.title,description:y==null?void 0:y.description}:k);break}o("change",(u=P())==null?void 0:u.compData),m.visible=!1}else m.visible=!1},P=()=>({comp:"Step",compData:[{key:"stepList",contents:M.value},{key:"stepConfig",contents:q.value}]}),Y=()=>{m.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,H;s&&(q.value=((v=s==null?void 0:s.find(u=>u.key==="stepConfig"))==null?void 0:v.contents)??{},M.value=((H=s==null?void 0:s.find(u=>u.key==="stepList"))==null?void 0:H.contents)??[])},{immediate:!0}),(s,v)=>{const H=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",U1,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(u,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(H,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",H1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(y,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(y==null?void 0:y.title),1),e.createElementVNode("div",null,[e.createVNode(u,{type:"primary",size:"small",onClick:x=>L("update",{...y,index:k+1})},{default:e.withCtx(()=>v[3]||(v[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(u,{type:"danger",size:"small",onClick:x=>L("delete",k)},{default:e.withCtx(()=>v[4]||(v[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",j1,[v[5]||(v[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(Ce.ssForm,{rowContents:r.value,onChange:ee},null,8,["rowContents"])])]),e.createVNode(Ce.ssDialog,{visible:m.visible,title:m.title,onBeforeDestroy:Y,width:m.width},{default:e.withCtx(()=>[e.createElementVNode("div",J1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:N.value,key:N.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:$.value,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),G1=Ve._export_sfc(K1,[["__scopeId","data-v-7dbd17f2"]]),W1={class:"step-module content"},q1={class:"module-data"},X1={class:"step-module layout"},Y1={class:"form-content"},Z1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.ref("create"),N=e.ref({}),$=e.ref([]),m=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),U=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),q=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),M=e.reactive({visible:!1,width:"40%",title:"时间线"}),ee=s=>{var v;N.value=s,console.log(1212,s),o("change",(v=P())==null?void 0:v.compData)},L=(s,v)=>{var H,u;switch(s){case"create":(H=U.value)==null||H.forEach(y=>{y.value=""}),r.value="create",M.visible=!0;break;case"update":(u=U.value)==null||u.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),r.value="update",M.visible=!0;break;case"delete":$.value.splice(v,1),r.value="delete";break}},E=s=>{var v,H,u,y;if((s==null?void 0:s.buttonName)==="确认"){const k=l.cloneDeep(s==null?void 0:s.content);switch(Object.keys(k).forEach(x=>{k[x]===""&&delete k[x]}),r.value){case"create":console.log(1335,$.value,k),(H=$.value)==null||H.push({...k,index:((v=$.value)==null?void 0:v.length)+1});break;case"update":$.value=(u=$.value)==null?void 0:u.map(x=>x.index===(k==null?void 0:k.index)?{...x,content:k==null?void 0:k.content,timestamp:k==null?void 0:k.timestamp}:x);break}o("change",(y=P())==null?void 0:y.compData),M.visible=!1}else M.visible=!1},P=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:$.value},{key:"timeLineConfig",contents:N.value}]}),Y=()=>{M.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,H;s&&(N.value=((v=s==null?void 0:s.find(u=>u.key==="timeLineConfig"))==null?void 0:v.contents)??{},$.value=((H=s==null?void 0:s.find(u=>u.key==="timeLineList"))==null?void 0:H.contents)??[])},{immediate:!0}),(s,v)=>{const H=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",W1,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(u,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(H,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",q1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(y,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(y==null?void 0:y.content),1),e.createElementVNode("div",null,[e.createVNode(u,{type:"primary",size:"small",onClick:x=>L("update",{...y,index:k+1})},{default:e.withCtx(()=>v[3]||(v[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(u,{type:"danger",size:"small",onClick:x=>L("delete",k)},{default:e.withCtx(()=>v[4]||(v[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",X1,[v[5]||(v[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(Ce.ssForm,{rowContents:m.value,onChange:ee},null,8,["rowContents"])])]),e.createVNode(Ce.ssDialog,{visible:M.visible,title:M.title,onBeforeDestroy:Y,width:M.width},{default:e.withCtx(()=>[e.createElementVNode("div",Y1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:U.value,key:U.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:q.value,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Q1=Ve._export_sfc(Z1,[["__scopeId","data-v-f6b5d4fc"]]),e0={};function l0(c,d){return e.openBlock(),e.createElementBlock("div")}const a0=Ve._export_sfc(e0,[["render",l0]]),o0={class:"extra-content"},t0={key:0},n0={key:1},s0={class:"dialog-footer"},i0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(c,{emit:d}){const t=c,o=e.ref(0),r=e.ref(),N=e.ref(),$=d,m=e.ref(!1),U=e.ref({}),q=e.ref({}),M=e.ref();e.watch(()=>[t.itemData],()=>{var y;const u=l.cloneDeep(t.itemData);r.value=(y=l.cloneDeep(u))==null?void 0:y.map(k=>{var x;if(k.key==="extra"){let re=[];(x=k.value)==null||x.forEach(de=>{var O;re.push((O=Object.values(de))==null?void 0:O[0])}),k.value=re}return k})},{deep:!0,immediate:!0});const ee=(u,y,k,x)=>{var de;let re={};((de=u==null?void 0:u[0])==null?void 0:de.contents)==="详情"&&(m.value=!0,re[y]=u,N.value=u==null?void 0:u.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),U.value=re,q.value=k,M.value=x.id)},L=u=>{var O,X,J,B;const y=(X=(O=Object.values(l.cloneDeep(U.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(J=Object.values(l.cloneDeep(U.value)))==null?void 0:J[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,R)=>{var Q;return R===u.index&&(n==null?void 0:n.comp)==="Table"&&(n.compData=(Q=n.compData)==null?void 0:Q.map(C=>{var oe,pe;return(C==null?void 0:C.key)==="tableContents"&&(C.contents=(pe=(oe=u.content)==null?void 0:oe.map(he=>{let h={};for(let T in he)T!=="id"&&(h[T]=he[T]);return h}))==null?void 0:pe.map(he=>Object.values(he))),C})),n});x.unshift(y==null?void 0:y[0]);let re=l.cloneDeep(U.value),de={};for(let n in re)de[n]=x;U.value=de},E=()=>{m.value=!1,U.value={},q.value={},M.value=void 0,o.value++},P=u=>{var O,X,J,B;const y=(X=(O=Object.values(l.cloneDeep(U.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(J=Object.values(l.cloneDeep(U.value)))==null?void 0:J[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,R)=>(R===u.index&&(n.compData=u.contents),n));x.unshift(y==null?void 0:y[0]);let re=l.cloneDeep(U.value),de={};for(let n in re)de[n]=x;U.value=de},Y=()=>{var y,k;let u={};for(let x in q.value)x===((y=Object.keys(U.value))==null?void 0:y[0])?u[x]=(k=Object.values(U.value))==null?void 0:k[0]:u[x]=q.value[x];$("change",{buttonName:"编辑",index:M.value,singleContent:u},"methodData"),m.value=!1,U.value={},q.value={},M.value=void 0},s=()=>{m.value=!1,U.value={},q.value={},M.value=void 0},v=u=>{$("change",u,"methodData")},H=u=>El(u);return(u,y)=>{const k=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",o0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(x,re)=>(e.openBlock(),e.createElementBlock("div",{key:o.value},[(x==null?void 0:x.key)==="extra"?(e.openBlock(),e.createElementBlock("div",t0)):(e.openBlock(),e.createElementBlock("div",n0,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:re,index:(x==null?void 0:x.id)??re,onContentClick:ee,onChange:v},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Ce.ssDialog,{visible:m.value,onBeforeDestroy:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(x,re)=>(e.openBlock(),e.createElementBlock("div",{key:re,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(x.comp)),{itemData:x==null?void 0:x.compData,onChange:L,childItemData:x==null?void 0:x.itemChildData,key:re,onContentChange:P,index:(x==null?void 0:x.id)??re,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",s0,[e.createVNode(k,{class:"cancel-button footer-button",onClick:E,id:"themeBorderButton"},{default:e.withCtx(()=>y[0]||(y[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(k,{class:"confirm-button footer-button",onClick:Y,id:"themeButton"},{default:e.withCtx(()=>y[1]||(y[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},r0=Ve._export_sfc(i0,[["__scopeId","data-v-2d9c5ab2"]]);let Cl="$R";const Tl=c=>{var m,U,q,M,ee,L,E,P,Y,s,v,H,u,y,k,x,re,de,O,X,J,B,n,R;const d=Ll(c)?(m=Je(l.cloneDeep(c)))==null?void 0:m[0]:"[]",t=Ll(c)?"["+((U=Je(l.cloneDeep(c)))==null?void 0:U[2])+"]":"["+c+"]";let o=[],r=[],N="";const $=(M=(q=t==null?void 0:t.trim())==null?void 0:q.slice(1,(t==null?void 0:t.trim().length)-1))==null?void 0:M.replaceAll("'",'"');if(ge.IsJson($)?o=JSON.parse($):ge.IsJson((E=(L=(ee=$==null?void 0:$.split("}"))==null?void 0:ee[0])==null?void 0:L.replace(":",""))==null?void 0:E.replaceAll("\\","\\\\"))&&(o=JSON.parse((s=(Y=(P=$==null?void 0:$.split("}"))==null?void 0:P[0])==null?void 0:Y.replace(":",""))==null?void 0:s.replaceAll("\\","\\\\"))),o=o!=null&&o.every(Q=>Array.isArray(Q)&&Q.every(C=>Array.isArray(C)))?o==null?void 0:o[0]:o,!(d!=null&&d.includes("(")))!d.includes("{")&&ge.IsJson(d==null?void 0:d.replaceAll("'",'"'))?r=JSON.parse(d==null?void 0:d.replaceAll("'",'"')):ge.IsJson((H=(v=d==null?void 0:d.split("{"))==null?void 0:v[1])==null?void 0:H.replaceAll("'",'"'))&&(r=JSON.parse((y=(u=d==null?void 0:d.split("{"))==null?void 0:u[1])==null?void 0:y.replaceAll("'",'"')));else{let Q=[];if(((x=(k=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:k.split(","))==null?void 0:x.length)>1)(de=(re=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:re.split(","))==null||de.forEach(C=>{var oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,K,p,ce,le,a,i,f,A,S;if(!(C!=null&&C.includes("(")))Q.push(C==null?void 0:C.replaceAll("'",""));else if(C!=null&&C.includes("[")){let Z;const ve=(j=(F=l.cloneDeep(C))==null?void 0:F.replaceAll("{",""))==null?void 0:j.replaceAll("}","");Z=(w=(I=ve==null?void 0:ve.replace("[",Cl))==null?void 0:I.split(Cl))==null?void 0:w[1];const ne=Z.lastIndexOf("]"),se=Z.substring(0,ne)+Cl+Z.substring(ne+1);Z=(g=(te=se==null?void 0:se.split(Cl))==null?void 0:te[0])==null?void 0:g.replaceAll("'",""),Z=(Z==null?void 0:Z[0])===":"?'""'+Z:Z,C!=null&&C.includes("#")&&(Z!=null&&Z.includes("[")?Z=((G=(V=C==null?void 0:C.split("#"))==null?void 0:V[0])==null?void 0:G.replaceAll("'",""))+"#("+Z+")":Z=((p=(K=C==null?void 0:C.split("#"))==null?void 0:K[0])==null?void 0:p.replaceAll("'",""))+"#"+Z);let ie=(f=(i=(a=(ce=l.cloneDeep(ve))==null?void 0:ce.split("("))==null?void 0:a[((le=ve==null?void 0:ve.split("("))==null?void 0:le.length)-1])==null?void 0:i.split(")"))==null?void 0:f[0].replaceAll(":","/").replaceAll("'","");Z.includes(":")&&((S=ie==null?void 0:ie.split("/"))==null?void 0:S[((A=ie==null?void 0:ie.split("/"))==null?void 0:A.length)-1])!==""?Z=Z+"["+ie+"]":Z=Z+"["+ie+"]()",Q.push(Z==null?void 0:Z.replaceAll('"',"'"))}else{let Z=(T=(h=(he=(pe=C==null?void 0:C.split(":"))==null?void 0:pe[((oe=C==null?void 0:C.split(":"))==null?void 0:oe.length)-1])==null?void 0:he.split(")"))==null?void 0:h[0])==null?void 0:T.replaceAll("'","");Z=Z+"["+((_=(z=(b=C==null?void 0:C.split("("))==null?void 0:b[((D=C==null?void 0:C.split("("))==null?void 0:D.length)-1])==null?void 0:z.split(")"))==null?void 0:_[0].replaceAll(":","/").replaceAll("'",""))+"]",Q.push(Z)}}),r=Q;else{const C=((B=(J=(X=(O=d==null?void 0:d.slice(1,d==null?void 0:d.length))==null?void 0:O.split("("))==null?void 0:X[1])==null?void 0:J.split(")"))==null?void 0:B[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");N=N+C+"["+((R=(n=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:n.split("["))==null?void 0:R[1])}}return{tableColumns:r,tableContents:o!=null&&o.every(Q=>Array.isArray(Q))?o:[o],tablePath:N}};let we="$R";const c0=c=>/^'[^']+':\{.*\}$/.exec(l.cloneDeep(c)),u0=c=>/^'[^']+':\[\[.*\]\]$/.exec(l.cloneDeep(c)),p0=c=>/^'([^']+)':.*$/.exec(l.cloneDeep(c)),Je=c=>{let d=c;const t=[];let o="";for(const r of d)r.includes("{")||o.includes("{")||r.includes("[")||o.includes("[")||r.includes("【")||o.includes("【")||r.includes("(")||o.includes("(")||r.includes("(")||o.includes("(")||r.includes("/*")||o.includes("/*")||r.includes("&")||o.includes("&")?(o+=r.trim(),l.cloneDeep(o).split("{").length-1===l.cloneDeep(o).split("}").length-1&&l.cloneDeep(o).split("【").length-1===l.cloneDeep(o).split("】").length-1&&l.cloneDeep(o).split("[").length-1===l.cloneDeep(o).split("]").length-1&&l.cloneDeep(o).split("(").length-1===l.cloneDeep(o).split(")").length-1&&l.cloneDeep(o).split("(").length-1===l.cloneDeep(o).split(")").length-1&&l.cloneDeep(o).split("/*").length-1===l.cloneDeep(o).split("*/").length-1&&o[o.length-1]!==","&&o[o.length-1]!=="&"&&(t.push(o.replace(/\/\*[\s\S]*?\*\//g,"")),o="")):t.push(r.trim().replace(/\/\*[\s\S]*?\*\//g,""));return t},Al=(c,d)=>{let t=c;const o=[];let r="",N=0;for(const $ of t)N++,$.includes("{")||r.includes("{")||$.includes("[")||r.includes("[")||$.includes("【")||r.includes("【")||$.includes("(")||r.includes("(")||$.includes("(")||r.includes("(")||$.includes("/*")||r.includes("/*")?(r+=$.trim(),l.cloneDeep(r).split("{").length-1===l.cloneDeep(r).split("}").length-1&&l.cloneDeep(r).split("【").length-1===l.cloneDeep(r).split("】").length-1&&l.cloneDeep(r).split("[").length-1===l.cloneDeep(r).split("]").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("(").length-1===l.cloneDeep(r).split(")").length-1&&l.cloneDeep(r).split("/*").length-1===l.cloneDeep(r).split("*/").length-1&&r[r.length-1]!==","&&r[r.length-1]===d?(o.push(r.replace(/\/\*[\s\S]*?\*\//g,"")),r=""):N===(c==null?void 0:c.length)&&o.push(r.replace(/\/\*[\s\S]*?\*\//g,""))):(r+=$.trim(),(r==null?void 0:r[(r==null?void 0:r.length)-1])===d&&(o.push(r.replace(/\/\*[\s\S]*?\*\//g,"")),r=""));return o},Ll=c=>/^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l.cloneDeep(c)),d0=c=>{var d,t,o,r,N,$,m,U,q,M,ee,L,E,P,Y,s,v,H,u,y,k,x,re,de,O,X,J,B,n,R,Q,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,K,p,ce,le,a,i,f,A,S,Z;if(p0(c)){let ve={},ne=(o=(t=(d=c==null?void 0:c.replace(":",we))==null?void 0:d.split(we))==null?void 0:t[0])==null?void 0:o.replaceAll("'",""),se="",ie=(N=(r=c==null?void 0:c.replace(":",we))==null?void 0:r.split(we))==null?void 0:N[1];if(ie.includes("{")||ie.includes("("))if(ie.includes("{")?se=se+((ee=(M=(q=(U=(m=($=ie==null?void 0:ie.split("{"))==null?void 0:$[1])==null?void 0:m.split("}"))==null?void 0:U[0])==null?void 0:q.replaceAll(":","/").replaceAll("'",""))==null?void 0:M.replaceAll("[","(["))==null?void 0:ee.replaceAll("]","])"))+"[":se=se+((v=(s=(Y=(P=(E=(L=ie==null?void 0:ie.split("("))==null?void 0:L[1])==null?void 0:E.split(")"))==null?void 0:P[0])==null?void 0:Y.replaceAll(":","/").replaceAll("'",""))==null?void 0:s.replaceAll("[","(["))==null?void 0:v.replaceAll("]","])"))+"[",!((H=ie==null?void 0:ie.split(")"))!=null&&H[1]))se=se+((k=(y=(u=ie==null?void 0:ie.split("["))==null?void 0:u[1])==null?void 0:y.split("]"))==null?void 0:k[0])+"]";else{const me=(O=(de=(re=(x=ie==null?void 0:ie.split(")"))==null?void 0:x[1])==null?void 0:re.replace("[",we))==null?void 0:de.split(we))==null?void 0:O[1],be=me.lastIndexOf("]"),ae=me.substring(0,be)+we+me.substring(be+1);se=se+((X=ae==null?void 0:ae.split(we))==null?void 0:X[0])+"]"}else se=(n=(B=(J=c==null?void 0:c.replace(":",we))==null?void 0:J.split(we))==null?void 0:B[1])==null?void 0:n.replaceAll("'","");return ve[ne]=se,{groupName:"",formContents:[[ve]]}}else{let ve={},ne="",se="";if(c.includes("#")){ne=(Q=(R=c==null?void 0:c.split("#"))==null?void 0:R[0])==null?void 0:Q.replaceAll("'","");let ie=(oe=(C=c==null?void 0:c.split("#"))==null?void 0:C[1])==null?void 0:oe.replaceAll("'","");ie!=null&&ie.includes("{")?se=se+((T=(h=(he=(pe=ie==null?void 0:ie.split("{"))==null?void 0:pe[1])==null?void 0:he.split("}"))==null?void 0:h[0])==null?void 0:T.replaceAll(":","/").replaceAll("'",""))+"[":se=se+((_=(z=(b=(D=ie==null?void 0:ie.split("("))==null?void 0:D[1])==null?void 0:b.split(")"))==null?void 0:z[0])==null?void 0:_.replaceAll(":","/").replaceAll("'",""))+"[",se=se+((I=(j=(F=ie==null?void 0:ie.split("["))==null?void 0:F[1])==null?void 0:j.split("]"))==null?void 0:I[0])+"]"}else{let ie=(g=(te=(w=c==null?void 0:c.split("]"))==null?void 0:w[0])==null?void 0:te.split("["))==null?void 0:g[1];if((V=ie==null?void 0:ie.split(":"))==null||V.forEach((me,be)=>{var ae;((ae=ie==null?void 0:ie.split(":"))==null?void 0:ae.length)-1===be&&(ne=me==null?void 0:me.replaceAll("'",""))}),!(c!=null&&c.includes("[")))se=((ce=(p=(K=(G=c==null?void 0:c.split("]"))==null?void 0:G[1])==null?void 0:K.replace(":",we).split(we))==null?void 0:p[1])==null?void 0:ce.replaceAll("'",""))??"";else{let me=(S=(A=(f=(i=(a=(le=l.cloneDeep(c))==null?void 0:le.split("("))==null?void 0:a[1])==null?void 0:i.split(")"))==null?void 0:f[0])==null?void 0:A.replaceAll("{","").replaceAll("}",""))==null?void 0:S.replaceAll("'","").replaceAll(":","/"),be="";(Z=ie==null?void 0:ie.split(":"))==null||Z.forEach(ae=>{be=be===""?be+(ae==null?void 0:ae.replaceAll("'","")):be+":"+(ae==null?void 0:ae.replaceAll("'",""))}),se=me+"["+be+"]"}}return ve[ne]=se,{groupName:"",formContents:[[ve]]}}},h0=c=>(c==null?void 0:c[0])==="["&&(c==null?void 0:c[c.length-1])==="]"&&!(c!=null&&c.includes("{")),f0=(c,d)=>{let t=c.length;for(;t--;)if(c[t]===")")return c.substring(0,t)+d+c.substring(t+1);return c},m0=c=>{var N,$,m,U,q;let d=c.slice(1,c.length-1),t;(d==null?void 0:d[0])==="["?t=($=(N=Je(l.cloneDeep(d)))==null?void 0:N.filter(M=>M!==","))==null?void 0:$.map(M=>M==null?void 0:M.slice(1,M.length-1)):(d="["+l.cloneDeep(d)+"]",t=(U=(m=Je(l.cloneDeep(d)))==null?void 0:m.filter(M=>M!==","))==null?void 0:U.map(M=>M==null?void 0:M.slice(1,M.length-1))),t=(q=l.cloneDeep(t))==null?void 0:q.map(M=>{var ee,L;return M=(L=(ee=M.replace(")",we))==null?void 0:ee.split(we))==null?void 0:L[1],M});let o=[],r=[];return t==null||t.forEach(M=>{var E,P,Y,s,v,H,u,y,k,x,re,de,O,X,J,B,n,R,Q,C,oe,pe,he,h,T,D,b,z,_,F,j,I;let ee=(P=(E=l.cloneDeep(M))==null?void 0:E.slice(1,l.cloneDeep(M).length-1))==null?void 0:P.replace(":",we).split(we);if(((s=(Y=l.cloneDeep(ee))==null?void 0:Y[0])==null?void 0:s.replaceAll("'",""))==="输入"){if(!((H=(v=l.cloneDeep(ee))==null?void 0:v[1])!=null&&H.includes("["))&&!((y=(u=l.cloneDeep(ee))==null?void 0:u[1])!=null&&y.includes("("))){ge.IsJson((k=l.cloneDeep(ee))==null?void 0:k[1].replaceAll("'",'"'))&&r.push(JSON.parse((x=l.cloneDeep(ee))==null?void 0:x[1].replaceAll("'",'"')));return}if(((de=(re=l.cloneDeep(ee))==null?void 0:re[1])==null?void 0:de[0])==="["){let w=(B=(O=l.cloneDeep(ee))==null?void 0:O[1])==null?void 0:B.slice(1,((J=(X=l.cloneDeep(ee))==null?void 0:X[1])==null?void 0:J.length)-1);(R=(n=Je(w))==null?void 0:n.filter(te=>te!==","))==null||R.forEach(te=>{var p,ce,le,a,i,f,A,S,Z,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne;let g={},V=(le=(ce=l.cloneDeep(te))==null?void 0:ce.slice(1,((p=l.cloneDeep(te))==null?void 0:p.length)-1))==null?void 0:le.replace(":",we).split(we),G=(a=V==null?void 0:V[0])==null?void 0:a.replaceAll("'",""),K;(i=V==null?void 0:V[1])!=null&&i.includes("(")?(K=(me=(ie=(se=(ne=(ve=(Z=(S=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:S.replaceAll("{",""))==null?void 0:Z.replaceAll("}",""))==null?void 0:ve.split("("))==null?void 0:ne[1])==null?void 0:se.split(")"))==null?void 0:ie[0])==null?void 0:me.replaceAll(":","/").replaceAll("'",""),(ae=(be=l.cloneDeep(V))==null?void 0:be[1])!=null&&ae.includes("[")&&(K=l.cloneDeep(K)+"["+((Ne=(xe=(ke=(ye=(De=(fe=l.cloneDeep(V))==null?void 0:fe[1])==null?void 0:De.split("["))==null?void 0:ye[1])==null?void 0:ke.split("]"))==null?void 0:xe[0])==null?void 0:Ne.replaceAll("'",""))+"]")):K=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'",""),g[G]=K,r.push(g)})}}else{if(!((C=(Q=l.cloneDeep(ee))==null?void 0:Q[1])!=null&&C.includes("["))&&!((pe=(oe=l.cloneDeep(ee))==null?void 0:oe[1])!=null&&pe.includes("("))){ge.IsJson((he=l.cloneDeep(ee))==null?void 0:he[1].replaceAll("'",'"'))&&o.push(JSON.parse((h=l.cloneDeep(ee))==null?void 0:h[1].replaceAll("'",'"')));return}if(((D=(T=l.cloneDeep(ee))==null?void 0:T[1])==null?void 0:D[0])==="["){let w=(F=(b=l.cloneDeep(ee))==null?void 0:b[1])==null?void 0:F.slice(1,((_=(z=l.cloneDeep(ee))==null?void 0:z[1])==null?void 0:_.length)-1);(I=(j=Je(w))==null?void 0:j.filter(te=>te!==","))==null||I.forEach(te=>{var p,ce,le,a,i,f,A,S,Z,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be,Pe,Ie,Le,Ze,Re,Ke,Ge,Te;let g={},V=(le=(ce=l.cloneDeep(te))==null?void 0:ce.slice(1,((p=l.cloneDeep(te))==null?void 0:p.length)-1))==null?void 0:le.replace(":",we).split(we),G=(a=V==null?void 0:V[0])==null?void 0:a.replaceAll("'",""),K;if(!((i=V==null?void 0:V[1])!=null&&i.includes("(")))K=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'","");else if(K=(se=(ne=(ve=(Z=(S=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:S.replaceAll("{",""))==null?void 0:Z.replaceAll("}",""))==null?void 0:ve.replace("(",we))==null?void 0:ne.split(we))==null?void 0:se[1],K=(me=(ie=f0(l.cloneDeep(K),we))==null?void 0:ie.split(we))==null?void 0:me[0],!(K!=null&&K.includes("(")))K=(be=l.cloneDeep(K))==null?void 0:be.replaceAll(":","/").replaceAll("'",""),(fe=(ae=l.cloneDeep(V))==null?void 0:ae[1])!=null&&fe.includes("[")&&(K=l.cloneDeep(K)+"["+((ue=(Ne=(xe=(ke=(ye=(De=l.cloneDeep(V))==null?void 0:De[1])==null?void 0:ye.split("["))==null?void 0:ke[1])==null?void 0:xe.split("]"))==null?void 0:Ne[0])==null?void 0:ue.replaceAll("'",""))+"]");else{let $e="";(Ee=Al(K,":"))==null||Ee.forEach(Fe=>{var ol,tl,nl,sl,il,rl,cl,ul,pl,dl,hl,fl,ml,vl,yl;if(!(Fe!=null&&Fe.includes("(")))$e=$e===""?$e+((ol=Fe==null?void 0:Fe.replaceAll(":",""))==null?void 0:ol.replaceAll("'","")):$e+"/"+((tl=Fe==null?void 0:Fe.replaceAll(":",""))==null?void 0:tl.replaceAll("'",""));else{let Qe=(dl=(pl=(ul=(cl=(rl=(il=(sl=(nl=l.cloneDeep(Fe))==null?void 0:nl.replaceAll("{",""))==null?void 0:sl.replaceAll("}",""))==null?void 0:il.replace("(",we))==null?void 0:rl.split(we))==null?void 0:cl[1])==null?void 0:ul.split(")"))==null?void 0:pl[0])==null?void 0:dl.replaceAll(":","/").replaceAll("'","");Qe=Qe+"["+((yl=(vl=(ml=(fl=(hl=l.cloneDeep(Fe))==null?void 0:hl.split("["))==null?void 0:fl[1])==null?void 0:ml.split("]"))==null?void 0:vl[0])==null?void 0:yl.replaceAll("'",""))+"]",$e=$e===""?$e+"["+Qe+"]":$e+"/["+Qe+"]"}}),K=$e+"["+((Te=(Ge=(Ke=(Re=(Pe=(Be=l.cloneDeep(V))==null?void 0:Be[1])==null?void 0:Pe.split("["))==null?void 0:Re[((Ze=(Le=(Ie=l.cloneDeep(V))==null?void 0:Ie[1])==null?void 0:Le.split("["))==null?void 0:Ze.length)-1])==null?void 0:Ke.split("]"))==null?void 0:Ge[0])==null?void 0:Te.replaceAll("'",""))+"]"}g[G]=K,o.push(g)})}}}),{output:o,input:r}},b2=c=>{var o,r,N,$,m,U,q,M,ee,L,E,P,Y,s,v,H,u,y,k,x,re,de,O,X,J,B,n,R,Q,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,K,p,ce;let d="";c=c.replace(/:([^=]*)==/g,":");let t=c;if((c0(l.cloneDeep(c))!==null||u0(l.cloneDeep(c))!==null)&&(d=(r=(o=l.cloneDeep(c).replace(":",we).split(we))==null?void 0:o[0])==null?void 0:r.replaceAll("'",""),t=(N=l.cloneDeep(c).replace(":",we).split(we))==null?void 0:N[1]),Ll(l.cloneDeep(t).slice(1,(($=l.cloneDeep(t))==null?void 0:$.length)-1))||h0(l.cloneDeep(t).slice(1,((m=l.cloneDeep(t))==null?void 0:m.length)-1)))if(((q=l.cloneDeep(t).slice(1,((U=l.cloneDeep(t))==null?void 0:U.length)-1))==null?void 0:q[1])!=="["){const le=Tl(l.cloneDeep(t).slice(1,((M=l.cloneDeep(t))==null?void 0:M.length)-1));return{groupName:d,tableColumn:le==null?void 0:le.tableColumns,tableContents:le==null?void 0:le.tableContents,tableColumnPath:le==null?void 0:le.tablePath}}else if(l.cloneDeep(t).slice(1,((ee=l.cloneDeep(t))==null?void 0:ee.length)-1).includes("{")){let le=l.cloneDeep(t).slice(1,((L=l.cloneDeep(t))==null?void 0:L.length)-1),a=le.indexOf("{"),i=le.slice(a,(le==null?void 0:le.length)-a);return(P=(E=Je(i))==null?void 0:E.filter(A=>A==null?void 0:A.includes("{")))==null?void 0:P.map((A,S)=>{var ve;let Z=Tl(l.cloneDeep(A).slice(1,((ve=l.cloneDeep(A))==null?void 0:ve.length)-1));return{groupName:S===0?d:"",tableColumn:Z==null?void 0:Z.tableColumns,tableContents:Z==null?void 0:Z.tableContents,tableColumnPath:Z==null?void 0:Z.tablePath}})}else{const le=Tl(l.cloneDeep(t).slice(1,((Y=l.cloneDeep(t))==null?void 0:Y.length)-1));return{groupName:d,tableColumn:le==null?void 0:le.tableColumns,tableContents:le==null?void 0:le.tableContents,tableColumnPath:le==null?void 0:le.tablePath}}else{let le=[];if(ge.IsJson((s=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:s.replaceAll("'",'"')))le=JSON.parse((v=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:v.replaceAll("'",'"'));else if(t.includes("(")){if((t==null?void 0:t[0])!=="{"&&!((t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="[")){let a=(R=(n=(B=(J=l.cloneDeep(t))==null?void 0:J.split("]"))==null?void 0:B[0])==null?void 0:n.split("["))==null?void 0:R[1],i="",A=((h=(he=(pe=(oe=(C=(Q=l.cloneDeep(t))==null?void 0:Q.split(")"))==null?void 0:C[0])==null?void 0:oe.split("("))==null?void 0:pe[1])==null?void 0:he.replaceAll("[",""))==null?void 0:h.replaceAll("]","")).replaceAll("'","").replaceAll(":","/");(T=A==null?void 0:A.split("/"))==null||T.forEach((Z,ve)=>{var ne;ve!==((ne=A==null?void 0:A.split("/"))==null?void 0:ne.length)-1&&(i=i===""?i+Z:i+"/"+Z)});let S;return((_=(z=(b=(D=l.cloneDeep(t))==null?void 0:D.replace(",",we))==null?void 0:b.split(we))==null?void 0:z[1])==null?void 0:_[0])==="["&&(S=m0((I=(j=(F=l.cloneDeep(t))==null?void 0:F.replace(",",we))==null?void 0:j.split(we))==null?void 0:I[1])),{groupName:"",extraButton:(te=a==null?void 0:a.split(":"))==null?void 0:te[((w=a==null?void 0:a.split(":"))==null?void 0:w.length)-1].replaceAll("'",""),extraPath:i,extraData:S}}else if(t=t.slice(1,(t==null?void 0:t.length)-1).replaceAll('"',"'"),(t==null?void 0:t[0])!=="["){let a="{"+t+"}",i=(V=(g=Je(a))==null?void 0:g.filter(A=>A!==","))==null?void 0:V.map(A=>d0(l.cloneDeep(A).slice(1,l.cloneDeep(A).length-1))),f=[];return(G=l.cloneDeep(i))==null||G.forEach(A=>{var S;(S=A==null?void 0:A.formContents)==null||S.forEach(Z=>{Z==null||Z.forEach(ve=>{f.push(ve)})})}),{groupName:(K=i==null?void 0:i[0])==null?void 0:K.groupName,formContents:f}}else if((t==null?void 0:t[1])!=="["&&(t="["+t+"]"),(t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="["){t=t.slice(1,(t==null?void 0:t.length)-1);let a=[],i=[];return(ce=(p=Je(t))==null?void 0:p.filter(f=>f!==","))==null||ce.forEach(f=>{var A,S,Z,ve;if(!f.includes("&"))Array.isArray(xl(f))||a.push((A=xl(f))==null?void 0:A.formContents);else{let ne=(ve=(Z=(S=l.cloneDeep(f))==null?void 0:S.split("&"))==null?void 0:Z[1])==null?void 0:ve.replaceAll("'",'"');ge.IsJson(ne)&&i.push({[JSON.parse(ne)[0]]:JSON.parse(ne)})}}),{groupName:d,formContents:a,formGroup:i}}}else if(t="[["+t+"]]",ge.IsJson((H=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:H.replaceAll("'",'"')))le=JSON.parse((u=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:u.replaceAll("'",'"'));else if(t=t.slice(2,t.length-2),((x=(k=(y=t==null?void 0:t.replace(":",we))==null?void 0:y.split(we))==null?void 0:k[1])==null?void 0:x[0])!=="{"){t=((de=(re=t==null?void 0:t.replace(":",we))==null?void 0:re.split(we))==null?void 0:de[0])+":{["+((X=(O=t==null?void 0:t.replace(":",we))==null?void 0:O.split(we))==null?void 0:X[1])+"]}";const a=b2(t);return a!=null&&a.tableColumn?{groupName:a==null?void 0:a.groupName,tableColumn:a==null?void 0:a.tableColumn,tableContents:a==null?void 0:a.tableContents}:{groupName:a==null?void 0:a.groupName,formContents:a==null?void 0:a.formContents}}return{groupName:d,formContents:le}}},xl=c=>b2(l.cloneDeep(c).slice(1,l.cloneDeep(c).length-1)),v0=c=>{var t;let d=[];if(!((c==null?void 0:c[0])==="["&&(c==null?void 0:c[1])==="[")){let o=(t=Je(c))==null?void 0:t.filter(r=>r!==",");o==null||o.forEach(r=>{d.push(xl(r))})}return d},y0=Bl.useModelComp(l.pinia),{routeToChildPath:Il}=l.storeToRefs(y0),D2=l.useMenuState(l.pinia),{activeMenuPath:al}=l.storeToRefs(D2),g0=$l.useLoginState(),{loginUserInfo:kl}=l.storeToRefs(g0),k2=async()=>{var N,$,m,U,q,M,ee,L,E,P,Y,s,v,H,u,y,k,x,re,de,O,X,J,B,n,R,Q,C,oe,pe,he,h,T,D,b;let c="";const d=await l.getInsofDataApi({key:{type:"structure",pageKey:l.cloneDeep(Il).value,systemKey:sessionStorage.getItem("systemKey")}});(($=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:$.length)>0&&(c=(Y=(P=(E=(L=(ee=(M=(q=(U=(m=d==null?void 0:d.data)==null?void 0:m.result)==null?void 0:U[0])==null?void 0:q.value)==null?void 0:M.pageData)==null?void 0:ee.compData)==null?void 0:L.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:E.contents)==null?void 0:P[0])==null?void 0:Y.label);let t=al.value;(v=al.value)!=null&&v.includes(`updataLoading${(s=kl.value)==null?void 0:s.account}`)?t=l.cloneDeep(al).value:(u=al.value)!=null&&u.includes(`loading${(H=kl.value)==null?void 0:H.account}`)&&(t=l.cloneDeep(Il).value+`/loading${(y=kl.value)==null?void 0:y.account}`);const o=await l.getInsofDataApi({key:{pageKey:t,systemKey:sessionStorage.getItem("systemKey")}});if((x=al.value)!=null&&x.includes(`updataLoading${(k=kl.value)==null?void 0:k.account}`)){const z=await l.getInsofDataApi({key:{pageKey:(de=al.value.split(`/updataLoading${(re=kl.value)==null?void 0:re.account}`))==null?void 0:de[0],systemKey:sessionStorage.getItem("systemKey")}});let _=(X=(O=z==null?void 0:z.data)==null?void 0:O.result)==null?void 0:X.map(F=>F==null?void 0:F.id);(_==null?void 0:_.length)>0&&await l.batchDeleteInsofDataApi({ids:_})}let r=[];if(((B=(J=o==null?void 0:o.data)==null?void 0:J.result)==null?void 0:B.length)>0){let z=(T=(h=(he=(pe=(oe=(C=(Q=(R=(n=o==null?void 0:o.data)==null?void 0:n.result)==null?void 0:R[0])==null?void 0:Q.value)==null?void 0:C.pageData)==null?void 0:oe.compData)==null?void 0:pe.find(_=>(_==null?void 0:_.key)==="formContent"))==null?void 0:he.contents)==null?void 0:h.find(_=>{var F,j;return(_==null?void 0:_.key)===c||((j=(F=_==null?void 0:_.optionUrl)==null?void 0:F.groupSelect)==null?void 0:j[1])===c}))==null?void 0:T.value;if((b=(D=o==null?void 0:o.data)==null?void 0:D.result)==null||b.forEach(_=>{var j;let F=(j=l.cloneDeep(_))==null?void 0:j.key;F.pageKey=l.cloneDeep(Il).value+"/"+z,D2.setChildMenu(F.pageKey),r.push({id:_==null?void 0:_.id,key:F})}),z===""){l.ElMessage.error(`保存失败,${c}的必填字段没有填写`);return}await l.batchUpdateInsofDataApi({dataList:r}),l.ElMessage.success("保存成功")}},b0={class:"method-content"},D0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(c){const d=e.ref([]),t=c,o=Bl.useModelComp(l.pinia),r=e.ref(!1),N=l.useMenuState(l.pinia),$=$l.useLoginState(l.pinia),{itemData:m,isEdit:U,routeToChildPath:q}=l.storeToRefs(o),{activeMenuPath:M,platform:ee,childMenu:L}=l.storeToRefs(N),{loginUserInfo:E}=l.storeToRefs($),P=e.ref(!1),Y=(O,X)=>{const J=X;return O==null?void 0:O.map(B=>{var n;return B=(n=B==null?void 0:B.map((R,Q)=>{var C;return{key:(C=J[Q])==null?void 0:C.label,value:R}}))==null?void 0:n.filter(R=>R.key!=="操作"),B})},s=async()=>{var O;(O=d.value)!=null&&O.find(X=>(X==null?void 0:X.buttonName)==="保存"),await k2()};e.watch(()=>m.value,async()=>{U.value==="view"&&!P.value&&await de(l.cloneDeep(t.itemData)),P.value=!1},{deep:!0});const v=async(O,X)=>{var J;if(ge.getFormToContent(O==null?void 0:O.name,X)){let B=ge.getFormToContent(O==null?void 0:O.name,X);O==null||O.id,O.compData=await Promise.all((J=l.cloneDeep(O.compData))==null?void 0:J.map(async n=>((n==null?void 0:n.key)==="tableContents"&&(n.extra=await ge.getFixExtraContent(l.cloneDeep(n.contents),(O==null?void 0:O.tableId)??(O==null?void 0:O.id)),n.contents=ge.getNewTableContents(l.cloneDeep(B))),n)))}else O=ge.getFormToData(O,X);return O},H=(O,X)=>{var B,n,R,Q,C,oe,pe,he,h,T,D,b;let J=(B=l.cloneDeep(X))==null?void 0:B.filter(z=>(z==null?void 0:z.comp)!=="methodButton");if(O!=null&&O.includes("[")){let z=(oe=(C=(Q=(R=(n=l.cloneDeep(O))==null?void 0:n.split("["))==null?void 0:R[1])==null?void 0:Q.split("]"))==null?void 0:C[0])==null?void 0:oe.split(":"),_="";if(z!=null&&z[0]){let F=(pe=J==null?void 0:J.find(j=>(j==null?void 0:j.name)===(z==null?void 0:z[0])))==null?void 0:pe.compData;F==null||F.forEach(j=>{var I;(j==null?void 0:j.key)==="formContent"&&((I=j==null?void 0:j.contents)==null||I.forEach(w=>{(w==null?void 0:w.key)===(z==null?void 0:z[1])&&(_=w==null?void 0:w.value)}))})}return _}else if(O!=null&&O.includes("/")){let z={};return(he=l.cloneDeep(J))==null||he.forEach((_,F)=>{var j,I,w,te,g,V,G,K,p,ce,le,a,i,f,A,S,Z,ve,ne;if((_==null?void 0:_.comp)==="Table"){let se=Array.isArray((w=(I=(j=_==null?void 0:_.compData)==null?void 0:j.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:I.contents)==null?void 0:w[0])?(G=(V=(g=(te=_==null?void 0:_.compData)==null?void 0:te.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:g.contents)==null?void 0:V[0])==null?void 0:G.some(ae=>ae==null?void 0:ae.children):[],ie=(ce=(p=(K=_==null?void 0:_.compData)==null?void 0:K.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:p.contents)==null?void 0:ce.map(ae=>ae.slice(1)),me=(A=(f=(i=(a=(le=_==null?void 0:_.compData)==null?void 0:le.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:a.contents)==null?void 0:i[0])==null?void 0:f[0])==null?void 0:A.label,be=(Z=(S=_==null?void 0:_.compData)==null?void 0:S.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:Z.contents;if(se)(se==null?void 0:se.length)===0?z[_.name]=Y(ie,be):z[me]=Y(ie,be);else{const ae=[];be=be.slice(1,be.length-1),be==null||be.forEach((fe,De)=>{ie==null||ie.forEach(ye=>{ae.push({key:fe.label+ye[0],value:ye[De+1]})})}),z["form"+F]=ae}}else{const se=(ne=(ve=_.compData)==null?void 0:ve.find(me=>(me==null?void 0:me.key)==="formContent"))==null?void 0:ne.contents;z!=null&&z.form||(z.form=[]);const ie=[];se==null||se.forEach(me=>{me.key!==""&&(me={key:(me==null?void 0:me.key)??(me==null?void 0:me.label),value:me==null?void 0:me.value},ie.push(me))}),z.form=[...ie,...l.cloneDeep(z==null?void 0:z.form)]}}),z}else{if(O==="createInsofDataApi"){let z=(h=l.cloneDeep(X))==null?void 0:h[0];return z={comp:(T=l.cloneDeep(z))==null?void 0:T.comp,compData:(D=l.cloneDeep(z))==null?void 0:D.compData,name:(b=l.cloneDeep(z))==null?void 0:b.name},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:M.value},value:{pageData:z}}}return O}},u=async(O,X,J)=>{var R;let B=await ge.getItemData(X,sessionStorage.getItem("systemKey"),""),n=B==null?void 0:B.find(Q=>(Q==null?void 0:Q.name)===(J==null?void 0:J[0]));if(n&&(n==null?void 0:n.comp)==="Table"){let Q={};for(let D in l.cloneDeep(O))l.cloneDeep(O)[D]!=="loginUser"?Q[D]=l.cloneDeep(O)[D]:Q[D]=(R=E.value)==null?void 0:R.account;let C=[],oe=Q;Array.isArray(O)||(oe=[Q]),oe==null||oe.forEach(D=>{C.push({[D[J[1]]]:D})});let pe=[],he=C==null?void 0:C.map(D=>{var b;return(b=Object.keys(D))==null?void 0:b[0]});B==null||B.forEach(D=>{var b;(D==null?void 0:D.name)===(J==null?void 0:J[0])&&((b=D==null?void 0:D.compData)==null||b.forEach(z=>{var _;(z==null?void 0:z.key)==="tableContents"&&((_=z==null?void 0:z.contents)==null||_.forEach(F=>{F!=null&&F.some(j=>he.includes(j))&&pe.push({[F.find(j=>j.id).id]:F.find(j=>he.includes(j))})}))}))});let h=pe==null?void 0:pe.map(D=>{var b;return(b=Object.keys(D))==null?void 0:b[0]}),T=[];h==null||h.forEach(D=>{var _;let b=(_=pe==null?void 0:pe.find(F=>{var j;return((j=Object.keys(F))==null?void 0:j[0].toString())===D.toString()}))==null?void 0:_[D],z=C==null?void 0:C.find(F=>{var j;return((j=Object.keys(F))==null?void 0:j[0])===b});T.push({id:parseInt(D),value:{tableData:z[b]}})}),(T==null?void 0:T.length)>0&&await l.batchUpdateInsofDataApi({dataList:T})}},y=async(O,X,J)=>{var R,Q,C,oe,pe,he,h,T,D;let B=await ge.getItemData(X,sessionStorage.getItem("systemKey"),""),n=B==null?void 0:B.find(b=>(b==null?void 0:b.name)===(J==null?void 0:J[0]));if(n){if((n==null?void 0:n.comp)==="Table"){let b={};for(let z in l.cloneDeep(O))l.cloneDeep(O)[z]!=="loginUser"?b[z]=l.cloneDeep(O)[z]:b[z]=(R=E.value)==null?void 0:R.account;await l.createInsofDataApi({key:{type:"data",pageKey:X,tableId:n==null?void 0:n.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:b}})}else if((n==null?void 0:n.comp)==="Form"){let b=l.cloneDeep(n),z=Object.keys(O),_="";(C=(Q=l.cloneDeep(b))==null?void 0:Q.compData)==null||C.forEach(g=>{var V,G;(g==null?void 0:g.key)==="formContent"&&((G=(V=l.cloneDeep(g))==null?void 0:V.contents)==null||G.forEach(K=>{var p;z.includes(K==null?void 0:K.key)&&(K==null?void 0:K.value)===((p=E.value)==null?void 0:p.姓名)&&(_=K==null?void 0:K.key)}))});let F=[];(oe=Object.values(O[_]))==null||oe.forEach(g=>{g!=null&&g.includes("(")&&F.push(g)}),F=[...new Set(F)];const j=F==null?void 0:F.map(async g=>{var ce,le,a,i,f,A,S,Z,ve,ne,se,ie;let V="";(A=(f=(i=(a=(le=(ce=l.cloneDeep(g))==null?void 0:ce.split("("))==null?void 0:le[1])==null?void 0:a.split(")"))==null?void 0:i[0])==null?void 0:f.split(":"))==null||A.forEach(me=>{V=V===""?V+me.replaceAll("'",""):V+"/"+me.replaceAll("'","")});let G=[];(ie=(se=(ne=(ve=(Z=(S=l.cloneDeep(g))==null?void 0:S.split("<"))==null?void 0:Z[1])==null?void 0:ve.split(">"))==null?void 0:ne[0])==null?void 0:se.split(":"))==null||ie.forEach(me=>{G.push(me.replaceAll("'",""))});const K=await ge.getItemData(V,sessionStorage.getItem("systemKey"),"");let p="";return K==null||K.forEach(me=>{var be;me.name===(G==null?void 0:G[0])&&((be=me==null?void 0:me.compData)==null||be.forEach(ae=>{var fe;(ae==null?void 0:ae.key)==="formContent"&&((fe=ae.contents)==null||fe.forEach(De=>{(De==null?void 0:De.key)===(G==null?void 0:G[1])&&(p=De==null?void 0:De.value)}))}))}),{[g]:p}}),I=await Promise.all(j);b.compData=(he=(pe=l.cloneDeep(b))==null?void 0:pe.compData)==null?void 0:he.map(g=>{var V,G;return(g==null?void 0:g.key)==="formContent"&&(g.contents=(G=(V=l.cloneDeep(g))==null?void 0:V.contents)==null?void 0:G.map(K=>{var p,ce,le,a;return(p=O[_])!=null&&p[K==null?void 0:K.key]&&(O[_][K==null?void 0:K.key].includes("(")?K.value=(ce=I==null?void 0:I.find(i=>{var f;return((f=Object.keys(i))==null?void 0:f[0])===O[_][K==null?void 0:K.key]}))==null?void 0:ce[O[_][K==null?void 0:K.key]]:K.value=(a=(le=l.cloneDeep(O))==null?void 0:le[_])==null?void 0:a[K==null?void 0:K.key]),K})),g});const w=await l.getInsofDataApi({key:{type:"structure",pageKey:X,systemKey:sessionStorage.getItem("systemKey")}});let te="";((h=w==null?void 0:w.data)==null?void 0:h.type)==="success"&&((D=(T=w==null?void 0:w.data)==null?void 0:T.result)==null||D.forEach(g=>{var V,G;((G=(V=g==null?void 0:g.value)==null?void 0:V.pageData)==null?void 0:G.name)===(J==null?void 0:J[0])&&(te=g.id)}),await l.updateInsofDataApi({id:te,value:{pageData:b}}))}}},k=async(O,X,J)=>{var R,Q,C,oe,pe,he;let B=await ge.getItemData(X,sessionStorage.getItem("systemKey"),""),n=B==null?void 0:B.find(h=>(h==null?void 0:h.name)===(J==null?void 0:J[0]));if(n){if(!(J!=null&&J[1])&&(n==null?void 0:n.comp)==="Table"){let h={};for(let T in l.cloneDeep(O))l.cloneDeep(O)[T]!=="loginUser"?h[T]=l.cloneDeep(O)[T]:h[T]=(R=E.value)==null?void 0:R.account;await l.createInsofDataApi({key:{type:"data",pageKey:X,tableId:n==null?void 0:n.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:h}})}else if(!(J!=null&&J[1])&&(n==null?void 0:n.comp)==="Form"){let h=l.cloneDeep(n);h.compData=(C=(Q=l.cloneDeep(h))==null?void 0:Q.compData)==null?void 0:C.map(b=>{var z,_;return(b==null?void 0:b.key)==="formContent"&&(b.contents=(_=(z=l.cloneDeep(b))==null?void 0:z.contents)==null?void 0:_.map(F=>{var j,I;return(j=l.cloneDeep(O))!=null&&j[F==null?void 0:F.key]&&(F.value=(I=l.cloneDeep(O))==null?void 0:I[F==null?void 0:F.key]),F})),b});const T=await l.getInsofDataApi({key:{type:"structure",pageKey:X,systemKey:sessionStorage.getItem("systemKey")}});let D="";((oe=T==null?void 0:T.data)==null?void 0:oe.type)==="success"&&((he=(pe=T==null?void 0:T.data)==null?void 0:pe.result)==null||he.forEach(b=>{var z,_;((_=(z=b==null?void 0:b.value)==null?void 0:z.pageData)==null?void 0:_.name)===(J==null?void 0:J[0])&&(D=b.id)}),await l.updateInsofDataApi({id:D,value:{pageData:h}}))}}},x=["createInsofDataApi"],re=async O=>{var J,B,n,R,Q,C,oe,pe,he,h,T,D,b,z,_,F,j,I;N.setImportLoading(!0);let X={};if(ee.value!=="browser"){const w=[];X.form={},(J=l.cloneDeep(O.content))==null||J.forEach((g,V)=>{var G,K,p,ce,le,a,i,f,A,S,Z,ve,ne,se;if((g==null?void 0:g.comp)==="Table"){(K=(G=g==null?void 0:g.compData)==null?void 0:G.find(ae=>(ae==null?void 0:ae.key)==="header"))==null||K.contents;let ie=(le=(ce=(p=g==null?void 0:g.compData)==null?void 0:p.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:ce.contents)==null?void 0:le.map(ae=>ae.slice(1));(S=(A=(f=(i=(a=g==null?void 0:g.compData)==null?void 0:a.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:i.contents)==null?void 0:f[0])==null?void 0:A[0])==null||S.label;let me=(ve=(Z=g==null?void 0:g.compData)==null?void 0:Z.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:ve.contents,be=[];ie==null||ie.forEach(ae=>{let fe=[];ae==null||ae.forEach((De,ye)=>{var xe;let ke={};((xe=me[ye])==null?void 0:xe.label)!=="操作"&&(ke[me[ye].label]=De,fe.push(ke))}),be.push(fe)}),X[g.name]=be}else{const ie=(se=(ne=g.compData)==null?void 0:ne.find(me=>(me==null?void 0:me.key)==="formContent"))==null?void 0:se.contents;ie==null||ie.forEach(me=>{var be;me.key!==""&&(me={key:(me==null?void 0:me.key)??(me==null?void 0:me.label),value:(be=me==null?void 0:me.value)==null?void 0:be.toString()},w.push(me))})}}),X.form=ge.getFormContents(w);let te=X.form;for(let g in X)g!=="form"&&(te[g]=ge.getTableToContent(X[g]));if(O.api){try{r.value=!0;const g=await l.axios.post(O.api,te,{headers:{"Content-Type":"application/json"}});if(((B=g==null?void 0:g.data)==null?void 0:B.code)===200||((n=g==null?void 0:g.data)==null?void 0:n.statusCode)===200){let V=await((R=g==null?void 0:g.data)==null?void 0:R.data);const G=(Q=l.cloneDeep(m.value))==null?void 0:Q.filter(le=>(le==null?void 0:le.comp)!=="methodButton"),K=await Promise.all(G.map(le=>v(le,V)));await Promise.all(K);const p=(C=l.cloneDeep(m.value))==null?void 0:C.filter(le=>(le==null?void 0:le.comp)==="methodButton");let ce=[...K,...p];await ge.getProjectContent(ce),r.value=!1}else l.ElMessage.error("方法调用失败:"+((oe=g==null?void 0:g.data)==null?void 0:oe.errors)),r.value=!1}catch{l.ElMessage.error("方法调用失败"),r.value=!1}o.setFreshContent(!0)}}else if(O.api){let w=await ge.getItemData((L==null?void 0:L.value)===""?M.value:L==null?void 0:L.value,sessionStorage.getItem("systemKey"),""),te={};(he=(pe=O==null?void 0:O.extraValues)==null?void 0:pe.input)==null||he.forEach(ce=>{var le;x!=null&&x.find(a=>a===ce)?te=H(ce,w):te[Object.keys(ce)[0]]=H((le=Object.values(ce))==null?void 0:le[0],w)});let g=!1;(T=(h=O==null?void 0:O.extraValues)==null?void 0:h.output)==null||T.forEach(ce=>{var le,a;(a=(le=Object.values(ce))==null?void 0:le[0])!=null&&a.includes(".doc")&&(g=!0)});let V;g?V=await l.axios.post(O.api,te,{responseType:"blob",headers:{"Content-Type":"application/json"}}):V=await l.axios.post(O.api,te,{headers:{"Content-Type":"application/json"}});let G=(_=(z=(b=(D=l.cloneDeep(O))==null?void 0:D.extraValues)==null?void 0:b.output)==null?void 0:z.map(ce=>{var le,a,i,f,A,S,Z,ve,ne,se,ie,me,be,ae,fe;if(!((a=(le=Object.values(ce))==null?void 0:le[0])!=null&&a.includes(".doc"))){let De=(se=(ne=(ve=(f=l.cloneDeep((i=Object.values(ce))==null?void 0:i[0]))==null?void 0:f.split("["))==null?void 0:ve[((Z=(S=l.cloneDeep((A=Object.values(ce))==null?void 0:A[0]))==null?void 0:S.split("["))==null?void 0:Z.length)-1])==null?void 0:ne.split("]"))==null?void 0:se[0];De==null||De.split(":");let ye=l.cloneDeep((ie=Object.values(ce))==null?void 0:ie[0]).substring(0,l.cloneDeep((me=Object.values(ce))==null?void 0:me[0]).lastIndexOf("["));if(ye=(ae=l.cloneDeep(ye))==null?void 0:ae.slice(0,((be=l.cloneDeep(ye))==null?void 0:be.length)-1),ye!=null&&ye.includes("[")){let ke="";if((fe=Al(ye,"/"))==null||fe.forEach(xe=>{var Ne,ue,Ee,Be,Pe,Ie,Le;if(!(xe!=null&&xe.includes("[")))ke=ke===""?ke+xe.replaceAll("/",""):ke+"/"+xe.replaceAll("/","");else{let Ze=l.cloneDeep(xe).slice(1,((Ne=l.cloneDeep(xe))==null?void 0:Ne.length)-1),Re=(Ie=(Pe=(Be=(Ee=(ue=l.cloneDeep(Ze))==null?void 0:ue.split("["))==null?void 0:Ee[1])==null?void 0:Be.split("]"))==null?void 0:Pe[0])==null?void 0:Ie.split(":"),Ke="",Ge=(Le=w==null?void 0:w.find(Te=>(Te==null?void 0:Te.name)===(Re==null?void 0:Re[0])))==null?void 0:Le.compData;Ge==null||Ge.forEach(Te=>{var $e;(Te==null?void 0:Te.key)==="formContent"&&(($e=Te==null?void 0:Te.contents)==null||$e.forEach(Fe=>{(Fe==null?void 0:Fe.key)===(Re==null?void 0:Re[1])&&(Ke=Fe==null?void 0:Fe.value)}))}),ke=ke===""?ke+Ke.replaceAll("/",""):ke+"/"+Ke.replaceAll("/","")}}),ye=ke,ye[(ye==null?void 0:ye.length)-1]!=="/")return ye}}}))==null?void 0:_.filter(ce=>ce);G=[...new Set(l.cloneDeep(G))];let K=G==null?void 0:G.map(async ce=>{let le=await ge.getItemData(ce,sessionStorage.getItem("systemKey"),"");if((le==null?void 0:le.length)===0)return await ge.getParentContents(ce)});await Promise.all(K);let p=(I=(j=(F=l.cloneDeep(O))==null?void 0:F.extraValues)==null?void 0:j.output)==null?void 0:I.map(async ce=>{var ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be,Pe,Ie,Le,Ze,Re,Ke,Ge,Te,$e,Fe,ol,tl,nl,sl,il,rl,cl,ul,pl,dl,hl,fl,ml,vl,yl,Qe,Pl,Ol,Rl,Ul,Hl,jl,Jl,Kl,Gl,Wl,ql,Xl,Yl,Zl,Ql,e2,l2,a2,o2;if((se=(ne=Object.values(ce))==null?void 0:ne[0])!=null&&se.includes(".doc")){var le=new Blob([V.data],{type:"application/octet-stream;charset=UTF-8"}),a=V.headers["content-disposition"],i=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),f=i.exec(a),A=((be=(me=(ie=O==null?void 0:O.extraContent)==null?void 0:ie[0])==null?void 0:me.split("."))==null?void 0:be[0])+"."+((ae=f==null?void 0:f[1].split("."))==null?void 0:ae[1]),S=document.createElement("a"),Z=window.URL.createObjectURL(le),ve=/^["](.*)["]$/g;S.style.display="none",S.href=Z,S.download=decodeURI(A.replace(ve,"$1")),document.body.appendChild(S),S.click(),document.body.removeChild(S),window.URL.revokeObjectURL(Z)}else{let Ml=(Ee=(ue=(Ne=(De=l.cloneDeep((fe=Object.values(ce))==null?void 0:fe[0]))==null?void 0:De.split("["))==null?void 0:Ne[((xe=(ke=l.cloneDeep((ye=Object.values(ce))==null?void 0:ye[0]))==null?void 0:ke.split("["))==null?void 0:xe.length)-1])==null?void 0:ue.split("]"))==null?void 0:Ee[0],Ae=Ml==null?void 0:Ml.split(":"),He=l.cloneDeep((Be=Object.values(ce))==null?void 0:Be[0]).substring(0,l.cloneDeep((Pe=Object.values(ce))==null?void 0:Pe[0]).lastIndexOf("["));if(He.includes("[")&&(He=(Le=l.cloneDeep(He))==null?void 0:Le.slice(0,((Ie=l.cloneDeep(He))==null?void 0:Ie.length)-1)),He!=null&&He.includes("[")){let ze="";(Ze=Al(He,"/"))==null||Ze.forEach(Se=>{var gl,Oe,Ue,Ye,bl,t2,n2;if(!(Se!=null&&Se.includes("[")))ze=ze===""?ze+Se.replaceAll("/",""):ze+"/"+Se.replaceAll("/","");else{let C2=l.cloneDeep(Se).slice(1,((gl=l.cloneDeep(Se))==null?void 0:gl.length)-1),el=(t2=(bl=(Ye=(Ue=(Oe=l.cloneDeep(C2))==null?void 0:Oe.split("["))==null?void 0:Ue[1])==null?void 0:Ye.split("]"))==null?void 0:bl[0])==null?void 0:t2.split(":"),zl="",Fl=(n2=w==null?void 0:w.find(je=>(je==null?void 0:je.name)===(el==null?void 0:el[0])))==null?void 0:n2.compData;Fl==null||Fl.forEach(je=>{var s2;(je==null?void 0:je.key)==="formContent"&&((s2=je==null?void 0:je.contents)==null||s2.forEach(ll=>{(ll==null?void 0:ll.key)===(el==null?void 0:el[1])&&(zl=ll==null?void 0:ll.value)}))}),ze=ze===""?ze+zl.replaceAll("/",""):ze+"/"+zl.replaceAll("/","")}}),He=ze}if(((Re=V==null?void 0:V.data)==null?void 0:Re.statusCode)===200){if((Ge=(Ke=V==null?void 0:V.data)==null?void 0:Ke.data)!=null&&Ge[Ae==null?void 0:Ae[0]]&&(Ae==null?void 0:Ae.length)===1)return await k(($e=(Te=V==null?void 0:V.data)==null?void 0:Te.data)==null?void 0:$e[Ae==null?void 0:Ae[0]],He,Ae);if((ol=(Fe=V==null?void 0:V.data)==null?void 0:Fe.data)!=null&&ol[Ae==null?void 0:Ae[0]])return await u((nl=(tl=V==null?void 0:V.data)==null?void 0:tl.data)==null?void 0:nl[Ae==null?void 0:Ae[0]],He,Ae);if((Ae==null?void 0:Ae.length)===1){const ze=(rl=(il=(sl=V==null?void 0:V.data)==null?void 0:sl.data)==null?void 0:il.path)==null?void 0:rl.path;let Se="";(hl=(dl=(pl=(ul=(cl=ze==null?void 0:ze.split("("))==null?void 0:cl[1])==null?void 0:ul.split(")"))==null?void 0:pl[0])==null?void 0:dl.split(":"))==null||hl.forEach(Ue=>{var Ye,bl;Se=Se===""?Se+((Ye=Ue==null?void 0:Ue.replaceAll("'",""))==null?void 0:Ye.trim()):Se+"/"+((bl=Ue==null?void 0:Ue.replaceAll("'",""))==null?void 0:bl.trim())});let gl=[(Qe=(yl=(vl=(ml=(fl=ze==null?void 0:ze.split("<"))==null?void 0:fl[1])==null?void 0:ml.split(">"))==null?void 0:vl[0])==null?void 0:yl.replaceAll("'",""))==null?void 0:Qe.trim()],Oe;return(Rl=(Ol=(Pl=V==null?void 0:V.data)==null?void 0:Pl.data)==null?void 0:Ol.data)!=null&&Rl[Ae==null?void 0:Ae[0]]?Oe=await k((jl=(Hl=(Ul=V==null?void 0:V.data)==null?void 0:Ul.data)==null?void 0:Hl.data)==null?void 0:jl[Ae==null?void 0:Ae[0]],Se,Ae):Oe=await y((Kl=(Jl=V==null?void 0:V.data)==null?void 0:Jl.data)==null?void 0:Kl.data,Se,gl),Oe}else{const ze=(ql=(Wl=(Gl=V==null?void 0:V.data)==null?void 0:Gl.data)==null?void 0:Wl.path)==null?void 0:ql.path;let Se="";return(e2=(Ql=(Zl=(Yl=(Xl=ze==null?void 0:ze.split("("))==null?void 0:Xl[1])==null?void 0:Yl.split(")"))==null?void 0:Zl[0])==null?void 0:Ql.split(":"))==null||e2.forEach(Oe=>{var Ue,Ye;Se=Se===""?Se+((Ue=Oe==null?void 0:Oe.replaceAll("'",""))==null?void 0:Ue.trim()):Se+"/"+((Ye=Oe==null?void 0:Oe.replaceAll("'",""))==null?void 0:Ye.trim())}),await u((o2=(a2=(l2=V==null?void 0:V.data)==null?void 0:l2.data)==null?void 0:a2.data)==null?void 0:o2[Ae==null?void 0:Ae[0]],Se,Ae)}}}});await Promise.all(p)}N.setImportLoading(!1),P.value=!0},de=async O=>{var R,Q,C;const X=l.cloneDeep(O);let J;O!=null&&O[0].path&&(J=await(X==null?void 0:X.map(async(oe,pe)=>{var b,z,_,F,j,I,w,te,g,V;const h=(await l.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:(b=O==null?void 0:O[0])==null?void 0:b.path}})).data.result;let T="";const D=await ge.getItemData(M.value,sessionStorage.getItem("systemKey"),"");return h==null||h.forEach(G=>{var K,p,ce,le,a;((p=(K=G==null?void 0:G.value)==null?void 0:K.tableData)==null?void 0:p.算法名称)===((ce=X==null?void 0:X[pe])==null?void 0:ce.method)&&(T=(a=(le=G==null?void 0:G.value)==null?void 0:le.tableData)==null?void 0:a.算法体)}),{buttonName:((z=X==null?void 0:X[pe])==null?void 0:z.method)??((j=(F=(_=h==null?void 0:h[0])==null?void 0:_.value)==null?void 0:F.tableData)==null?void 0:j.算法名称),api:T===""?(te=(w=(I=h==null?void 0:h[0])==null?void 0:I.value)==null?void 0:w.tableData)==null?void 0:te.算法体:T,content:D==null?void 0:D.filter(G=>G.comp!=="methodButton"),extraContent:(g=l.cloneDeep(oe.value))==null?void 0:g.slice(1),methodName:(oe==null?void 0:oe.path)??"",extraValues:(V=X==null?void 0:X[pe])==null?void 0:V.data}})));const B=X==null?void 0:X.map(async oe=>{var b,z,_,F,j,I;const he=(b=(await l.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:oe.method}})).data.result)==null?void 0:b[0],h=await l.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:he==null?void 0:he.id}}),T=await ge.getItemData(M.value,sessionStorage.getItem("systemKey"),""),D=(z=h.data.result)==null?void 0:z[0];return{buttonName:(_=he==null?void 0:he.key)==null?void 0:_.methodKey,api:(j=(F=D==null?void 0:D.value)==null?void 0:F.tableData)==null?void 0:j[0],content:T==null?void 0:T.filter(w=>w.comp!=="methodButton"),extraContent:(I=l.cloneDeep(oe.value))==null?void 0:I.slice(1),methodName:(oe==null?void 0:oe.method)??""}}),n=(R=O==null?void 0:O[0])!=null&&R.path&&((Q=O==null?void 0:O[0])==null?void 0:Q.path)!==""?await Promise.all(J):await Promise.all(B);d.value=n==null?void 0:n.filter(oe=>oe==null?void 0:oe.extraContent),(C=d.value)==null||C.forEach(oe=>{var pe;oe.api===""&&((pe=oe.content)==null||pe.forEach(he=>{var h;he.comp=="Table"&&o.setExtraContents(ge.methodTableToContent(he.compData,(h=oe.extraContent)==null?void 0:h[0]))}))})};return e.watch(()=>t.itemData,async()=>{U.value=="view"&&!P.value&&await de(l.cloneDeep(t.itemData)),P.value=!1},{immediate:!0,deep:!0}),(O,X)=>{var J;return e.openBlock(),e.createElementBlock("div",b0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((J=d.value)==null?void 0:J.filter(B=>(B==null?void 0:B.buttonName)!=="保存"),B=>(e.openBlock(),e.createElementBlock("div",null,[B.api!==""?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",modelValue:B.buttonName,onClickTrigger:n=>re(B),loading:r.value},null,8,["modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)]))),256)),e.unref(q)!==""?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",onClickTrigger:s,modelValue:"保存"})):e.createCommentVNode("",!0)])}}},k0=Ve._export_sfc(D0,[["__scopeId","data-v-5cba9928"]]),w0={};function C0(c,d){return" 567 "}const _0=Ve._export_sfc(w0,[["render",C0]]),A0={class:"module content"},x0={class:"module data"},B0={class:"module layout"},V0={class:"form-content"},E0=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.reactive({visible:!1,width:"40%",title:"签名配置"}),N=e.ref("create"),$=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),m=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),U=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),q=e.ref({}),M=e.ref([]),ee=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:M.value},{key:"signConfig",contents:q.value}]}),L=s=>{var v;q.value=l.cloneDeep(s),o("change",(v=ee())==null?void 0:v.compData)},E=s=>{var v,H;if((s==null?void 0:s.buttonName)==="确认"){const u=l.cloneDeep(s==null?void 0:s.content);switch(N.value){case"create":M.value.push({...u,index:((v=M.value)==null?void 0:v.length)+1});break}o("change",(H=ee())==null?void 0:H.compData),r.visible=!1}else r.visible=!1},P=(s,v)=>{var H,u;switch(s){case"create":(H=U.value)==null||H.forEach(y=>{y.value=""}),N.value="create",r.visible=!0;break;case"update":(u=U.value)==null||u.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),N.value="update",r.visible=!0;break;case"delete":M.value.splice(v,1),N.value="delete";break}},Y=()=>{r.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,H;s&&(q.value=((v=s==null?void 0:s.find(u=>u.key==="signConfig"))==null?void 0:v.contents)??{},M.value=((H=s==null?void 0:s.find(u=>u.key==="signTypeList"))==null?void 0:H.contents)??[])},{immediate:!0}),(s,v)=>{const H=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",A0,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(u,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>P("create"))},{icon:e.withCtx(()=>[e.createVNode(H,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",x0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(y,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(y==null?void 0:y.label),1),e.createElementVNode("div",null,[e.createVNode(u,{type:"primary",size:"small",onClick:x=>P("update",{...y,index:k+1})},{default:e.withCtx(()=>v[3]||(v[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(u,{type:"danger",size:"small",onClick:x=>P("delete",k)},{default:e.withCtx(()=>v[4]||(v[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",B0,[e.createVNode(Ce.ssForm,{rowContents:m.value,onChange:L},null,8,["rowContents"])])]),e.createVNode(Ce.ssDialog,{visible:r.visible,title:r.title,onBeforeDestroy:Y,width:r.width},{default:e.withCtx(()=>[e.createElementVNode("div",V0,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:U.value,key:U.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:$.value,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),M0=Ve._export_sfc(E0,[["__scopeId","data-v-487e0536"]]),z0=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(c,{emit:d}){const t=c,o=d,r=e.ref(1),N=e.computed(()=>{var ee,L;return(ee=t==null?void 0:t.stepConfig)!=null&&ee.allowTrigger?r.value:(L=t==null?void 0:t.stepConfig)==null?void 0:L.active}),$=(ee,L)=>{r.value=L,o("clickStep",ee,L)},m=ee=>Ce.getComponent(ee),U=()=>{var L;const ee=(L=t==null?void 0:t.stepList)==null?void 0:L.find((E,P)=>P+1===N.value);return console.log("findStep",ee),ee?ee==null?void 0:ee.children:[]},q=ee=>{o("clickTrigger",ee)},M=ee=>{o("changeTrigger",ee)};return(ee,L)=>{var Y,s,v,H,u;const E=e.resolveComponent("el-step"),P=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(P,{direction:(Y=c.stepConfig)==null?void 0:Y.direction,active:N.value,"finish-status":"success",simple:(s=c.stepConfig)==null?void 0:s.simple,"align-center":((v=c.stepConfig)==null?void 0:v.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.stepList,(y,k)=>(e.openBlock(),e.createBlock(E,{key:k,class:"step-item",onClick:x=>$(y,k+1)},{title:e.withCtx(()=>[e.renderSlot(ee.$slots,"title",{title:y==null?void 0:y.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(ee.$slots,"description",{description:y==null?void 0:y.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(H=c.stepConfig)!=null&&H.allowTrigger&&((u=c.stepConfig)!=null&&u.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(U(),(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m(y==null?void 0:y.type)),{modelValue:y.value,"onUpdate:modelValue":x=>y.value=x,onClickTrigger:q,onChangeTrigger:M,content:y==null?void 0:y.content},e.createSlots({_:2},[e.renderList(ee.$slots,(x,re)=>({name:re,fn:e.withCtx(de=>[e.renderSlot(ee.$slots,re,e.mergeProps({ref_for:!0},de||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),F0=Ve._export_sfc(z0,[["__scopeId","data-v-d7c99969"]]),N0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(c,{emit:d}){const t=c,o=d,r=e.ref({}),N=e.ref([]),$=(m,U)=>{o("clickStep",m,U)};return e.watch(()=>t==null?void 0:t.itemData,m=>{var U,q;N.value=(U=m==null?void 0:m.find(M=>(M==null?void 0:M.key)==="stepList"))==null?void 0:U.contents,r.value=(q=m==null?void 0:m.find(M=>(M==null?void 0:M.key)==="stepConfig"))==null?void 0:q.contents},{immediate:!0}),(m,U)=>{const q=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(F0,{stepConfig:r.value,stepList:N.value,onClickStep:$},{icon:e.withCtx(()=>[e.createVNode(q,{name:"import"})]),title:e.withCtx(({title:M})=>[e.createTextVNode(e.toDisplayString(M),1)]),description:e.withCtx(({description:M})=>[e.createTextVNode(e.toDisplayString(M),1)]),_:1},8,["stepConfig","stepList"])}}}),S0=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(c){return(d,t)=>{const o=e.resolveComponent("el-timeline-item"),r=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(r,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.activities,(N,$)=>(e.openBlock(),e.createBlock(o,{key:$,timestamp:N.timestamp,placement:c.timeLineConfig.placement,center:c.timeLineConfig.isCenter,"hide-timestamp":!0,type:c.timeLineConfig.type,color:c.timeLineConfig.color,size:c.timeLineConfig.size,icon:c.timeLineConfig.icon,hollow:c.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content",{content:N==null?void 0:N.content,timestamp:N==null?void 0:N.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),T0=Ve._export_sfc(S0,[["__scopeId","data-v-4172a886"]]),I0={class:"line-content"},L0={class:"line-time"},$0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(c){const d=c,t=e.ref({}),o=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,r=>{var N,$;o.value=(N=r==null?void 0:r.find(m=>(m==null?void 0:m.key)==="timeLineList"))==null?void 0:N.contents,t.value=($=r==null?void 0:r.find(m=>(m==null?void 0:m.key)==="timeLineConfig"))==null?void 0:$.contents},{immediate:!0}),(r,N)=>(e.openBlock(),e.createBlock(T0,{activities:o.value,timeLineConfig:t.value},{content:e.withCtx(({content:$,timestamp:m})=>[e.createElementVNode("span",I0,e.toDisplayString($),1),e.createElementVNode("span",L0,e.toDisplayString(m),1)]),_:1},8,["activities","timeLineConfig"]))}}),P0=Ve._export_sfc($0,[["__scopeId","data-v-b4d9deed"]]),O0={class:"tabs-content"},R0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},setup(c){const d=c,t=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,o=>{const r=o.find(N=>(N==null?void 0:N.key)=="stepList");r&&(t.value=r.contents.map(N=>({value:N.value||N.title,label:N.label||N.title,children:N.children||[]})))},{immediate:!0,deep:!0}),(o,r)=>(e.openBlock(),e.createElementBlock("div",O0,[e.createVNode(Ce.ssTab,{tabsContents:t.value},null,8,["tabsContents"])]))}},U0=Ve._export_sfc(R0,[["__scopeId","data-v-d3bb10b7"]]),Vl=l.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[]}),actions:{setItemData(c){this.itemData=c},setCurStructureCompIds(c){this.curStructureCompIds=c},setRefreshCurStructure(c){this.isRefreshCurStructure=c},setOriginalData(c){this.originalData=c},setExtraContents(c){this.extraContents=c},setNodeDev(c){this.nodeDev=c},setIsEdit(c){this.isEdit=c}}}),H0={class:"type-select"},j0=["onClick"],J0={class:"list-icon"},K0={__name:"modelSelect",setup(c){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=r=>{const N=l.cloneDeep(t.value);N.push({comp:r.comp,name:r.name,compData:[]}),d.setItemData(N)};return(r,N)=>{const $=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w2),(m,U)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:U},[e.createElementVNode("div",{class:"list-content",onClick:q=>o(m)},[e.createElementVNode("div",J0,[e.createVNode($,{name:m.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(m.name),1)],8,j0)]))),128))])}}},G0=Ve._export_sfc(K0,[["__scopeId","data-v-91799bf8"]]),W0={class:"fill-content"},q0={class:"operate-content"},X0={class:"collapse-title-content"},Y0={class:"collapse-title-item"},Z0={key:1},Q0=["onClick"],eo={class:"icon-content"},lo={key:0,class:"edit-content"},ao=["onClick"],oo={class:"comp-child"},to={__name:"modelFill",setup(c){const d=Vl(l.pinia),{itemData:t,originalData:o}=l.storeToRefs(d),r=e.ref([]);e.ref([]);const N=e.ref([]),$=e.ref([]),m=E=>{var Y;let P=(Y=l.cloneDeep($.value))==null?void 0:Y.map((s,v)=>(E===v&&(s.content=!0),s));$.value=P},U=E=>{var Y;let P=(Y=l.cloneDeep($.value))==null?void 0:Y.map((s,v)=>(E===v&&(s.content=!1),s));$.value=P,r.value=l.cloneDeep(t.value)},q=(E,P)=>{var H;let Y=(H=l.cloneDeep($.value))==null?void 0:H.map((u,y)=>(E===y&&(u.content=!1),u));$.value=Y;const s=l.cloneDeep(t.value),v=s==null?void 0:s.filter((u,y)=>(y===E&&(u.name=P),u));d.setOriginalData(v),d.setItemData(v)};e.watch(()=>t.value,()=>{var E,P,Y;!t.value||((E=t.value)==null?void 0:E.length)===0?r.value=[]:r.value=(P=l.cloneDeep(t.value))==null?void 0:P.filter(s=>(s==null?void 0:s.comp)!=="methodButton"),N.value=r.value,$.value=(Y=l.cloneDeep(N.value))==null?void 0:Y.map((s,v)=>({id:v,content:!1}))},{deep:!0,immediate:!0});const M=E=>El(E),ee=(E,P,Y)=>{var v,H;if(!E)return;let s=l.cloneDeep(t.value);s=(v=s==null?void 0:s.map((u,y)=>(y===Y&&(u.compData=E),u)))==null?void 0:v.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),$.value=(H=l.cloneDeep(s))==null?void 0:H.map((u,y)=>({id:y,content:!1})),d.setOriginalData(s),d.setItemData(s)},L=E=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const P=l.cloneDeep(t.value),Y=P==null?void 0:P.filter((s,v)=>v!==E);d.setOriginalData(Y),d.setItemData(Y),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,P)=>{const Y=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",W0,[P[1]||(P[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",q0,[e.createVNode(A2.default,{class:"collapse-content",collapseContents:r.value},{title:e.withCtx(({item:s,index:v})=>{var H,u,y,k,x,re,de,O,X,J;return[e.createElementVNode("div",X0,[e.createElementVNode("div",Y0,[(u=(H=$.value)==null?void 0:H.find(B=>B.id===v))!=null&&u.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:s.name&&s.name!==""?"8px":"0px"})},e.toDisplayString(s.name),5)),(k=(y=$.value)==null?void 0:y.find(B=>B.id===v))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",Z0,[e.createVNode(Ce._sfc_main$2,{modelValue:s.name,"onUpdate:modelValue":B=>s.name=B,onClick:P[0]||(P[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(re=(x=$.value)==null?void 0:x.find(B=>B.id===v))!=null&&re.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(B=>m(v),["stop"]),class:"icon-content"},[e.createVNode(Y,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Q0))]),e.createElementVNode("div",eo,[(O=(de=$.value)==null?void 0:de.find(B=>B.id===v))!=null&&O.content?(e.openBlock(),e.createElementBlock("div",lo,[e.createVNode(Y,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(B=>U(v),["stop"])},null,8,["onClick"]),e.createVNode(Y,{name:"Save",onClick:e.withModifiers(B=>q(v,s.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(X=$.value)==null?void 0:X.find(B=>B.id===v))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(B=>L(v),["stop"]),class:"icon-content"},[e.createVNode(Y,{name:"Delete",style:{width:"16px",height:"16px"}})],8,ao))])])]}),content:e.withCtx(({item:s,index:v})=>{var H,u;return[e.createElementVNode("div",oo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(s.comp+"Operate")),{itemContents:s==null?void 0:s.compData,originalItemContents:(u=(H=N.value)==null?void 0:H.find((y,k)=>k===v))==null?void 0:u.compData,onChange:y=>ee(y,s,v)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},no=Ve._export_sfc(to,[["__scopeId","data-v-78d7fc46"]]),so={key:0,class:"show-content"},io={style:{display:"flex"}},ro={__name:"modelShow",setup(c){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=e.ref([]);e.watch(()=>t.value,()=>{var N;!t.value||((N=t.value)==null?void 0:N.length)===0?o.value=[]:o.value=l.cloneDeep(t.value)},{deep:!0,immediate:!0});const r=N=>El(N);return(N,$)=>{var m;return((m=o.value)==null?void 0:m.length)>0?(e.openBlock(),e.createElementBlock("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(U,q)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:q},[e.createElementVNode("div",io,e.toDisplayString(U.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(U.comp)),{itemData:U==null?void 0:U.compData,childItemData:U==null?void 0:U.itemChildData,key:q},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},co=Ve._export_sfc(ro,[["__scopeId","data-v-3f3e863e"]]),uo={class:"tabs-header"},po={class:"tabs-list"},ho={class:"tab-name"},fo={class:"tab-actions"},mo=["onClick"],vo=["onClick"],yo=["onClick"],go={class:"model-operate"},bo={class:"model-select",style:{display:"unset"}},Do={class:"existing-components"},ko={class:"component-list"},wo=["onClick"],Co={class:"component-info"},_o={class:"component-type"},Ao={class:"component-name"},xo={class:"model-fill"},Bo={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(c,{emit:d}){const t=c,o=d,r=e.ref([]),N=e.ref(!1),$=e.ref(""),m=e.ref({title:""}),U=e.ref(-1),q=e.ref(!1),M=e.ref(-1),ee=e.ref(new Map),L=e.ref(null),E=Vl(l.pinia),{itemData:P}=l.storeToRefs(E),Y=()=>{$.value="新增标签页",m.value.title="",U.value=-1,N.value=!0},s=h=>{$.value="修改标签页",m.value.title=r.value[h].title,U.value=h,N.value=!0},v=h=>{const T=y(h);ee.value.delete(T),r.value.splice(h,1),he()},H=()=>{if(m.value.title.trim()){if(U.value===-1){const h={title:m.value.title,value:m.value.title,label:m.value.title,children:[],id:u()};r.value.push(h)}else r.value[U.value].title=m.value.title,r.value[U.value].value=m.value.title,r.value[U.value].label=m.value.title;N.value=!1,he()}},u=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,y=h=>{const T=r.value[h];return T.id||(T.id=u()),T.id},k=h=>{var b;M.value=h;const T=y(h);L.value=l.cloneDeep(P.value);let D=ee.value.get(T);!D&&((b=r.value[h].children)==null?void 0:b.length)>0&&(D=O(r.value[h].children)),D?E.setItemData(l.cloneDeep(D)):E.setItemData([]),q.value=!0},x=e.computed(()=>{const h=Bl.useModelComp(l.pinia),T=l.storeToRefs(h).itemData.value;return console.log("可用组件数据",T),!T||!Array.isArray(T)?[]:T.filter(D=>{var b;if(D.comp==="Tabs"&&M.value>=0){const z=y(M.value);if((b=D.compData)==null?void 0:b.some(F=>{var j;return F.key==="stepList"&&((j=F.contents)==null?void 0:j.some(I=>I.id===z))}))return!1}return!0})}),re=h=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[h]||h,de=h=>{var T;try{const D=l.cloneDeep(h);D.id=Date.now()+Math.random(),D.comp==="Tabs"&&((T=D.compData)==null||T.forEach(z=>{z.key==="stepList"&&z.contents&&z.contents.forEach(_=>{_.id=u()})}));const b=l.cloneDeep(P.value);b.push(D),E.setItemData(b)}catch(D){console.error("添加组件失败:",D)}},O=h=>h.map(T=>{var D;switch(T.type){case"form":return{comp:"Form",name:T.value||"表单",compData:X(T.content)};case"table":return{comp:"Table",name:T.value||"表格",compData:J(T.content)};default:return{comp:"Unknown",name:T.value||"",compData:((D=T.content)==null?void 0:D.originalData)||[]}}}),X=h=>{if(!h)return[];const T=[];return h.rowContents&&T.push({key:"formContent",contents:h.rowContents}),h.buttonValue&&T.push({key:"formButton",contents:h.buttonValue}),typeof h.isEnableWrap<"u"&&T.push({key:"enableWrap",contents:h.isEnableWrap}),T},J=h=>[],B=()=>{if(M.value>=0&&M.value<r.value.length){const h=y(M.value);ee.value.set(h,l.cloneDeep(P.value)),r.value[M.value].children=Q(P.value),console.log("保存后的数据",Q(P.value))}q.value=!1,M.value=-1,L.value=null,he()},n=()=>{L.value&&E.setItemData(l.cloneDeep(L.value)),q.value=!1,M.value=-1,L.value=null},R=()=>{q.value&&n()},Q=h=>{if(!Array.isArray(h))throw new Error("sourceData must be an array");return h.map((T,D)=>{if(!T||typeof T!="object")return T;const{comp:b,name:z,compData:_}=T;switch(b){case"Form":return{type:"form",content:C(_||[]),value:"表单"};case"Table":return{type:"table",content:oe(_||[]),value:"表格"};default:return{type:"xxx",content:pe(_||[]),value:""}}})},C=h=>{const T={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},D={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return h.forEach((b,z)=>{if(!b||typeof b!="object"){console.warn(`Invalid config at index ${z}:`,b);return}const{key:_,contents:F}=b,j=D[_];if(!j){console.warn(`Unknown Form config key: ${_}`);return}_==="enableWrap"?T[j]=!!F:T[j]=Array.isArray(F)?F:[]}),T},oe=h=>{const T={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},D={header:"columns",tableContents:"tableData"};return h.forEach((b,z)=>{if(!b||typeof b!="object"){console.warn(`Invalid config at index ${z}:`,b);return}const{key:_,contents:F}=b,j=D[_];if(!j){console.warn(`Unknown Table config key: ${_}`);return}T[j]=Array.isArray(F)?F:[]}),T},pe=h=>(console.log("Default conversion logic - to be implemented"),{originalData:h,processed:!1,componentType:"unknown"}),he=()=>{const h=[{key:"stepList",contents:r.value}];o("change",h)};return e.watch(()=>t.itemContents,h=>{if(h&&h.length>0){const T=h.find(D=>D.key==="stepList");T&&T.contents&&(r.value=T.contents.map(D=>({title:D.title||"",value:D.value||D.title||"",label:D.label||D.title||"",children:D.children||[],id:D.id||u()})))}},{immediate:!0,deep:!0}),(h,T)=>{const D=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-input"),z=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",uo,[T[6]||(T[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:Y},[e.createVNode(D,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),T[5]||(T[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",po,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(F,j)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:j},[e.createElementVNode("span",ho,e.toDisplayString(F.title),1),e.createElementVNode("div",fo,[e.createElementVNode("button",{onClick:I=>s(j)},"修改标题",8,mo),e.createElementVNode("button",{onClick:I=>k(j)},"布局调整",8,vo),e.createElementVNode("button",{onClick:I=>v(j)},"删除",8,yo)])]))),128))]),e.createVNode(Ce.ssDialog,{modelValue:N.value,"onUpdate:modelValue":T[2]||(T[2]=F=>N.value=F),title:$.value,onBeforeDestroy:T[3]||(T[3]=F=>N.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:T[1]||(T[1]=F=>N.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:H},"确定")]),default:e.withCtx(()=>[e.createVNode(_,{model:m.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(z,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:m.value.title,"onUpdate:modelValue":T[0]||(T[0]=F=>m.value.title=F),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Ce.ssDialog,{modelValue:q.value,"onUpdate:modelValue":T[4]||(T[4]=F=>q.value=F),title:"布局调整",fullScreen:"",onBeforeDestroy:R},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:n},"取消"),e.createElementVNode("button",{onClick:B},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",go,[e.createElementVNode("div",bo,[e.createVNode(G0),e.createElementVNode("div",Do,[T[8]||(T[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,F=>(e.openBlock(),e.createElementBlock("div",{key:F.id,class:"component-item",onClick:j=>de(F)},[e.createElementVNode("div",Co,[e.createElementVNode("span",_o,e.toDisplayString(re(F.comp)),1),e.createElementVNode("span",Ao,e.toDisplayString(F.name),1)]),T[7]||(T[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,wo))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:h.innerWidth},[e.createVNode(co)])),e.createElementVNode("div",xo,[e.createVNode(no)])])]),_:1},8,["modelValue"])])}}},Vo=Ve._export_sfc(Bo,[["__scopeId","data-v-151936e8"]]),w2=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"}]),Eo={TABLE:W.ssTable,FORM:u2,TABLEOPERATE:x1,FORMOPERATE:p2,FOLD:a0,CALCULATOR:r0,METHODBUTTON:k0,AVATARUPLOAD:i2.ssAvatar,SIGNATURE:i2.ssSignature,FORMTOP:u2,STEP:N0,STEPOPERATE:G1,TIMELINE:P0,TIMELINEOPERATE:Q1,FORMTOPOPERATE:p2,SIGNATUREOPERATE:M0,AVATARUPLOADOPERATE:_0,TABS:U0,TABSOPERATE:Vo};function El(c){return Eo[c==null?void 0:c.toUpperCase()]||null}exports.contentTransArrayToAll=Al;exports.getComponent=El;exports.getMultiple=v0;exports.getSingleTableToForm=xl;exports.onSaveBack=k2;exports.slotContent=w2;exports.useFormComp=d2;