"use client";

// src/components/ui/popover.tsx
import { Popover as PopoverPrimitive } from "radix-ui";

// src/lib/utils.ts
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
function cn(...inputs) {
  return twMerge(clsx(inputs));
}

// src/components/ui/popover.tsx
import { jsx } from "react/jsx-runtime";
function Popover({ ...props }) {
  return /* @__PURE__ */ jsx(PopoverPrimitive.Root, { ...props });
}
function PopoverTrigger({ className, ...props }) {
  return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { className: cn("cursor-pointer", className), ...props });
}
function PopoverAnchor({ ...props }) {
  return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, { ...props });
}
function PopoverContent({
  className,
  align = "start",
  sideOffset = 4,
  ...props
}) {
  return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
    PopoverPrimitive.Content,
    {
      "data-slot": "popover-content",
      align,
      sideOffset,
      className: cn(
        "z-50 rounded-lg border border-border bg-popover shadow-md outline-none",
        "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=top]:slide-in-from-bottom-2",
        "data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2",
        className
      ),
      ...props
    }
  ) });
}
export {
  Popover,
  PopoverAnchor,
  PopoverContent,
  PopoverTrigger
};
//# sourceMappingURL=popover.js.map