import * as e from "react";
import { y as C } from "./index.D1n9HtNk.js";
import { p as T } from "./text.C0pIfwOf.js";
import { h as E, T as N, i as g, R as w, j as x, k as y } from "./theme.BwnlJUJD.js";
import { t, v as O } from "./radius.prop.CaJVv35S.js";
const R = { content: { type: "ReactNode", required: !0 }, width: t.width, minWidth: t.minWidth, maxWidth: { ...t.maxWidth, default: "360px" } }, b = e.forwardRef((a, o) => {
  const { children: r, className: n, open: i, defaultOpen: l, onOpenChange: s, delayDuration: m, disableHoverableContent: c, content: d, container: p, forceMount: f, ...h } = O(a, R), u = { open: i, defaultOpen: l, onOpenChange: s, delayDuration: m, disableHoverableContent: c };
  return e.createElement(E, { ...u }, e.createElement(N, { asChild: !0 }, r), e.createElement(g, { container: p, forceMount: f }, e.createElement(w, { asChild: !0 }, e.createElement(x, { sideOffset: 4, collisionPadding: 10, ...h, asChild: !1, ref: o, className: C("rt-TooltipContent", n) }, e.createElement(T, { as: "p", className: "rt-TooltipText", size: "1" }, d), e.createElement(y, { className: "rt-TooltipArrow" })))));
});
b.displayName = "Tooltip";
export {
  b as e
};
