1import{n as c,r as o,o as d,e as v,f as m}from"./_vue-CxOkXDlx.js";const _={__name:"Tooltip",setup(f){const n=o(null),s=o(null),e=o(!1),t=o(null),i=o("top");function u(){e.value=!0,t.value&&(t.value.setOptions(a=>({...a,modifiers:[...a.modifiers,{name:"eventListeners",enabled:!0}]})),t.value.update())}function l(){e.value=!1,t.value&&t.value.setOptions(a=>({...a,modifiers:[...a.modifiers,{name:"eventListeners",enabled:!1}]}))}function p(){e.value?l():u()}function r(a){n.value.contains(a.target)||l()}return d(()=>{n.value&&s.value&&(t.value=v(n.value,s.value,{placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn({state:a}){i.value=a.placement}}]})),document.addEventListener("click",r)}),m(()=>{t.value&&(t.value.destroy(),t.value=null),document.removeEventListener("click",r)}),{__sfc:!0,triggerRef:n,tooltipRef:s,visible:e,popperInstance:t,placement:i,show:u,hide:l,toggle:p,hideOnClickOutside:r}}};var h=function(){var n=this,s=n._self._c,e=n._self._setupProxy;return s("span",{ref:"triggerRef",staticClass:"inline-flex relative",on:{mouseenter:e.show,mouseleave:e.hide,focus:e.show,blur:e.hide,touchstart:function(t){return t.preventDefault(),e.toggle.apply(null,arguments)}}},[n._t("default"),s("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"tooltipRef",staticClass:"z-50 absolute bg-white px-3 py-2 border border-orange-500 rounded rounded-md w-56 sm:w-72 text-orange-500 text-sm text-center",attrs:{role:"tooltip","data-show":e.visible?"":null,"data-popper-placement":e.placement}},[n._t("popper")],2)],2)},g=[],b=c(_,h,g,!1,null,"8d4812d7");const x=b.exports;export{x as default}; 2//# sourceMappingURL=Tooltip-DpP8aW1f.js.map
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.