import{placements as p}from"../vc-tooltip/src/placements.mjs";const a={adjustX:1,adjustY:1},i={adjustX:0,adjustY:0},b=[0,0];function c(o){return typeof o=="boolean"?o?a:i:{...i,...o}}function h(o){const{arrowWidth:t=4,horizontalArrowShift:f=16,verticalArrowShift:s=8,autoAdjustOverflow:n,arrowPointAtCenter:l}=o,e={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(f+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+t)]},topRight:{points:["br","tc"],offset:[f+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+t)]},bottomRight:{points:["tr","bc"],offset:[f+t,4]},rightBottom:{points:["bl","cr"],offset:[4,s+t]},bottomLeft:{points:["tl","bc"],offset:[-(f+t),4]},leftBottom:{points:["br","cl"],offset:[-4,s+t]}};return Object.keys(e).forEach(r=>{e[r]=l?{...e[r],overflow:c(n),targetOffset:b}:{...p[r],overflow:c(n)},e[r].ignoreShake=!0}),e}export{h as default,c as getOverflowOptions};
