import{u as i,f as l,h as d,j as p}from"./vue-flow-core-379fe11a.js";import{c,e as m,h as s,j as t,w as _,F as f,n as g,f as u,G as y}from"./index-a0da86f0.js";const b={inheritAttrs:!1},E=Object.assign(b,{__name:"CustomEdge",props:{id:{type:String,required:!0},sourceX:{type:Number,required:!0},sourceY:{type:Number,required:!0},targetX:{type:Number,required:!0},targetY:{type:Number,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},data:{type:Object,required:!1},markerEnd:{type:String,required:!1},style:{type:Object,required:!1}},setup(r){const n=r,{removeEdges:o}=i(),e=c(()=>p(n));return(q,a)=>(g(),m(f,null,[s(t(l),{path:e.value[0]},null,8,["path"]),s(t(d),null,{default:_(()=>[u("div",{style:y({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${e.value[1]}px,${e.value[2]}px)`}),class:"nodrag nopan"},[u("button",{class:"edgebutton",onClick:a[0]||(a[0]=v=>t(o)(r.id))},"×")],4)]),_:1})],64))}});export{E as default};
