"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("@radix-ui/react-tooltip"),o=require("../../styles/ScopeTree.module.css.js");function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var i=s(r);exports.TreeTooltip=function(r){var s=r.content,n=r.children,a=r.placement,l=void 0===a?"top":a,c=r.withArrow,d=void 0!==c&&c;return s?t.jsx(i.Provider,{children:t.jsxs(i.Root,e.__assign({delayDuration:100},{children:[t.jsx(i.Trigger,e.__assign({asChild:!0},{children:n})),t.jsx(i.Portal,{children:t.jsxs(i.Content,e.__assign({side:l,sideOffset:4,className:o.default.tooltipContent},{children:[d&&t.jsx("svg",e.__assign({width:8,height:8,viewBox:"0 0 8 8",className:o.default.tooltipArrow,style:{top:{bottom:0,left:"50%",transform:"translate(-50%, 100%)"},bottom:{top:0,left:"50%",transform:"translate(-50%, -100%) rotate(180deg)"},left:{right:0,top:"50%",transform:"translate(100%, -50%) rotate(-90deg)"},right:{left:0,top:"50%",transform:"translate(-100%, -50%) rotate(90deg)"}}[l]},{children:t.jsx("polygon",{points:"0,0 8,0 4,8"})})),s]}))})]}))}):n};
//# sourceMappingURL=TreeTooltip.js.map
