import { h as e } from "./chunk.BlbRoQQ3.js";
import { aj as t } from "./system.DbMQd1I1.js";
import { c as n, d as r, e as i, f as a, g as o, h as s } from "./theme.HtT_2QlC.js";
import { b as c, d as l, n as u } from "./text.CvSXsyI-.js";
import * as d from "react";
const f = {
	content: {
		type: "ReactNode",
		required: !0
	},
	width: u.width,
	minWidth: u.minWidth,
	maxWidth: {
		...u.maxWidth,
		default: "360px"
	}
};
var p = /* @__PURE__ */ e(t());
const m = d.forwardRef((e, t) => {
	let { children: u, className: m, open: h, defaultOpen: g, onOpenChange: _, delayDuration: v, disableHoverableContent: y, content: b, container: x, forceMount: S,...C } = l(e, f), w = {
		open: h,
		defaultOpen: g,
		onOpenChange: _,
		delayDuration: v,
		disableHoverableContent: y
	};
	return d.createElement(o, { ...w }, d.createElement(s, { asChild: !0 }, u), d.createElement(a, {
		container: x,
		forceMount: S
	}, d.createElement(n, { asChild: !0 }, d.createElement(i, {
		sideOffset: 4,
		collisionPadding: 10,
		...C,
		asChild: !1,
		ref: t,
		className: (0, p.default)("rt-TooltipContent", m)
	}, d.createElement(c, {
		as: "p",
		className: "rt-TooltipText",
		size: "1"
	}, b), d.createElement(r, { className: "rt-TooltipArrow" })))));
});
m.displayName = "Tooltip";
export { m as b };

//# sourceMappingURL=tooltip.D4rQGwev.js.map