import{d as p,t as v,r as l,o as a,c as o,b as e,e as m,w as y,f,a as g,g as r,T as x}from"./index.DXvi0yH9.js";const k={key:0,class:"stw-tooltip"},h={key:0,class:"stwlite-tw-absolute stwlite-tw-left-1/2 stwlite-tw-w-60 stwlite-tw-z-10 stwlite-tw-mt-2 stwlite-tw--translate-x-1/2 stwlite-tw-transform stwlite-tw-rounded-lg stwlite-tw-bg-gray-800 stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-text-sm stwlite-tw-text-white stwlite-tw-shadow-lg"},T=p({__name:"Tooltip",props:{params:{type:Object,required:!0}},setup(n){const c=n,{params:u}=v(c),w=u.value,i=l(w.desc_tip?w.desc_tip:""),s=l(!1);return(b,t)=>i.value!==""?(a(),o("div",k,[e("div",{class:"stwlite-tw-relative stwlite-tw-inline-block",onMouseenter:t[0]||(t[0]=d=>s.value=!0),onMouseleave:t[1]||(t[1]=d=>s.value=!1)},[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-circle-question-mark-icon lucide-circle-question-mark stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-0"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e("path",{d:"M12 17h.01"})],-1)),m(x,{enter:"stwlite-tw-transition stwlite-tw-ease-out stwlite-tw-duration-150","enter-from":"stwlite-tw-opacity-0 stwlite-tw-translate-y-1","enter-to":"stwlite-tw-opacity-100 stwlite-tw-translate-y-0",leave:"stwlite-tw-transition stwlite-tw-ease-in stwlite-tw-duration-100","leave-from":"stwlite-tw-opacity-100 stwlite-tw-translate-y-0","leave-to":"stwlite-tw-opacity-0 stwlite-tw-translate-y-1"},{default:y(()=>[s.value?(a(),o("div",h,[f(g(i.value)+" ",1),t[2]||(t[2]=e("div",{class:"stwlite-tw-absolute stwlite-tw--top-1 stwlite-tw-left-1/2 stwlite-tw-h-2 stwlite-tw-w-2 stwlite-tw--translate-x-1/2 stwlite-tw-rotate-45 stwlite-tw-bg-gray-800"},null,-1))])):r("",!0)]),_:1})],32)])):r("",!0)}});export{T as _};
