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