import { jsx as o, jsxs as a } from "react/jsx-runtime";
import "react";
import { Provider as n, Root as d, Trigger as l, Portal as s, Content as m, Arrow as p } from "../../node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.8__@types_react_6a1a6d85f83fda9f1628953d2b64e4bf/node_modules/@radix-ui/react-tooltip/dist/index.es.js";
import { cn as f } from "../../utils/tailwindUtil.es.js";
function c({
  delayDuration: t = 0,
  ...r
}) {
  return /* @__PURE__ */ o(
    n,
    {
      "data-slot": "tooltip-provider",
      delayDuration: t,
      ...r
    }
  );
}
function T({
  ...t
}) {
  return /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
    d,
    {
      "data-slot": "tooltip",
      ...t
    }
  ) });
}
function b({
  ...t
}) {
  return /* @__PURE__ */ o(
    l,
    {
      "data-slot": "tooltip-trigger",
      ...t
    }
  );
}
function h({
  className: t,
  sideOffset: r = 0,
  children: i,
  ...e
}) {
  return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ a(
    m,
    {
      "data-slot": "tooltip-content",
      sideOffset: r,
      className: f(
        "bg-primary text-primary-foreground 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 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",
        t
      ),
      ...e,
      children: [
        i,
        /* @__PURE__ */ o(p, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
      ]
    }
  ) });
}
export {
  T as Tooltip,
  h as TooltipContent,
  c as TooltipProvider,
  b as TooltipTrigger
};
//# sourceMappingURL=tooltip.es.js.map
