import{_ as I,h as N}from"./index-M_JNBppB.js";/* empty css                 *//* empty css                  */import{D as T}from"./DraggableDrawer-DXecI9B-.js";import{ax as R,r as i,c as v,ag as U,B as u,z as m,D as t,O as l,F as r,K as h,I as j,u as s,M as A,a7 as M,H as y,k as $}from"./vue-BJk78QHK.js";import q from"./FlowLines-Cfxq7o1W.js";import{f as H,L as K,c as O,q as P}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";/* empty css                  *//* empty css                   *//* empty css                        *//* empty css               *//* empty css                    */import"./el-collapse-item-l0sNRNKZ.js";/* empty css                        *//* empty css                     *//* empty css                              *//* empty css                  */const S={class:"w-[100%] h-[100%] relative overflow-hidden"},W={class:"w-[100%] h-[100%] absolute top-0"},G={class:"flex w-[100%] items-center justify-between p-[5px]"},J={class:"flex items-center"},Q={key:0,style:{height:"calc(100% - 50px)"},class:"overflow-auto p-l-[10px] p-r-[10px] w-[100%]"},X=["onClick"],Y=["onClick"],Z={__name:"EditFlowLines",setup(ee){const f=R(),p=i(""),b=i(!1),g=i(""),d=i(""),a=i(!1);v(()=>f.state.model),v(()=>f.state.curComponent.propValue);const n=v(()=>f.state.curComponent.propValue.flowLines);function w(){a.value=!0}function V(){a.value=!1}function z(){b.value=!0}function C(c,e){g.value=e,p.value=c,d.value=p.value}function D(){if(!d.value&&d.value!==0){P.error("请先选择要删除的行");return}const c=d.value;n.value.splice(c,1)}function E(){n.value.push({id:N(),name:"",showTrack:!1,uuid:"",customPath:[{position:{x:0,y:0,z:0}}],options:{color:"blue",arrowColor:"red",speed:.1,arrowLength:.05,lineWidth:1.5,baseAlpha:.4,arrowAlpha:1},timeEnd:!1,time:5e3})}return(c,e)=>{const _=H,L=U("Close"),B=K,F=O;return m(),u("div",null,[t("div",{onClick:w,class:"w-[100%] flex justify-center p-[5px] m-t-[5px] rounded-[6px] cursor-pointer list-img-bg"},[l(_,{type:"primary",link:"",icon:"Edit",style:{"font-size":"14px"},onClick:w},{default:r(()=>e[1]||(e[1]=[h(" 配置流动线条轨迹 ")])),_:1})]),l(T,{title:"配置流动线条轨迹","with-header":!1,modelValue:s(a),"onUpdate:modelValue":e[0]||(e[0]=k=>$(a)?a.value=k:null),modal:!1,"wrapper-closable":!1,direction:"btt","show-close":!1,size:"25%","modal-class":"pointer-none"},{default:r(()=>[t("div",S,[t("div",W,[t("div",G,[t("div",J,[e[4]||(e[4]=t("span",{class:"m-r-[20px] font-size-[16px] font-bold"}," 配置流动线条轨迹 ",-1)),t("div",null,[l(_,{type:"primary",size:"small",onClick:E},{default:r(()=>e[2]||(e[2]=[h(" 添加 ")])),_:1}),l(_,{type:"danger",size:"small",onClick:D},{default:r(()=>e[3]||(e[3]=[h(" 删除 ")])),_:1})])]),l(B,{onClick:V,class:"c-red font-size-[20px] cursor-pointer"},{default:r(()=>[l(L)]),_:1})]),s(n).length>0?(m(),u("div",Q,[t("table",{class:"w-[100%]",onDblclick:z},[t("tbody",null,[e[5]||(e[5]=t("tr",{style:{color:"#66b1ff",height:"40px","font-size":"10px"}},[t("th",{style:{"min-width":"180px"}}," 名称 "),t("th",{style:{"min-width":"120px"}}," 配置 ")],-1)),(m(!0),u(A,null,M(s(n),(k,o)=>(m(),u("tr",{key:o},[t("td",{style:{width:"180px"},class:y({selected:s(p)===o}),onClick:x=>C(o,"")},[l(F,{modelValue:s(n)[o].name,"onUpdate:modelValue":x=>s(n)[o].name=x,style:{width:"100%"},size:"small"},null,8,["modelValue","onUpdate:modelValue"])],10,X),t("td",{style:{width:"160px"},class:y({selected:s(p)===o}),onClick:x=>C(o,"")},[l(q,{transform:s(n)[o],index:o},null,8,["transform","index"])],10,Y)]))),128))])],32)])):j("",!0)])])]),_:1},8,["modelValue"])])}}},ke=I(Z,[["__scopeId","data-v-ac14fd23"]]);export{ke as default};
