import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx } from "react/jsx-runtime";
import * as PopoverPrimitive from "@radix-ui/react-popover";
function Popover(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(PopoverPrimitive.Root, {
		"data-slot": "popover",
		...a
	}), i[2] = a, i[3] = o), o;
}
function PopoverTrigger(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(PopoverPrimitive.Trigger, {
		"data-slot": "popover-trigger",
		...a
	}), i[2] = a, i[3] = o), o;
}
function PopoverContent(i) {
	let a = c(12), o, s, l, u;
	a[0] === i ? (o = a[1], s = a[2], l = a[3], u = a[4]) : ({className: o, align: l, sideOffset: u, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = l, a[4] = u);
	let d = l === void 0 ? "center" : l, f = u === void 0 ? 4 : u, p;
	a[5] === o ? p = a[6] : (p = cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", o), a[5] = o, a[6] = p);
	let m;
	return a[7] !== d || a[8] !== s || a[9] !== f || a[10] !== p ? (m = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
		"data-slot": "popover-content",
		align: d,
		sideOffset: f,
		className: p,
		...s
	}) }), a[7] = d, a[8] = s, a[9] = f, a[10] = p, a[11] = m) : m = a[11], m;
}
function PopoverAnchor(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(PopoverPrimitive.Anchor, {
		"data-slot": "popover-anchor",
		...a
	}), i[2] = a, i[3] = o), o;
}
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
