import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
function TooltipProvider(e) {
	let i = c(6), a, o;
	i[0] === e ? (a = i[1], o = i[2]) : ({delayDuration: o, ...a} = e, i[0] = e, i[1] = a, i[2] = o);
	let s = o === void 0 ? 0 : o, l;
	return i[3] !== s || i[4] !== a ? (l = /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
		"data-slot": "tooltip-provider",
		delayDuration: s,
		...a
	}), i[3] = s, i[4] = a, i[5] = l) : l = i[5], l;
}
function Tooltip(e) {
	let i = c(4), o;
	i[0] === e ? o = i[1] : ({...o} = e, i[0] = e, i[1] = o);
	let s;
	return i[2] === o ? s = i[3] : (s = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
		"data-slot": "tooltip",
		...o
	}) }), i[2] = o, i[3] = s), s;
}
function TooltipTrigger(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
		"data-slot": "tooltip-trigger",
		...a
	}), i[2] = a, i[3] = o), o;
}
function TooltipContent(a) {
	let o = c(13), s, l, u, d;
	o[0] === a ? (s = o[1], l = o[2], u = o[3], d = o[4]) : ({className: l, sideOffset: d, children: s, ...u} = a, o[0] = a, o[1] = s, o[2] = l, o[3] = u, o[4] = d);
	let f = d === void 0 ? 0 : d, p;
	o[5] === l ? p = o[6] : (p = cn("bg-foreground text-background 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 origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", l), o[5] = l, o[6] = p);
	let m;
	o[7] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" }), o[7] = m) : m = o[7];
	let h;
	return o[8] !== s || o[9] !== u || o[10] !== f || o[11] !== p ? (h = /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
		"data-slot": "tooltip-content",
		sideOffset: f,
		className: p,
		...u,
		children: [s, m]
	}) }), o[8] = s, o[9] = u, o[10] = f, o[11] = p, o[12] = h) : h = o[12], h;
}
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
