import{j as t}from"./vendor-react-wBh_31cN.js";import{d as l}from"./index-BKr2rJhV.js";import{b as m,c,d as f,e as p,f as x}from"./vendor-radix-BRyWS4bQ.js";const u=m,g=c,j=f;function T({className:o,sideOffset:s=4,...a}){return t.jsx(p,{children:t.jsx(x,{"data-slot":"tooltip-content",sideOffset:s,className:l("z-50 max-w-xs break-words rounded-md bg-foreground px-3 py-1.5 text-xs text-background shadow-md animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...a})})}function v({children:o,content:s,disabled:a,isDisabled:e,side:i,position:r}){const d=a??e,n=i??r;return d||!s||!o?t.jsx(t.Fragment,{children:o}):t.jsx(u,{children:t.jsxs(g,{children:[t.jsx(j,{asChild:!0,children:o}),t.jsx(T,{side:n,children:s})]})})}const w={right:"right"};export{v as T,u as a,g as b,j as c,T as d,w as e};
