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