import{u as i,_ as l,a as d,g as p}from"./vue-flow-core-CsxnVOkM.js";import{g as c,A as m,B as s,j as t,C as g,J as u,G as f,K as y,c as _}from"./index-DOFLUERq.js";const b={inheritAttrs:!1},x=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=_(()=>p(n));return(q,a)=>(c(),m(y,null,[s(t(l),{path:e.value[0]},null,8,["path"]),s(t(d),null,{default:g(()=>[u("div",{style:f({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{x as default};
