import { cn as e } from "../../lib/utils.js";
import "react";
import { jsx as t } from "react/jsx-runtime";
import * as n from "@radix-ui/react-popover";
//#region src/components/ui/popover.tsx
function r({ ...e }) {
	return /* @__PURE__ */ t(n.Root, {
		"data-slot": "popover",
		...e
	});
}
function i({ ...e }) {
	return /* @__PURE__ */ t(n.Trigger, {
		"data-slot": "popover-trigger",
		...e
	});
}
function a({ className: r, align: i = "center", sideOffset: a = 4, ...o }) {
	return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.Content, {
		"data-slot": "popover-content",
		align: i,
		sideOffset: a,
		className: e("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", r),
		...o
	}) });
}
function o({ ...e }) {
	return /* @__PURE__ */ t(n.Anchor, {
		"data-slot": "popover-anchor",
		...e
	});
}
//#endregion
export { r as Popover, o as PopoverAnchor, a as PopoverContent, i as PopoverTrigger };
