import"./index-DTC0Ed21.js";function f(e,l,t){const i={...e};return l.top+e.y<=t.top?i.y=t.top-l.top:l.bottom+e.y>=t.top+t.height&&(i.y=t.top+t.height-l.bottom),l.left+e.x<=t.left?i.x=t.left-l.left:l.right+e.x>=t.left+t.width&&(i.x=t.left+t.width-l.right),i}const r=e=>{let{transform:l}=e;return{...l,x:0}},s=e=>{let{transform:l,draggingNodeRect:t,windowRect:i}=e;return!t||!i?l:f(l,t,i)};export{r as a,s as r};
