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