1import{j as u,k as f,f as g,b as m,e as T,l as y,r as w}from"./vue.esm-bundler-rO0Eg7xt.js";const D={__name:"TooltipComponent",props:{title:{type:String,required:!0}},setup(r){const a=r;function c(o){const t=o.getBoundingClientRect();let l=t.width/2,i=0;for(;o&&!isNaN(t.left)&&!isNaN(t.top);)l=t.left+window.scrollX,i=t.top+window.scrollY,o=o.offsetParent;return{top:i,left:l}}function d(o,t){const l=t.top-o.clientHeight-20,i=t.left-o.clientWidth/2+document.getElementById("tooltip-wrapper").getBoundingClientRect().width/2;let p=0;i>0&&(p=i),o.style.left=p+"px",o.style.top=l+"px",o.style.opacity="1"}function n(o){const t=c(o.target);e.toolTipDialog.innerHTML=a.title,document.body.appendChild(e.toolTipDialog),d(e.toolTipDialog,t)}function s(){document.body.contains(e.toolTipDialog)&&document.body.removeChild(e.toolTipDialog)}const e=w({});return e.toolTipDialog=null,u(function(){e.toolTipDialog=document.createElement("div"),e.toolTipDialog.id="tooltip",e.toolTipDialog.style.opacity="0",e.toolTipDialog.style.position="absolute",e.toolTipDialog.style.maxWidth="260px"}),(o,t)=>{const l=f("click-outside");return g((m(),T("span",{id:"tooltip-wrapper",onMouseenter:t[0]||(t[0]=i=>n(i)),onMouseleave:t[1]||(t[1]=i=>s()),onClick:t[2]||(t[2]=i=>n(i))},[y(o.$slots,"default")],32)),[[l,s]])}}};export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.