"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../vc-tooltip/src/placements.js"),a={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},u=[0,0];function n(o){return typeof o=="boolean"?o?a:c:{...c,...o}}function b(o){const{arrowWidth:t=4,horizontalArrowShift:s=16,verticalArrowShift:f=8,autoAdjustOverflow:i,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:[-(s+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(f+t)]},topRight:{points:["br","tc"],offset:[s+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(f+t)]},bottomRight:{points:["tr","bc"],offset:[s+t,4]},rightBottom:{points:["bl","cr"],offset:[4,f+t]},bottomLeft:{points:["tl","bc"],offset:[-(s+t),4]},leftBottom:{points:["br","cl"],offset:[-4,f+t]}};return Object.keys(e).forEach(r=>{e[r]=l?{...e[r],overflow:n(i),targetOffset:u}:{...p.placements[r],overflow:n(i)},e[r].ignoreShake=!0}),e}exports.default=b;exports.getOverflowOptions=n;
