ss-component-new 1.1.665 → 1.1.667
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DZzHO5wE.cjs → index-4t-TjmJV.cjs} +1 -1
- package/dist/{index-0hOaUjY4.cjs → index-B6ue7QHy.cjs} +1 -1
- package/dist/{index-BqfogBjv.js → index-B8nvM8hR.js} +5 -5
- package/dist/{index-t2AmjfPd.cjs → index-B9gI09DL.cjs} +1 -1
- package/dist/{index-CUF0apYP.js → index-Bkc62NYQ.js} +377 -377
- package/dist/{index-BepWqjuD.js → index-CfhgYyMc.js} +3 -3
- package/dist/{index-BbncRgGC.js → index-DANFcWUL.js} +1 -1
- package/dist/{index-xUvlhw8W.cjs → index-UA0q2dnu.cjs} +1 -1
- package/dist/{index-CXStby4c.js → index-XuOYRiIC.js} +1 -1
- package/dist/{index-CgvKZgQA.cjs → index-pvXJIn91.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CWuVB8VJ.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-BiS_7tms.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-nMLju4kE.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CEhYCOv8.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-B-9T2j67.js → index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-BCdmnuyU.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-B6wX8zrT.cjs → index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-CfJQz-11.cjs} +1 -1
- package/dist/{main-DrKyvXLz.js → main-AvqK6hTl.js} +2 -2
- package/dist/{main-B-fBc3SC.cjs → main-BnxAOpt6.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +3 -3
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const W=require("./index-B77xf0bX.cjs"),e=require("vue"),l=require("./menu-ScIJ5kqr.cjs"),Ce=require("./index-BIPYWuic.cjs"),ge=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-lPMPisUK.cjs"),C2=require("./OrbitControls-dwV_193A.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-C2neJgVy.cjs"),_2=require("./index-C31XRLFj.cjs");function A2(u){let d=null,t=null,o=null,r=null,S=null,P=null,m=null,H=null;const E=1e3/30;let ee=0;const L=e.ref([]),M=e.ref(new W.Vector3),R=e.ref(new W.Vector3),Y=()=>{if(!u.value)return;d=new W.Scene,d.background=new W.Color(15790320);const K=u.value;t=new W.PerspectiveCamera(75,K.clientWidth/K.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(K.clientWidth,K.clientHeight),o.localClippingEnabled=!0,o.shadowMap.enabled=!0,o.shadowMap.type=W.PCFSoftShadowMap,o.toneMapping=W.ACESFilmicToneMapping,o.toneMappingExposure=1,o.outputColorSpace=W.SRGBColorSpace,K.appendChild(o.domElement),r=new C2.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,S=new W.Xe(t,o,{container:K,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"}}),S.attachControls(r),U(),c()},s=(K,B)=>{m&&(d.remove(m),m.dispose()),H&&(d.remove(H),H.geometry.dispose(),H.material.dispose());const n=Math.min(Math.max(Math.floor(K/20),30),40);m=new W.GridHelper(K,n,13421772,14540253),m.rotateX(Math.PI/2),m.position.copy(B),d.add(m);const $=new W.PlaneGeometry(K,K),Z=new W.ShadowMaterial({opacity:.3,color:0});H=new W.Mesh($,Z),H.position.copy(B),H.position.z-=.01,H.receiveShadow=!0,d.add(H)},v=()=>{if(L.value.length===0)return;const K=new W.Box3;let B=!1;if(L.value.forEach(pe=>{if(pe.userData.boundingBox)K.union(pe.userData.boundingBox),B=!0;else if(pe.userData.modelId&&modelBoundingBoxes.has(pe.userData.modelId)){const he=modelBoundingBoxes.get(pe.userData.modelId);K.union(he.box),B=!0}else K.expandByObject(pe),B=!0}),!B){console.warn("无法计算包围盒,网格更新失败");return}const n=K.getSize(new W.Vector3),$=K.getCenter(new W.Vector3),Z=Math.max(n.x,n.y,n.z),C=Math.max(Z*8,50),oe=new W.Vector3($.x,$.y,K.min.z);s(C,oe)},U=()=>{const K=new W.AmbientLight(4210752,.6);d.add(K);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 $=new W.DirectionalLight(16777215,.6);$.position.set(0,-15,2),d.add($);const Z=new W.HemisphereLight(16777215,4473924,.8);d.add(Z);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)},c=()=>{P=requestAnimationFrame(c),r&&r.update();const K=performance.now(),B=K-ee;B<E||(ee=K-B%E,o&&d&&t&&o.render(d,t),S&&S.render())},y=K=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(n=>{K[n]&&K[n].dispose&&K[n].dispose()}),K.dispose&&K.dispose()},k=K=>{K==null||K.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:M,initialTargetPosition:R,initThreeJS:Y,handleResize:()=>{if(!u.value||!t||!o||!S)return;const K=u.value,B=K.clientWidth,n=K.clientHeight;t.aspect=B/n,t.updateProjectionMatrix(),o.setSize(B,n),S.update()},fitCameraToAllModels:K=>{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&&K.has(he.userData.modelId)){const h=K.get(he.userData.modelId);B.union(h.box),n=!0}else B.expandByObject(he),n=!0}),!n){console.warn("无法计算包围盒");return}const $=B.getSize(new W.Vector3),Z=B.getCenter(new W.Vector3),oe=Math.max($.x,$.y,$.z)*.8,pe=new W.Vector3(Z.x+oe,Z.y-oe,Z.z+oe);t.position.copy(pe),t.lookAt(Z),r.target.copy(Z),r.update(),M.value.copy(pe),R.value.copy(Z),v()},getThreeJSObjects:()=>({scene:d,camera:t,renderer:o,controls:r,gizmo:S}),clearAllModels:()=>{if(!d)return;L.value.forEach(B=>{d.remove(B),k(B)});const K=[];d.children.forEach(B=>{!B.isLight&&!B.isCamera&&B.type!=="GridHelper"&&B!==H&&K.push(B)}),K.forEach(B=>{d.remove(B),k(B)}),L.value=[],v()},cleanup:()=>{P&&cancelAnimationFrame(P),m&&m.dispose(),H&&(H.geometry.dispose(),H.material.dispose()),o&&o.dispose(),r&&r.dispose(),S&&S.dispose()},updateGridForModels:v}}function x2(u,d){const t=e.ref(!1);let o=null,r=12700,S=new W.Vector3,P=new W.Vector3,m=new W.Vector3,H=0,q=null;const E=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,ee=s=>{const v=new W.Vector3,U=H*1.2,c=new W.Vector3(m.x+U,m.y,m.z),y=new W.Vector3(m.x,m.y+U,m.z),k=new W.Vector3(m.x,m.y-U,m.z);if(s<=.567){const re=s/.567*Math.PI*2;v.x=m.x+Math.cos(re)*U,v.z=m.z+Math.sin(re)*U,v.y=m.y}else if(s<=.724){const x=(s-.567)/.157,re=E(x);v.lerpVectors(c,y,re)}else if(s<=.881){const x=(s-.724)/.157,de=E(x)*Math.PI;v.x=m.x+Math.sin(de)*U,v.y=m.y+Math.cos(de)*U,v.z=m.z}else{const x=(s-.881)/.119,re=E(x);v.lerpVectors(k,S,re)}return v},L=()=>{const{camera:s,controls:v}=u();if(!s||!v)return;o||(o=Date.now());const U=Date.now()-o,c=Math.min(U/r,1);if(c>=1){R();return}const y=ee(c);s.position.copy(y),s.lookAt(m),v.target.copy(m),q=requestAnimationFrame(L)},M=()=>{if(d.value.length===0)return;const{camera:s,controls:v}=u();if(!s||!v)return;S.copy(s.position),P.copy(v.target);const U=new W.Box3;d.value.forEach(O=>{U.expandByObject(O)});const c=U.getSize(new W.Vector3);m=U.getCenter(new W.Vector3),H=Math.max(c.x,c.y,c.z)*1.2;const y=new W.Vector3(m.x+H*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),K=E(X);s.position.lerpVectors(k,y,K),s.lookAt(m),v.target.copy(m),X<1?requestAnimationFrame(de):(t.value=!0,o=null,L())};de()},R=()=>{t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{controls:s}=u();s&&(s.enabled=!0,s.target.copy(P))};return{isAnimating:t,toggleAnimation:()=>{if(t.value){t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{camera:s,controls:v}=u();if(!s||!v)return;v.enabled=!0;const U=s.position.clone(),c=v.target.clone(),y=1500,k=Date.now(),x=()=>{const re=Date.now()-k,de=Math.min(re/y,1),O=E(de);s.position.lerpVectors(U,S,O),v.target.lerpVectors(c,P,O),de<1&&requestAnimationFrame(x)};x()}else M()},startAnimation:M,stopAnimation:R}}function B2(u,d){const t=e.ref(!1),o=e.ref("none");let r=[],S=[],P=new W.Box3,m=new W.Vector3;const H=()=>{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=()=>{P.makeEmpty(),d.value.forEach(Y=>{P.expandByObject(Y)}),m=P.getCenter(new W.Vector3)},E=Y=>{const s=P.getSize(new W.Vector3);let v,U,c;Y==="x"?(v=new W.PlaneGeometry(s.z*1.2,s.y*1.2),U=new W.Vector3(m.x,m.y,m.z),c=new W.Euler(0,Math.PI/2,0)):Y==="y"?(v=new W.PlaneGeometry(s.x*1.2,s.z*1.2),U=new W.Vector3(m.x,m.y,m.z),c=new W.Euler(Math.PI/2,0,0)):Y==="z"&&(v=new W.PlaneGeometry(s.x*1.2,s.y*1.2),U=new W.Vector3(m.x,m.y,m.z),c=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(U),k.rotation.copy(c),k},ee=()=>{if(L(),M(),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(U=>{U.isMesh&&U.material&&(Array.isArray(U.material)?U.material.forEach(c=>{c.clippingPlanes=[Y]}):U.material.clippingPlanes=[Y])})});const{scene:s}=u();if(s){const v=E(o.value);s.add(v),S.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=[])})})},M=()=>{const{scene:Y}=u();Y&&S.forEach(s=>{Y.remove(s),s.geometry.dispose(),s.material.dispose()}),S=[]};return{isClipping:t,activeClippingAxis:o,toggleClipping:()=>{t.value=!t.value,t.value?(H(),d.value.length>0&&q()):(o.value="none",L(),M())},updateClippingPlanes:ee,clearClippingPlanes:L,clearClippingMeshes:M}}const Nl="http://139.196.154.85:20026/chfs/shared/Insofrobot/";function V2(u,d,t,o){return{loadUrdfFromUrl:async S=>{t.value=!0,o.value="正在初始化 URDF 加载器...";const{scene:P}=u();if(!P)return console.error("场景尚未初始化,无法加载 URDF 模型。"),t.value=!1,null;const m=new W.LoadingManager;m.onProgress=(q,E,ee)=>{o.value=`正在加载资源: ${E} / ${ee}`};const H=new W.URDFLoader(m);H.packages=q=>`${Nl.endsWith("/")?Nl:Nl+"/"}${q}/`,H.loadMeshCb=(q,E,ee)=>{o.value=`正在加载网格: ${q}`;const L=(()=>{const M=q.split("?")[0].split("#")[0],R=M.lastIndexOf(".");return R>=0?M.slice(R+1).toLowerCase():void 0})();switch(L){case"obj":{const M=(()=>{try{return new URL(".",q).toString()}catch{const U=q.lastIndexOf("/");return U>=0?q.slice(0,U+1):q}})(),R=(()=>{var c;return(((c=q.split("/").pop())==null?void 0:c.split("?")[0].split("#")[0])??"").replace(/\.[^/.?#]+$/,"")})(),Y=`${M}${R}.mtl`,s=U=>{const c=new W.OBJLoader(E);U&&c.setMaterials(U),c.load(q,y=>ee(y),void 0,y=>{console.error(`加载 OBJ 失败: ${q}`,y),ee(new W.Group)})},v=new W.MTLLoader(E);v.setResourcePath(M),v.load(Y,U=>{try{U.preload()}catch{}s(U)},void 0,U=>{console.warn("未找到或加载材质失败"),s(void 0)});break}case"stl":{new W.STLLoader(E).load(q,R=>{const Y=new W.MeshPhongMaterial({color:12303291,shininess:30}),s=new W.Mesh(R,Y);s.castShadow=!0,s.receiveShadow=!0,ee(s)},void 0,R=>{console.error(`加载 STL 失败: ${q}`,R),ee(new W.Group)});break}default:console.error(`不支持的网格格式: .${L} (路径: ${q})`),ee(new W.Group)}};try{const q=S.split("/").pop();o.value=`正在下载 URDF 文件: ${q}`;const E=await H.loadAsync(S);return E.traverse(ee=>{if(ee.isMesh){const L=ee;L.castShadow=!0,L.receiveShadow=!0}}),P.add(E),d.value.push(E),console.log("URDF 模型加载并添加到场景成功!",E),E}catch(q){return console.error(`加载 URDF 模型 (${S}) 时发生错误:`,q),o.value="模型加载失败",null}finally{t.value=!1,o.value.includes("失败")||(o.value="")}}}}const E2=Bl.useModelComp(l.pinia),{systemPath:r2}=l.storeToRefs(E2),wl=e.ref(),c2=new Map;function M2(u,d,t,o,r){const S=async L=>{try{const M=await Ce.downloadAvatarApi({url:L});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},P=L=>new Promise((M,R)=>{const Y=new FileReader;Y.onload=s=>{try{const v=s.target.result,c=new W.MTLLoader().parse(v);c.preload(),M(c)}catch(v){R(v)}},Y.onerror=()=>{R(new Error("MTL文件读取失败"))},Y.readAsText(L)}),m=async L=>{const M={materials:{},create:function(R){return this.materials[R]?this.materials[R]:(console.warn(`Material '${R}' not found, using default material`),new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))},getAsArray:function(){const R=[];for(const Y in this.materials)R.push(this.materials[Y]);return R},preload:function(){for(const R in this.materials)this.materials[R].map&&(this.materials[R].map.needsUpdate=!0)}};for(const R of L){const Y=await P(R);Object.assign(M.materials,Y.materials)}return M.preload(),M},H=async(L,M=[])=>new Promise((R,Y)=>{const s=new FileReader;s.onload=async v=>{try{const U=v.target.result;let c=null;M&&M.length>0&&(M.length===1?c=await P(M[0]):c=await m(M));const y=new W.OBJLoader;c&&y.setMaterials(c);const k=y.parse(U);c||k.traverse(x=>{x.isMesh&&(x.material=new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))}),R(k)}catch(U){Y(U)}},s.onerror=()=>{Y(new Error("OBJ文件读取失败"))},s.readAsText(L)}),q=async L=>{var M;try{t.value=!0;const{scene:R}=u();if(!R)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 U=await S(v.objUrl),c=((M=v.objUrl)==null?void 0:M.split("/").pop())||`model_${s}.obj`,y=new File([U],c,{type:U.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 S(O),K=(O==null?void 0:O.split("/").pop())||`material_${s}_${de}.mtl`,B=new File([X],K,{type:X.type});k.push(B)}}const x=await H(y,k);R.add(x),d.value.push(x),Y.push(x)}return t.value=!1,Y}catch(R){throw console.error("加载模型失败:",R),t.value=!1,R}},E=async(L,M,R=[],Y=[])=>{let s;const v=L.toLowerCase();switch(v){case".txt":case".cpt":case".obj":const U=await M.text();if(v===".txt"||v===".cpt"){const w=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,g=[...U.matchAll(w)].map(J=>({x:parseFloat(J[1]),y:parseFloat(J[2]),z:parseFloat(J[3])})),V=new W.BufferGeometry,G=g.flatMap(J=>[J.x,J.y,J.z]);if(V.setAttribute("position",new W.Float32BufferAttribute(G,3)),v===".txt"){const J=new W.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});s=new W.Points(V,J)}else if(v===".cpt"){const J=new W.LineBasicMaterial({color:"#5B5C99",linewidth:100});s=new W.Line(V,J)}}else if(v===".obj"){const w=new W.OBJLoader;if(R&&R.length>0){const te=new W.MTLLoader;for(const g of R){const V=await g.text(),G=te.parse(V);G.preload(),w.setMaterials(G);break}}s=w.parse(U),(!R||R.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 c=await M.arrayBuffer(),k=new W.STLLoader().parse(c),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 J=new W.MeshPhongMaterial({color:de[w]||"#B3B3D4",side:W.DoubleSide}),p=new W.Mesh(G,J);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 K=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);K.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)}),J=await new Promise((p,ce)=>{const le=URL.createObjectURL(V);K.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(J),s=B}catch(w){throw console.error("PCD文件加载失败:",w),new Error("无法加载PCD文件")}break;case".urdf":const n=URL.createObjectURL(M),$=new W.URDFLoader,Z="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(`${Z}/${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(),J=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(),J.setMaterials(f)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${p}`)}const ce=J.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=[];$.loadMeshCb=async(w,te,g,V,G)=>{const J=w.split("/").pop(),p=g||(()=>{});F++;const ce=new Promise(async(le,a)=>{try{const i=await h(J);if(!i||i.size===0)throw new Error(`文件为空: ${J}`);const f=J.split(".").pop().toLowerCase();let A;switch(f){case"stl":A=await b(i,J,te);break;case"obj":A=await z(i,J,te);break;default:throw new Error(`不支持的文件格式: ${f}`)}C.enableLOD&&A.isMesh&&(A=_(A,J)),p(A),j++,V&&V({loaded:j,total:F,progress:j/F}),le(A)}catch(i){console.error(`mesh文件加载失败: ${J}`,i);const f=new W.Group;p(f),le(f);const A=new W.BoxGeometry(.1,.1,.1),N=new W.MeshStandardMaterial({color:16711680,wireframe:!0});return new W.Mesh(A,N)}});I.push(ce)};try{if(!n){wl.value=void 0;break}if(s=await $.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:M}=u();if(!M)throw new Error("Scene not initialized");r(),await new Promise(Y=>setTimeout(Y,100));const R=[];for(let Y=0;Y<L.length;Y++){const s=L[Y],v=await E(s.suffix,s.blob,s.mtlBlobs||[],s.meshFiles||[]);v&&(M.add(v),d.value.push(v),R.push(v))}return t.value=!1,o.value="",R}catch(M){throw console.error("加载模型失败:",M),t.value=!1,o.value="",M}},urdfModel:wl,modelBoundingBoxes:c2}}const z2={class:"panel-content"},F2={__name:"animationPanel",props:{animationData:Object,model:Object},setup(u){const d=u;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 S,P,m;return e.openBlock(),e.createElementBlock("div",z2,[(e.openBlock(),e.createBlock(W.ssTable,{itemData:(S=t.value)==null?void 0:S.compData,key:(P=t.value)==null?void 0:P.id,index:(m=t.value)==null?void 0:m.id,showHeader:!1},null,8,["itemData","index"]))])}}},N2=Ve._export_sfc(F2,[["__scopeId","data-v-9363d85a"]]),S2={class:"panel-content"},T2={key:0,class:"joints-list"},I2={class:"joint-info-row"},L2={class:"joint-left"},$2={class:"joint-name"},P2={class:"joint-range"},R2={class:"joint-type"},O2={key:0,class:"joint-control-row"},H2={class:"slider-container"},U2=["min","max","value","onInput","disabled"],j2={class:"value-display"},J2={class:"joint-value"},K2={class:"unit"},G2={key:1,class:"empty-state"},Dl=.001,W2=1e3,Sl=60,q2={__name:"jointPanel",props:{model:Object,scene:Object,animationData:Object},setup(u,{expose:d}){const t=u;e.ref(!0);const o=e.ref([]),r=e.ref(null),S=e.ref(null),P=e.ref(12.5),m=e.ref(),H=e.ref(1302),q=e.ref(30),E=e.ref(!1),ee=e.ref(!1),L=e.ref(0),M=e.ref(0),R=e.ref(null),Y=W.MathUtils.degToRad,s=e.ref(1),v=()=>W2/Sl/s.value;let U=[];e.watch(()=>t.animationData,b=>{var _;H.value=b.extra.管长,P.value=b.extra.外径/2;let z=((_=l.cloneDeep(b))==null?void 0:_.动画输出)??[];z&&z.length>0&&(U=z)},{deep:!0}),e.computed(()=>U.length>0);const c=(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??c(j._jointType,!1),upper:j.limit.upper??c(j._jointType,!0)}:{lower:c(j._jointType,!1),upper:c(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 J=1;J<=G;J++){const p=te*J/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 _=U.slice(0,b+1);const F=U[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,H.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 J=_[G],p=de(J);if(p.length>0){const ce=p.map(f=>{const A=f.clone(),N=new W.Matrix4;return N.makeBasis(g.localX,g.localY,g.localZ),A.applyMatrix4(N),A.add(g.pos)});V.push(ce);const le=ce[ce.length-1];g.pos=le.clone();const a=J.B??0,i=J.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),J=new W.TubeGeometry(G,Math.max(2,w.length*4),P.value*Dl,18,!1);m.value.geometry.dispose(),m.value.geometry=J}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,_))},K=(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]=K(I,w||I,_)}),F},n=()=>{if(U.length===0){console.warn("没有动画数据");return}y(),E.value=!0,ee.value=!1,L.value=0,M.value=0,$()},$=()=>{if(!E.value||ee.value)return;const b=L.value;if(b>=U.length-1){const j=U[U.length-1];X(j,U.length-1,1),C();return}const z=M.value/Sl,_=U[b],F=U[b+1];if(F){const j=B(_,F,z);X(j,b,z)}else X(_,b);M.value++,M.value>Sl&&(M.value=0,L.value++),R.value=setTimeout($,v())},Z=()=>{ee.value=!0,R.value&&(clearTimeout(R.value),R.value=null)},C=()=>{E.value=!1,ee.value=!1,s.value=1,R.value&&(clearTimeout(R.value),R.value=null)};d({startAnimation:n,pauseAnimation:Z,stopAnimation:C,resetAll:()=>{C(),L.value=0,M.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||E.value&&!ee.value||o.value.forEach(b=>{b.urdfJoint&&b.urdfJoint.angle!==void 0&&(b.currentValue=b.urdfJoint.angle)})},T=()=>{const b=()=>{h(),S.value=requestAnimationFrame(b)};b()},D=()=>{S.value&&(cancelAnimationFrame(S.value),S.value=null)};return e.onMounted(()=>{T()}),e.onUnmounted(()=>{D(),C()}),(b,z)=>(e.openBlock(),e.createElementBlock("div",S2,[o.value.length>0?(e.openBlock(),e.createElementBlock("div",T2,[(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",I2,[e.createElementVNode("div",L2,[e.createElementVNode("span",$2,e.toDisplayString(_.name),1),e.createElementVNode("span",P2," ["+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",O2,[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:E.value&&!ee.value},null,40,U2)]),e.createElementVNode("div",j2,[e.createElementVNode("span",J2,e.toDisplayString(_.currentValue?Number(_.currentValue).toFixed(3):"0.000"),1),e.createElementVNode("span",K2,e.toDisplayString(_.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",G2,z[0]||(z[0]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}},X2=Ve._export_sfc(q2,[["__scopeId","data-v-b83e7f77"]]),Y2={class:"panel-content"},Z2="id",Q2={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:u=>["breadth","firstLevel"].includes(u)}},emits:["nodeClick"],setup(u,{emit:d}){const t=u,o=d,r=e.ref([]),S={children:"children",label:"label"},P=M=>{o("nodeClick",M)},m=(M,R=0)=>{const Y=[];return Array.isArray(M)&&(M==null?void 0:M.length)>0&&M.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:R+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,R+1),path:s==null?void 0:s.name};Y.push(v)}}),Y},H=M=>M?[{name:M==null?void 0:M.name,label:M==null?void 0:M.name,show:!0,level:1,isPenultimate:!1,type:M==null?void 0:M.type,id:M==null?void 0:M.id,limit:(M==null?void 0:M.limit)??"",children:m(M==null?void 0:M.children,1),path:M==null?void 0:M.name}]:[],q=(M,R)=>{const Y=[],s=[...M];for(;s.length>0&&Y.length<R;){const v=s.shift();v.children&&v.children.length>0&&(Y.push(v.id),s.push(...v.children))}return Y},E=(M,R)=>{const Y=[];return M.forEach(s=>{if(s.children&&s.children.length>0){Y.push(s.id);const v=s.children.filter(U=>U.children&&U.children.length>0).slice(0,R).map(U=>U.id);Y.push(...v)}}),Y.slice(0,R+1)},ee=e.computed(()=>!r.value||r.value.length===0?[]:t.expandStrategy==="firstLevel"?E(r.value,t.maxExpandCount):q(r.value,t.maxExpandCount)),L=e.computed(()=>t!=null&&t.model?H(t.model):[]);return e.watch(L,M=>{r.value=JSON.parse(JSON.stringify(M))},{immediate:!0}),(M,R)=>{const Y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Y2,[e.createVNode(Y,{data:r.value,props:S,"default-expanded-keys":ee.value,"node-key":Z2,onNodeClick:P},null,8,["data","default-expanded-keys"])])}}},ea=Ve._export_sfc(Q2,[["__scopeId","data-v-0dda287c"]]),la=["xlink:href"],aa=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(u){const d=u,t=e.computed(()=>({backgroundColor:d.backgroundColor})),o=e.computed(()=>`#${d.prefix}-${d.name}`),r=e.computed(()=>{const{size:S}=d;let P=`${S}`;return P=`${P.replace("px","")}px`,{width:P,height:P}});return(S,P)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container",{active:S.active}]),style:e.normalizeStyle(t.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["svg-icon",[S.$attrs.class,S.spin&&"svg-icon-spin"]]),style:e.normalizeStyle(r.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":o.value},null,8,la)],6))],6))}}),Me=Ve._export_sfc(aa,[["__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>',(u=>{var d=(t=(t=document.getElementsByTagName("script"))[t.length-1]).getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var o,r,S,P,m,H=function(ee,L){L.parentNode.insertBefore(ee,L)};if(d&&!u.__iconfont__svg__cssinject__){u.__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=u._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?H(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&&(S=o,P=u.document,m=!1,E(),P.onreadystatechange=function(){P.readyState=="complete"&&(P.onreadystatechange=null,q())})}function q(){m||(m=!0,S())}function E(){try{P.documentElement.doScroll("left")}catch{return void setTimeout(E,50)}q()}})(window);const oa={class:"obj-viewer-container"},ta={class:"buttonGroup-top"},na={class:"buttonGroup-topLeft"},sa={class:"buttonGroup-left"},ia={class:"buttonGroup-right"},ra={class:"buttonGroup-bottom"},ca={class:"left-panel"},ua={class:"panel-header"},pa={key:1,class:"clipping-content"},da={class:"radio-group"},ha={class:"radio-label"},fa={class:"radio-label"},ma={class:"radio-label"},va={class:"radio-label"},ya={class:"right-panel"},ga={class:"panel-header"},ba={key:0,class:"loading-overlay"},Da={__name:"threeView",props:{urdfUrl:{type:String,default:""},animationData:{type:Object,default:()=>{}}},emits:["getAnimationData"],setup(u,{emit:d}){const t=d,o=u;let r=null,S=!1;const P=e.ref(null),m=e.ref(!1),H=e.ref("");e.ref(!1);const q=e.ref(!1),E=e.ref(!1),ee=e.ref(""),L=e.ref(!1),M=e.ref(""),R=e.ref(),{currentModels:Y,initialCameraPosition:s,initialTargetPosition:v,initThreeJS:U,handleResize:c,getThreeJSObjects:y,clearAllModels:k,cleanup:x}=A2(P),{loadUrdfFromUrl:re}=V2(y,Y,m,H),{isAnimating:de,toggleAnimation:O,stopAnimation:X}=x2(y,Y),{isClipping:K,activeClippingAxis:B,toggleClipping:n,updateClippingPlanes:$}=B2(y,Y),{urdfModel:Z}=M2(y,Y,m,H,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()=>S?Promise.resolve():new Promise(T=>{const D=()=>{S?T():requestAnimationFrame(D)};D()}),pe=T=>{E.value=!0,ee.value=T,T==="剖面视图"&&!K.value&&n()},he=T=>{L.value=!0,M.value=T,T==="动画仿真"&&t("getAnimationData")},h=()=>{e.nextTick(()=>{var T;(T=R.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{U(),r=y().scene,S=!0,window.addEventListener("resize",c)}catch(T){console.error("Three.js初始化失败:",T)}}),e.onBeforeUnmount(()=>{S=!1,ee.value="",M.value="",window.removeEventListener("resize",c),de.value&&X(),x()}),(T,D)=>{var z,_,F,j;const b=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",oa,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:P,class:"threejs-container"},null,512),e.createElementVNode("div",ta,[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",na,[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",sa,[e.createVNode(Me,{name:"jiegoushu",size:"24",onClick:D[0]||(D[0]=I=>pe("场景树")),active:E.value&&ee.value==="场景树",title:"场景树"},null,8,["active"]),e.createVNode(Me,{name:"clipping",size:"24",onClick:D[1]||(D[1]=I=>pe("剖面视图")),active:E.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",ia,[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&&M.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:D[5]||(D[5]=I=>he("动画仿真")),active:L.value&&M.value==="动画仿真"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24"}),e.createVNode(Me,{name:"donghuafangzhen",size:"24"})]),e.createElementVNode("div",ra,[e.createVNode(Me,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:(z=R.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:(_=R.value)==null?void 0:_.fastForward},null,8,["onClick"]),e.createVNode(Me,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:(F=R.value)==null?void 0:F.pauseAnimation},null,8,["onClick"]),e.createVNode(Me,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:(j=R.value)==null?void 0:j.resetAll},null,8,["onClick"])]),e.withDirectives(e.createElementVNode("div",ca,[e.createElementVNode("div",ua,[e.createElementVNode("span",null,e.toDisplayString(ee.value),1),e.createElementVNode("span",{class:"close",onClick:D[6]||(D[6]=I=>E.value=!1)}," X ")]),e.createVNode(b,{"max-height":"650px"},{default:e.withCtx(()=>[ee.value==="场景树"?(e.openBlock(),e.createBlock(ea,{key:0,model:e.unref(Z)},null,8,["model"])):e.createCommentVNode("",!0),ee.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("div",da,[e.createElementVNode("label",ha,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[16]||(D[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",fa,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[17]||(D[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",ma,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[18]||(D[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",va,[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($)&&e.unref($)(...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,E.value]]),e.withDirectives(e.createElementVNode("div",ya,[e.createElementVNode("div",ga,[e.createElementVNode("span",null,e.toDisplayString(M.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(X2,{ref_key:"jointRef",ref:R,model:e.unref(Z),scene:e.unref(r),animationData:u.animationData},null,8,["model","scene","animationData"]),[[e.vShow,M.value==="关节控制"]]),e.withDirectives(e.createVNode(N2,{animationData:u.animationData},null,8,["animationData"]),[[e.vShow,M.value==="动画仿真"]])]),_:1})],512),[[e.vShow,L.value]]),m.value?(e.openBlock(),e.createElementBlock("div",ba,[D[20]||(D[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(H.value),1)])):e.createCommentVNode("",!0)])}}},ka=Ve._export_sfc(Da,[["__scopeId","data-v-4ab753fe"]]),wa={class:"form-content"},Ca={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(u,{emit:d}){const t=e.ref(!1),o=e.ref(!1),r=e.ref(""),S=()=>{t.value=!1,o.value=null,r.value=""},P=u,m=d,H=e.ref([]),q=e.ref(!1),E=e.ref(!1),ee=e.ref([]),L=e.ref(),M=W.useFormToTableComp(l.pinia),R=W.useFormComp(l.pinia),Y=e.ref(!1),s=e.ref(),v=$l.useLoginState(l.pinia),{loginUserInfo:U}=l.storeToRefs(v),c=e.ref(),y=e.ref(!0),k=(X,K)=>{c.value===K?y.value=!1:y.value=!0,c.value=K==null?void 0:K.changeProp},x=async X=>{var B,n,$,Z,C,oe,pe,he,h,T;let K=[];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")||($=X==null?void 0:X.toString())!=null&&$.includes(".STL")||(Z=X==null?void 0:X.toString())!=null&&Z.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:"))K.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}],E.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}],E.value=!0}(K==null?void 0:K.length)>0&&R.setBlobUrls(K)},re=()=>{E.value=!1},de=X=>{var Z,C,oe,pe;const K=(C=(Z=l.cloneDeep(P.itemData))==null?void 0:Z.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[K[h].key]=he}));const $={content:n,index:P==null?void 0:P.index,buttonName:X==null?void 0:X.buttonName};m("change",$)},O=async X=>{var he,h,T,D,b,z,_,F,j,I,w,te;if(!X)return;const K=l.cloneDeep(P.itemData),B=K==null?void 0:K.map(g=>{var V;return(g==null?void 0:g.key)==="formContent"&&((V=g.contents)==null||V.map((G,J)=>{var p,ce,le,a,i,f,A,N,Q,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:((Q=(N=(A=G==null?void 0:G.key)==null?void 0:A.split("$"))==null?void 0:N[1])==null?void 0:Q.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[J],G})),g});let n=l.cloneDeep(H).value,$=(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=$==null?void 0:$.find((G,J)=>((G==null?void 0:G.id)??J)===(g==null?void 0:g.id)))==null?void 0:V.value,g}),!y.value){m("contentChange",{contents:B,index:P.index});return}let Z="",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,J;return(g==null?void 0:g.label)===c.value||V.toString()===((J=(G=c.value)==null?void 0:G.split("t"))==null?void 0:J[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,J,p,ce;Z===""&&((J=(G=(V=g==null?void 0:g.optionUrl)==null?void 0:V.groupSelect)==null?void 0:G[1])!=null&&J.includes("["))&&(Z=(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 J,p,ce,le,a,i,f,A,N,Q;Z===((p=(J=C==null?void 0:C.optionUrl)==null?void 0:J.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("["))&&((Q=l.cloneDeep(G))==null?void 0:Q[(N=(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:N.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,N,Q,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("]","")])&&((N=(A=(f=p==null?void 0:p.optionUrl)==null?void 0:f.groupSelect)==null?void 0:A[1])!=null&&N.includes("["))&&(p.value=(V==null?void 0:V[p==null?void 0:p.label])||(V==null?void 0:V[(se=(ne=(ve=(Q=p==null?void 0:p.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:ve[1])==null?void 0:ne.replaceAll("[",""))==null?void 0:se.replaceAll("]","")])),p}),H.value=G;let J=l.cloneDeep(G);J=J==null?void 0:J.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,N,Q,ve;if(f!=null&&f.includes("[")){let ne=(N=(A=f==null?void 0:f.replaceAll("[","").replaceAll("]",""))==null?void 0:A.split(":"))==null?void 0:N[1];f=(ve=(Q=l.cloneDeep(G))==null?void 0:Q.find(se=>(se==null?void 0:se.label)===ne))==null?void 0:ve.value}return f})),p}),H.value=J}}y.value=!1,m("contentChange",{contents:B,index:P.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 J;return(J=G==null?void 0:G.url)==null?void 0:J.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 J,p,ce,le;const G=(J=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:J.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})}),R.setObjUrl(oe)}};return e.watch(()=>P.itemData,async()=>{var Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;const X=(Z=P.itemData)==null?void 0:Z.find(w=>(w==null?void 0:w.key)==="formContent"),K=(C=l.cloneDeep(P.itemData))==null?void 0:C.find(w=>(w==null?void 0:w.key)==="formButton"),B=(oe=l.cloneDeep(P.itemData))==null?void 0:oe.find(w=>(w==null?void 0:w.key)==="formFlex"),n=(pe=l.cloneDeep(P.itemData))==null?void 0:pe.find(w=>(w==null?void 0:w.key)==="formWrap"),$=(he=l.cloneDeep(P.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=($==null?void 0:$.contents)===void 0?!1:$==null?void 0:$.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),N=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 N==="loginUser"&&(N=((ue=U.value)==null?void 0:ue.姓名)??((Ee=U.value)==null?void 0:Ee.userName)??((Be=U.value)==null?void 0:Be.account)),{label:le??"",name:"t"+ce,type:A!==void 0||a===""?"Input":a,value:p!=null&&p.isNewDate&&N===""?new Date:N,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)}),M.setSelectArray(g),M.setSelectString(V),H.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=[],J=[];if((z=l.cloneDeep(H.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")}))&&(J=p==null?void 0:p.value)}),(J==null?void 0:J.length)>0){const p=(_=l.cloneDeep(J))==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=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(ce==null?void 0:ce.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:a.map(N=>N==null?void 0:N.url);G.push({objUrl:ce==null?void 0:ce.url,mtlUrls:((i=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(ce==null?void 0:ce.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:i.length)===1?(A=(f=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(ce==null?void 0:ce.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:f[0])==null?void 0:A.url:le})}),R.setObjUrl(G)}(F=l.cloneDeep(H.value))==null||F.forEach(p=>{var ce,le,a,i,f,A,N,Q,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")||(Q=(N=p==null?void 0:p.value)==null?void 0:N.toString())!=null&&Q.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 H.value=[];if(((j=K==null?void 0:K.contents)==null?void 0:j.length)>0){const w=[];(I=K==null?void 0:K.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,K)=>(e.openBlock(),e.createElementBlock("div",wa,[e.createVNode(Ce.ssForm,{rowContents:H.value,formRules:u.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"]),E.value?(e.openBlock(),e.createBlock(Ce.ssFilePreview,{key:0,fileDataList:L.value,onDestroy:re},null,8,["fileDataList"])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createBlock(Ce.ssDialog,{key:1,visible:t.value,onBeforeDestroy:S,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createBlock(ka,{key:0,"urdf-url":r.value},null,8,["urdf-url"])):e.createCommentVNode("",!0)]),_:1},8,["visible"])):e.createCommentVNode("",!0)]))}},u2=Ve._export_sfc(Ca,[["__scopeId","data-v-b3ecdca2"]]),_l=e.ref(0),d2=u=>{var d;return!u||(u==null?void 0:u.length)===0?[]:(d=l.cloneDeep(u))==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:d2(o==null?void 0:o.children)},o))},_a=u=>{var t;return(t=l.cloneDeep(u))==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:d2(o==null?void 0:o.children)},o))},h2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===d)?(t=l.cloneDeep(u))==null?void 0:t.filter(r=>(r==null?void 0:r.id)!==d):(u=u==null?void 0:u.map(o=>(o.children=h2(o==null?void 0:o.children,d),o)),u)},f2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(u))==null?void 0:t.map(r=>((r==null?void 0:r.id)===(d==null?void 0:d.id)&&(r=d),r)):(u=u==null?void 0:u.map(o=>(o.children=f2(o==null?void 0:o.children,d),o)),u)},m2=(u,d)=>{var t;return u!=null&&u.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(u))==null?void 0:t.map(r=>{var S;return(r==null?void 0:r.id)===((S=d==null?void 0:d.contents)==null?void 0:S.id)&&(r=d==null?void 0:d.contents),r}):(u=u==null?void 0:u.map(o=>(o.children=m2(o==null?void 0:o.children,d),o)),u)},v2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(u))==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)):(u=u==null?void 0:u.map(o=>(o.children=v2(o==null?void 0:o.children,d),o)),u)},_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"}],Aa=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],xa=[{label:"新增",value:"add"}],We=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:xa},{key:"background",label:"按钮背景色",type:"Color"}],qe=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Aa},{key:"textColor",label:"按钮颜色",type:"Color"}],Ba={class:"table-header-child"},Va={class:"table-header-child-main"},Ea={class:"table-header-child-content"},Ma={class:"table-header-child-content-item"},za={class:"fix-button"},Fa={key:0},Na={class:"form-content"},Sa={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(u,{emit:d}){const t=u,o=d,r=e.ref(!1),S=e.ref(""),P=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs(P);e.ref(0);const H=e.ref(""),q=e.ref([]),E=e.ref([]),ee=c=>{var k;r.value=!0;let y=[];_e==null||_e.forEach(x=>{let re=l.cloneDeep(m.value)+1;P.setTableIndex(re),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:c[x.key],id:m.value,contents:x==null?void 0:x.options})}),c!=null&&c.children&&((k=c==null?void 0:c.children)==null?void 0:k.length)>0&&y.push({children:c==null?void 0:c.children,isFormColHidden:!0}),H.value=c==null?void 0:c.id,q.value=y,E.value=y},L=c=>{o("fixChange",l.cloneDeep(c))},M=c=>{o("deleteChange",l.cloneDeep(c))},R=c=>{r.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;P.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})}),S.value=c==null?void 0:c.id,q.value=y,E.value=y},Y=c=>{let y=l.cloneDeep(E.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=c==null?void 0:c[k.name]),k)),E.value=y},s=()=>{var y,k;q.value=E.value;let c={};if(H.value!=="")c.id=H.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?c[re.key]=x.value:x!=null&&x.children&&x.children.length>0&&(c.children=x.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(c),id:S.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;P.setTableIndex(x),c.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?c[de.key]=re.value:re!=null&&re.children&&re.children.length>0&&(c.children=re.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(c),id:S.value,type:"add"})}H.value="",q.value=[],E.value=[]},v=()=>{r.value=!1,H.value="",S.value="",q.value=[],E.value=[]},U=c=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",c),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(c,y)=>{const k=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(x,re)=>(e.openBlock(),e.createElementBlock("div",Va,[e.createElementVNode("div",Ea,[e.createElementVNode("div",Ma,e.toDisplayString(x.label),1),e.createElementVNode("div",za,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:de=>R(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=>U(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(e.openBlock(),e.createElementBlock("div",Fa,[e.createVNode(y2,{tableChildContents:x==null?void 0:x.children,onDeleteChange:M,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",Na,[(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"])])}}},Ta=Ve._export_sfc(Sa,[["__scopeId","data-v-e0fef72d"]]),Ia={class:"table-header-child"},La={class:"table-header-child-main"},$a={class:"table-header-child-content"},Pa={class:"table-header-child-content-item"},Ra={class:"fix-button"},Oa={key:0},Ha={class:"form-content"},Ua={class:"dialog-footer"},ja={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(u,{emit:d}){const t=u,o=d,r=e.ref(!1),S=e.ref(""),P=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs(P),H=e.ref(""),q=e.ref([]),E=e.ref([]),ee=c=>{o("fixChange",l.cloneDeep(c))},L=c=>{var k;r.value=!0;let y=[];_e==null||_e.forEach(x=>{let re=l.cloneDeep(m.value)+1;P.setTableIndex(re),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:c[x.key],id:m.value,contents:x==null?void 0:x.options})}),c!=null&&c.children&&((k=c==null?void 0:c.children)==null?void 0:k.length)>0&&y.push({children:c==null?void 0:c.children,isFormColHidden:!0}),H.value=c==null?void 0:c.id,q.value=y,E.value=y},M=c=>{r.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;P.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})}),S.value=c==null?void 0:c.id,q.value=y,E.value=y},R=c=>{let y=l.cloneDeep(E.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=c==null?void 0:c[k.name]),k)),E.value=y},Y=()=>{var y,k;q.value=E.value;let c={};if(H.value!=="")c.id=H.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?c[re.key]=x.value:x!=null&&x.children&&x.children.length>0&&(c.children=x.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(c),id:S.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;P.setTableIndex(x),c.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?c[de.key]=re.value:re!=null&&re.children&&re.children.length>0&&(c.children=re.children)}),r.value=!1,o("fixChange",{contents:l.cloneDeep(c),id:S.value,type:"add"})}H.value="",q.value=[],E.value=[]},s=()=>{r.value=!1,H.value="",S.value="",q.value=[],E.value=[]},v=c=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",c),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},U=c=>{o("deleteChange",c)};return(c,y)=>{const k=e.resolveComponent("svg-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Ia,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(re,de)=>(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("div",$a,[e.createElementVNode("div",Pa,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=>M(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",Oa,[e.createVNode(Ta,{tableChildContents:re==null?void 0:re.children,onDeleteChange:U,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:R},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ua,[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"])])}}},y2=Ve._export_sfc(ja,[["__scopeId","data-v-ebd68fa1"]]),Ja={class:"table-operate-content"},Ka={class:"table-operate-item"},Ga={class:"operate-title"},Wa={class:"operate-content"},qa={class:"fix-content"},Xa={class:"fix-content-label"},Ya={class:"fix-button"},Za={key:0},Qa={class:"operate-title"},e1={class:"operate-content"},l1={class:"fix-content"},a1={class:"fix-content-label"},o1={class:"fix-button"},t1={class:"operate-title"},n1={class:"operate-content"},s1={class:"fix-content"},i1={class:"fix-content-label"},r1={class:"fix-button"},c1={class:"operate-title"},u1={class:"operate-content"},p1={class:"fix-content"},d1={class:"fix-content-label"},h1={class:"fix-button"},f1={class:"operate-content"},m1={style:{display:"flex","justify-content":"space-between"}},v1={class:"form-content"},y1={class:"dialog-footer"},g1={class:"form-content"},b1={class:"dialog-footer"},D1={class:"form-content"},k1={class:"dialog-footer"},w1={class:"form-content"},C1={class:"dialog-footer"},_1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,r=e.ref([]),S=e.ref(!1),P=e.ref(!1),m=e.ref([]),H=e.ref(!1),q=e.ref([]),E=e.ref(!1),ee=e.ref([]),L=e.ref(""),M=e.ref(""),R=e.ref([]),Y=e.ref([]),s=e.ref([]),v=e.ref([]),U=e.ref(!1),c=e.ref([]),y=e.ref([]),k=e.ref(0),x=e.ref([]),re=e.ref([]),de=e.ref([]),O=()=>{U.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})}),c.value=a,y.value=a},X=()=>{var i,f,A;P.value=!0;let a=[];(A=(f=(i=ge.FormContent)==null?void 0:i.find(N=>(N==null?void 0:N.key)==="Input"))==null?void 0:f.value)==null||A.forEach(N=>{k.value++,a.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:(N==null?void 0:N.label)==="类型"?"Input":"",id:k.value,contents:N==null?void 0:N.options})}),x.value=a,re.value=a},K=a=>{a||(x.value=re.value)},B=async a=>{var i,f,A,N,Q,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((Q=(N=(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:N.value)==null?void 0:Q.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},$=async a=>{var A,N,Q,ve,ne,se,ie,me,be;P.value=!0;let i=[];const f=await((Q=(N=(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:N.value)==null?void 0:Q.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))},Z=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=()=>{P.value=!1,x.value=[],L.value=""},oe=async()=>{var A,N,Q,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((Q=(N=(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:N.value)==null?void 0:Q.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),P.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=>{U.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,c.value=i,y.value=i};e.watch(()=>E.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=E.value),A)):a.push({key:"page",contents:E.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,N,Q,ve;c.value=y.value;let a={};if(L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value),(f=c.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=(N=Y.value)==null?void 0:N.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(Y.value)??[];ne.push(a),Y.value=ne}U.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Q=l.cloneDeep(t.originalItemContents))!=null&&Q.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=()=>{U.value=!1,c.value=[],L.value=""},b=a=>{H.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;R.value=(i=l.cloneDeep(R.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=R.value),A))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>{S.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=()=>{H.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,N,Q,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=R.value)!=null&&A.find(ne=>ne.id===a.id))R.value=(N=R.value)==null?void 0:N.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(R.value);ne.push(a),R.value=ne}H.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Q=l.cloneDeep(t.originalItemContents))!=null&&Q.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=R.value),ne)):i.push({key:"rowButton",contents:R.value}),o("change",i)},w=()=>{H.value=!1,L.value="",v.value=[],s.value=[]},te=a=>{S.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,M.value=a==null?void 0:a.id,ee.value=i},g=a=>{var i;m.value=h2(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(N=>N==null?void 0:N.children)?[m.value]:m.value),f}))},V=a=>{var f,A,N;a.type==="fix"?a.id!==""?m.value=m2(m.value,a):m.value=f2(m.value,a==null?void 0:a.contents):m.value=v2(m.value,a),m.value=(f=m.value)!=null&&f.some(Q=>Q==null?void 0:Q.children)?[m.value]:m.value,L.value="";let i=l.cloneDeep(t.originalItemContents);(A=l.cloneDeep(t.originalItemContents))!=null&&A.find(Q=>(Q==null?void 0:Q.key)==="header")?i=(N=l.cloneDeep(t.originalItemContents))==null?void 0:N.map(Q=>((Q==null?void 0:Q.key)==="header"&&(Q.contents=m.value),Q)):i.push({key:"header",contents:m.value}),o("change",i)},G=a=>{var f;S.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,M.value="",q.value=i,ee.value=i},J=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=()=>{S.value=!1,L.value="",M.value="",ee.value=[]},ce=()=>{var f,A,N,Q,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=(N=m.value)==null?void 0:N.map(se=>(se.id===a.id&&(se=a),se));else{let se=l.cloneDeep(m.value)??[];M.value===""?se.push(a):se=se==null?void 0:se.map(ie=>(ie.id===M.value&&(ie.children||(ie.children=[]),ie.children.push(a)),ie)),m.value=se}m.value=(Q=m.value)!=null&&Q.some(se=>se==null?void 0:se.children)?[m.value]:m.value,S.value=!1,L.value="",M.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 N;return(A==null?void 0:A.key)==="header"&&(A.contents=(N=m.value)!=null&&N.some(Q=>Q==null?void 0:Q.children)?[m.value]:m.value),A})),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>t.originalItemContents,()=>{var a,i,f,A,N,Q,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,R.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=(Q=(N=r.value)==null?void 0:N.find(ue=>(ue==null?void 0:ue.key)==="extraButton"))==null?void 0:Q.contents,E.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=_a(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,R.value=(ye=R.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",Ja,[e.createElementVNode("div",Ka,[e.createElementVNode("div",Ga,[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",Wa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",qa,[e.createElementVNode("div",Xa,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",Ya,[e.createVNode(f,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>te(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>G(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>le(N)},null,8,["onClick"])])]),N!=null&&N.children&&N.children.length>0?(e.openBlock(),e.createElementBlock("div",Za,[e.createVNode(y2,{tableChildContents:N==null?void 0:N.children,onDeleteChange:g,onFixChange:V},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Qa,[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",e1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",l1,[e.createElementVNode("div",a1,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",o1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>b(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>z(N)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",t1,[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",n1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",s1,[e.createElementVNode("div",i1,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",r1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>pe(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>he(N)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",c1,[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",u1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",p1,[e.createElementVNode("div",d1,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",h1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>$(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>Z(N)},null,8,["onClick"])])])]))),128))]),i[10]||(i[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",f1,[e.createElementVNode("div",m1,[i[9]||(i[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:E.value,"onUpdate:modelValue":i[0]||(i[0]=N=>E.value=N)},null,8,["modelValue"])])])]),e.createVNode(Ce.ssDialog,{visible:S.value,onBeforeDestroy:p,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",v1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:J},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",y1,[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:H.value,onBeforeDestroy:w,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",g1,[(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",b1,[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:U.value,onBeforeDestroy:D,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",D1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:T},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",k1,[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:P.value,onBeforeDestroy:C,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",w1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:B,onChangeVisible:K,onBlurChange:n},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",C1,[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"])])}}},A1=Ve._export_sfc(_1,[["__scopeId","data-v-cd424fc8"]]),x1={class:"form-operate-content"},B1={class:"form-operate-item"},V1={class:"operate-title"},E1={class:"operate-content"},M1={class:"fix-content"},z1={class:"fix-button"},F1={class:"operate-title"},N1={class:"operate-content"},S1={class:"fix-content"},T1={class:"fix-button"},I1={style:{display:"flex","justify-content":"space-between"}},L1={class:"form-content"},$1={class:"dialog-footer"},P1={class:"form-content"},R1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,r=e.ref(!1),S=e.ref([]),P=e.ref([]),m=e.ref(!1),H=e.ref([]),q=e.ref([]),E=e.ref(""),ee=e.ref(!1),L=e.ref(0),M=e.ref([]),R=e.ref([]),Y=(n,$)=>(console.log(345,n),(n==null?void 0:n.label)==="类型"&&$[n.key]===""?"Input":(n==null?void 0:n.key)==="isFormColHidden"&&!$[n.key]?!1:$[n.key]),s=async n=>{var C,oe,pe,he,h,T;r.value=!0;let $=[];const Z=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(Z==null||Z.forEach(D=>{L.value++,$.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);$=$==null?void 0:$.map(b=>((b==null?void 0:b.name)==="组信息选项"&&(b.contents=D),b))}E.value=n==null?void 0:n.id,S.value=await ge.selectToBase(ge.formToOptionsContents($)),P.value=await ge.selectToBase(ge.formToOptionsContents($))},v=n=>{var Z;m.value=!0;let $=[];(Z=ge.FormButton)==null||Z.forEach(C=>{L.value++,$.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})}),M.value=$,R.value=$,E.value=n==null?void 0:n.id};e.watch(()=>ee.value,()=>{var $,Z;let n=l.cloneDeep(t.originalItemContents);($=l.cloneDeep(t.originalItemContents))!=null&&$.find(C=>(C==null?void 0:C.key)==="enableWrap")?n=(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.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 U=()=>{var Z,C,oe,pe,he;M.value=R.value;let n={};if(E.value!==""?n.id=E.value:(L.value++,n.id="id"+L.value),(Z=M.value)==null||Z.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=H.value)!=null&&C.find(h=>h.id===n.id))H.value=(oe=H.value)==null?void 0:oe.map(h=>(h.id===n.id&&(h=n),h));else{let h=l.cloneDeep(H.value);H.value||(H.value=[]),h.push(n),H.value=h}m.value=!1,E.value="";let $=l.cloneDeep(t.originalItemContents);(pe=l.cloneDeep(t.originalItemContents))!=null&&pe.find(h=>(h==null?void 0:h.key)==="formButton")?$=(he=l.cloneDeep(t.originalItemContents))==null?void 0:he.map(h=>((h==null?void 0:h.key)==="formButton"&&(h.contents=H.value),h)):$.push({key:"formButton",contents:H.value}),o("change",$)},c=n=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,Z;q.value=($=l.cloneDeep(q.value))==null?void 0:$.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.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 $,Z;H.value=($=l.cloneDeep(H.value))==null?void 0:$.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.map(C=>((C==null?void 0:C.key)==="formButton"&&(C.contents=H.value),C))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=()=>{var $;m.value=!0;let n=[];($=ge.FormButton)==null||$.forEach(Z=>{L.value++,n.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:L.value,contents:Z==null?void 0:Z.options})}),M.value=n,R.value=n},x=()=>{var $,Z,C;r.value=!0;let n=[];(C=(Z=($=ge.FormContent)==null?void 0:$.find(oe=>(oe==null?void 0:oe.key)==="Input"))==null?void 0:Z.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})}),S.value=n,P.value=n},re=n=>{let $=l.cloneDeep(R.value);$=$==null?void 0:$.map(Z=>(Z.value=n==null?void 0:n[Z.name],Z)),R.value=$},de=async n=>{var $,Z,C,oe,pe,he,h,T,D,b,z,_;if((n==null?void 0:n.类型)!==((Z=($=P.value)==null?void 0:$.find(F=>(F==null?void 0:F.label)==="类型"))==null?void 0:Z.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=P.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))}P.value=await ge.selectToBase(l.cloneDeep(F)),S.value=await ge.selectToBase(l.cloneDeep(F))}else{let F=l.cloneDeep(P.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),P.value=await ge.selectToBase(l.cloneDeep(F))}},O=n=>{n||(S.value=P.value)},X=async n=>{await de(n),S.value=P.value},K=async()=>{var C,oe,pe,he,h,T,D,b,z,_,F,j;S.value=P.value;let n={};n.width=((oe=(C=S.value)==null?void 0:C[0])==null?void 0:oe.width)??1,E.value!==""?n.id=E.value:(L.value++,n.id="id"+L.value);let $=await((h=(he=(pe=ge.FormContent)==null?void 0:pe.find(I=>{var w,te;return(I==null?void 0:I.key)===(((te=(w=S.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=S.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=S.value)==null||b.forEach(I=>{const w=$==null?void 0:$.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,E.value="";let Z=l.cloneDeep(t.originalItemContents);(F=l.cloneDeep(t.originalItemContents))!=null&&F.find(I=>(I==null?void 0:I.key)==="formContent")?Z=(j=l.cloneDeep(t.originalItemContents))==null?void 0:j.map(I=>((I==null?void 0:I.key)==="formContent"&&(I.contents=q.value),I)):Z.push({key:"formContent",contents:q.value}),o("change",Z)},B=()=>{r.value=!1,m.value=!1,E.value="",P.value=[],R.value=[]};return e.watch(()=>t.originalItemContents,()=>{var $,Z,C,oe,pe,he;if(!t.originalItemContents||t.originalItemContents.length===0)return;const n=l.cloneDeep(t.originalItemContents);q.value=(($=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:$.contents)??[],H.value=((Z=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formButton"))==null?void 0:Z.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),H.value=(he=H.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,$)=>{const Z=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",x1,[e.createElementVNode("div",B1,[e.createElementVNode("div",V1,[$[2]||($[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[1]||($[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",E1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",M1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",z1,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>s(oe)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>c(oe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",F1,[$[4]||($[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:k},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[3]||($[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",N1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",S1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",T1,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>v(oe)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>y(oe)},null,8,["onClick"])])])]))),128))]),$[6]||($[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",I1,[$[5]||($[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:ee.value,"onUpdate:modelValue":$[0]||($[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",L1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:de,onChangeVisible:O,onBlurChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",$1,[e.createVNode(C,{onClick:B,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>$[7]||($[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(C,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>$[8]||($[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",P1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:M.value,key:M.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:U},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},p2=Ve._export_sfc(R1,[["__scopeId","data-v-8cbdc3ef"]]),O1={class:"step-module content"},H1={class:"module-data"},U1={class:"step-module layout"},j1={class:"form-content"},J1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,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}]),S=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),P=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),m=e.reactive({visible:!1,width:"40%",title:"步骤条"}),H=e.ref("create"),q=e.ref({}),E=e.ref([]),ee=s=>{var v;q.value=s,o("change",(v=R())==null?void 0:v.compData)},L=(s,v)=>{var U,c;switch(s){case"create":(U=S.value)==null||U.forEach(y=>{y.value=""}),H.value="create",m.visible=!0;break;case"update":(c=S.value)==null||c.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),H.value="update",m.visible=!0;break;case"delete":E.value.splice(v,1),H.value="delete";break}},M=s=>{var v,U,c;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]}),H.value){case"create":E.value.push({...y,index:((v=E.value)==null?void 0:v.length)+1});break;case"update":E.value=(U=E.value)==null?void 0:U.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",(c=R())==null?void 0:c.compData),m.visible=!1}else m.visible=!1},R=()=>({comp:"Step",compData:[{key:"stepList",contents:E.value},{key:"stepConfig",contents:q.value}]}),Y=()=>{m.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(q.value=((v=s==null?void 0:s.find(c=>c.key==="stepConfig"))==null?void 0:v.contents)??{},E.value=((U=s==null?void 0:s.find(c=>c.key==="stepList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",O1,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(c,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{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(E.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(c,{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(c,{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",U1,[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:S.value,key:S.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:P.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),K1=Ve._export_sfc(J1,[["__scopeId","data-v-7dbd17f2"]]),G1={class:"step-module content"},W1={class:"module-data"},q1={class:"step-module layout"},X1={class:"form-content"},Y1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,r=e.ref("create"),S=e.ref({}),P=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}]),H=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"}]),E=e.reactive({visible:!1,width:"40%",title:"时间线"}),ee=s=>{var v;S.value=s,console.log(1212,s),o("change",(v=R())==null?void 0:v.compData)},L=(s,v)=>{var U,c;switch(s){case"create":(U=H.value)==null||U.forEach(y=>{y.value=""}),r.value="create",E.visible=!0;break;case"update":(c=H.value)==null||c.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),r.value="update",E.visible=!0;break;case"delete":P.value.splice(v,1),r.value="delete";break}},M=s=>{var v,U,c,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,P.value,k),(U=P.value)==null||U.push({...k,index:((v=P.value)==null?void 0:v.length)+1});break;case"update":P.value=(c=P.value)==null?void 0:c.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=R())==null?void 0:y.compData),E.visible=!1}else E.visible=!1},R=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:P.value},{key:"timeLineConfig",contents:S.value}]}),Y=()=>{E.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(S.value=((v=s==null?void 0:s.find(c=>c.key==="timeLineConfig"))==null?void 0:v.contents)??{},P.value=((U=s==null?void 0:s.find(c=>c.key==="timeLineList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",G1,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(c,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",W1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.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(c,{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(c,{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",q1,[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:E.visible,title:E.title,onBeforeDestroy:Y,width:E.width},{default:e.withCtx(()=>[e.createElementVNode("div",X1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:H.value,key:H.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:q.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Z1=Ve._export_sfc(Y1,[["__scopeId","data-v-f6b5d4fc"]]),Q1={};function e0(u,d){return e.openBlock(),e.createElementBlock("div")}const l0=Ve._export_sfc(Q1,[["render",e0]]),a0={class:"extra-content"},o0={key:0},t0={key:1},n0={class:"dialog-footer"},s0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(u,{emit:d}){const t=u,o=e.ref(0),r=e.ref(),S=e.ref(),P=d,m=e.ref(!1),H=e.ref({}),q=e.ref({}),E=e.ref();e.watch(()=>[t.itemData],()=>{var y;const c=l.cloneDeep(t.itemData);r.value=(y=l.cloneDeep(c))==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=(c,y,k,x)=>{var de;let re={};((de=c==null?void 0:c[0])==null?void 0:de.contents)==="详情"&&(m.value=!0,re[y]=c,S.value=c==null?void 0:c.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),H.value=re,q.value=k,E.value=x.id)},L=c=>{var O,X,K,B;const y=(X=(O=Object.values(l.cloneDeep(H.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(K=Object.values(l.cloneDeep(H.value)))==null?void 0:K[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,$)=>{var Z;return $===c.index&&(n==null?void 0:n.comp)==="Table"&&(n.compData=(Z=n.compData)==null?void 0:Z.map(C=>{var oe,pe;return(C==null?void 0:C.key)==="tableContents"&&(C.contents=(pe=(oe=c.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(H.value),de={};for(let n in re)de[n]=x;H.value=de},M=()=>{m.value=!1,H.value={},q.value={},E.value=void 0,o.value++},R=c=>{var O,X,K,B;const y=(X=(O=Object.values(l.cloneDeep(H.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(K=Object.values(l.cloneDeep(H.value)))==null?void 0:K[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,$)=>($===c.index&&(n.compData=c.contents),n));x.unshift(y==null?void 0:y[0]);let re=l.cloneDeep(H.value),de={};for(let n in re)de[n]=x;H.value=de},Y=()=>{var y,k;let c={};for(let x in q.value)x===((y=Object.keys(H.value))==null?void 0:y[0])?c[x]=(k=Object.values(H.value))==null?void 0:k[0]:c[x]=q.value[x];P("change",{buttonName:"编辑",index:E.value,singleContent:c},"methodData"),m.value=!1,H.value={},q.value={},E.value=void 0},s=()=>{m.value=!1,H.value={},q.value={},E.value=void 0},v=c=>{P("change",c,"methodData")},U=c=>El(c);return(c,y)=>{const k=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",a0,[(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",o0)):(e.openBlock(),e.createElementBlock("div",t0,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U(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(S.value,(x,re)=>(e.openBlock(),e.createElementBlock("div",{key:re,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U(x.comp)),{itemData:x==null?void 0:x.compData,onChange:L,childItemData:x==null?void 0:x.itemChildData,key:re,onContentChange:R,index:(x==null?void 0:x.id)??re,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",n0,[e.createVNode(k,{class:"cancel-button footer-button",onClick:M,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"])])}}},i0=Ve._export_sfc(s0,[["__scopeId","data-v-2d9c5ab2"]]);let Cl="$R";const Tl=u=>{var m,H,q,E,ee,L,M,R,Y,s,v,U,c,y,k,x,re,de,O,X,K,B,n,$;const d=Ll(u)?(m=Je(l.cloneDeep(u)))==null?void 0:m[0]:"[]",t=Ll(u)?"["+((H=Je(l.cloneDeep(u)))==null?void 0:H[2])+"]":"["+u+"]";let o=[],r=[],S="";const P=(E=(q=t==null?void 0:t.trim())==null?void 0:q.slice(1,(t==null?void 0:t.trim().length)-1))==null?void 0:E.replaceAll("'",'"');if(ge.IsJson(P)?o=JSON.parse(P):ge.IsJson((M=(L=(ee=P==null?void 0:P.split("}"))==null?void 0:ee[0])==null?void 0:L.replace(":",""))==null?void 0:M.replaceAll("\\","\\\\"))&&(o=JSON.parse((s=(Y=(R=P==null?void 0:P.split("}"))==null?void 0:R[0])==null?void 0:Y.replace(":",""))==null?void 0:s.replaceAll("\\","\\\\"))),o=o!=null&&o.every(Z=>Array.isArray(Z)&&Z.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((U=(v=d==null?void 0:d.split("{"))==null?void 0:v[1])==null?void 0:U.replaceAll("'",'"'))&&(r=JSON.parse((y=(c=d==null?void 0:d.split("{"))==null?void 0:c[1])==null?void 0:y.replaceAll("'",'"')));else{let Z=[];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,J,p,ce,le,a,i,f,A,N;if(!(C!=null&&C.includes("(")))Z.push(C==null?void 0:C.replaceAll("'",""));else if(C!=null&&C.includes("[")){let Q;const ve=(j=(F=l.cloneDeep(C))==null?void 0:F.replaceAll("{",""))==null?void 0:j.replaceAll("}","");Q=(w=(I=ve==null?void 0:ve.replace("[",Cl))==null?void 0:I.split(Cl))==null?void 0:w[1];const ne=Q.lastIndexOf("]"),se=Q.substring(0,ne)+Cl+Q.substring(ne+1);Q=(g=(te=se==null?void 0:se.split(Cl))==null?void 0:te[0])==null?void 0:g.replaceAll("'",""),Q=(Q==null?void 0:Q[0])===":"?'""'+Q:Q,C!=null&&C.includes("#")&&(Q!=null&&Q.includes("[")?Q=((G=(V=C==null?void 0:C.split("#"))==null?void 0:V[0])==null?void 0:G.replaceAll("'",""))+"#("+Q+")":Q=((p=(J=C==null?void 0:C.split("#"))==null?void 0:J[0])==null?void 0:p.replaceAll("'",""))+"#"+Q);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("'","");Q.includes(":")&&((N=ie==null?void 0:ie.split("/"))==null?void 0:N[((A=ie==null?void 0:ie.split("/"))==null?void 0:A.length)-1])!==""?Q=Q+"["+ie+"]":Q=Q+"["+ie+"]()",Z.push(Q==null?void 0:Q.replaceAll('"',"'"))}else{let Q=(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("'","");Q=Q+"["+((_=(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("'",""))+"]",Z.push(Q)}}),r=Z;else{const C=((B=(K=(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:K.split(")"))==null?void 0:B[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");S=S+C+"["+(($=(n=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:n.split("["))==null?void 0:$[1])}}return{tableColumns:r,tableContents:o!=null&&o.every(Z=>Array.isArray(Z))?o:[o],tablePath:S}};let we="$R";const r0=u=>/^'[^']+':\{.*\}$/.exec(l.cloneDeep(u)),c0=u=>/^'[^']+':\[\[.*\]\]$/.exec(l.cloneDeep(u)),u0=u=>/^'([^']+)':.*$/.exec(l.cloneDeep(u)),Je=u=>{let d=u;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=(u,d)=>{let t=u;const o=[];let r="",S=0;for(const P of t)S++,P.includes("{")||r.includes("{")||P.includes("[")||r.includes("[")||P.includes("【")||r.includes("【")||P.includes("(")||r.includes("(")||P.includes("(")||r.includes("(")||P.includes("/*")||r.includes("/*")?(r+=P.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=""):S===(u==null?void 0:u.length)&&o.push(r.replace(/\/\*[\s\S]*?\*\//g,""))):(r+=P.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=u=>/^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l.cloneDeep(u)),p0=u=>{var d,t,o,r,S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,c,y,k,x,re,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,J,p,ce,le,a,i,f,A,N,Q;if(u0(u)){let ve={},ne=(o=(t=(d=u==null?void 0:u.replace(":",we))==null?void 0:d.split(we))==null?void 0:t[0])==null?void 0:o.replaceAll("'",""),se="",ie=(S=(r=u==null?void 0:u.replace(":",we))==null?void 0:r.split(we))==null?void 0:S[1];if(ie.includes("{")||ie.includes("("))if(ie.includes("{")?se=se+((ee=(E=(q=(H=(m=(P=ie==null?void 0:ie.split("{"))==null?void 0:P[1])==null?void 0:m.split("}"))==null?void 0:H[0])==null?void 0:q.replaceAll(":","/").replaceAll("'",""))==null?void 0:E.replaceAll("[","(["))==null?void 0:ee.replaceAll("]","])"))+"[":se=se+((v=(s=(Y=(R=(M=(L=ie==null?void 0:ie.split("("))==null?void 0:L[1])==null?void 0:M.split(")"))==null?void 0:R[0])==null?void 0:Y.replaceAll(":","/").replaceAll("'",""))==null?void 0:s.replaceAll("[","(["))==null?void 0:v.replaceAll("]","])"))+"[",!((U=ie==null?void 0:ie.split(")"))!=null&&U[1]))se=se+((k=(y=(c=ie==null?void 0:ie.split("["))==null?void 0:c[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=(K=u==null?void 0:u.replace(":",we))==null?void 0:K.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(u.includes("#")){ne=(Z=($=u==null?void 0:u.split("#"))==null?void 0:$[0])==null?void 0:Z.replaceAll("'","");let ie=(oe=(C=u==null?void 0:u.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=u==null?void 0:u.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("'",""))}),!(u!=null&&u.includes("[")))se=((ce=(p=(J=(G=u==null?void 0:u.split("]"))==null?void 0:G[1])==null?void 0:J.replace(":",we).split(we))==null?void 0:p[1])==null?void 0:ce.replaceAll("'",""))??"";else{let me=(N=(A=(f=(i=(a=(le=l.cloneDeep(u))==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:N.replaceAll("'","").replaceAll(":","/"),be="";(Q=ie==null?void 0:ie.split(":"))==null||Q.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]]}}},d0=u=>(u==null?void 0:u[0])==="["&&(u==null?void 0:u[u.length-1])==="]"&&!(u!=null&&u.includes("{")),h0=(u,d)=>{let t=u.length;for(;t--;)if(u[t]===")")return u.substring(0,t)+d+u.substring(t+1);return u},f0=u=>{var S,P,m,H,q;let d=u.slice(1,u.length-1),t;(d==null?void 0:d[0])==="["?t=(P=(S=Je(l.cloneDeep(d)))==null?void 0:S.filter(E=>E!==","))==null?void 0:P.map(E=>E==null?void 0:E.slice(1,E.length-1)):(d="["+l.cloneDeep(d)+"]",t=(H=(m=Je(l.cloneDeep(d)))==null?void 0:m.filter(E=>E!==","))==null?void 0:H.map(E=>E==null?void 0:E.slice(1,E.length-1))),t=(q=l.cloneDeep(t))==null?void 0:q.map(E=>{var ee,L;return E=(L=(ee=E.replace(")",we))==null?void 0:ee.split(we))==null?void 0:L[1],E});let o=[],r=[];return t==null||t.forEach(E=>{var M,R,Y,s,v,U,c,y,k,x,re,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;let ee=(R=(M=l.cloneDeep(E))==null?void 0:M.slice(1,l.cloneDeep(E).length-1))==null?void 0:R.replace(":",we).split(we);if(((s=(Y=l.cloneDeep(ee))==null?void 0:Y[0])==null?void 0:s.replaceAll("'",""))==="输入"){if(!((U=(v=l.cloneDeep(ee))==null?void 0:v[1])!=null&&U.includes("["))&&!((y=(c=l.cloneDeep(ee))==null?void 0:c[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,((K=(X=l.cloneDeep(ee))==null?void 0:X[1])==null?void 0:K.length)-1);($=(n=Je(w))==null?void 0:n.filter(te=>te!==","))==null||$.forEach(te=>{var p,ce,le,a,i,f,A,N,Q,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("'",""),J;(i=V==null?void 0:V[1])!=null&&i.includes("(")?(J=(me=(ie=(se=(ne=(ve=(Q=(N=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:N.replaceAll("{",""))==null?void 0:Q.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("[")&&(J=l.cloneDeep(J)+"["+((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("'",""))+"]")):J=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'",""),g[G]=J,r.push(g)})}}else{if(!((C=(Z=l.cloneDeep(ee))==null?void 0:Z[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,N,Q,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be,Pe,Ie,Le,Ze,Oe,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("'",""),J;if(!((i=V==null?void 0:V[1])!=null&&i.includes("(")))J=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'","");else if(J=(se=(ne=(ve=(Q=(N=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:N.replaceAll("{",""))==null?void 0:Q.replaceAll("}",""))==null?void 0:ve.replace("(",we))==null?void 0:ne.split(we))==null?void 0:se[1],J=(me=(ie=h0(l.cloneDeep(J),we))==null?void 0:ie.split(we))==null?void 0:me[0],!(J!=null&&J.includes("(")))J=(be=l.cloneDeep(J))==null?void 0:be.replaceAll(":","/").replaceAll("'",""),(fe=(ae=l.cloneDeep(V))==null?void 0:ae[1])!=null&&fe.includes("[")&&(J=l.cloneDeep(J)+"["+((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(J,":"))==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+"]"}}),J=$e+"["+((Te=(Ge=(Ke=(Oe=(Pe=(Be=l.cloneDeep(V))==null?void 0:Be[1])==null?void 0:Pe.split("["))==null?void 0:Oe[((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]=J,o.push(g)})}}}),{output:o,input:r}},g2=u=>{var o,r,S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,c,y,k,x,re,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,J,p,ce;let d="";u=u.replace(/:([^=]*)==/g,":");let t=u;if((r0(l.cloneDeep(u))!==null||c0(l.cloneDeep(u))!==null)&&(d=(r=(o=l.cloneDeep(u).replace(":",we).split(we))==null?void 0:o[0])==null?void 0:r.replaceAll("'",""),t=(S=l.cloneDeep(u).replace(":",we).split(we))==null?void 0:S[1]),Ll(l.cloneDeep(t).slice(1,((P=l.cloneDeep(t))==null?void 0:P.length)-1))||d0(l.cloneDeep(t).slice(1,((m=l.cloneDeep(t))==null?void 0:m.length)-1)))if(((q=l.cloneDeep(t).slice(1,((H=l.cloneDeep(t))==null?void 0:H.length)-1))==null?void 0:q[1])!=="["){const le=Tl(l.cloneDeep(t).slice(1,((E=l.cloneDeep(t))==null?void 0:E.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(R=(M=Je(i))==null?void 0:M.filter(A=>A==null?void 0:A.includes("{")))==null?void 0:R.map((A,N)=>{var ve;let Q=Tl(l.cloneDeep(A).slice(1,((ve=l.cloneDeep(A))==null?void 0:ve.length)-1));return{groupName:N===0?d:"",tableColumn:Q==null?void 0:Q.tableColumns,tableContents:Q==null?void 0:Q.tableContents,tableColumnPath:Q==null?void 0:Q.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=($=(n=(B=(K=l.cloneDeep(t))==null?void 0:K.split("]"))==null?void 0:B[0])==null?void 0:n.split("["))==null?void 0:$[1],i="",A=((h=(he=(pe=(oe=(C=(Z=l.cloneDeep(t))==null?void 0:Z.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((Q,ve)=>{var ne;ve!==((ne=A==null?void 0:A.split("/"))==null?void 0:ne.length)-1&&(i=i===""?i+Q:i+"/"+Q)});let N;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])==="["&&(N=f0((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:N}}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=>p0(l.cloneDeep(A).slice(1,l.cloneDeep(A).length-1))),f=[];return(G=l.cloneDeep(i))==null||G.forEach(A=>{var N;(N=A==null?void 0:A.formContents)==null||N.forEach(Q=>{Q==null||Q.forEach(ve=>{f.push(ve)})})}),{groupName:(J=i==null?void 0:i[0])==null?void 0:J.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,N,Q,ve;if(!f.includes("&"))Array.isArray(xl(f))||a.push((A=xl(f))==null?void 0:A.formContents);else{let ne=(ve=(Q=(N=l.cloneDeep(f))==null?void 0:N.split("&"))==null?void 0:Q[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((U=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:U.replaceAll("'",'"')))le=JSON.parse((c=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:c.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=g2(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=u=>g2(l.cloneDeep(u).slice(1,l.cloneDeep(u).length-1)),m0=u=>{var t;let d=[];if(!((u==null?void 0:u[0])==="["&&(u==null?void 0:u[1])==="[")){let o=(t=Je(u))==null?void 0:t.filter(r=>r!==",");o==null||o.forEach(r=>{d.push(xl(r))})}return d},v0=Bl.useModelComp(l.pinia),{routeToChildPath:Il}=l.storeToRefs(v0),b2=l.useMenuState(l.pinia),{activeMenuPath:al}=l.storeToRefs(b2),y0=$l.useLoginState(),{loginUserInfo:kl}=l.storeToRefs(y0),D2=async()=>{var S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,c,y,k,x,re,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b;let u="";const d=await l.getInsofDataApi({key:{type:"structure",pageKey:l.cloneDeep(Il).value,systemKey:sessionStorage.getItem("systemKey")}});((P=(S=d==null?void 0:d.data)==null?void 0:S.result)==null?void 0:P.length)>0&&(u=(Y=(R=(M=(L=(ee=(E=(q=(H=(m=d==null?void 0:d.data)==null?void 0:m.result)==null?void 0:H[0])==null?void 0:q.value)==null?void 0:E.pageData)==null?void 0:ee.compData)==null?void 0:L.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:M.contents)==null?void 0:R[0])==null?void 0:Y.label);let t=al.value;(v=al.value)!=null&&v.includes(`updateLoading${(s=kl.value)==null?void 0:s.account}`)?t=l.cloneDeep(al).value:(c=al.value)!=null&&c.includes(`loading${(U=kl.value)==null?void 0:U.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(`updateLoading${(k=kl.value)==null?void 0:k.account}`)){const z=await l.getInsofDataApi({key:{pageKey:(de=al.value.split(`/updateLoading${(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=(K=o==null?void 0:o.data)==null?void 0:K.result)==null?void 0:B.length)>0){let z=(T=(h=(he=(pe=(oe=(C=(Z=($=(n=o==null?void 0:o.data)==null?void 0:n.result)==null?void 0:$[0])==null?void 0:Z.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)===u||((j=(F=_==null?void 0:_.optionUrl)==null?void 0:F.groupSelect)==null?void 0:j[1])===u}))==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,b2.setChildMenu(F.pageKey),r.push({id:_==null?void 0:_.id,key:F})}),z===""){l.ElMessage.error(`保存失败,${u}的必填字段没有填写`);return}await l.batchUpdateInsofDataApi({dataList:r}),l.ElMessage.success("保存成功")}},g0={key:0,class:"method-content"},b0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(u){const d=e.ref([]),t=u,o=Bl.useModelComp(l.pinia),r=e.ref(!1),S=l.useMenuState(l.pinia),P=$l.useLoginState(l.pinia),{itemData:m,isEdit:H,routeToChildPath:q}=l.storeToRefs(o),{activeMenuPath:E,platform:ee,childMenu:L}=l.storeToRefs(S),{loginUserInfo:M}=l.storeToRefs(P),R=e.ref(!1),Y=(O,X)=>{const K=X;return O==null?void 0:O.map(B=>{var n;return B=(n=B==null?void 0:B.map(($,Z)=>{var C;return{key:(C=K[Z])==null?void 0:C.label,value:$}}))==null?void 0:n.filter($=>$.key!=="操作"),B})},s=async()=>{var O;(O=d.value)!=null&&O.find(X=>(X==null?void 0:X.buttonName)==="保存"),await D2()};e.watch(()=>m.value,async()=>{H.value==="view"&&!R.value&&await de(l.cloneDeep(t.itemData)),R.value=!1},{deep:!0});const v=async(O,X)=>{var K;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((K=l.cloneDeep(O.compData))==null?void 0:K.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},U=(O,X)=>{var B,n,$,Z,C,oe,pe,he,h,T,D,b;let K=(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=(Z=($=(n=l.cloneDeep(O))==null?void 0:n.split("["))==null?void 0:$[1])==null?void 0:Z.split("]"))==null?void 0:C[0])==null?void 0:oe.split(":"),_="";if(z!=null&&z[0]){let F=(pe=K==null?void 0:K.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(K))==null||he.forEach((_,F)=>{var j,I,w,te,g,V,G,J,p,ce,le,a,i,f,A,N,Q,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=(J=_==null?void 0:_.compData)==null?void 0:J.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=(Q=(N=_==null?void 0:_.compData)==null?void 0:N.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:Q.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:E.value},value:{pageData:z}}}return O}},c=async(O,X,K)=>{var $;let B=await ge.getItemData(X,sessionStorage.getItem("systemKey"),""),n=B==null?void 0:B.find(Z=>(Z==null?void 0:Z.name)===(K==null?void 0:K[0]));if(n&&(n==null?void 0:n.comp)==="Table"){let Z={};for(let D in l.cloneDeep(O))l.cloneDeep(O)[D]!=="loginUser"?Z[D]=l.cloneDeep(O)[D]:Z[D]=($=M.value)==null?void 0:$.account;let C=[],oe=Z;Array.isArray(O)||(oe=[Z]),oe==null||oe.forEach(D=>{C.push({[D[K[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)===(K==null?void 0:K[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,K)=>{var $,Z,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)===(K==null?void 0:K[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]=($=M.value)==null?void 0:$.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=(Z=l.cloneDeep(b))==null?void 0:Z.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(J=>{var p;z.includes(J==null?void 0:J.key)&&(J==null?void 0:J.value)===((p=M.value)==null?void 0:p.姓名)&&(_=J==null?void 0:J.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,N,Q,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=(Q=(N=l.cloneDeep(g))==null?void 0:N.split("<"))==null?void 0:Q[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 J=await ge.getItemData(V,sessionStorage.getItem("systemKey"),"");let p="";return J==null||J.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(J=>{var p,ce,le,a;return(p=O[_])!=null&&p[J==null?void 0:J.key]&&(O[_][J==null?void 0:J.key].includes("(")?J.value=(ce=I==null?void 0:I.find(i=>{var f;return((f=Object.keys(i))==null?void 0:f[0])===O[_][J==null?void 0:J.key]}))==null?void 0:ce[O[_][J==null?void 0:J.key]]:J.value=(a=(le=l.cloneDeep(O))==null?void 0:le[_])==null?void 0:a[J==null?void 0:J.key]),J})),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)===(K==null?void 0:K[0])&&(te=g.id)}),await l.updateInsofDataApi({id:te,value:{pageData:b}}))}}},k=async(O,X,K)=>{var $,Z,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)===(K==null?void 0:K[0]));if(n){if(!(K!=null&&K[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]=($=M.value)==null?void 0:$.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(!(K!=null&&K[1])&&(n==null?void 0:n.comp)==="Form"){let h=l.cloneDeep(n);h.compData=(C=(Z=l.cloneDeep(h))==null?void 0:Z.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)===(K==null?void 0:K[0])&&(D=b.id)}),await l.updateInsofDataApi({id:D,value:{pageData:h}}))}}},x=["createInsofDataApi"],re=async O=>{var K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;S.setImportLoading(!0);let X={};if(ee.value!=="browser"){const w=[];X.form={},(K=l.cloneDeep(O.content))==null||K.forEach((g,V)=>{var G,J,p,ce,le,a,i,f,A,N,Q,ve,ne,se;if((g==null?void 0:g.comp)==="Table"){(J=(G=g==null?void 0:g.compData)==null?void 0:G.find(ae=>(ae==null?void 0:ae.key)==="header"))==null||J.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));(N=(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||N.label;let me=(ve=(Q=g==null?void 0:g.compData)==null?void 0:Q.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(($=g==null?void 0:g.data)==null?void 0:$.data);const G=(Z=l.cloneDeep(m.value))==null?void 0:Z.filter(le=>(le==null?void 0:le.comp)!=="methodButton"),J=await Promise.all(G.map(le=>v(le,V)));await Promise.all(J);const p=(C=l.cloneDeep(m.value))==null?void 0:C.filter(le=>(le==null?void 0:le.comp)==="methodButton");let ce=[...J,...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)===""?E.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=U(ce,w):te[Object.keys(ce)[0]]=U((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,N,Q,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[((Q=(N=l.cloneDeep((A=Object.values(ce))==null?void 0:A[0]))==null?void 0:N.split("["))==null?void 0:Q.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),Oe=(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)===(Oe==null?void 0:Oe[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)===(Oe==null?void 0:Oe[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 J=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(J);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,Oe,Ke,Ge,Te,$e,Fe,ol,tl,nl,sl,il,rl,cl,ul,pl,dl,hl,fl,ml,vl,yl,Qe,Pl,Rl,Ol,Hl,Ul,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]),N=document.createElement("a"),Q=window.URL.createObjectURL(le),ve=/^["](.*)["]$/g;N.style.display="none",N.href=Q,N.download=decodeURI(A.replace(ve,"$1")),document.body.appendChild(N),N.click(),document.body.removeChild(N),window.URL.revokeObjectURL(Q)}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(":"),Ue=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(Ue.includes("[")&&(Ue=(Le=l.cloneDeep(Ue))==null?void 0:Le.slice(0,((Ie=l.cloneDeep(Ue))==null?void 0:Ie.length)-1)),Ue!=null&&Ue.includes("[")){let ze="";(Ze=Al(Ue,"/"))==null||Ze.forEach(Se=>{var gl,Re,He,Ye,bl,t2,n2;if(!(Se!=null&&Se.includes("[")))ze=ze===""?ze+Se.replaceAll("/",""):ze+"/"+Se.replaceAll("/","");else{let w2=l.cloneDeep(Se).slice(1,((gl=l.cloneDeep(Se))==null?void 0:gl.length)-1),el=(t2=(bl=(Ye=(He=(Re=l.cloneDeep(w2))==null?void 0:Re.split("["))==null?void 0:He[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("/","")}}),Ue=ze}if(((Oe=V==null?void 0:V.data)==null?void 0:Oe.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]],Ue,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 c((nl=(tl=V==null?void 0:V.data)==null?void 0:tl.data)==null?void 0:nl[Ae==null?void 0:Ae[0]],Ue,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(He=>{var Ye,bl;Se=Se===""?Se+((Ye=He==null?void 0:He.replaceAll("'",""))==null?void 0:Ye.trim()):Se+"/"+((bl=He==null?void 0:He.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()],Re;return(Ol=(Rl=(Pl=V==null?void 0:V.data)==null?void 0:Pl.data)==null?void 0:Rl.data)!=null&&Ol[Ae==null?void 0:Ae[0]]?Re=await k((jl=(Ul=(Hl=V==null?void 0:V.data)==null?void 0:Hl.data)==null?void 0:Ul.data)==null?void 0:jl[Ae==null?void 0:Ae[0]],Se,Ae):Re=await y((Kl=(Jl=V==null?void 0:V.data)==null?void 0:Jl.data)==null?void 0:Kl.data,Se,gl),Re}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(Re=>{var He,Ye;Se=Se===""?Se+((He=Re==null?void 0:Re.replaceAll("'",""))==null?void 0:He.trim()):Se+"/"+((Ye=Re==null?void 0:Re.replaceAll("'",""))==null?void 0:Ye.trim())}),await c((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)}S.setImportLoading(!1),R.value=!0},de=async O=>{var $,Z,C;const X=l.cloneDeep(O);let K;O!=null&&O[0].path&&(K=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(E.value,sessionStorage.getItem("systemKey"),"");return h==null||h.forEach(G=>{var J,p,ce,le,a;((p=(J=G==null?void 0:G.value)==null?void 0:J.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(E.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=($=O==null?void 0:O[0])!=null&&$.path&&((Z=O==null?void 0:O[0])==null?void 0:Z.path)!==""?await Promise.all(K):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()=>{H.value=="view"&&!R.value&&await de(l.cloneDeep(t.itemData)),R.value=!1},{immediate:!0,deep:!0}),(O,X)=>{var K,B,n;return e.unref(H)!=="edit"?(e.openBlock(),e.createElementBlock("div",g0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((K=d.value)==null?void 0:K.filter($=>($==null?void 0:$.buttonName)!=="保存"),$=>(e.openBlock(),e.createElementBlock("div",null,[$.api!==""?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",modelValue:$.buttonName,onClickTrigger:Z=>re($),loading:r.value},null,8,["modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)]))),256)),e.unref(q)!==""&&((n=e.unref(E))==null?void 0:n[((B=e.unref(E))==null?void 0:B.length)-1])!=="/"?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",onClickTrigger:s,modelValue:"保存"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},D0=Ve._export_sfc(b0,[["__scopeId","data-v-d1844728"]]),k0={};function w0(u,d){return" 567 "}const C0=Ve._export_sfc(k0,[["render",w0]]),_0={class:"module content"},A0={class:"module data"},x0={class:"module layout"},B0={class:"form-content"},V0=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,r=e.reactive({visible:!1,width:"40%",title:"签名配置"}),S=e.ref("create"),P=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}]),H=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({}),E=e.ref([]),ee=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:E.value},{key:"signConfig",contents:q.value}]}),L=s=>{var v;q.value=l.cloneDeep(s),o("change",(v=ee())==null?void 0:v.compData)},M=s=>{var v,U;if((s==null?void 0:s.buttonName)==="确认"){const c=l.cloneDeep(s==null?void 0:s.content);switch(S.value){case"create":E.value.push({...c,index:((v=E.value)==null?void 0:v.length)+1});break}o("change",(U=ee())==null?void 0:U.compData),r.visible=!1}else r.visible=!1},R=(s,v)=>{var U,c;switch(s){case"create":(U=H.value)==null||U.forEach(y=>{y.value=""}),S.value="create",r.visible=!0;break;case"update":(c=H.value)==null||c.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),S.value="update",r.visible=!0;break;case"delete":E.value.splice(v,1),S.value="delete";break}},Y=()=>{r.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(q.value=((v=s==null?void 0:s.find(c=>c.key==="signConfig"))==null?void 0:v.contents)??{},E.value=((U=s==null?void 0:s.find(c=>c.key==="signTypeList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",_0,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(c,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>R("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",A0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.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(c,{type:"primary",size:"small",onClick:x=>R("update",{...y,index:k+1})},{default:e.withCtx(()=>v[3]||(v[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(c,{type:"danger",size:"small",onClick:x=>R("delete",k)},{default:e.withCtx(()=>v[4]||(v[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",x0,[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",B0,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:H.value,key:H.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:P.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),E0=Ve._export_sfc(V0,[["__scopeId","data-v-487e0536"]]),M0=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(u,{emit:d}){const t=u,o=d,r=e.ref(1),S=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}),P=(ee,L)=>{r.value=L,o("clickStep",ee,L)},m=ee=>Ce.getComponent(ee),H=()=>{var L;const ee=(L=t==null?void 0:t.stepList)==null?void 0:L.find((M,R)=>R+1===S.value);return console.log("findStep",ee),ee?ee==null?void 0:ee.children:[]},q=ee=>{o("clickTrigger",ee)},E=ee=>{o("changeTrigger",ee)};return(ee,L)=>{var Y,s,v,U,c;const M=e.resolveComponent("el-step"),R=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(R,{direction:(Y=u.stepConfig)==null?void 0:Y.direction,active:S.value,"finish-status":"success",simple:(s=u.stepConfig)==null?void 0:s.simple,"align-center":((v=u.stepConfig)==null?void 0:v.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.stepList,(y,k)=>(e.openBlock(),e.createBlock(M,{key:k,class:"step-item",onClick:x=>P(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"]),(U=u.stepConfig)!=null&&U.allowTrigger&&((c=u.stepConfig)!=null&&c.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H(),(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:E,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)}}}),z0=Ve._export_sfc(M0,[["__scopeId","data-v-d7c99969"]]),F0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(u,{emit:d}){const t=u,o=d,r=e.ref({}),S=e.ref([]),P=(m,H)=>{o("clickStep",m,H)};return e.watch(()=>t==null?void 0:t.itemData,m=>{var H,q;S.value=(H=m==null?void 0:m.find(E=>(E==null?void 0:E.key)==="stepList"))==null?void 0:H.contents,r.value=(q=m==null?void 0:m.find(E=>(E==null?void 0:E.key)==="stepConfig"))==null?void 0:q.contents},{immediate:!0}),(m,H)=>{const q=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(z0,{stepConfig:r.value,stepList:S.value,onClickStep:P},{icon:e.withCtx(()=>[e.createVNode(q,{name:"import"})]),title:e.withCtx(({title:E})=>[e.createTextVNode(e.toDisplayString(E),1)]),description:e.withCtx(({description:E})=>[e.createTextVNode(e.toDisplayString(E),1)]),_:1},8,["stepConfig","stepList"])}}}),N0=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(u){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(u.activities,(S,P)=>(e.openBlock(),e.createBlock(o,{key:P,timestamp:S.timestamp,placement:u.timeLineConfig.placement,center:u.timeLineConfig.isCenter,"hide-timestamp":!0,type:u.timeLineConfig.type,color:u.timeLineConfig.color,size:u.timeLineConfig.size,icon:u.timeLineConfig.icon,hollow:u.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content",{content:S==null?void 0:S.content,timestamp:S==null?void 0:S.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),S0=Ve._export_sfc(N0,[["__scopeId","data-v-4172a886"]]),T0={class:"line-content"},I0={class:"line-time"},L0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(u){const d=u,t=e.ref({}),o=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,r=>{var S,P;o.value=(S=r==null?void 0:r.find(m=>(m==null?void 0:m.key)==="timeLineList"))==null?void 0:S.contents,t.value=(P=r==null?void 0:r.find(m=>(m==null?void 0:m.key)==="timeLineConfig"))==null?void 0:P.contents},{immediate:!0}),(r,S)=>(e.openBlock(),e.createBlock(S0,{activities:o.value,timeLineConfig:t.value},{content:e.withCtx(({content:P,timestamp:m})=>[e.createElementVNode("span",T0,e.toDisplayString(P),1),e.createElementVNode("span",I0,e.toDisplayString(m),1)]),_:1},8,["activities","timeLineConfig"]))}}),$0=Ve._export_sfc(L0,[["__scopeId","data-v-b4d9deed"]]),P0={class:"tabs-content"},R0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},setup(u){const d=u,t=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,o=>{const r=o.find(S=>(S==null?void 0:S.key)=="stepList");r&&(t.value=r.contents.map(S=>({value:S.value||S.title,label:S.label||S.title,children:S.children||[]})))},{immediate:!0,deep:!0}),(o,r)=>(e.openBlock(),e.createElementBlock("div",P0,[e.createVNode(Ce.ssTab,{tabsContents:t.value},null,8,["tabsContents"])]))}},O0=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(u){this.itemData=u},setCurStructureCompIds(u){this.curStructureCompIds=u},setRefreshCurStructure(u){this.isRefreshCurStructure=u},setOriginalData(u){this.originalData=u},setExtraContents(u){this.extraContents=u},setNodeDev(u){this.nodeDev=u},setIsEdit(u){this.isEdit=u}}}),H0={class:"type-select"},U0=["onClick"],j0={class:"list-icon"},J0={__name:"modelSelect",setup(u){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=r=>{const S=l.cloneDeep(t.value);S.push({comp:r.comp,name:r.name,compData:[]}),d.setItemData(S)};return(r,S)=>{const P=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k2),(m,H)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:H},[e.createElementVNode("div",{class:"list-content",onClick:q=>o(m)},[e.createElementVNode("div",j0,[e.createVNode(P,{name:m.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(m.name),1)],8,U0)]))),128))])}}},K0=Ve._export_sfc(J0,[["__scopeId","data-v-91799bf8"]]),G0={class:"fill-content"},W0={class:"operate-content"},q0={class:"collapse-title-content"},X0={class:"collapse-title-item"},Y0={key:1},Z0=["onClick"],Q0={class:"icon-content"},eo={key:0,class:"edit-content"},lo=["onClick"],ao={class:"comp-child"},oo={__name:"modelFill",setup(u){const d=Vl(l.pinia),{itemData:t,originalData:o}=l.storeToRefs(d),r=e.ref([]);e.ref([]);const S=e.ref([]),P=e.ref([]),m=M=>{var Y;let R=(Y=l.cloneDeep(P.value))==null?void 0:Y.map((s,v)=>(M===v&&(s.content=!0),s));P.value=R},H=M=>{var Y;let R=(Y=l.cloneDeep(P.value))==null?void 0:Y.map((s,v)=>(M===v&&(s.content=!1),s));P.value=R,r.value=l.cloneDeep(t.value)},q=(M,R)=>{var U;let Y=(U=l.cloneDeep(P.value))==null?void 0:U.map((c,y)=>(M===y&&(c.content=!1),c));P.value=Y;const s=l.cloneDeep(t.value),v=s==null?void 0:s.filter((c,y)=>(y===M&&(c.name=R),c));d.setOriginalData(v),d.setItemData(v)};e.watch(()=>t.value,()=>{var M,R,Y;!t.value||((M=t.value)==null?void 0:M.length)===0?r.value=[]:r.value=(R=l.cloneDeep(t.value))==null?void 0:R.filter(s=>(s==null?void 0:s.comp)!=="methodButton"),S.value=r.value,P.value=(Y=l.cloneDeep(S.value))==null?void 0:Y.map((s,v)=>({id:v,content:!1}))},{deep:!0,immediate:!0});const E=M=>El(M),ee=(M,R,Y)=>{var v,U;if(!M)return;let s=l.cloneDeep(t.value);s=(v=s==null?void 0:s.map((c,y)=>(y===Y&&(c.compData=M),c)))==null?void 0:v.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),P.value=(U=l.cloneDeep(s))==null?void 0:U.map((c,y)=>({id:y,content:!1})),d.setOriginalData(s),d.setItemData(s)},L=M=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const R=l.cloneDeep(t.value),Y=R==null?void 0:R.filter((s,v)=>v!==M);d.setOriginalData(Y),d.setItemData(Y),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,R)=>{const Y=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",G0,[R[1]||(R[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",W0,[e.createVNode(_2.default,{class:"collapse-content",collapseContents:r.value},{title:e.withCtx(({item:s,index:v})=>{var U,c,y,k,x,re,de,O,X,K;return[e.createElementVNode("div",q0,[e.createElementVNode("div",X0,[(c=(U=P.value)==null?void 0:U.find(B=>B.id===v))!=null&&c.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=P.value)==null?void 0:y.find(B=>B.id===v))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",Y0,[e.createVNode(Ce._sfc_main$2,{modelValue:s.name,"onUpdate:modelValue":B=>s.name=B,onClick:R[0]||(R[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(re=(x=P.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,Z0))]),e.createElementVNode("div",Q0,[(O=(de=P.value)==null?void 0:de.find(B=>B.id===v))!=null&&O.content?(e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(Y,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(B=>H(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),(K=(X=P.value)==null?void 0:X.find(B=>B.id===v))!=null&&K.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,lo))])])]}),content:e.withCtx(({item:s,index:v})=>{var U,c;return[e.createElementVNode("div",ao,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(s.comp+"Operate")),{itemContents:s==null?void 0:s.compData,originalItemContents:(c=(U=S.value)==null?void 0:U.find((y,k)=>k===v))==null?void 0:c.compData,onChange:y=>ee(y,s,v)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},to=Ve._export_sfc(oo,[["__scopeId","data-v-78d7fc46"]]),no={key:0,class:"show-content"},so={style:{display:"flex"}},io={__name:"modelShow",setup(u){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=e.ref([]);e.watch(()=>t.value,()=>{var S;!t.value||((S=t.value)==null?void 0:S.length)===0?o.value=[]:o.value=l.cloneDeep(t.value)},{deep:!0,immediate:!0});const r=S=>El(S);return(S,P)=>{var m;return((m=o.value)==null?void 0:m.length)>0?(e.openBlock(),e.createElementBlock("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(H,q)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:q},[e.createElementVNode("div",so,e.toDisplayString(H.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(H.comp)),{itemData:H==null?void 0:H.compData,childItemData:H==null?void 0:H.itemChildData,key:q},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ro=Ve._export_sfc(io,[["__scopeId","data-v-3f3e863e"]]),co={class:"tabs-header"},uo={class:"tabs-list"},po={class:"tab-name"},ho={class:"tab-actions"},fo=["onClick"],mo=["onClick"],vo=["onClick"],yo={class:"model-operate"},go={class:"model-select",style:{display:"unset"}},bo={class:"existing-components"},Do={class:"component-list"},ko=["onClick"],wo={class:"component-info"},Co={class:"component-type"},_o={class:"component-name"},Ao={class:"model-fill"},xo={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,r=e.ref([]),S=e.ref(!1),P=e.ref(""),m=e.ref({title:""}),H=e.ref(-1),q=e.ref(!1),E=e.ref(-1),ee=e.ref(new Map),L=e.ref(null),M=Vl(l.pinia),{itemData:R}=l.storeToRefs(M),Y=()=>{P.value="新增标签页",m.value.title="",H.value=-1,S.value=!0},s=h=>{P.value="修改标签页",m.value.title=r.value[h].title,H.value=h,S.value=!0},v=h=>{const T=y(h);ee.value.delete(T),r.value.splice(h,1),he()},U=()=>{if(m.value.title.trim()){if(H.value===-1){const h={title:m.value.title,value:m.value.title,label:m.value.title,children:[],id:c()};r.value.push(h)}else r.value[H.value].title=m.value.title,r.value[H.value].value=m.value.title,r.value[H.value].label=m.value.title;S.value=!1,he()}},c=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,y=h=>{const T=r.value[h];return T.id||(T.id=c()),T.id},k=h=>{var b;E.value=h;const T=y(h);L.value=l.cloneDeep(R.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?M.setItemData(l.cloneDeep(D)):M.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"&&E.value>=0){const z=y(E.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=c()})}));const b=l.cloneDeep(R.value);b.push(D),M.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:K(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},K=h=>[],B=()=>{if(E.value>=0&&E.value<r.value.length){const h=y(E.value);ee.value.set(h,l.cloneDeep(R.value)),r.value[E.value].children=Z(R.value),console.log("保存后的数据",Z(R.value))}q.value=!1,E.value=-1,L.value=null,he()},n=()=>{L.value&&M.setItemData(l.cloneDeep(L.value)),q.value=!1,E.value=-1,L.value=null},$=()=>{q.value&&n()},Z=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||c()})))}},{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",co,[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",uo,[(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",po,e.toDisplayString(F.title),1),e.createElementVNode("div",ho,[e.createElementVNode("button",{onClick:I=>s(j)},"修改标题",8,fo),e.createElementVNode("button",{onClick:I=>k(j)},"布局调整",8,mo),e.createElementVNode("button",{onClick:I=>v(j)},"删除",8,vo)])]))),128))]),e.createVNode(Ce.ssDialog,{modelValue:S.value,"onUpdate:modelValue":T[2]||(T[2]=F=>S.value=F),title:P.value,onBeforeDestroy:T[3]||(T[3]=F=>S.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:T[1]||(T[1]=F=>S.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:U},"确定")]),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:$},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:n},"取消"),e.createElementVNode("button",{onClick:B},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",yo,[e.createElementVNode("div",go,[e.createVNode(K0),e.createElementVNode("div",bo,[T[8]||(T[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",Do,[(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",wo,[e.createElementVNode("span",Co,e.toDisplayString(re(F.comp)),1),e.createElementVNode("span",_o,e.toDisplayString(F.name),1)]),T[7]||(T[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,ko))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:h.innerWidth},[e.createVNode(ro)])),e.createElementVNode("div",Ao,[e.createVNode(to)])])]),_:1},8,["modelValue"])])}}},Bo=Ve._export_sfc(xo,[["__scopeId","data-v-151936e8"]]),k2=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"}]),Vo={TABLE:W.ssTable,FORM:u2,TABLEOPERATE:A1,FORMOPERATE:p2,FOLD:l0,CALCULATOR:i0,METHODBUTTON:D0,AVATARUPLOAD:i2.ssAvatar,SIGNATURE:i2.ssSignature,FORMTOP:u2,STEP:F0,STEPOPERATE:K1,TIMELINE:$0,TIMELINEOPERATE:Z1,FORMTOPOPERATE:p2,SIGNATUREOPERATE:E0,AVATARUPLOADOPERATE:C0,TABS:O0,TABSOPERATE:Bo};function El(u){return Vo[u==null?void 0:u.toUpperCase()]||null}exports.contentTransArrayToAll=Al;exports.getComponent=El;exports.getMultiple=m0;exports.getSingleTableToForm=xl;exports.onSaveBack=D2;exports.slotContent=k2;
|
|
1
|
+
"use strict";const W=require("./index-B77xf0bX.cjs"),e=require("vue"),l=require("./menu-ScIJ5kqr.cjs"),Ce=require("./index-BIPYWuic.cjs"),ge=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-lPMPisUK.cjs"),b2=require("./OrbitControls-dwV_193A.cjs"),Bl=require("./modelComp-CkSDfH0-.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$l=require("./login-9FT8kgSz.cjs"),Xe=require("./index-4u6cukm_.cjs"),o2=require("./index-C2neJgVy.cjs"),D2=require("./index-C31XRLFj.cjs");function k2(u){let d=null,t=null,o=null,c=null,S=null,P=null,m=null,H=null;const E=1e3/30;let ee=0;const L=e.ref([]),M=e.ref(new W.Vector3),R=e.ref(new W.Vector3),Y=()=>{if(!u.value)return;d=new W.Scene,d.background=new W.Color(15790320);const K=u.value;t=new W.PerspectiveCamera(75,K.clientWidth/K.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(K.clientWidth,K.clientHeight),o.localClippingEnabled=!0,o.shadowMap.enabled=!0,o.shadowMap.type=W.PCFSoftShadowMap,o.toneMapping=W.ACESFilmicToneMapping,o.toneMappingExposure=1,o.outputColorSpace=W.SRGBColorSpace,K.appendChild(o.domElement),c=new b2.OrbitControls(t,o.domElement),c.enableDamping=!0,c.dampingFactor=.05,c.mouseButtons={LEFT:null,MIDDLE:W.MOUSE.PAN,RIGHT:W.MOUSE.ROTATE},c.panSpeed=.7,S=new W.Xe(t,o,{container:K,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"}}),S.attachControls(c),U(),r()},s=(K,B)=>{m&&(d.remove(m),m.dispose()),H&&(d.remove(H),H.geometry.dispose(),H.material.dispose());const n=Math.min(Math.max(Math.floor(K/20),30),40);m=new W.GridHelper(K,n,13421772,14540253),m.rotateX(Math.PI/2),m.position.copy(B),d.add(m);const $=new W.PlaneGeometry(K,K),Z=new W.ShadowMaterial({opacity:.3,color:0});H=new W.Mesh($,Z),H.position.copy(B),H.position.z-=.01,H.receiveShadow=!0,d.add(H)},v=()=>{if(L.value.length===0)return;const K=new W.Box3;let B=!1;if(L.value.forEach(pe=>{if(pe.userData.boundingBox)K.union(pe.userData.boundingBox),B=!0;else if(pe.userData.modelId&&modelBoundingBoxes.has(pe.userData.modelId)){const he=modelBoundingBoxes.get(pe.userData.modelId);K.union(he.box),B=!0}else K.expandByObject(pe),B=!0}),!B){console.warn("无法计算包围盒,网格更新失败");return}const n=K.getSize(new W.Vector3),$=K.getCenter(new W.Vector3),Z=Math.max(n.x,n.y,n.z),C=Math.max(Z*8,50),oe=new W.Vector3($.x,$.y,K.min.z);s(C,oe)},U=()=>{const K=new W.AmbientLight(4210752,.6);d.add(K);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 $=new W.DirectionalLight(16777215,.6);$.position.set(0,-15,2),d.add($);const Z=new W.HemisphereLight(16777215,4473924,.8);d.add(Z);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)},r=()=>{P=requestAnimationFrame(r),c&&c.update();const K=performance.now(),B=K-ee;B<E||(ee=K-B%E,o&&d&&t&&o.render(d,t),S&&S.render())},y=K=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(n=>{K[n]&&K[n].dispose&&K[n].dispose()}),K.dispose&&K.dispose()},k=K=>{K==null||K.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:M,initialTargetPosition:R,initThreeJS:Y,handleResize:()=>{if(!u.value||!t||!o||!S)return;const K=u.value,B=K.clientWidth,n=K.clientHeight;t.aspect=B/n,t.updateProjectionMatrix(),o.setSize(B,n),S.update()},fitCameraToAllModels:K=>{if(!t||!c||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&&K.has(he.userData.modelId)){const h=K.get(he.userData.modelId);B.union(h.box),n=!0}else B.expandByObject(he),n=!0}),!n){console.warn("无法计算包围盒");return}const $=B.getSize(new W.Vector3),Z=B.getCenter(new W.Vector3),oe=Math.max($.x,$.y,$.z)*.8,pe=new W.Vector3(Z.x+oe,Z.y-oe,Z.z+oe);t.position.copy(pe),t.lookAt(Z),c.target.copy(Z),c.update(),M.value.copy(pe),R.value.copy(Z),v()},getThreeJSObjects:()=>({scene:d,camera:t,renderer:o,controls:c,gizmo:S}),clearAllModels:()=>{if(!d)return;L.value.forEach(B=>{d.remove(B),k(B)});const K=[];d.children.forEach(B=>{!B.isLight&&!B.isCamera&&B.type!=="GridHelper"&&B!==H&&K.push(B)}),K.forEach(B=>{d.remove(B),k(B)}),L.value=[],v()},cleanup:()=>{P&&cancelAnimationFrame(P),m&&m.dispose(),H&&(H.geometry.dispose(),H.material.dispose()),o&&o.dispose(),c&&c.dispose(),S&&S.dispose()},updateGridForModels:v}}function w2(u,d){const t=e.ref(!1);let o=null,c=12700,S=new W.Vector3,P=new W.Vector3,m=new W.Vector3,H=0,q=null;const E=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,ee=s=>{const v=new W.Vector3,U=H*1.2,r=new W.Vector3(m.x+U,m.y,m.z),y=new W.Vector3(m.x,m.y+U,m.z),k=new W.Vector3(m.x,m.y-U,m.z);if(s<=.567){const ce=s/.567*Math.PI*2;v.x=m.x+Math.cos(ce)*U,v.z=m.z+Math.sin(ce)*U,v.y=m.y}else if(s<=.724){const x=(s-.567)/.157,ce=E(x);v.lerpVectors(r,y,ce)}else if(s<=.881){const x=(s-.724)/.157,de=E(x)*Math.PI;v.x=m.x+Math.sin(de)*U,v.y=m.y+Math.cos(de)*U,v.z=m.z}else{const x=(s-.881)/.119,ce=E(x);v.lerpVectors(k,S,ce)}return v},L=()=>{const{camera:s,controls:v}=u();if(!s||!v)return;o||(o=Date.now());const U=Date.now()-o,r=Math.min(U/c,1);if(r>=1){R();return}const y=ee(r);s.position.copy(y),s.lookAt(m),v.target.copy(m),q=requestAnimationFrame(L)},M=()=>{if(d.value.length===0)return;const{camera:s,controls:v}=u();if(!s||!v)return;S.copy(s.position),P.copy(v.target);const U=new W.Box3;d.value.forEach(O=>{U.expandByObject(O)});const r=U.getSize(new W.Vector3);m=U.getCenter(new W.Vector3),H=Math.max(r.x,r.y,r.z)*1.2;const y=new W.Vector3(m.x+H*1.2,m.y,m.z);v.enabled=!1;const k=s.position.clone(),x=1e3,ce=Date.now(),de=()=>{const O=Date.now()-ce,X=Math.min(O/x,1),K=E(X);s.position.lerpVectors(k,y,K),s.lookAt(m),v.target.copy(m),X<1?requestAnimationFrame(de):(t.value=!0,o=null,L())};de()},R=()=>{t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{controls:s}=u();s&&(s.enabled=!0,s.target.copy(P))};return{isAnimating:t,toggleAnimation:()=>{if(t.value){t.value=!1,o=null,q&&(cancelAnimationFrame(q),q=null);const{camera:s,controls:v}=u();if(!s||!v)return;v.enabled=!0;const U=s.position.clone(),r=v.target.clone(),y=1500,k=Date.now(),x=()=>{const ce=Date.now()-k,de=Math.min(ce/y,1),O=E(de);s.position.lerpVectors(U,S,O),v.target.lerpVectors(r,P,O),de<1&&requestAnimationFrame(x)};x()}else M()},startAnimation:M,stopAnimation:R}}function C2(u,d){const t=e.ref(!1),o=e.ref("none");let c=[],S=[],P=new W.Box3,m=new W.Vector3;const H=()=>{c=[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=()=>{P.makeEmpty(),d.value.forEach(Y=>{P.expandByObject(Y)}),m=P.getCenter(new W.Vector3)},E=Y=>{const s=P.getSize(new W.Vector3);let v,U,r;Y==="x"?(v=new W.PlaneGeometry(s.z*1.2,s.y*1.2),U=new W.Vector3(m.x,m.y,m.z),r=new W.Euler(0,Math.PI/2,0)):Y==="y"?(v=new W.PlaneGeometry(s.x*1.2,s.z*1.2),U=new W.Vector3(m.x,m.y,m.z),r=new W.Euler(Math.PI/2,0,0)):Y==="z"&&(v=new W.PlaneGeometry(s.x*1.2,s.y*1.2),U=new W.Vector3(m.x,m.y,m.z),r=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(U),k.rotation.copy(r),k},ee=()=>{if(L(),M(),o.value==="none")return;q();let Y=null;if(o.value==="x"?(c[0].constant=-m.x,Y=c[0]):o.value==="y"?(c[1].constant=-m.y,Y=c[1]):o.value==="z"&&(c[2].constant=-m.z,Y=c[2]),Y){d.value.forEach(v=>{v.traverse(U=>{U.isMesh&&U.material&&(Array.isArray(U.material)?U.material.forEach(r=>{r.clippingPlanes=[Y]}):U.material.clippingPlanes=[Y])})});const{scene:s}=u();if(s){const v=E(o.value);s.add(v),S.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=[])})})},M=()=>{const{scene:Y}=u();Y&&S.forEach(s=>{Y.remove(s),s.geometry.dispose(),s.material.dispose()}),S=[]};return{isClipping:t,activeClippingAxis:o,toggleClipping:()=>{t.value=!t.value,t.value?(H(),d.value.length>0&&q()):(o.value="none",L(),M())},updateClippingPlanes:ee,clearClippingPlanes:L,clearClippingMeshes:M}}const Nl="http://139.196.154.85:20026/chfs/shared/Insofrobot/";function _2(u,d,t,o){return{loadUrdfFromUrl:async S=>{t.value=!0,o.value="正在初始化 URDF 加载器...";const{scene:P}=u();if(!P)return console.error("场景尚未初始化,无法加载 URDF 模型。"),t.value=!1,null;const m=new W.LoadingManager;m.onProgress=(q,E,ee)=>{o.value=`正在加载资源: ${E} / ${ee}`};const H=new W.URDFLoader(m);H.packages=q=>`${Nl.endsWith("/")?Nl:Nl+"/"}${q}/`,H.loadMeshCb=(q,E,ee)=>{o.value=`正在加载网格: ${q}`;const L=(()=>{const M=q.split("?")[0].split("#")[0],R=M.lastIndexOf(".");return R>=0?M.slice(R+1).toLowerCase():void 0})();switch(L){case"obj":{const M=(()=>{try{return new URL(".",q).toString()}catch{const U=q.lastIndexOf("/");return U>=0?q.slice(0,U+1):q}})(),R=(()=>{var r;return(((r=q.split("/").pop())==null?void 0:r.split("?")[0].split("#")[0])??"").replace(/\.[^/.?#]+$/,"")})(),Y=`${M}${R}.mtl`,s=U=>{const r=new W.OBJLoader(E);U&&r.setMaterials(U),r.load(q,y=>ee(y),void 0,y=>{console.error(`加载 OBJ 失败: ${q}`,y),ee(new W.Group)})},v=new W.MTLLoader(E);v.setResourcePath(M),v.load(Y,U=>{try{U.preload()}catch{}s(U)},void 0,U=>{console.warn("未找到或加载材质失败"),s(void 0)});break}case"stl":{new W.STLLoader(E).load(q,R=>{const Y=new W.MeshPhongMaterial({color:12303291,shininess:30}),s=new W.Mesh(R,Y);s.castShadow=!0,s.receiveShadow=!0,ee(s)},void 0,R=>{console.error(`加载 STL 失败: ${q}`,R),ee(new W.Group)});break}default:console.error(`不支持的网格格式: .${L} (路径: ${q})`),ee(new W.Group)}};try{const q=S.split("/").pop();o.value=`正在下载 URDF 文件: ${q}`;const E=await H.loadAsync(S);return E.traverse(ee=>{if(ee.isMesh){const L=ee;L.castShadow=!0,L.receiveShadow=!0}}),P.add(E),d.value.push(E),console.log("URDF 模型加载并添加到场景成功!",E),E}catch(q){return console.error(`加载 URDF 模型 (${S}) 时发生错误:`,q),o.value="模型加载失败",null}finally{t.value=!1,o.value.includes("失败")||(o.value="")}}}}const A2=Bl.useModelComp(l.pinia),{systemPath:t2}=l.storeToRefs(A2),wl=e.ref(),n2=new Map;function x2(u,d,t,o,c){const S=async L=>{try{const M=await Ce.downloadAvatarApi({url:L});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},P=L=>new Promise((M,R)=>{const Y=new FileReader;Y.onload=s=>{try{const v=s.target.result,r=new W.MTLLoader().parse(v);r.preload(),M(r)}catch(v){R(v)}},Y.onerror=()=>{R(new Error("MTL文件读取失败"))},Y.readAsText(L)}),m=async L=>{const M={materials:{},create:function(R){return this.materials[R]?this.materials[R]:(console.warn(`Material '${R}' not found, using default material`),new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))},getAsArray:function(){const R=[];for(const Y in this.materials)R.push(this.materials[Y]);return R},preload:function(){for(const R in this.materials)this.materials[R].map&&(this.materials[R].map.needsUpdate=!0)}};for(const R of L){const Y=await P(R);Object.assign(M.materials,Y.materials)}return M.preload(),M},H=async(L,M=[])=>new Promise((R,Y)=>{const s=new FileReader;s.onload=async v=>{try{const U=v.target.result;let r=null;M&&M.length>0&&(M.length===1?r=await P(M[0]):r=await m(M));const y=new W.OBJLoader;r&&y.setMaterials(r);const k=y.parse(U);r||k.traverse(x=>{x.isMesh&&(x.material=new W.MeshPhongMaterial({color:8947848,side:W.DoubleSide}))}),R(k)}catch(U){Y(U)}},s.onerror=()=>{Y(new Error("OBJ文件读取失败"))},s.readAsText(L)}),q=async L=>{var M;try{t.value=!0;const{scene:R}=u();if(!R)throw new Error("Scene not initialized");c();const Y=[];for(let s=0;s<L.length;s++){const v=L[s];o.value=`正在加载模型 ${s+1}/${L.length}...`;const U=await S(v.objUrl),r=((M=v.objUrl)==null?void 0:M.split("/").pop())||`model_${s}.obj`,y=new File([U],r,{type:U.type});let k=[];if(v.mtlUrls){const ce=Array.isArray(v.mtlUrls)?v.mtlUrls:[v.mtlUrls];for(let de=0;de<ce.length;de++){const O=ce[de],X=await S(O),K=(O==null?void 0:O.split("/").pop())||`material_${s}_${de}.mtl`,B=new File([X],K,{type:X.type});k.push(B)}}const x=await H(y,k);R.add(x),d.value.push(x),Y.push(x)}return t.value=!1,Y}catch(R){throw console.error("加载模型失败:",R),t.value=!1,R}},E=async(L,M,R=[],Y=[])=>{let s;const v=L.toLowerCase();switch(v){case".txt":case".cpt":case".obj":const U=await M.text();if(v===".txt"||v===".cpt"){const w=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,g=[...U.matchAll(w)].map(J=>({x:parseFloat(J[1]),y:parseFloat(J[2]),z:parseFloat(J[3])})),V=new W.BufferGeometry,G=g.flatMap(J=>[J.x,J.y,J.z]);if(V.setAttribute("position",new W.Float32BufferAttribute(G,3)),v===".txt"){const J=new W.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});s=new W.Points(V,J)}else if(v===".cpt"){const J=new W.LineBasicMaterial({color:"#5B5C99",linewidth:100});s=new W.Line(V,J)}}else if(v===".obj"){const w=new W.OBJLoader;if(R&&R.length>0){const te=new W.MTLLoader;for(const g of R){const V=await g.text(),G=te.parse(V);G.preload(),w.setMaterials(G);break}}s=w.parse(U),(!R||R.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 r=await M.arrayBuffer(),k=new W.STLLoader().parse(r),x=new W.MeshPhongMaterial({color:"#B3B3D4",side:W.DoubleSide});s=new W.Mesh(k,x);break;case".nc":const ce=["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=ce.map(w=>new Promise((te,g)=>{new W.STLLoader().load(t2.value===""?`/model/${w}`:`${t2.value}\\${w}`,G=>{const J=new W.MeshPhongMaterial({color:de[w]||"#B3B3D4",side:W.DoubleSide}),p=new W.Mesh(G,J);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 K=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,re)=>{const le=URL.createObjectURL(te);K.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,re)}),J=await new Promise((p,re)=>{const le=URL.createObjectURL(V);K.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,re)});B.add(G),B.add(J),s=B}catch(w){throw console.error("PCD文件加载失败:",w),new Error("无法加载PCD文件")}break;case".urdf":const n=URL.createObjectURL(M),$=new W.URDFLoader,Z="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(`${Z}/${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 re=he.get(V);return new W.Mesh(re,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(),J=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(),J.setMaterials(f)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${p}`)}const re=J.parse(G);return re.traverse(le=>{le.isMesh&&(le.geometry=D(le.geometry),le.castShadow=!0,le.receiveShadow=!0,le.renderOrder=1)}),oe.set(V,re),re},_=(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=[];$.loadMeshCb=async(w,te,g,V,G)=>{const J=w.split("/").pop(),p=g||(()=>{});F++;const re=new Promise(async(le,a)=>{try{const i=await h(J);if(!i||i.size===0)throw new Error(`文件为空: ${J}`);const f=J.split(".").pop().toLowerCase();let A;switch(f){case"stl":A=await b(i,J,te);break;case"obj":A=await z(i,J,te);break;default:throw new Error(`不支持的文件格式: ${f}`)}C.enableLOD&&A.isMesh&&(A=_(A,J)),p(A),j++,V&&V({loaded:j,total:F,progress:j/F}),le(A)}catch(i){console.error(`mesh文件加载失败: ${J}`,i);const f=new W.Group;p(f),le(f);const A=new W.BoxGeometry(.1,.1,.1),N=new W.MeshStandardMaterial({color:16711680,wireframe:!0});return new W.Mesh(A,N)}});I.push(re)};try{if(!n){wl.value=void 0;break}if(s=await $.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,n2.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:M}=u();if(!M)throw new Error("Scene not initialized");c(),await new Promise(Y=>setTimeout(Y,100));const R=[];for(let Y=0;Y<L.length;Y++){const s=L[Y],v=await E(s.suffix,s.blob,s.mtlBlobs||[],s.meshFiles||[]);v&&(M.add(v),d.value.push(v),R.push(v))}return t.value=!1,o.value="",R}catch(M){throw console.error("加载模型失败:",M),t.value=!1,o.value="",M}},urdfModel:wl,modelBoundingBoxes:n2}}const B2={class:"panel-content"},V2={__name:"animationPanel",props:{animationData:Object,model:Object},setup(u){const d=u;e.ref();const t=e.ref();return e.watch(()=>[d==null?void 0:d.animationData],()=>{var c;let o=((c=l.cloneDeep(d==null?void 0:d.animationData))==null?void 0:c.动画输出Content)??[];o&&(t.value=o)},{deep:!0,immediate:!0}),(o,c)=>{var S,P,m;return e.openBlock(),e.createElementBlock("div",B2,[(e.openBlock(),e.createBlock(W.ssTable,{itemData:(S=t.value)==null?void 0:S.compData,key:(P=t.value)==null?void 0:P.id,index:(m=t.value)==null?void 0:m.id,showHeader:!1},null,8,["itemData","index"]))])}}},E2=Ve._export_sfc(V2,[["__scopeId","data-v-9363d85a"]]),M2={class:"panel-content"},z2={key:0,class:"joints-list"},F2={class:"joint-info-row"},N2={class:"joint-left"},S2={class:"joint-name"},T2={class:"joint-range"},I2={class:"joint-type"},L2={key:0,class:"joint-control-row"},$2={class:"slider-container"},P2=["min","max","value","onInput","disabled"],R2={class:"value-display"},O2={class:"joint-value"},H2={class:"unit"},U2={key:1,class:"empty-state"},Dl=.001,j2=1e3,Sl=60,J2={__name:"jointPanel",props:{model:Object,scene:Object,animationData:Object},setup(u,{expose:d}){const t=u;e.ref(!0);const o=e.ref([]),c=e.ref(null),S=e.ref(null),P=e.ref(12.5),m=e.ref(),H=e.ref(1302),q=e.ref(30),E=e.ref(!1),ee=e.ref(!1),L=e.ref(0),M=e.ref(0),R=e.ref(null),Y=W.MathUtils.degToRad,s=e.ref(1),v=()=>j2/Sl/s.value;let U=[];e.watch(()=>t.animationData,b=>{var _;H.value=b.extra.管长,P.value=b.extra.外径/2;let z=((_=l.cloneDeep(b))==null?void 0:_.动画输出)??[];z&&z.length>0&&(U=z)},{deep:!0}),e.computed(()=>U.length>0);const r=(b,z=!1)=>b==="revolute"?z?Math.PI:-Math.PI:b==="prismatic"?z?1:-1:0,y=()=>{if(!c.value)return l.ElMessage.error("未加载 URDF"),!1;let b=null;return c.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??r(j._jointType,!1),upper:j.limit.upper??r(j._jointType,!0)}:{lower:r(j._jointType,!1),upper:r(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)},ce=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 J=1;J<=G;J++){const p=te*J/G,re=new W.Matrix4().makeRotationAxis(w.localZ,p),a=w.localX.clone().multiplyScalar(g).applyMatrix4(re),i=V.clone().add(a);z.push(i)}}return z},O=(b,z=0)=>{let _=U.slice(0,b+1);const F=U[b+1];if(F&&z>0){const G={...F,B:(F.B??0)*z,C:(F.C??0)*z};_.push(G)}const j=ce(_),I=Math.max(0,H.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 J=_[G],p=de(J);if(p.length>0){const re=p.map(f=>{const A=f.clone(),N=new W.Matrix4;return N.makeBasis(g.localX,g.localY,g.localZ),A.applyMatrix4(N),A.add(g.pos)});V.push(re);const le=re[re.length-1];g.pos=le.clone();const a=J.B??0,i=J.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),J=new W.TubeGeometry(G,Math.max(2,w.length*4),P.value*Dl,18,!1);m.value.geometry.dispose(),m.value.geometry=J}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,_))},K=(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]=K(I,w||I,_)}),F},n=()=>{if(U.length===0){console.warn("没有动画数据");return}y(),E.value=!0,ee.value=!1,L.value=0,M.value=0,$()},$=()=>{if(!E.value||ee.value)return;const b=L.value;if(b>=U.length-1){const j=U[U.length-1];X(j,U.length-1,1),C();return}const z=M.value/Sl,_=U[b],F=U[b+1];if(F){const j=B(_,F,z);X(j,b,z)}else X(_,b);M.value++,M.value>Sl&&(M.value=0,L.value++),R.value=setTimeout($,v())},Z=()=>{ee.value=!0,R.value&&(clearTimeout(R.value),R.value=null)},C=()=>{E.value=!1,ee.value=!1,s.value=1,R.value&&(clearTimeout(R.value),R.value=null)};d({startAnimation:n,pauseAnimation:Z,stopAnimation:C,resetAll:()=>{C(),L.value=0,M.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?(c.value=b,o.value=k(b)):o.value=[]},{immediate:!0});const h=()=>{!t.model||E.value&&!ee.value||o.value.forEach(b=>{b.urdfJoint&&b.urdfJoint.angle!==void 0&&(b.currentValue=b.urdfJoint.angle)})},T=()=>{const b=()=>{h(),S.value=requestAnimationFrame(b)};b()},D=()=>{S.value&&(cancelAnimationFrame(S.value),S.value=null)};return e.onMounted(()=>{T()}),e.onUnmounted(()=>{D(),C()}),(b,z)=>(e.openBlock(),e.createElementBlock("div",M2,[o.value.length>0?(e.openBlock(),e.createElementBlock("div",z2,[(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",F2,[e.createElementVNode("div",N2,[e.createElementVNode("span",S2,e.toDisplayString(_.name),1),e.createElementVNode("span",T2," ["+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",I2,e.toDisplayString(_.type),1)]),_.type==="revolute"||_.type==="prismatic"?(e.openBlock(),e.createElementBlock("div",L2,[e.createElementVNode("div",$2,[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:E.value&&!ee.value},null,40,P2)]),e.createElementVNode("div",R2,[e.createElementVNode("span",O2,e.toDisplayString(_.currentValue?Number(_.currentValue).toFixed(3):"0.000"),1),e.createElementVNode("span",H2,e.toDisplayString(_.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",U2,z[0]||(z[0]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}},K2=Ve._export_sfc(J2,[["__scopeId","data-v-b83e7f77"]]),G2={class:"panel-content"},W2="id",q2={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:u=>["breadth","firstLevel"].includes(u)}},emits:["nodeClick"],setup(u,{emit:d}){const t=u,o=d,c=e.ref([]),S={children:"children",label:"label"},P=M=>{o("nodeClick",M)},m=(M,R=0)=>{const Y=[];return Array.isArray(M)&&(M==null?void 0:M.length)>0&&M.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:R+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,R+1),path:s==null?void 0:s.name};Y.push(v)}}),Y},H=M=>M?[{name:M==null?void 0:M.name,label:M==null?void 0:M.name,show:!0,level:1,isPenultimate:!1,type:M==null?void 0:M.type,id:M==null?void 0:M.id,limit:(M==null?void 0:M.limit)??"",children:m(M==null?void 0:M.children,1),path:M==null?void 0:M.name}]:[],q=(M,R)=>{const Y=[],s=[...M];for(;s.length>0&&Y.length<R;){const v=s.shift();v.children&&v.children.length>0&&(Y.push(v.id),s.push(...v.children))}return Y},E=(M,R)=>{const Y=[];return M.forEach(s=>{if(s.children&&s.children.length>0){Y.push(s.id);const v=s.children.filter(U=>U.children&&U.children.length>0).slice(0,R).map(U=>U.id);Y.push(...v)}}),Y.slice(0,R+1)},ee=e.computed(()=>!c.value||c.value.length===0?[]:t.expandStrategy==="firstLevel"?E(c.value,t.maxExpandCount):q(c.value,t.maxExpandCount)),L=e.computed(()=>t!=null&&t.model?H(t.model):[]);return e.watch(L,M=>{c.value=JSON.parse(JSON.stringify(M))},{immediate:!0}),(M,R)=>{const Y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",G2,[e.createVNode(Y,{data:c.value,props:S,"default-expanded-keys":ee.value,"node-key":W2,onNodeClick:P},null,8,["data","default-expanded-keys"])])}}},X2=Ve._export_sfc(q2,[["__scopeId","data-v-0dda287c"]]),Y2=["xlink:href"],Z2=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(u){const d=u,t=e.computed(()=>({backgroundColor:d.backgroundColor})),o=e.computed(()=>`#${d.prefix}-${d.name}`),c=e.computed(()=>{const{size:S}=d;let P=`${S}`;return P=`${P.replace("px","")}px`,{width:P,height:P}});return(S,P)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container",{active:S.active}]),style:e.normalizeStyle(t.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["svg-icon",[S.$attrs.class,S.spin&&"svg-icon-spin"]]),style:e.normalizeStyle(c.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":o.value},null,8,Y2)],6))],6))}}),Me=Ve._export_sfc(Z2,[["__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>',(u=>{var d=(t=(t=document.getElementsByTagName("script"))[t.length-1]).getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var o,c,S,P,m,H=function(ee,L){L.parentNode.insertBefore(ee,L)};if(d&&!u.__iconfont__svg__cssinject__){u.__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=u._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?H(L,ee.firstChild):ee.appendChild(L))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(c=function(){document.removeEventListener("DOMContentLoaded",c,!1),o()},document.addEventListener("DOMContentLoaded",c,!1)):document.attachEvent&&(S=o,P=u.document,m=!1,E(),P.onreadystatechange=function(){P.readyState=="complete"&&(P.onreadystatechange=null,q())})}function q(){m||(m=!0,S())}function E(){try{P.documentElement.doScroll("left")}catch{return void setTimeout(E,50)}q()}})(window);const Q2={class:"obj-viewer-container"},ea={class:"buttonGroup-top"},la={class:"buttonGroup-topLeft"},aa={class:"buttonGroup-left"},oa={class:"buttonGroup-right"},ta={class:"buttonGroup-bottom"},na={class:"left-panel"},sa={class:"panel-header"},ia={key:1,class:"clipping-content"},ca={class:"radio-group"},ra={class:"radio-label"},ua={class:"radio-label"},pa={class:"radio-label"},da={class:"radio-label"},ha={class:"right-panel"},fa={class:"panel-header"},ma={key:0,class:"loading-overlay"},va={__name:"threeView",props:{urdfUrl:{type:String,default:""},animationData:{type:Object,default:()=>{}}},emits:["getAnimationData"],setup(u,{emit:d}){const t=d,o=u;let c=null,S=!1;const P=e.ref(null),m=e.ref(!1),H=e.ref("");e.ref(!1);const q=e.ref(!1),E=e.ref(!1),ee=e.ref(""),L=e.ref(!1),M=e.ref(""),R=e.ref(),{currentModels:Y,initialCameraPosition:s,initialTargetPosition:v,initThreeJS:U,handleResize:r,getThreeJSObjects:y,clearAllModels:k,cleanup:x}=k2(P),{loadUrdfFromUrl:ce}=_2(y,Y,m,H),{isAnimating:de,toggleAnimation:O,stopAnimation:X}=w2(y,Y),{isClipping:K,activeClippingAxis:B,toggleClipping:n,updateClippingPlanes:$}=C2(y,Y),{urdfModel:Z}=x2(y,Y,m,H,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()=>S?Promise.resolve():new Promise(T=>{const D=()=>{S?T():requestAnimationFrame(D)};D()}),pe=T=>{E.value=!0,ee.value=T,T==="剖面视图"&&!K.value&&n()},he=T=>{L.value=!0,M.value=T,T==="动画仿真"&&t("getAnimationData")},h=()=>{e.nextTick(()=>{var T;(T=R.value)==null||T.startAnimation()})};return e.watch(()=>o.urdfUrl,async(T,D)=>{if(T)try{await oe();const b=await ce(T)}catch(b){console.error("加载urdf模型失败",b),l.ElMessage.error("加载urdf模型失败")}},{immediate:!0}),e.onMounted(async()=>{await e.nextTick();try{U(),c=y().scene,S=!0,window.addEventListener("resize",r)}catch(T){console.error("Three.js初始化失败:",T)}}),e.onBeforeUnmount(()=>{S=!1,ee.value="",M.value="",window.removeEventListener("resize",r),de.value&&X(),x()}),(T,D)=>{var z,_,F,j;const b=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Q2,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:P,class:"threejs-container"},null,512),e.createElementVNode("div",ea,[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",la,[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",aa,[e.createVNode(Me,{name:"jiegoushu",size:"24",onClick:D[0]||(D[0]=I=>pe("场景树")),active:E.value&&ee.value==="场景树",title:"场景树"},null,8,["active"]),e.createVNode(Me,{name:"clipping",size:"24",onClick:D[1]||(D[1]=I=>pe("剖面视图")),active:E.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",oa,[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&&M.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:D[5]||(D[5]=I=>he("动画仿真")),active:L.value&&M.value==="动画仿真"},null,8,["active"]),e.createVNode(Me,{name:"donghuafangzhen",size:"24"}),e.createVNode(Me,{name:"donghuafangzhen",size:"24"})]),e.createElementVNode("div",ta,[e.createVNode(Me,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:(z=R.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:(_=R.value)==null?void 0:_.fastForward},null,8,["onClick"]),e.createVNode(Me,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:(F=R.value)==null?void 0:F.pauseAnimation},null,8,["onClick"]),e.createVNode(Me,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:(j=R.value)==null?void 0:j.resetAll},null,8,["onClick"])]),e.withDirectives(e.createElementVNode("div",na,[e.createElementVNode("div",sa,[e.createElementVNode("span",null,e.toDisplayString(ee.value),1),e.createElementVNode("span",{class:"close",onClick:D[6]||(D[6]=I=>E.value=!1)}," X ")]),e.createVNode(b,{"max-height":"650px"},{default:e.withCtx(()=>[ee.value==="场景树"?(e.openBlock(),e.createBlock(X2,{key:0,model:e.unref(Z)},null,8,["model"])):e.createCommentVNode("",!0),ee.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",ca,[e.createElementVNode("label",ra,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[16]||(D[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",ua,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[17]||(D[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",pa,[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($)&&e.unref($)(...I))},null,544),[[e.vModelRadio,e.unref(B)]]),D[18]||(D[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",da,[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($)&&e.unref($)(...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,E.value]]),e.withDirectives(e.createElementVNode("div",ha,[e.createElementVNode("div",fa,[e.createElementVNode("span",null,e.toDisplayString(M.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(K2,{ref_key:"jointRef",ref:R,model:e.unref(Z),scene:e.unref(c),animationData:u.animationData},null,8,["model","scene","animationData"]),[[e.vShow,M.value==="关节控制"]]),e.withDirectives(e.createVNode(E2,{animationData:u.animationData},null,8,["animationData"]),[[e.vShow,M.value==="动画仿真"]])]),_:1})],512),[[e.vShow,L.value]]),m.value?(e.openBlock(),e.createElementBlock("div",ma,[D[20]||(D[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(H.value),1)])):e.createCommentVNode("",!0)])}}},ya=Ve._export_sfc(va,[["__scopeId","data-v-4ab753fe"]]),ga={class:"form-content"},ba={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(u,{emit:d}){const t=e.ref(!1),o=e.ref(!1),c=e.ref(""),S=()=>{t.value=!1,o.value=null,c.value=""},P=u,m=d,H=e.ref([]),q=e.ref(!1),E=e.ref(!1),ee=e.ref([]),L=e.ref(),M=W.useFormToTableComp(l.pinia),R=W.useFormComp(l.pinia),Y=e.ref(!1),s=e.ref(),v=$l.useLoginState(l.pinia),{loginUserInfo:U}=l.storeToRefs(v),r=e.ref(),y=e.ref(!0),k=(X,K)=>{r.value===K?y.value=!1:y.value=!0,r.value=K==null?void 0:K.changeProp},x=async X=>{var B,n,$,Z,C,oe,pe,he,h,T;let K=[];if((B=X==null?void 0:X.toString())!=null&&B.includes(".urdf")){c.value=X,t.value=!0;return}if((n=X==null?void 0:X.toString())!=null&&n.includes(".stl")||($=X==null?void 0:X.toString())!=null&&$.includes(".STL")||(Z=X==null?void 0:X.toString())!=null&&Z.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:"))K.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}],E.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}],E.value=!0}(K==null?void 0:K.length)>0&&R.setBlobUrls(K)},ce=()=>{E.value=!1},de=X=>{var Z,C,oe,pe;const K=(C=(Z=l.cloneDeep(P.itemData))==null?void 0:Z.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[K[h].key]=he}));const $={content:n,index:P==null?void 0:P.index,buttonName:X==null?void 0:X.buttonName};m("change",$)},O=async X=>{var he,h,T,D,b,z,_,F,j,I,w,te;if(!X)return;const K=l.cloneDeep(P.itemData),B=K==null?void 0:K.map(g=>{var V;return(g==null?void 0:g.key)==="formContent"&&((V=g.contents)==null||V.map((G,J)=>{var p,re,le,a,i,f,A,N,Q,ve,ne,se,ie,me,be,ae,fe;return G.type=G!=null&&G.type?G.type:(a=(le=(re=(p=G==null?void 0:G.key)==null?void 0:p.split("$"))==null?void 0:re[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:((Q=(N=(A=G==null?void 0:G.key)==null?void 0:A.split("$"))==null?void 0:N[1])==null?void 0:Q.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[J],G})),g});let n=l.cloneDeep(H).value,$=(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=$==null?void 0:$.find((G,J)=>((G==null?void 0:G.id)??J)===(g==null?void 0:g.id)))==null?void 0:V.value,g}),!y.value){m("contentChange",{contents:B,index:P.index});return}let Z="",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,J;return(g==null?void 0:g.label)===r.value||V.toString()===((J=(G=r.value)==null?void 0:G.split("t"))==null?void 0:J[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,J,p,re;Z===""&&((J=(G=(V=g==null?void 0:g.optionUrl)==null?void 0:V.groupSelect)==null?void 0:G[1])!=null&&J.includes("["))&&(Z=(re=(p=g==null?void 0:g.optionUrl)==null?void 0:p.groupSelect)==null?void 0:re[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 J,p,re,le,a,i,f,A,N,Q;Z===((p=(J=C==null?void 0:C.optionUrl)==null?void 0:J.groupSelect)==null?void 0:p[1])&&((a=(le=(re=C==null?void 0:C.optionUrl)==null?void 0:re.groupSelect)==null?void 0:le[1])!=null&&a.includes("["))&&((Q=l.cloneDeep(G))==null?void 0:Q[(N=(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:N.replaceAll("]","")])===(C==null?void 0:C.value)&&(V=G)}),V){let G=l.cloneDeep(n);G=G==null?void 0:G.map(p=>{var re,le,a,i,f,A,N,Q,ve,ne,se;return(V!=null&&V[p==null?void 0:p.label]||V!=null&&V[(i=(a=(le=(re=p==null?void 0:p.optionUrl)==null?void 0:re.groupSelect)==null?void 0:le[1])==null?void 0:a.replaceAll("[",""))==null?void 0:i.replaceAll("]","")])&&((N=(A=(f=p==null?void 0:p.optionUrl)==null?void 0:f.groupSelect)==null?void 0:A[1])!=null&&N.includes("["))&&(p.value=(V==null?void 0:V[p==null?void 0:p.label])||(V==null?void 0:V[(se=(ne=(ve=(Q=p==null?void 0:p.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:ve[1])==null?void 0:ne.replaceAll("[",""))==null?void 0:se.replaceAll("]","")])),p}),H.value=G;let J=l.cloneDeep(G);J=J==null?void 0:J.map(p=>{var re,le,a,i;return(le=(re=p==null?void 0:p.optionUrl)==null?void 0:re.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,N,Q,ve;if(f!=null&&f.includes("[")){let ne=(N=(A=f==null?void 0:f.replaceAll("[","").replaceAll("]",""))==null?void 0:A.split(":"))==null?void 0:N[1];f=(ve=(Q=l.cloneDeep(G))==null?void 0:Q.find(se=>(se==null?void 0:se.label)===ne))==null?void 0:ve.value}return f})),p}),H.value=J}}y.value=!1,m("contentChange",{contents:B,index:P.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 J;return(J=G==null?void 0:G.url)==null?void 0:J.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 J,p,re,le;const G=(J=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:J.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=(re=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:re[0])==null?void 0:le.url:G})}),R.setObjUrl(oe)}};return e.watch(()=>P.itemData,async()=>{var Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;const X=(Z=P.itemData)==null?void 0:Z.find(w=>(w==null?void 0:w.key)==="formContent"),K=(C=l.cloneDeep(P.itemData))==null?void 0:C.find(w=>(w==null?void 0:w.key)==="formButton"),B=(oe=l.cloneDeep(P.itemData))==null?void 0:oe.find(w=>(w==null?void 0:w.key)==="formFlex"),n=(pe=l.cloneDeep(P.itemData))==null?void 0:pe.find(w=>(w==null?void 0:w.key)==="formWrap"),$=(he=l.cloneDeep(P.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=($==null?void 0:$.contents)===void 0?!1:$==null?void 0:$.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,re)=>{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),N=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 N==="loginUser"&&(N=((ue=U.value)==null?void 0:ue.姓名)??((Ee=U.value)==null?void 0:Ee.userName)??((Be=U.value)==null?void 0:Be.account)),{label:le??"",name:"t"+re,type:A!==void 0||a===""?"Input":a,value:p!=null&&p.isNewDate&&N===""?new Date:N,id:(p==null?void 0:p.id)??re,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)}),M.setSelectArray(g),M.setSelectString(V),H.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=[],J=[];if((z=l.cloneDeep(H.value))==null||z.forEach(p=>{var re;Array.isArray(p==null?void 0:p.value)&&((re=p==null?void 0:p.value)!=null&&re.find(le=>{var a;return(a=le==null?void 0:le.url)==null?void 0:a.includes(".obj")}))&&(J=p==null?void 0:p.value)}),(J==null?void 0:J.length)>0){const p=(_=l.cloneDeep(J))==null?void 0:_.filter(re=>{var le;return(le=re==null?void 0:re.url)==null?void 0:le.includes(".obj")});p==null||p.forEach(re=>{var a,i,f,A;const le=(a=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(re==null?void 0:re.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:a.map(N=>N==null?void 0:N.url);G.push({objUrl:re==null?void 0:re.url,mtlUrls:((i=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(re==null?void 0:re.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:i.length)===1?(A=(f=J==null?void 0:J.filter(N=>{var Q;return(N==null?void 0:N.name)===(re==null?void 0:re.name)&&((Q=N==null?void 0:N.url)==null?void 0:Q.includes(".mtl"))}))==null?void 0:f[0])==null?void 0:A.url:le})}),R.setObjUrl(G)}(F=l.cloneDeep(H.value))==null||F.forEach(p=>{var re,le,a,i,f,A,N,Q,ve,ne,se,ie,me;if((le=(re=p==null?void 0:p.value)==null?void 0:re.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")||(Q=(N=p==null?void 0:p.value)==null?void 0:N.toString())!=null&&Q.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 H.value=[];if(((j=K==null?void 0:K.contents)==null?void 0:j.length)>0){const w=[];(I=K==null?void 0:K.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,K)=>(e.openBlock(),e.createElementBlock("div",ga,[e.createVNode(Ce.ssForm,{rowContents:H.value,formRules:u.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"]),E.value?(e.openBlock(),e.createBlock(Ce.ssFilePreview,{key:0,fileDataList:L.value,onDestroy:ce},null,8,["fileDataList"])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createBlock(Ce.ssDialog,{key:1,visible:t.value,onBeforeDestroy:S,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createBlock(ya,{key:0,"urdf-url":c.value},null,8,["urdf-url"])):e.createCommentVNode("",!0)]),_:1},8,["visible"])):e.createCommentVNode("",!0)]))}},s2=Ve._export_sfc(ba,[["__scopeId","data-v-b3ecdca2"]]),_l=e.ref(0),c2=u=>{var d;return!u||(u==null?void 0:u.length)===0?[]:(d=l.cloneDeep(u))==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:c2(o==null?void 0:o.children)},o))},Da=u=>{var t;return(t=l.cloneDeep(u))==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:c2(o==null?void 0:o.children)},o))},r2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===d)?(t=l.cloneDeep(u))==null?void 0:t.filter(c=>(c==null?void 0:c.id)!==d):(u=u==null?void 0:u.map(o=>(o.children=r2(o==null?void 0:o.children,d),o)),u)},u2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(u))==null?void 0:t.map(c=>((c==null?void 0:c.id)===(d==null?void 0:d.id)&&(c=d),c)):(u=u==null?void 0:u.map(o=>(o.children=u2(o==null?void 0:o.children,d),o)),u)},p2=(u,d)=>{var t;return u!=null&&u.find(o=>{var c;return(o==null?void 0:o.id)===((c=d==null?void 0:d.contents)==null?void 0:c.id)})?(t=l.cloneDeep(u))==null?void 0:t.map(c=>{var S;return(c==null?void 0:c.id)===((S=d==null?void 0:d.contents)==null?void 0:S.id)&&(c=d==null?void 0:d.contents),c}):(u=u==null?void 0:u.map(o=>(o.children=p2(o==null?void 0:o.children,d),o)),u)},d2=(u,d)=>{var t;return u!=null&&u.find(o=>(o==null?void 0:o.id)===(d==null?void 0:d.id))?(t=l.cloneDeep(u))==null?void 0:t.map(c=>((c==null?void 0:c.id)===(d==null?void 0:d.id)&&(c!=null&&c.children||(c.children=[]),c.children.push(d.contents)),c)):(u=u==null?void 0:u.map(o=>(o.children=d2(o==null?void 0:o.children,d),o)),u)},_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"}],ka=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],wa=[{label:"新增",value:"add"}],We=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:wa},{key:"background",label:"按钮背景色",type:"Color"}],qe=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:ka},{key:"textColor",label:"按钮颜色",type:"Color"}],Ca={class:"table-header-child"},_a={class:"table-header-child-main"},Aa={class:"table-header-child-content"},xa={class:"table-header-child-content-item"},Ba={class:"fix-button"},Va={key:0},Ea={class:"form-content"},Ma={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(u,{emit:d}){const t=u,o=d,c=e.ref(!1),S=e.ref(""),P=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs(P);e.ref(0);const H=e.ref(""),q=e.ref([]),E=e.ref([]),ee=r=>{var k;c.value=!0;let y=[];_e==null||_e.forEach(x=>{let ce=l.cloneDeep(m.value)+1;P.setTableIndex(ce),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:r[x.key],id:m.value,contents:x==null?void 0:x.options})}),r!=null&&r.children&&((k=r==null?void 0:r.children)==null?void 0:k.length)>0&&y.push({children:r==null?void 0:r.children,isFormColHidden:!0}),H.value=r==null?void 0:r.id,q.value=y,E.value=y},L=r=>{o("fixChange",l.cloneDeep(r))},M=r=>{o("deleteChange",l.cloneDeep(r))},R=r=>{c.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;P.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})}),S.value=r==null?void 0:r.id,q.value=y,E.value=y},Y=r=>{let y=l.cloneDeep(E.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=r==null?void 0:r[k.name]),k)),E.value=y},s=()=>{var y,k;q.value=E.value;let r={};if(H.value!=="")r.id=H.value,(y=q.value)==null||y.forEach(x=>{const ce=_e==null?void 0:_e.find(de=>(de==null?void 0:de.label)===(x==null?void 0:x.label));ce?r[ce.key]=x.value:x!=null&&x.children&&x.children.length>0&&(r.children=x.children)}),c.value=!1,o("fixChange",{contents:l.cloneDeep(r),id:S.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;P.setTableIndex(x),r.id="id"+m.value,(k=q.value)==null||k.forEach(ce=>{const de=_e==null?void 0:_e.find(O=>(O==null?void 0:O.label)===(ce==null?void 0:ce.label));de?r[de.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(r.children=ce.children)}),c.value=!1,o("fixChange",{contents:l.cloneDeep(r),id:S.value,type:"add"})}H.value="",q.value=[],E.value=[]},v=()=>{c.value=!1,H.value="",S.value="",q.value=[],E.value=[]},U=r=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",r),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(r,y)=>{const k=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(x,ce)=>(e.openBlock(),e.createElementBlock("div",_a,[e.createElementVNode("div",Aa,[e.createElementVNode("div",xa,e.toDisplayString(x.label),1),e.createElementVNode("div",Ba,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:de=>R(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=>U(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(e.openBlock(),e.createElementBlock("div",Va,[e.createVNode(h2,{tableChildContents:x==null?void 0:x.children,onDeleteChange:M,onFixChange:L},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ce.ssDialog,{visible:c.value,onBeforeDestroy:v,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ea,[(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"])])}}},za=Ve._export_sfc(Ma,[["__scopeId","data-v-e0fef72d"]]),Fa={class:"table-header-child"},Na={class:"table-header-child-main"},Sa={class:"table-header-child-content"},Ta={class:"table-header-child-content-item"},Ia={class:"fix-button"},La={key:0},$a={class:"form-content"},Pa={class:"dialog-footer"},Ra={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(u,{emit:d}){const t=u,o=d,c=e.ref(!1),S=e.ref(""),P=W.useTableComp(l.pinia),{tableIndex:m}=l.storeToRefs(P),H=e.ref(""),q=e.ref([]),E=e.ref([]),ee=r=>{o("fixChange",l.cloneDeep(r))},L=r=>{var k;c.value=!0;let y=[];_e==null||_e.forEach(x=>{let ce=l.cloneDeep(m.value)+1;P.setTableIndex(ce),y.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:r[x.key],id:m.value,contents:x==null?void 0:x.options})}),r!=null&&r.children&&((k=r==null?void 0:r.children)==null?void 0:k.length)>0&&y.push({children:r==null?void 0:r.children,isFormColHidden:!0}),H.value=r==null?void 0:r.id,q.value=y,E.value=y},M=r=>{c.value=!0;let y=[];_e==null||_e.forEach(k=>{let x=l.cloneDeep(m.value)+1;P.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})}),S.value=r==null?void 0:r.id,q.value=y,E.value=y},R=r=>{let y=l.cloneDeep(E.value);y=y==null?void 0:y.map(k=>(k.children||(k.value=r==null?void 0:r[k.name]),k)),E.value=y},Y=()=>{var y,k;q.value=E.value;let r={};if(H.value!=="")r.id=H.value,(y=q.value)==null||y.forEach(x=>{const ce=_e==null?void 0:_e.find(de=>(de==null?void 0:de.label)===(x==null?void 0:x.label));ce?r[ce.key]=x.value:x!=null&&x.children&&x.children.length>0&&(r.children=x.children)}),c.value=!1,o("fixChange",{contents:l.cloneDeep(r),id:S.value,type:"fix"});else{let x=l.cloneDeep(m.value)+1;P.setTableIndex(x),r.id="idChild"+m.value,(k=q.value)==null||k.forEach(ce=>{const de=_e==null?void 0:_e.find(O=>(O==null?void 0:O.label)===(ce==null?void 0:ce.label));de?r[de.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(r.children=ce.children)}),c.value=!1,o("fixChange",{contents:l.cloneDeep(r),id:S.value,type:"add"})}H.value="",q.value=[],E.value=[]},s=()=>{c.value=!1,H.value="",S.value="",q.value=[],E.value=[]},v=r=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",r),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},U=r=>{o("deleteChange",r)};return(r,y)=>{const k=e.resolveComponent("svg-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Fa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.tableChildContents,(ce,de)=>(e.openBlock(),e.createElementBlock("div",Na,[e.createElementVNode("div",Sa,[e.createElementVNode("div",Ta,e.toDisplayString(ce.label),1),e.createElementVNode("div",Ia,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>M(ce)},null,8,["onClick"]),e.createVNode(k,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>L(ce)},null,8,["onClick"]),e.createVNode(k,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>v(ce)},null,8,["onClick"])])]),ce!=null&&ce.children&&ce.children.length>0?(e.openBlock(),e.createElementBlock("div",La,[e.createVNode(za,{tableChildContents:ce==null?void 0:ce.children,onDeleteChange:U,onFixChange:ee},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ce.ssDialog,{visible:c.value,onBeforeDestroy:s,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",$a,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:R},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Pa,[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"])])}}},h2=Ve._export_sfc(Ra,[["__scopeId","data-v-ebd68fa1"]]),Oa={class:"table-operate-content"},Ha={class:"table-operate-item"},Ua={class:"operate-title"},ja={class:"operate-content"},Ja={class:"fix-content"},Ka={class:"fix-content-label"},Ga={class:"fix-button"},Wa={key:0},qa={class:"operate-title"},Xa={class:"operate-content"},Ya={class:"fix-content"},Za={class:"fix-content-label"},Qa={class:"fix-button"},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"},c1={class:"fix-content-label"},r1={class:"fix-button"},u1={class:"operate-content"},p1={style:{display:"flex","justify-content":"space-between"}},d1={class:"form-content"},h1={class:"dialog-footer"},f1={class:"form-content"},m1={class:"dialog-footer"},v1={class:"form-content"},y1={class:"dialog-footer"},g1={class:"form-content"},b1={class:"dialog-footer"},D1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=e.ref([]),S=e.ref(!1),P=e.ref(!1),m=e.ref([]),H=e.ref(!1),q=e.ref([]),E=e.ref(!1),ee=e.ref([]),L=e.ref(""),M=e.ref(""),R=e.ref([]),Y=e.ref([]),s=e.ref([]),v=e.ref([]),U=e.ref(!1),r=e.ref([]),y=e.ref([]),k=e.ref(0),x=e.ref([]),ce=e.ref([]),de=e.ref([]),O=()=>{U.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})}),r.value=a,y.value=a},X=()=>{var i,f,A;P.value=!0;let a=[];(A=(f=(i=ge.FormContent)==null?void 0:i.find(N=>(N==null?void 0:N.key)==="Input"))==null?void 0:f.value)==null||A.forEach(N=>{k.value++,a.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:(N==null?void 0:N.label)==="类型"?"Input":"",id:k.value,contents:N==null?void 0:N.options})}),x.value=a,ce.value=a},K=a=>{a||(x.value=ce.value)},B=async a=>{var i,f,A,N,Q,ve,ne,se,ie,me,be,ae;if((a==null?void 0:a.类型)!==((f=(i=ce.value)==null?void 0:i.find(fe=>(fe==null?void 0:fe.label)==="类型"))==null?void 0:f.value)){let fe=[],De=await((Q=(N=(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:N.value)==null?void 0:Q.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))}ce.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),ce.value=await ge.selectToBase(l.cloneDeep(fe))}},n=async a=>{await B(a),x.value=ce.value},$=async a=>{var A,N,Q,ve,ne,se,ie,me,be;P.value=!0;let i=[];const f=await((Q=(N=(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:N.value)==null?void 0:Q.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)),ce.value=await ge.selectToBase(ge.formToOptionsContents(i))},Z=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=()=>{P.value=!1,x.value=[],L.value=""},oe=async()=>{var A,N,Q,ve,ne,se,ie,me,be,ae;x.value=ce.value;let a={};L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value);let i=await((Q=(N=(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:N.value)==null?void 0:Q.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),P.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=>{U.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,r.value=i,y.value=i};e.watch(()=>E.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=E.value),A)):a.push({key:"page",contents:E.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,N,Q,ve;r.value=y.value;let a={};if(L.value!==""?a.id=L.value:(k.value++,a.id="id"+k.value),(f=r.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=(N=Y.value)==null?void 0:N.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(Y.value)??[];ne.push(a),Y.value=ne}U.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Q=l.cloneDeep(t.originalItemContents))!=null&&Q.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=()=>{U.value=!1,r.value=[],L.value=""},b=a=>{H.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;R.value=(i=l.cloneDeep(R.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=R.value),A))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>{S.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=()=>{H.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,N,Q,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=R.value)!=null&&A.find(ne=>ne.id===a.id))R.value=(N=R.value)==null?void 0:N.map(ne=>(ne.id===a.id&&(ne=a),ne));else{let ne=l.cloneDeep(R.value);ne.push(a),R.value=ne}H.value=!1,L.value="";let i=l.cloneDeep(t.originalItemContents);(Q=l.cloneDeep(t.originalItemContents))!=null&&Q.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=R.value),ne)):i.push({key:"rowButton",contents:R.value}),o("change",i)},w=()=>{H.value=!1,L.value="",v.value=[],s.value=[]},te=a=>{S.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,M.value=a==null?void 0:a.id,ee.value=i},g=a=>{var i;m.value=r2(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(N=>N==null?void 0:N.children)?[m.value]:m.value),f}))},V=a=>{var f,A,N;a.type==="fix"?a.id!==""?m.value=p2(m.value,a):m.value=u2(m.value,a==null?void 0:a.contents):m.value=d2(m.value,a),m.value=(f=m.value)!=null&&f.some(Q=>Q==null?void 0:Q.children)?[m.value]:m.value,L.value="";let i=l.cloneDeep(t.originalItemContents);(A=l.cloneDeep(t.originalItemContents))!=null&&A.find(Q=>(Q==null?void 0:Q.key)==="header")?i=(N=l.cloneDeep(t.originalItemContents))==null?void 0:N.map(Q=>((Q==null?void 0:Q.key)==="header"&&(Q.contents=m.value),Q)):i.push({key:"header",contents:m.value}),o("change",i)},G=a=>{var f;S.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,M.value="",q.value=i,ee.value=i},J=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=()=>{S.value=!1,L.value="",M.value="",ee.value=[]},re=()=>{var f,A,N,Q,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=(N=m.value)==null?void 0:N.map(se=>(se.id===a.id&&(se=a),se));else{let se=l.cloneDeep(m.value)??[];M.value===""?se.push(a):se=se==null?void 0:se.map(ie=>(ie.id===M.value&&(ie.children||(ie.children=[]),ie.children.push(a)),ie)),m.value=se}m.value=(Q=m.value)!=null&&Q.some(se=>se==null?void 0:se.children)?[m.value]:m.value,S.value=!1,L.value="",M.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 N;return(A==null?void 0:A.key)==="header"&&(A.contents=(N=m.value)!=null&&N.some(Q=>Q==null?void 0:Q.children)?[m.value]:m.value),A})),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>t.originalItemContents,()=>{var a,i,f,A,N,Q,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne;if(!(!t.originalItemContents||t.originalItemContents.length===0))if(c.value=l.cloneDeep(t.originalItemContents),m.value=(i=(a=c.value)==null?void 0:a.find(ue=>(ue==null?void 0:ue.key)==="header"))==null?void 0:i.contents,R.value=(A=(f=c.value)==null?void 0:f.find(ue=>(ue==null?void 0:ue.key)==="rowButton"))==null?void 0:A.contents,Y.value=(Q=(N=c.value)==null?void 0:N.find(ue=>(ue==null?void 0:ue.key)==="extraButton"))==null?void 0:Q.contents,E.value=(ne=(ve=c.value)==null?void 0:ve.find(ue=>(ue==null?void 0:ue.key)==="page"))!=null&&ne.contents?!!((ie=(se=c.value)==null?void 0:se.find(ue=>(ue==null?void 0:ue.key)==="page"))!=null&&ie.contents):!1,de.value=(be=(me=c.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=Da(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,R.value=(ye=R.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",Oa,[e.createElementVNode("div",Ha,[e.createElementVNode("div",Ua,[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",ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",Ja,[e.createElementVNode("div",Ka,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",Ga,[e.createVNode(f,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>te(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>G(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>le(N)},null,8,["onClick"])])]),N!=null&&N.children&&N.children.length>0?(e.openBlock(),e.createElementBlock("div",Wa,[e.createVNode(h2,{tableChildContents:N==null?void 0:N.children,onDeleteChange:g,onFixChange:V},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",qa,[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",Xa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",Ya,[e.createElementVNode("div",Za,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",Qa,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>b(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>z(N)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",e1,[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",l1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",a1,[e.createElementVNode("div",o1,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",t1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>pe(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>he(N)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",n1,[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",s1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de.value,(N,Q)=>(e.openBlock(),e.createElementBlock("div",{key:Q},[e.createElementVNode("div",i1,[e.createElementVNode("div",c1,e.toDisplayString(N==null?void 0:N.label),1),e.createElementVNode("div",r1,[e.createVNode(f,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ve=>$(N)},null,8,["onClick"]),e.createVNode(f,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ve=>Z(N)},null,8,["onClick"])])])]))),128))]),i[10]||(i[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",u1,[e.createElementVNode("div",p1,[i[9]||(i[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:E.value,"onUpdate:modelValue":i[0]||(i[0]=N=>E.value=N)},null,8,["modelValue"])])])]),e.createVNode(Ce.ssDialog,{visible:S.value,onBeforeDestroy:p,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",d1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:q.value,key:q.value,isEnableWrap:!0,onChange:J},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",h1,[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:re,id:"themeButton"},{default:e.withCtx(()=>i[12]||(i[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Ce.ssDialog,{visible:H.value,onBeforeDestroy:w,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",f1,[(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",m1,[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:U.value,onBeforeDestroy:D,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",v1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!0,onChange:T},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",y1,[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:P.value,onBeforeDestroy:C,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",g1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:B,onChangeVisible:K,onBlurChange:n},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",b1,[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"])])}}},k1=Ve._export_sfc(D1,[["__scopeId","data-v-cd424fc8"]]),w1={class:"form-operate-content"},C1={class:"form-operate-item"},_1={class:"operate-title"},A1={class:"operate-content"},x1={class:"fix-content"},B1={class:"fix-button"},V1={class:"operate-title"},E1={class:"operate-content"},M1={class:"fix-content"},z1={class:"fix-button"},F1={style:{display:"flex","justify-content":"space-between"}},N1={class:"form-content"},S1={class:"dialog-footer"},T1={class:"form-content"},I1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=e.ref(!1),S=e.ref([]),P=e.ref([]),m=e.ref(!1),H=e.ref([]),q=e.ref([]),E=e.ref(""),ee=e.ref(!1),L=e.ref(0),M=e.ref([]),R=e.ref([]),Y=(n,$)=>(console.log(345,n),(n==null?void 0:n.label)==="类型"&&$[n.key]===""?"Input":(n==null?void 0:n.key)==="isFormColHidden"&&!$[n.key]?!1:$[n.key]),s=async n=>{var C,oe,pe,he,h,T;c.value=!0;let $=[];const Z=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(Z==null||Z.forEach(D=>{L.value++,$.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);$=$==null?void 0:$.map(b=>((b==null?void 0:b.name)==="组信息选项"&&(b.contents=D),b))}E.value=n==null?void 0:n.id,S.value=await ge.selectToBase(ge.formToOptionsContents($)),P.value=await ge.selectToBase(ge.formToOptionsContents($))},v=n=>{var Z;m.value=!0;let $=[];(Z=ge.FormButton)==null||Z.forEach(C=>{L.value++,$.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})}),M.value=$,R.value=$,E.value=n==null?void 0:n.id};e.watch(()=>ee.value,()=>{var $,Z;let n=l.cloneDeep(t.originalItemContents);($=l.cloneDeep(t.originalItemContents))!=null&&$.find(C=>(C==null?void 0:C.key)==="enableWrap")?n=(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.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 U=()=>{var Z,C,oe,pe,he;M.value=R.value;let n={};if(E.value!==""?n.id=E.value:(L.value++,n.id="id"+L.value),(Z=M.value)==null||Z.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=H.value)!=null&&C.find(h=>h.id===n.id))H.value=(oe=H.value)==null?void 0:oe.map(h=>(h.id===n.id&&(h=n),h));else{let h=l.cloneDeep(H.value);H.value||(H.value=[]),h.push(n),H.value=h}m.value=!1,E.value="";let $=l.cloneDeep(t.originalItemContents);(pe=l.cloneDeep(t.originalItemContents))!=null&&pe.find(h=>(h==null?void 0:h.key)==="formButton")?$=(he=l.cloneDeep(t.originalItemContents))==null?void 0:he.map(h=>((h==null?void 0:h.key)==="formButton"&&(h.contents=H.value),h)):$.push({key:"formButton",contents:H.value}),o("change",$)},r=n=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,Z;q.value=($=l.cloneDeep(q.value))==null?void 0:$.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.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 $,Z;H.value=($=l.cloneDeep(H.value))==null?void 0:$.filter(C=>(C==null?void 0:C.id)!==(n==null?void 0:n.id)),o("change",(Z=l.cloneDeep(t.originalItemContents))==null?void 0:Z.map(C=>((C==null?void 0:C.key)==="formButton"&&(C.contents=H.value),C))),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=()=>{var $;m.value=!0;let n=[];($=ge.FormButton)==null||$.forEach(Z=>{L.value++,n.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:L.value,contents:Z==null?void 0:Z.options})}),M.value=n,R.value=n},x=()=>{var $,Z,C;c.value=!0;let n=[];(C=(Z=($=ge.FormContent)==null?void 0:$.find(oe=>(oe==null?void 0:oe.key)==="Input"))==null?void 0:Z.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})}),S.value=n,P.value=n},ce=n=>{let $=l.cloneDeep(R.value);$=$==null?void 0:$.map(Z=>(Z.value=n==null?void 0:n[Z.name],Z)),R.value=$},de=async n=>{var $,Z,C,oe,pe,he,h,T,D,b,z,_;if((n==null?void 0:n.类型)!==((Z=($=P.value)==null?void 0:$.find(F=>(F==null?void 0:F.label)==="类型"))==null?void 0:Z.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=P.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))}P.value=await ge.selectToBase(l.cloneDeep(F)),S.value=await ge.selectToBase(l.cloneDeep(F))}else{let F=l.cloneDeep(P.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),P.value=await ge.selectToBase(l.cloneDeep(F))}},O=n=>{n||(S.value=P.value)},X=async n=>{await de(n),S.value=P.value},K=async()=>{var C,oe,pe,he,h,T,D,b,z,_,F,j;S.value=P.value;let n={};n.width=((oe=(C=S.value)==null?void 0:C[0])==null?void 0:oe.width)??1,E.value!==""?n.id=E.value:(L.value++,n.id="id"+L.value);let $=await((h=(he=(pe=ge.FormContent)==null?void 0:pe.find(I=>{var w,te;return(I==null?void 0:I.key)===(((te=(w=S.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=S.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=S.value)==null||b.forEach(I=>{const w=$==null?void 0:$.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),c.value=!1,E.value="";let Z=l.cloneDeep(t.originalItemContents);(F=l.cloneDeep(t.originalItemContents))!=null&&F.find(I=>(I==null?void 0:I.key)==="formContent")?Z=(j=l.cloneDeep(t.originalItemContents))==null?void 0:j.map(I=>((I==null?void 0:I.key)==="formContent"&&(I.contents=q.value),I)):Z.push({key:"formContent",contents:q.value}),o("change",Z)},B=()=>{c.value=!1,m.value=!1,E.value="",P.value=[],R.value=[]};return e.watch(()=>t.originalItemContents,()=>{var $,Z,C,oe,pe,he;if(!t.originalItemContents||t.originalItemContents.length===0)return;const n=l.cloneDeep(t.originalItemContents);q.value=(($=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:$.contents)??[],H.value=((Z=n==null?void 0:n.find(h=>(h==null?void 0:h.key)==="formButton"))==null?void 0:Z.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),H.value=(he=H.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,$)=>{const Z=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",w1,[e.createElementVNode("div",C1,[e.createElementVNode("div",_1,[$[2]||($[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[1]||($[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",x1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",B1,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>s(oe)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>r(oe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",V1,[$[4]||($[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(C,{class:"icon-content",id:"themeButton",onClick:k},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[3]||($[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",E1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(oe,pe)=>(e.openBlock(),e.createElementBlock("div",{key:pe},[e.createElementVNode("div",M1,[e.createElementVNode("div",null,e.toDisplayString(oe.label),1),e.createElementVNode("div",z1,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>v(oe)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>y(oe)},null,8,["onClick"])])])]))),128))]),$[6]||($[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",F1,[$[5]||($[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(Ce._sfc_main$3,{modelValue:ee.value,"onUpdate:modelValue":$[0]||($[0]=oe=>ee.value=oe)},null,8,["modelValue"])])]),e.createVNode(Ce.ssDialog,{visible:c.value,onBeforeDestroy:B,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",N1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:de,onChangeVisible:O,onBlurChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",S1,[e.createVNode(C,{onClick:B,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>$[7]||($[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(C,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>$[8]||($[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",T1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:ce},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:U},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},i2=Ve._export_sfc(I1,[["__scopeId","data-v-8cbdc3ef"]]),L1={class:"step-module content"},$1={class:"module-data"},P1={class:"step-module layout"},R1={class:"form-content"},O1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=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}]),S=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),P=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),m=e.reactive({visible:!1,width:"40%",title:"步骤条"}),H=e.ref("create"),q=e.ref({}),E=e.ref([]),ee=s=>{var v;q.value=s,o("change",(v=R())==null?void 0:v.compData)},L=(s,v)=>{var U,r;switch(s){case"create":(U=S.value)==null||U.forEach(y=>{y.value=""}),H.value="create",m.visible=!0;break;case"update":(r=S.value)==null||r.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),H.value="update",m.visible=!0;break;case"delete":E.value.splice(v,1),H.value="delete";break}},M=s=>{var v,U,r;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]}),H.value){case"create":E.value.push({...y,index:((v=E.value)==null?void 0:v.length)+1});break;case"update":E.value=(U=E.value)==null?void 0:U.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",(r=R())==null?void 0:r.compData),m.visible=!1}else m.visible=!1},R=()=>({comp:"Step",compData:[{key:"stepList",contents:E.value},{key:"stepConfig",contents:q.value}]}),Y=()=>{m.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(q.value=((v=s==null?void 0:s.find(r=>r.key==="stepConfig"))==null?void 0:v.contents)??{},E.value=((U=s==null?void 0:s.find(r=>r.key==="stepList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",L1,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(r,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",$1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.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(r,{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(r,{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",P1,[v[5]||(v[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(Ce.ssForm,{rowContents:c.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",R1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:P.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),H1=Ve._export_sfc(O1,[["__scopeId","data-v-7dbd17f2"]]),U1={class:"step-module content"},j1={class:"module-data"},J1={class:"step-module layout"},K1={class:"form-content"},G1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=e.ref("create"),S=e.ref({}),P=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}]),H=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"}]),E=e.reactive({visible:!1,width:"40%",title:"时间线"}),ee=s=>{var v;S.value=s,console.log(1212,s),o("change",(v=R())==null?void 0:v.compData)},L=(s,v)=>{var U,r;switch(s){case"create":(U=H.value)==null||U.forEach(y=>{y.value=""}),c.value="create",E.visible=!0;break;case"update":(r=H.value)==null||r.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),c.value="update",E.visible=!0;break;case"delete":P.value.splice(v,1),c.value="delete";break}},M=s=>{var v,U,r,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]}),c.value){case"create":console.log(1335,P.value,k),(U=P.value)==null||U.push({...k,index:((v=P.value)==null?void 0:v.length)+1});break;case"update":P.value=(r=P.value)==null?void 0:r.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=R())==null?void 0:y.compData),E.visible=!1}else E.visible=!1},R=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:P.value},{key:"timeLineConfig",contents:S.value}]}),Y=()=>{E.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(S.value=((v=s==null?void 0:s.find(r=>r.key==="timeLineConfig"))==null?void 0:v.contents)??{},P.value=((U=s==null?void 0:s.find(r=>r.key==="timeLineList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),r=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(r,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>L("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",j1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.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(r,{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(r,{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:m.value,onChange:ee},null,8,["rowContents"])])]),e.createVNode(Ce.ssDialog,{visible:E.visible,title:E.title,onBeforeDestroy:Y,width:E.width},{default:e.withCtx(()=>[e.createElementVNode("div",K1,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:H.value,key:H.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:q.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),W1=Ve._export_sfc(G1,[["__scopeId","data-v-f6b5d4fc"]]),q1={};function X1(u,d){return e.openBlock(),e.createElementBlock("div")}const Y1=Ve._export_sfc(q1,[["render",X1]]),Z1={class:"extra-content"},Q1={key:0},e0={key:1},l0={class:"dialog-footer"},a0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(u,{emit:d}){const t=u,o=e.ref(0),c=e.ref(),S=e.ref(),P=d,m=e.ref(!1),H=e.ref({}),q=e.ref({}),E=e.ref();e.watch(()=>[t.itemData],()=>{var y;const r=l.cloneDeep(t.itemData);c.value=(y=l.cloneDeep(r))==null?void 0:y.map(k=>{var x;if(k.key==="extra"){let ce=[];(x=k.value)==null||x.forEach(de=>{var O;ce.push((O=Object.values(de))==null?void 0:O[0])}),k.value=ce}return k})},{deep:!0,immediate:!0});const ee=(r,y,k,x)=>{var de;let ce={};((de=r==null?void 0:r[0])==null?void 0:de.contents)==="详情"&&(m.value=!0,ce[y]=r,S.value=r==null?void 0:r.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),H.value=ce,q.value=k,E.value=x.id)},L=r=>{var O,X,K,B;const y=(X=(O=Object.values(l.cloneDeep(H.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(K=Object.values(l.cloneDeep(H.value)))==null?void 0:K[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,$)=>{var Z;return $===r.index&&(n==null?void 0:n.comp)==="Table"&&(n.compData=(Z=n.compData)==null?void 0:Z.map(C=>{var oe,pe;return(C==null?void 0:C.key)==="tableContents"&&(C.contents=(pe=(oe=r.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 ce=l.cloneDeep(H.value),de={};for(let n in ce)de[n]=x;H.value=de},M=()=>{m.value=!1,H.value={},q.value={},E.value=void 0,o.value++},R=r=>{var O,X,K,B;const y=(X=(O=Object.values(l.cloneDeep(H.value)))==null?void 0:O[0])==null?void 0:X.filter(n=>(n==null?void 0:n.key)==="tableContentName"),k=(B=(K=Object.values(l.cloneDeep(H.value)))==null?void 0:K[0])==null?void 0:B.filter(n=>(n==null?void 0:n.key)!=="tableContentName"),x=k==null?void 0:k.map((n,$)=>($===r.index&&(n.compData=r.contents),n));x.unshift(y==null?void 0:y[0]);let ce=l.cloneDeep(H.value),de={};for(let n in ce)de[n]=x;H.value=de},Y=()=>{var y,k;let r={};for(let x in q.value)x===((y=Object.keys(H.value))==null?void 0:y[0])?r[x]=(k=Object.values(H.value))==null?void 0:k[0]:r[x]=q.value[x];P("change",{buttonName:"编辑",index:E.value,singleContent:r},"methodData"),m.value=!1,H.value={},q.value={},E.value=void 0},s=()=>{m.value=!1,H.value={},q.value={},E.value=void 0},v=r=>{P("change",r,"methodData")},U=r=>El(r);return(r,y)=>{const k=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(x,ce)=>(e.openBlock(),e.createElementBlock("div",{key:o.value},[(x==null?void 0:x.key)==="extra"?(e.openBlock(),e.createElementBlock("div",Q1)):(e.openBlock(),e.createElementBlock("div",e0,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:ce,index:(x==null?void 0:x.id)??ce,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(S.value,(x,ce)=>(e.openBlock(),e.createElementBlock("div",{key:ce,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U(x.comp)),{itemData:x==null?void 0:x.compData,onChange:L,childItemData:x==null?void 0:x.itemChildData,key:ce,onContentChange:R,index:(x==null?void 0:x.id)??ce,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createVNode(k,{class:"cancel-button footer-button",onClick:M,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"])])}}},o0=Ve._export_sfc(a0,[["__scopeId","data-v-2d9c5ab2"]]);let Cl="$R";const Tl=u=>{var m,H,q,E,ee,L,M,R,Y,s,v,U,r,y,k,x,ce,de,O,X,K,B,n,$;const d=Ll(u)?(m=Je(l.cloneDeep(u)))==null?void 0:m[0]:"[]",t=Ll(u)?"["+((H=Je(l.cloneDeep(u)))==null?void 0:H[2])+"]":"["+u+"]";let o=[],c=[],S="";const P=(E=(q=t==null?void 0:t.trim())==null?void 0:q.slice(1,(t==null?void 0:t.trim().length)-1))==null?void 0:E.replaceAll("'",'"');if(ge.IsJson(P)?o=JSON.parse(P):ge.IsJson((M=(L=(ee=P==null?void 0:P.split("}"))==null?void 0:ee[0])==null?void 0:L.replace(":",""))==null?void 0:M.replaceAll("\\","\\\\"))&&(o=JSON.parse((s=(Y=(R=P==null?void 0:P.split("}"))==null?void 0:R[0])==null?void 0:Y.replace(":",""))==null?void 0:s.replaceAll("\\","\\\\"))),o=o!=null&&o.every(Z=>Array.isArray(Z)&&Z.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("'",'"'))?c=JSON.parse(d==null?void 0:d.replaceAll("'",'"')):ge.IsJson((U=(v=d==null?void 0:d.split("{"))==null?void 0:v[1])==null?void 0:U.replaceAll("'",'"'))&&(c=JSON.parse((y=(r=d==null?void 0:d.split("{"))==null?void 0:r[1])==null?void 0:y.replaceAll("'",'"')));else{let Z=[];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=(ce=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:ce.split(","))==null||de.forEach(C=>{var oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,J,p,re,le,a,i,f,A,N;if(!(C!=null&&C.includes("(")))Z.push(C==null?void 0:C.replaceAll("'",""));else if(C!=null&&C.includes("[")){let Q;const ve=(j=(F=l.cloneDeep(C))==null?void 0:F.replaceAll("{",""))==null?void 0:j.replaceAll("}","");Q=(w=(I=ve==null?void 0:ve.replace("[",Cl))==null?void 0:I.split(Cl))==null?void 0:w[1];const ne=Q.lastIndexOf("]"),se=Q.substring(0,ne)+Cl+Q.substring(ne+1);Q=(g=(te=se==null?void 0:se.split(Cl))==null?void 0:te[0])==null?void 0:g.replaceAll("'",""),Q=(Q==null?void 0:Q[0])===":"?'""'+Q:Q,C!=null&&C.includes("#")&&(Q!=null&&Q.includes("[")?Q=((G=(V=C==null?void 0:C.split("#"))==null?void 0:V[0])==null?void 0:G.replaceAll("'",""))+"#("+Q+")":Q=((p=(J=C==null?void 0:C.split("#"))==null?void 0:J[0])==null?void 0:p.replaceAll("'",""))+"#"+Q);let ie=(f=(i=(a=(re=l.cloneDeep(ve))==null?void 0:re.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("'","");Q.includes(":")&&((N=ie==null?void 0:ie.split("/"))==null?void 0:N[((A=ie==null?void 0:ie.split("/"))==null?void 0:A.length)-1])!==""?Q=Q+"["+ie+"]":Q=Q+"["+ie+"]()",Z.push(Q==null?void 0:Q.replaceAll('"',"'"))}else{let Q=(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("'","");Q=Q+"["+((_=(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("'",""))+"]",Z.push(Q)}}),c=Z;else{const C=((B=(K=(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:K.split(")"))==null?void 0:B[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");S=S+C+"["+(($=(n=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1))==null?void 0:n.split("["))==null?void 0:$[1])}}return{tableColumns:c,tableContents:o!=null&&o.every(Z=>Array.isArray(Z))?o:[o],tablePath:S}};let we="$R";const t0=u=>/^'[^']+':\{.*\}$/.exec(l.cloneDeep(u)),n0=u=>/^'[^']+':\[\[.*\]\]$/.exec(l.cloneDeep(u)),s0=u=>/^'([^']+)':.*$/.exec(l.cloneDeep(u)),Je=u=>{let d=u;const t=[];let o="";for(const c of d)c.includes("{")||o.includes("{")||c.includes("[")||o.includes("[")||c.includes("【")||o.includes("【")||c.includes("(")||o.includes("(")||c.includes("(")||o.includes("(")||c.includes("/*")||o.includes("/*")||c.includes("&")||o.includes("&")?(o+=c.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(c.trim().replace(/\/\*[\s\S]*?\*\//g,""));return t},Al=(u,d)=>{let t=u;const o=[];let c="",S=0;for(const P of t)S++,P.includes("{")||c.includes("{")||P.includes("[")||c.includes("[")||P.includes("【")||c.includes("【")||P.includes("(")||c.includes("(")||P.includes("(")||c.includes("(")||P.includes("/*")||c.includes("/*")?(c+=P.trim(),l.cloneDeep(c).split("{").length-1===l.cloneDeep(c).split("}").length-1&&l.cloneDeep(c).split("【").length-1===l.cloneDeep(c).split("】").length-1&&l.cloneDeep(c).split("[").length-1===l.cloneDeep(c).split("]").length-1&&l.cloneDeep(c).split("(").length-1===l.cloneDeep(c).split(")").length-1&&l.cloneDeep(c).split("(").length-1===l.cloneDeep(c).split(")").length-1&&l.cloneDeep(c).split("/*").length-1===l.cloneDeep(c).split("*/").length-1&&c[c.length-1]!==","&&c[c.length-1]===d?(o.push(c.replace(/\/\*[\s\S]*?\*\//g,"")),c=""):S===(u==null?void 0:u.length)&&o.push(c.replace(/\/\*[\s\S]*?\*\//g,""))):(c+=P.trim(),(c==null?void 0:c[(c==null?void 0:c.length)-1])===d&&(o.push(c.replace(/\/\*[\s\S]*?\*\//g,"")),c=""));return o},Ll=u=>/^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l.cloneDeep(u)),i0=u=>{var d,t,o,c,S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,r,y,k,x,ce,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,J,p,re,le,a,i,f,A,N,Q;if(s0(u)){let ve={},ne=(o=(t=(d=u==null?void 0:u.replace(":",we))==null?void 0:d.split(we))==null?void 0:t[0])==null?void 0:o.replaceAll("'",""),se="",ie=(S=(c=u==null?void 0:u.replace(":",we))==null?void 0:c.split(we))==null?void 0:S[1];if(ie.includes("{")||ie.includes("("))if(ie.includes("{")?se=se+((ee=(E=(q=(H=(m=(P=ie==null?void 0:ie.split("{"))==null?void 0:P[1])==null?void 0:m.split("}"))==null?void 0:H[0])==null?void 0:q.replaceAll(":","/").replaceAll("'",""))==null?void 0:E.replaceAll("[","(["))==null?void 0:ee.replaceAll("]","])"))+"[":se=se+((v=(s=(Y=(R=(M=(L=ie==null?void 0:ie.split("("))==null?void 0:L[1])==null?void 0:M.split(")"))==null?void 0:R[0])==null?void 0:Y.replaceAll(":","/").replaceAll("'",""))==null?void 0:s.replaceAll("[","(["))==null?void 0:v.replaceAll("]","])"))+"[",!((U=ie==null?void 0:ie.split(")"))!=null&&U[1]))se=se+((k=(y=(r=ie==null?void 0:ie.split("["))==null?void 0:r[1])==null?void 0:y.split("]"))==null?void 0:k[0])+"]";else{const me=(O=(de=(ce=(x=ie==null?void 0:ie.split(")"))==null?void 0:x[1])==null?void 0:ce.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=(K=u==null?void 0:u.replace(":",we))==null?void 0:K.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(u.includes("#")){ne=(Z=($=u==null?void 0:u.split("#"))==null?void 0:$[0])==null?void 0:Z.replaceAll("'","");let ie=(oe=(C=u==null?void 0:u.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=u==null?void 0:u.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("'",""))}),!(u!=null&&u.includes("[")))se=((re=(p=(J=(G=u==null?void 0:u.split("]"))==null?void 0:G[1])==null?void 0:J.replace(":",we).split(we))==null?void 0:p[1])==null?void 0:re.replaceAll("'",""))??"";else{let me=(N=(A=(f=(i=(a=(le=l.cloneDeep(u))==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:N.replaceAll("'","").replaceAll(":","/"),be="";(Q=ie==null?void 0:ie.split(":"))==null||Q.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]]}}},c0=u=>(u==null?void 0:u[0])==="["&&(u==null?void 0:u[u.length-1])==="]"&&!(u!=null&&u.includes("{")),r0=(u,d)=>{let t=u.length;for(;t--;)if(u[t]===")")return u.substring(0,t)+d+u.substring(t+1);return u},u0=u=>{var S,P,m,H,q;let d=u.slice(1,u.length-1),t;(d==null?void 0:d[0])==="["?t=(P=(S=Je(l.cloneDeep(d)))==null?void 0:S.filter(E=>E!==","))==null?void 0:P.map(E=>E==null?void 0:E.slice(1,E.length-1)):(d="["+l.cloneDeep(d)+"]",t=(H=(m=Je(l.cloneDeep(d)))==null?void 0:m.filter(E=>E!==","))==null?void 0:H.map(E=>E==null?void 0:E.slice(1,E.length-1))),t=(q=l.cloneDeep(t))==null?void 0:q.map(E=>{var ee,L;return E=(L=(ee=E.replace(")",we))==null?void 0:ee.split(we))==null?void 0:L[1],E});let o=[],c=[];return t==null||t.forEach(E=>{var M,R,Y,s,v,U,r,y,k,x,ce,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;let ee=(R=(M=l.cloneDeep(E))==null?void 0:M.slice(1,l.cloneDeep(E).length-1))==null?void 0:R.replace(":",we).split(we);if(((s=(Y=l.cloneDeep(ee))==null?void 0:Y[0])==null?void 0:s.replaceAll("'",""))==="输入"){if(!((U=(v=l.cloneDeep(ee))==null?void 0:v[1])!=null&&U.includes("["))&&!((y=(r=l.cloneDeep(ee))==null?void 0:r[1])!=null&&y.includes("("))){ge.IsJson((k=l.cloneDeep(ee))==null?void 0:k[1].replaceAll("'",'"'))&&c.push(JSON.parse((x=l.cloneDeep(ee))==null?void 0:x[1].replaceAll("'",'"')));return}if(((de=(ce=l.cloneDeep(ee))==null?void 0:ce[1])==null?void 0:de[0])==="["){let w=(B=(O=l.cloneDeep(ee))==null?void 0:O[1])==null?void 0:B.slice(1,((K=(X=l.cloneDeep(ee))==null?void 0:X[1])==null?void 0:K.length)-1);($=(n=Je(w))==null?void 0:n.filter(te=>te!==","))==null||$.forEach(te=>{var p,re,le,a,i,f,A,N,Q,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne;let g={},V=(le=(re=l.cloneDeep(te))==null?void 0:re.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("'",""),J;(i=V==null?void 0:V[1])!=null&&i.includes("(")?(J=(me=(ie=(se=(ne=(ve=(Q=(N=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:N.replaceAll("{",""))==null?void 0:Q.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("[")&&(J=l.cloneDeep(J)+"["+((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("'",""))+"]")):J=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'",""),g[G]=J,c.push(g)})}}else{if(!((C=(Z=l.cloneDeep(ee))==null?void 0:Z[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,re,le,a,i,f,A,N,Q,ve,ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be,Pe,Ie,Le,Ze,Oe,Ke,Ge,Te;let g={},V=(le=(re=l.cloneDeep(te))==null?void 0:re.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("'",""),J;if(!((i=V==null?void 0:V[1])!=null&&i.includes("(")))J=(f=V==null?void 0:V[1])==null?void 0:f.replaceAll("'","");else if(J=(se=(ne=(ve=(Q=(N=(A=l.cloneDeep(V))==null?void 0:A[1])==null?void 0:N.replaceAll("{",""))==null?void 0:Q.replaceAll("}",""))==null?void 0:ve.replace("(",we))==null?void 0:ne.split(we))==null?void 0:se[1],J=(me=(ie=r0(l.cloneDeep(J),we))==null?void 0:ie.split(we))==null?void 0:me[0],!(J!=null&&J.includes("(")))J=(be=l.cloneDeep(J))==null?void 0:be.replaceAll(":","/").replaceAll("'",""),(fe=(ae=l.cloneDeep(V))==null?void 0:ae[1])!=null&&fe.includes("[")&&(J=l.cloneDeep(J)+"["+((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(J,":"))==null||Ee.forEach(Fe=>{var ol,tl,nl,sl,il,cl,rl,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=(rl=(cl=(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:cl.split(we))==null?void 0:rl[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+"]"}}),J=$e+"["+((Te=(Ge=(Ke=(Oe=(Pe=(Be=l.cloneDeep(V))==null?void 0:Be[1])==null?void 0:Pe.split("["))==null?void 0:Oe[((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]=J,o.push(g)})}}}),{output:o,input:c}},f2=u=>{var o,c,S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,r,y,k,x,ce,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I,w,te,g,V,G,J,p,re;let d="";u=u.replace(/:([^=]*)==/g,":");let t=u;if((t0(l.cloneDeep(u))!==null||n0(l.cloneDeep(u))!==null)&&(d=(c=(o=l.cloneDeep(u).replace(":",we).split(we))==null?void 0:o[0])==null?void 0:c.replaceAll("'",""),t=(S=l.cloneDeep(u).replace(":",we).split(we))==null?void 0:S[1]),Ll(l.cloneDeep(t).slice(1,((P=l.cloneDeep(t))==null?void 0:P.length)-1))||c0(l.cloneDeep(t).slice(1,((m=l.cloneDeep(t))==null?void 0:m.length)-1)))if(((q=l.cloneDeep(t).slice(1,((H=l.cloneDeep(t))==null?void 0:H.length)-1))==null?void 0:q[1])!=="["){const le=Tl(l.cloneDeep(t).slice(1,((E=l.cloneDeep(t))==null?void 0:E.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(R=(M=Je(i))==null?void 0:M.filter(A=>A==null?void 0:A.includes("{")))==null?void 0:R.map((A,N)=>{var ve;let Q=Tl(l.cloneDeep(A).slice(1,((ve=l.cloneDeep(A))==null?void 0:ve.length)-1));return{groupName:N===0?d:"",tableColumn:Q==null?void 0:Q.tableColumns,tableContents:Q==null?void 0:Q.tableContents,tableColumnPath:Q==null?void 0:Q.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=($=(n=(B=(K=l.cloneDeep(t))==null?void 0:K.split("]"))==null?void 0:B[0])==null?void 0:n.split("["))==null?void 0:$[1],i="",A=((h=(he=(pe=(oe=(C=(Z=l.cloneDeep(t))==null?void 0:Z.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((Q,ve)=>{var ne;ve!==((ne=A==null?void 0:A.split("/"))==null?void 0:ne.length)-1&&(i=i===""?i+Q:i+"/"+Q)});let N;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])==="["&&(N=u0((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:N}}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=>i0(l.cloneDeep(A).slice(1,l.cloneDeep(A).length-1))),f=[];return(G=l.cloneDeep(i))==null||G.forEach(A=>{var N;(N=A==null?void 0:A.formContents)==null||N.forEach(Q=>{Q==null||Q.forEach(ve=>{f.push(ve)})})}),{groupName:(J=i==null?void 0:i[0])==null?void 0:J.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(re=(p=Je(t))==null?void 0:p.filter(f=>f!==","))==null||re.forEach(f=>{var A,N,Q,ve;if(!f.includes("&"))Array.isArray(xl(f))||a.push((A=xl(f))==null?void 0:A.formContents);else{let ne=(ve=(Q=(N=l.cloneDeep(f))==null?void 0:N.split("&"))==null?void 0:Q[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((U=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:U.replaceAll("'",'"')))le=JSON.parse((r=t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:r.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=(ce=t==null?void 0:t.replace(":",we))==null?void 0:ce.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=f2(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=u=>f2(l.cloneDeep(u).slice(1,l.cloneDeep(u).length-1)),p0=u=>{var t;let d=[];if(!((u==null?void 0:u[0])==="["&&(u==null?void 0:u[1])==="[")){let o=(t=Je(u))==null?void 0:t.filter(c=>c!==",");o==null||o.forEach(c=>{d.push(xl(c))})}return d},d0=Bl.useModelComp(l.pinia),{routeToChildPath:Il}=l.storeToRefs(d0),m2=l.useMenuState(l.pinia),{activeMenuPath:al}=l.storeToRefs(m2),h0=$l.useLoginState(),{loginUserInfo:kl}=l.storeToRefs(h0),v2=async()=>{var S,P,m,H,q,E,ee,L,M,R,Y,s,v,U,r,y,k,x,ce,de,O,X,K,B,n,$,Z,C,oe,pe,he,h,T,D,b;let u="";const d=await l.getInsofDataApi({key:{type:"structure",pageKey:l.cloneDeep(Il).value,systemKey:sessionStorage.getItem("systemKey")}});((P=(S=d==null?void 0:d.data)==null?void 0:S.result)==null?void 0:P.length)>0&&(u=(Y=(R=(M=(L=(ee=(E=(q=(H=(m=d==null?void 0:d.data)==null?void 0:m.result)==null?void 0:H[0])==null?void 0:q.value)==null?void 0:E.pageData)==null?void 0:ee.compData)==null?void 0:L.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:M.contents)==null?void 0:R[0])==null?void 0:Y.label);let t=al.value;(v=al.value)!=null&&v.includes(`updateLoading${(s=kl.value)==null?void 0:s.account}`)?t=l.cloneDeep(al).value:(r=al.value)!=null&&r.includes(`loading${(U=kl.value)==null?void 0:U.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(`updateLoading${(k=kl.value)==null?void 0:k.account}`)){const z=await l.getInsofDataApi({key:{pageKey:(de=al.value.split(`/updateLoading${(ce=kl.value)==null?void 0:ce.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 c=[];if(((B=(K=o==null?void 0:o.data)==null?void 0:K.result)==null?void 0:B.length)>0){let z=(T=(h=(he=(pe=(oe=(C=(Z=($=(n=o==null?void 0:o.data)==null?void 0:n.result)==null?void 0:$[0])==null?void 0:Z.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)===u||((j=(F=_==null?void 0:_.optionUrl)==null?void 0:F.groupSelect)==null?void 0:j[1])===u}))==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,m2.setChildMenu(F.pageKey),c.push({id:_==null?void 0:_.id,key:F})}),z===""){l.ElMessage.error(`保存失败,${u}的必填字段没有填写`);return}await l.batchUpdateInsofDataApi({dataList:c}),l.ElMessage.success("保存成功")}},f0={key:0,class:"method-content"},m0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(u){const d=e.ref([]),t=u,o=Bl.useModelComp(l.pinia),c=e.ref(!1),S=l.useMenuState(l.pinia),P=$l.useLoginState(l.pinia),{itemData:m,isEdit:H,routeToChildPath:q}=l.storeToRefs(o),{activeMenuPath:E,platform:ee,childMenu:L}=l.storeToRefs(S),{loginUserInfo:M}=l.storeToRefs(P),R=e.ref(!1),Y=(O,X)=>{const K=X;return O==null?void 0:O.map(B=>{var n;return B=(n=B==null?void 0:B.map(($,Z)=>{var C;return{key:(C=K[Z])==null?void 0:C.label,value:$}}))==null?void 0:n.filter($=>$.key!=="操作"),B})},s=async()=>{var O;(O=d.value)!=null&&O.find(X=>(X==null?void 0:X.buttonName)==="保存"),await v2()};e.watch(()=>m.value,async()=>{H.value==="view"&&!R.value&&await de(l.cloneDeep(t.itemData)),R.value=!1},{deep:!0});const v=async(O,X)=>{var K;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((K=l.cloneDeep(O.compData))==null?void 0:K.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},U=(O,X)=>{var B,n,$,Z,C,oe,pe,he,h,T,D,b;let K=(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=(Z=($=(n=l.cloneDeep(O))==null?void 0:n.split("["))==null?void 0:$[1])==null?void 0:Z.split("]"))==null?void 0:C[0])==null?void 0:oe.split(":"),_="";if(z!=null&&z[0]){let F=(pe=K==null?void 0:K.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(K))==null||he.forEach((_,F)=>{var j,I,w,te,g,V,G,J,p,re,le,a,i,f,A,N,Q,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=(re=(p=(J=_==null?void 0:_.compData)==null?void 0:J.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:p.contents)==null?void 0:re.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=(Q=(N=_==null?void 0:_.compData)==null?void 0:N.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:Q.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:E.value},value:{pageData:z}}}return O}},r=async(O,X,K)=>{var $;let B=await ge.getItemData(X,sessionStorage.getItem("systemKey"),""),n=B==null?void 0:B.find(Z=>(Z==null?void 0:Z.name)===(K==null?void 0:K[0]));if(n&&(n==null?void 0:n.comp)==="Table"){let Z={};for(let D in l.cloneDeep(O))l.cloneDeep(O)[D]!=="loginUser"?Z[D]=l.cloneDeep(O)[D]:Z[D]=($=M.value)==null?void 0:$.account;let C=[],oe=Z;Array.isArray(O)||(oe=[Z]),oe==null||oe.forEach(D=>{C.push({[D[K[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)===(K==null?void 0:K[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,K)=>{var $,Z,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)===(K==null?void 0:K[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]=($=M.value)==null?void 0:$.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=(Z=l.cloneDeep(b))==null?void 0:Z.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(J=>{var p;z.includes(J==null?void 0:J.key)&&(J==null?void 0:J.value)===((p=M.value)==null?void 0:p.姓名)&&(_=J==null?void 0:J.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 re,le,a,i,f,A,N,Q,ve,ne,se,ie;let V="";(A=(f=(i=(a=(le=(re=l.cloneDeep(g))==null?void 0:re.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=(Q=(N=l.cloneDeep(g))==null?void 0:N.split("<"))==null?void 0:Q[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 J=await ge.getItemData(V,sessionStorage.getItem("systemKey"),"");let p="";return J==null||J.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(J=>{var p,re,le,a;return(p=O[_])!=null&&p[J==null?void 0:J.key]&&(O[_][J==null?void 0:J.key].includes("(")?J.value=(re=I==null?void 0:I.find(i=>{var f;return((f=Object.keys(i))==null?void 0:f[0])===O[_][J==null?void 0:J.key]}))==null?void 0:re[O[_][J==null?void 0:J.key]]:J.value=(a=(le=l.cloneDeep(O))==null?void 0:le[_])==null?void 0:a[J==null?void 0:J.key]),J})),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)===(K==null?void 0:K[0])&&(te=g.id)}),await l.updateInsofDataApi({id:te,value:{pageData:b}}))}}},k=async(O,X,K)=>{var $,Z,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)===(K==null?void 0:K[0]));if(n){if(!(K!=null&&K[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]=($=M.value)==null?void 0:$.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(!(K!=null&&K[1])&&(n==null?void 0:n.comp)==="Form"){let h=l.cloneDeep(n);h.compData=(C=(Z=l.cloneDeep(h))==null?void 0:Z.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)===(K==null?void 0:K[0])&&(D=b.id)}),await l.updateInsofDataApi({id:D,value:{pageData:h}}))}}},x=["createInsofDataApi"],ce=async O=>{var K,B,n,$,Z,C,oe,pe,he,h,T,D,b,z,_,F,j,I;S.setImportLoading(!0);let X={};if(ee.value!=="browser"){const w=[];X.form={},(K=l.cloneDeep(O.content))==null||K.forEach((g,V)=>{var G,J,p,re,le,a,i,f,A,N,Q,ve,ne,se;if((g==null?void 0:g.comp)==="Table"){(J=(G=g==null?void 0:g.compData)==null?void 0:G.find(ae=>(ae==null?void 0:ae.key)==="header"))==null||J.contents;let ie=(le=(re=(p=g==null?void 0:g.compData)==null?void 0:p.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:re.contents)==null?void 0:le.map(ae=>ae.slice(1));(N=(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||N.label;let me=(ve=(Q=g==null?void 0:g.compData)==null?void 0:Q.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{c.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(($=g==null?void 0:g.data)==null?void 0:$.data);const G=(Z=l.cloneDeep(m.value))==null?void 0:Z.filter(le=>(le==null?void 0:le.comp)!=="methodButton"),J=await Promise.all(G.map(le=>v(le,V)));await Promise.all(J);const p=(C=l.cloneDeep(m.value))==null?void 0:C.filter(le=>(le==null?void 0:le.comp)==="methodButton");let re=[...J,...p];await ge.getProjectContent(re),c.value=!1}else l.ElMessage.error("方法调用失败:"+((oe=g==null?void 0:g.data)==null?void 0:oe.errors)),c.value=!1}catch{l.ElMessage.error("方法调用失败"),c.value=!1}o.setFreshContent(!0)}}else if(O.api){let w=await ge.getItemData((L==null?void 0:L.value)===""?E.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(re=>{var le;x!=null&&x.find(a=>a===re)?te=U(re,w):te[Object.keys(re)[0]]=U((le=Object.values(re))==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(re=>{var le,a;(a=(le=Object.values(re))==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(re=>{var le,a,i,f,A,N,Q,ve,ne,se,ie,me,be,ae,fe;if(!((a=(le=Object.values(re))==null?void 0:le[0])!=null&&a.includes(".doc"))){let De=(se=(ne=(ve=(f=l.cloneDeep((i=Object.values(re))==null?void 0:i[0]))==null?void 0:f.split("["))==null?void 0:ve[((Q=(N=l.cloneDeep((A=Object.values(re))==null?void 0:A[0]))==null?void 0:N.split("["))==null?void 0:Q.length)-1])==null?void 0:ne.split("]"))==null?void 0:se[0];De==null||De.split(":");let ye=l.cloneDeep((ie=Object.values(re))==null?void 0:ie[0]).substring(0,l.cloneDeep((me=Object.values(re))==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),Oe=(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)===(Oe==null?void 0:Oe[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)===(Oe==null?void 0:Oe[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(re=>re);G=[...new Set(l.cloneDeep(G))];let J=G==null?void 0:G.map(async re=>{let le=await ge.getItemData(re,sessionStorage.getItem("systemKey"),"");if((le==null?void 0:le.length)===0)return await ge.getParentContents(re)});await Promise.all(J);let p=(I=(j=(F=l.cloneDeep(O))==null?void 0:F.extraValues)==null?void 0:j.output)==null?void 0:I.map(async re=>{var ne,se,ie,me,be,ae,fe,De,ye,ke,xe,Ne,ue,Ee,Be,Pe,Ie,Le,Ze,Oe,Ke,Ge,Te,$e,Fe,ol,tl,nl,sl,il,cl,rl,ul,pl,dl,hl,fl,ml,vl,yl,Qe,Pl,Rl,Ol,Hl,Ul,jl,Jl,Kl,Gl,Wl,ql,Xl,Yl,Zl,Ql;if((se=(ne=Object.values(re))==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=f==null?void 0:f[1],N=document.createElement("a"),Q=window.URL.createObjectURL(le),ve=/^["](.*)["]$/g;N.style.display="none",N.href=Q,N.download=decodeURI(A.replace(ve,"$1")),document.body.appendChild(N),N.click(),document.body.removeChild(N),window.URL.revokeObjectURL(Q)}else{let Ml=(ke=(ye=(De=(me=l.cloneDeep((ie=Object.values(re))==null?void 0:ie[0]))==null?void 0:me.split("["))==null?void 0:De[((fe=(ae=l.cloneDeep((be=Object.values(re))==null?void 0:be[0]))==null?void 0:ae.split("["))==null?void 0:fe.length)-1])==null?void 0:ye.split("]"))==null?void 0:ke[0],Ae=Ml==null?void 0:Ml.split(":"),Ue=l.cloneDeep((xe=Object.values(re))==null?void 0:xe[0]).substring(0,l.cloneDeep((Ne=Object.values(re))==null?void 0:Ne[0]).lastIndexOf("["));if(Ue.includes("[")&&(Ue=(Ee=l.cloneDeep(Ue))==null?void 0:Ee.slice(0,((ue=l.cloneDeep(Ue))==null?void 0:ue.length)-1)),Ue!=null&&Ue.includes("[")){let ze="";(Be=Al(Ue,"/"))==null||Be.forEach(Se=>{var gl,Re,He,Ye,bl,e2,l2;if(!(Se!=null&&Se.includes("[")))ze=ze===""?ze+Se.replaceAll("/",""):ze+"/"+Se.replaceAll("/","");else{let g2=l.cloneDeep(Se).slice(1,((gl=l.cloneDeep(Se))==null?void 0:gl.length)-1),el=(e2=(bl=(Ye=(He=(Re=l.cloneDeep(g2))==null?void 0:Re.split("["))==null?void 0:He[1])==null?void 0:Ye.split("]"))==null?void 0:bl[0])==null?void 0:e2.split(":"),zl="",Fl=(l2=w==null?void 0:w.find(je=>(je==null?void 0:je.name)===(el==null?void 0:el[0])))==null?void 0:l2.compData;Fl==null||Fl.forEach(je=>{var a2;(je==null?void 0:je.key)==="formContent"&&((a2=je==null?void 0:je.contents)==null||a2.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("/","")}}),Ue=ze}if(((Pe=V==null?void 0:V.data)==null?void 0:Pe.statusCode)===200){if((Le=(Ie=V==null?void 0:V.data)==null?void 0:Ie.data)!=null&&Le[Ae==null?void 0:Ae[0]]&&(Ae==null?void 0:Ae.length)===1)return await k((Oe=(Ze=V==null?void 0:V.data)==null?void 0:Ze.data)==null?void 0:Oe[Ae==null?void 0:Ae[0]],Ue,Ae);if((Ge=(Ke=V==null?void 0:V.data)==null?void 0:Ke.data)!=null&&Ge[Ae==null?void 0:Ae[0]])return await r(($e=(Te=V==null?void 0:V.data)==null?void 0:Te.data)==null?void 0:$e[Ae==null?void 0:Ae[0]],Ue,Ae);if((Ae==null?void 0:Ae.length)===1){const ze=(tl=(ol=(Fe=V==null?void 0:V.data)==null?void 0:Fe.data)==null?void 0:ol.path)==null?void 0:tl.path;let Se="";(rl=(cl=(il=(sl=(nl=ze==null?void 0:ze.split("("))==null?void 0:nl[1])==null?void 0:sl.split(")"))==null?void 0:il[0])==null?void 0:cl.split(":"))==null||rl.forEach(He=>{var Ye,bl;Se=Se===""?Se+((Ye=He==null?void 0:He.replaceAll("'",""))==null?void 0:Ye.trim()):Se+"/"+((bl=He==null?void 0:He.replaceAll("'",""))==null?void 0:bl.trim())});let gl=[(fl=(hl=(dl=(pl=(ul=ze==null?void 0:ze.split("<"))==null?void 0:ul[1])==null?void 0:pl.split(">"))==null?void 0:dl[0])==null?void 0:hl.replaceAll("'",""))==null?void 0:fl.trim()],Re;return(yl=(vl=(ml=V==null?void 0:V.data)==null?void 0:ml.data)==null?void 0:vl.data)!=null&&yl[Ae==null?void 0:Ae[0]]?Re=await k((Rl=(Pl=(Qe=V==null?void 0:V.data)==null?void 0:Qe.data)==null?void 0:Pl.data)==null?void 0:Rl[Ae==null?void 0:Ae[0]],Se,Ae):Re=await y((Hl=(Ol=V==null?void 0:V.data)==null?void 0:Ol.data)==null?void 0:Hl.data,Se,gl),Re}else{const ze=(Jl=(jl=(Ul=V==null?void 0:V.data)==null?void 0:Ul.data)==null?void 0:jl.path)==null?void 0:Jl.path;let Se="";return(Xl=(ql=(Wl=(Gl=(Kl=ze==null?void 0:ze.split("("))==null?void 0:Kl[1])==null?void 0:Gl.split(")"))==null?void 0:Wl[0])==null?void 0:ql.split(":"))==null||Xl.forEach(Re=>{var He,Ye;Se=Se===""?Se+((He=Re==null?void 0:Re.replaceAll("'",""))==null?void 0:He.trim()):Se+"/"+((Ye=Re==null?void 0:Re.replaceAll("'",""))==null?void 0:Ye.trim())}),await r((Ql=(Zl=(Yl=V==null?void 0:V.data)==null?void 0:Yl.data)==null?void 0:Zl.data)==null?void 0:Ql[Ae==null?void 0:Ae[0]],Se,Ae)}}}});await Promise.all(p)}S.setImportLoading(!1),R.value=!0},de=async O=>{var $,Z,C;const X=l.cloneDeep(O);let K;O!=null&&O[0].path&&(K=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(E.value,sessionStorage.getItem("systemKey"),"");return h==null||h.forEach(G=>{var J,p,re,le,a;((p=(J=G==null?void 0:G.value)==null?void 0:J.tableData)==null?void 0:p.算法名称)===((re=X==null?void 0:X[pe])==null?void 0:re.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(E.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=($=O==null?void 0:O[0])!=null&&$.path&&((Z=O==null?void 0:O[0])==null?void 0:Z.path)!==""?await Promise.all(K):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()=>{H.value=="view"&&!R.value&&await de(l.cloneDeep(t.itemData)),R.value=!1},{immediate:!0,deep:!0}),(O,X)=>{var K,B,n;return e.unref(H)!=="edit"?(e.openBlock(),e.createElementBlock("div",f0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((K=d.value)==null?void 0:K.filter($=>($==null?void 0:$.buttonName)!=="保存"),$=>(e.openBlock(),e.createElementBlock("div",null,[$.api!==""?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",modelValue:$.buttonName,onClickTrigger:Z=>ce($),loading:c.value},null,8,["modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)]))),256)),e.unref(q)!==""&&((n=e.unref(E))==null?void 0:n[((B=e.unref(E))==null?void 0:B.length)-1])!=="/"?(e.openBlock(),e.createBlock(e.unref(Ce._sfc_main$1),{key:0,class:"calculator-content",onClickTrigger:s,modelValue:"保存"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},v0=Ve._export_sfc(m0,[["__scopeId","data-v-664b6566"]]),y0={};function g0(u,d){return" 567 "}const b0=Ve._export_sfc(y0,[["render",g0]]),D0={class:"module content"},k0={class:"module data"},w0={class:"module layout"},C0={class:"form-content"},_0=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=e.reactive({visible:!1,width:"40%",title:"签名配置"}),S=e.ref("create"),P=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}]),H=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({}),E=e.ref([]),ee=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:E.value},{key:"signConfig",contents:q.value}]}),L=s=>{var v;q.value=l.cloneDeep(s),o("change",(v=ee())==null?void 0:v.compData)},M=s=>{var v,U;if((s==null?void 0:s.buttonName)==="确认"){const r=l.cloneDeep(s==null?void 0:s.content);switch(S.value){case"create":E.value.push({...r,index:((v=E.value)==null?void 0:v.length)+1});break}o("change",(U=ee())==null?void 0:U.compData),c.visible=!1}else c.visible=!1},R=(s,v)=>{var U,r;switch(s){case"create":(U=H.value)==null||U.forEach(y=>{y.value=""}),S.value="create",c.visible=!0;break;case"update":(r=H.value)==null||r.forEach(y=>{y.value=v[y==null?void 0:y.prop]}),S.value="update",c.visible=!0;break;case"delete":E.value.splice(v,1),S.value="delete";break}},Y=()=>{c.visible=!1};return e.watch(()=>t==null?void 0:t.itemContents,s=>{var v,U;s&&(q.value=((v=s==null?void 0:s.find(r=>r.key==="signConfig"))==null?void 0:v.contents)??{},E.value=((U=s==null?void 0:s.find(r=>r.key==="signTypeList"))==null?void 0:U.contents)??[])},{immediate:!0}),(s,v)=>{const U=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",D0,[v[2]||(v[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(r,{class:"module-icon",id:"themeButton",onClick:v[0]||(v[0]=y=>R("create"))},{icon:e.withCtx(()=>[e.createVNode(U,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[v[1]||(v[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",k0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.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(r,{type:"primary",size:"small",onClick:x=>R("update",{...y,index:k+1})},{default:e.withCtx(()=>v[3]||(v[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(r,{type:"danger",size:"small",onClick:x=>R("delete",k)},{default:e.withCtx(()=>v[4]||(v[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",w0,[e.createVNode(Ce.ssForm,{rowContents:m.value,onChange:L},null,8,["rowContents"])])]),e.createVNode(Ce.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:Y,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",C0,[(e.openBlock(),e.createBlock(Ce.ssForm,{rowContents:H.value,key:H.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:P.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),A0=Ve._export_sfc(_0,[["__scopeId","data-v-487e0536"]]),x0=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(u,{emit:d}){const t=u,o=d,c=e.ref(1),S=e.computed(()=>{var ee,L;return(ee=t==null?void 0:t.stepConfig)!=null&&ee.allowTrigger?c.value:(L=t==null?void 0:t.stepConfig)==null?void 0:L.active}),P=(ee,L)=>{c.value=L,o("clickStep",ee,L)},m=ee=>Ce.getComponent(ee),H=()=>{var L;const ee=(L=t==null?void 0:t.stepList)==null?void 0:L.find((M,R)=>R+1===S.value);return console.log("findStep",ee),ee?ee==null?void 0:ee.children:[]},q=ee=>{o("clickTrigger",ee)},E=ee=>{o("changeTrigger",ee)};return(ee,L)=>{var Y,s,v,U,r;const M=e.resolveComponent("el-step"),R=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(R,{direction:(Y=u.stepConfig)==null?void 0:Y.direction,active:S.value,"finish-status":"success",simple:(s=u.stepConfig)==null?void 0:s.simple,"align-center":((v=u.stepConfig)==null?void 0:v.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.stepList,(y,k)=>(e.openBlock(),e.createBlock(M,{key:k,class:"step-item",onClick:x=>P(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"]),(U=u.stepConfig)!=null&&U.allowTrigger&&((r=u.stepConfig)!=null&&r.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H(),(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:E,content:y==null?void 0:y.content},e.createSlots({_:2},[e.renderList(ee.$slots,(x,ce)=>({name:ce,fn:e.withCtx(de=>[e.renderSlot(ee.$slots,ce,e.mergeProps({ref_for:!0},de||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),B0=Ve._export_sfc(x0,[["__scopeId","data-v-d7c99969"]]),V0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(u,{emit:d}){const t=u,o=d,c=e.ref({}),S=e.ref([]),P=(m,H)=>{o("clickStep",m,H)};return e.watch(()=>t==null?void 0:t.itemData,m=>{var H,q;S.value=(H=m==null?void 0:m.find(E=>(E==null?void 0:E.key)==="stepList"))==null?void 0:H.contents,c.value=(q=m==null?void 0:m.find(E=>(E==null?void 0:E.key)==="stepConfig"))==null?void 0:q.contents},{immediate:!0}),(m,H)=>{const q=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(B0,{stepConfig:c.value,stepList:S.value,onClickStep:P},{icon:e.withCtx(()=>[e.createVNode(q,{name:"import"})]),title:e.withCtx(({title:E})=>[e.createTextVNode(e.toDisplayString(E),1)]),description:e.withCtx(({description:E})=>[e.createTextVNode(e.toDisplayString(E),1)]),_:1},8,["stepConfig","stepList"])}}}),E0=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(u){return(d,t)=>{const o=e.resolveComponent("el-timeline-item"),c=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(c,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.activities,(S,P)=>(e.openBlock(),e.createBlock(o,{key:P,timestamp:S.timestamp,placement:u.timeLineConfig.placement,center:u.timeLineConfig.isCenter,"hide-timestamp":!0,type:u.timeLineConfig.type,color:u.timeLineConfig.color,size:u.timeLineConfig.size,icon:u.timeLineConfig.icon,hollow:u.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content",{content:S==null?void 0:S.content,timestamp:S==null?void 0:S.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),M0=Ve._export_sfc(E0,[["__scopeId","data-v-4172a886"]]),z0={class:"line-content"},F0={class:"line-time"},N0=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(u){const d=u,t=e.ref({}),o=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,c=>{var S,P;o.value=(S=c==null?void 0:c.find(m=>(m==null?void 0:m.key)==="timeLineList"))==null?void 0:S.contents,t.value=(P=c==null?void 0:c.find(m=>(m==null?void 0:m.key)==="timeLineConfig"))==null?void 0:P.contents},{immediate:!0}),(c,S)=>(e.openBlock(),e.createBlock(M0,{activities:o.value,timeLineConfig:t.value},{content:e.withCtx(({content:P,timestamp:m})=>[e.createElementVNode("span",z0,e.toDisplayString(P),1),e.createElementVNode("span",F0,e.toDisplayString(m),1)]),_:1},8,["activities","timeLineConfig"]))}}),S0=Ve._export_sfc(N0,[["__scopeId","data-v-b4d9deed"]]),T0={class:"tabs-content"},I0={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},setup(u){const d=u,t=e.ref([]);return e.watch(()=>d==null?void 0:d.itemData,o=>{const c=o.find(S=>(S==null?void 0:S.key)=="stepList");c&&(t.value=c.contents.map(S=>({value:S.value||S.title,label:S.label||S.title,children:S.children||[]})))},{immediate:!0,deep:!0}),(o,c)=>(e.openBlock(),e.createElementBlock("div",T0,[e.createVNode(Ce.ssTab,{tabsContents:t.value},null,8,["tabsContents"])]))}},L0=Ve._export_sfc(I0,[["__scopeId","data-v-d3bb10b7"]]),Vl=l.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[]}),actions:{setItemData(u){this.itemData=u},setCurStructureCompIds(u){this.curStructureCompIds=u},setRefreshCurStructure(u){this.isRefreshCurStructure=u},setOriginalData(u){this.originalData=u},setExtraContents(u){this.extraContents=u},setNodeDev(u){this.nodeDev=u},setIsEdit(u){this.isEdit=u}}}),$0={class:"type-select"},P0=["onClick"],R0={class:"list-icon"},O0={__name:"modelSelect",setup(u){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=c=>{const S=l.cloneDeep(t.value);S.push({comp:c.comp,name:c.name,compData:[]}),d.setItemData(S)};return(c,S)=>{const P=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y2),(m,H)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:H},[e.createElementVNode("div",{class:"list-content",onClick:q=>o(m)},[e.createElementVNode("div",R0,[e.createVNode(P,{name:m.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(m.name),1)],8,P0)]))),128))])}}},H0=Ve._export_sfc(O0,[["__scopeId","data-v-91799bf8"]]),U0={class:"fill-content"},j0={class:"operate-content"},J0={class:"collapse-title-content"},K0={class:"collapse-title-item"},G0={key:1},W0=["onClick"],q0={class:"icon-content"},X0={key:0,class:"edit-content"},Y0=["onClick"],Z0={class:"comp-child"},Q0={__name:"modelFill",setup(u){const d=Vl(l.pinia),{itemData:t,originalData:o}=l.storeToRefs(d),c=e.ref([]);e.ref([]);const S=e.ref([]),P=e.ref([]),m=M=>{var Y;let R=(Y=l.cloneDeep(P.value))==null?void 0:Y.map((s,v)=>(M===v&&(s.content=!0),s));P.value=R},H=M=>{var Y;let R=(Y=l.cloneDeep(P.value))==null?void 0:Y.map((s,v)=>(M===v&&(s.content=!1),s));P.value=R,c.value=l.cloneDeep(t.value)},q=(M,R)=>{var U;let Y=(U=l.cloneDeep(P.value))==null?void 0:U.map((r,y)=>(M===y&&(r.content=!1),r));P.value=Y;const s=l.cloneDeep(t.value),v=s==null?void 0:s.filter((r,y)=>(y===M&&(r.name=R),r));d.setOriginalData(v),d.setItemData(v)};e.watch(()=>t.value,()=>{var M,R,Y;!t.value||((M=t.value)==null?void 0:M.length)===0?c.value=[]:c.value=(R=l.cloneDeep(t.value))==null?void 0:R.filter(s=>(s==null?void 0:s.comp)!=="methodButton"),S.value=c.value,P.value=(Y=l.cloneDeep(S.value))==null?void 0:Y.map((s,v)=>({id:v,content:!1}))},{deep:!0,immediate:!0});const E=M=>El(M),ee=(M,R,Y)=>{var v,U;if(!M)return;let s=l.cloneDeep(t.value);s=(v=s==null?void 0:s.map((r,y)=>(y===Y&&(r.compData=M),r)))==null?void 0:v.filter(r=>(r==null?void 0:r.comp)!=="methodButton"),P.value=(U=l.cloneDeep(s))==null?void 0:U.map((r,y)=>({id:y,content:!1})),d.setOriginalData(s),d.setItemData(s)},L=M=>{Xe.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const R=l.cloneDeep(t.value),Y=R==null?void 0:R.filter((s,v)=>v!==M);d.setOriginalData(Y),d.setItemData(Y),l.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,R)=>{const Y=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",U0,[R[1]||(R[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j0,[e.createVNode(D2.default,{class:"collapse-content",collapseContents:c.value},{title:e.withCtx(({item:s,index:v})=>{var U,r,y,k,x,ce,de,O,X,K;return[e.createElementVNode("div",J0,[e.createElementVNode("div",K0,[(r=(U=P.value)==null?void 0:U.find(B=>B.id===v))!=null&&r.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=P.value)==null?void 0:y.find(B=>B.id===v))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",G0,[e.createVNode(Ce._sfc_main$2,{modelValue:s.name,"onUpdate:modelValue":B=>s.name=B,onClick:R[0]||(R[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(ce=(x=P.value)==null?void 0:x.find(B=>B.id===v))!=null&&ce.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,W0))]),e.createElementVNode("div",q0,[(O=(de=P.value)==null?void 0:de.find(B=>B.id===v))!=null&&O.content?(e.openBlock(),e.createElementBlock("div",X0,[e.createVNode(Y,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(B=>H(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),(K=(X=P.value)==null?void 0:X.find(B=>B.id===v))!=null&&K.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,Y0))])])]}),content:e.withCtx(({item:s,index:v})=>{var U,r;return[e.createElementVNode("div",Z0,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(s.comp+"Operate")),{itemContents:s==null?void 0:s.compData,originalItemContents:(r=(U=S.value)==null?void 0:U.find((y,k)=>k===v))==null?void 0:r.compData,onChange:y=>ee(y,s,v)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},eo=Ve._export_sfc(Q0,[["__scopeId","data-v-78d7fc46"]]),lo={key:0,class:"show-content"},ao={style:{display:"flex"}},oo={__name:"modelShow",setup(u){const d=Vl(l.pinia),{itemData:t}=l.storeToRefs(d),o=e.ref([]);e.watch(()=>t.value,()=>{var S;!t.value||((S=t.value)==null?void 0:S.length)===0?o.value=[]:o.value=l.cloneDeep(t.value)},{deep:!0,immediate:!0});const c=S=>El(S);return(S,P)=>{var m;return((m=o.value)==null?void 0:m.length)>0?(e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(H,q)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:q},[e.createElementVNode("div",ao,e.toDisplayString(H.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(H.comp)),{itemData:H==null?void 0:H.compData,childItemData:H==null?void 0:H.itemChildData,key:q},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},to=Ve._export_sfc(oo,[["__scopeId","data-v-3f3e863e"]]),no={class:"tabs-header"},so={class:"tabs-list"},io={class:"tab-name"},co={class:"tab-actions"},ro=["onClick"],uo=["onClick"],po=["onClick"],ho={class:"model-operate"},fo={class:"model-select",style:{display:"unset"}},mo={class:"existing-components"},vo={class:"component-list"},yo=["onClick"],go={class:"component-info"},bo={class:"component-type"},Do={class:"component-name"},ko={class:"model-fill"},wo={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(u,{emit:d}){const t=u,o=d,c=e.ref([]),S=e.ref(!1),P=e.ref(""),m=e.ref({title:""}),H=e.ref(-1),q=e.ref(!1),E=e.ref(-1),ee=e.ref(new Map),L=e.ref(null),M=Vl(l.pinia),{itemData:R}=l.storeToRefs(M),Y=()=>{P.value="新增标签页",m.value.title="",H.value=-1,S.value=!0},s=h=>{P.value="修改标签页",m.value.title=c.value[h].title,H.value=h,S.value=!0},v=h=>{const T=y(h);ee.value.delete(T),c.value.splice(h,1),he()},U=()=>{if(m.value.title.trim()){if(H.value===-1){const h={title:m.value.title,value:m.value.title,label:m.value.title,children:[],id:r()};c.value.push(h)}else c.value[H.value].title=m.value.title,c.value[H.value].value=m.value.title,c.value[H.value].label=m.value.title;S.value=!1,he()}},r=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,y=h=>{const T=c.value[h];return T.id||(T.id=r()),T.id},k=h=>{var b;E.value=h;const T=y(h);L.value=l.cloneDeep(R.value);let D=ee.value.get(T);!D&&((b=c.value[h].children)==null?void 0:b.length)>0&&(D=O(c.value[h].children)),D?M.setItemData(l.cloneDeep(D)):M.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"&&E.value>=0){const z=y(E.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})}),ce=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=r()})}));const b=l.cloneDeep(R.value);b.push(D),M.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:K(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},K=h=>[],B=()=>{if(E.value>=0&&E.value<c.value.length){const h=y(E.value);ee.value.set(h,l.cloneDeep(R.value)),c.value[E.value].children=Z(R.value),console.log("保存后的数据",Z(R.value))}q.value=!1,E.value=-1,L.value=null,he()},n=()=>{L.value&&M.setItemData(l.cloneDeep(L.value)),q.value=!1,E.value=-1,L.value=null},$=()=>{q.value&&n()},Z=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:c.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&&(c.value=T.contents.map(D=>({title:D.title||"",value:D.value||D.title||"",label:D.label||D.title||"",children:D.children||[],id:D.id||r()})))}},{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",no,[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",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(F,j)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:j},[e.createElementVNode("span",io,e.toDisplayString(F.title),1),e.createElementVNode("div",co,[e.createElementVNode("button",{onClick:I=>s(j)},"修改标题",8,ro),e.createElementVNode("button",{onClick:I=>k(j)},"布局调整",8,uo),e.createElementVNode("button",{onClick:I=>v(j)},"删除",8,po)])]))),128))]),e.createVNode(Ce.ssDialog,{modelValue:S.value,"onUpdate:modelValue":T[2]||(T[2]=F=>S.value=F),title:P.value,onBeforeDestroy:T[3]||(T[3]=F=>S.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:T[1]||(T[1]=F=>S.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:U},"确定")]),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:$},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:n},"取消"),e.createElementVNode("button",{onClick:B},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",ho,[e.createElementVNode("div",fo,[e.createVNode(H0),e.createElementVNode("div",mo,[T[8]||(T[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",vo,[(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",go,[e.createElementVNode("span",bo,e.toDisplayString(ce(F.comp)),1),e.createElementVNode("span",Do,e.toDisplayString(F.name),1)]),T[7]||(T[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,yo))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:h.innerWidth},[e.createVNode(to)])),e.createElementVNode("div",ko,[e.createVNode(eo)])])]),_:1},8,["modelValue"])])}}},Co=Ve._export_sfc(wo,[["__scopeId","data-v-151936e8"]]),y2=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"}]),_o={TABLE:W.ssTable,FORM:s2,TABLEOPERATE:k1,FORMOPERATE:i2,FOLD:Y1,CALCULATOR:o0,METHODBUTTON:v0,AVATARUPLOAD:o2.ssAvatar,SIGNATURE:o2.ssSignature,FORMTOP:s2,STEP:V0,STEPOPERATE:H1,TIMELINE:S0,TIMELINEOPERATE:W1,FORMTOPOPERATE:i2,SIGNATUREOPERATE:A0,AVATARUPLOADOPERATE:b0,TABS:L0,TABSOPERATE:Co};function El(u){return _o[u==null?void 0:u.toUpperCase()]||null}exports.contentTransArrayToAll=Al;exports.getComponent=El;exports.getMultiple=p0;exports.getSingleTableToForm=xl;exports.onSaveBack=v2;exports.slotContent=y2;
|