import * as React from "react";
import y from "../../../../../../../../../_virtual/index12.js";
import { Text as p } from "./text.js";
import { Theme as R } from "./theme.js";
import { extractProps as v } from "../helpers/extract-props.js";
import { tooltipPropDefs as e$1 } from "./tooltip.props.js";
import { Root as Root3, Trigger, Portal, Content as Content2, Arrow as Arrow2 } from "../../../../../../../@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.1.9_@types_react@19.1.13__@types_reac_62a80c6048854e63529d68dc72b9daca/node_modules/@radix-ui/react-tooltip/dist/index.js";
const e = React.forwardRef((i, p$1) => {
  const { children: r, className: n, open: s, defaultOpen: l, onOpenChange: m, delayDuration: a, disableHoverableContent: f, content: P, container: T, forceMount: c, ...d } = v(i, e$1), C = { open: s, defaultOpen: l, onOpenChange: m, delayDuration: a, disableHoverableContent: f };
  return React.createElement(Root3, { ...C }, React.createElement(Trigger, { asChild: true }, r), React.createElement(Portal, { container: T, forceMount: c }, React.createElement(R, { asChild: true }, React.createElement(Content2, { sideOffset: 4, collisionPadding: 10, ...d, asChild: false, ref: p$1, className: y("rt-TooltipContent", n) }, React.createElement(p, { as: "p", className: "rt-TooltipText", size: "1" }, P), React.createElement(Arrow2, { className: "rt-TooltipArrow" })))));
});
e.displayName = "Tooltip";
export {
  e as Tooltip
};
//# sourceMappingURL=tooltip.js.map
