import * as e from "react";
import c from "../../../../../../../../../_virtual/index9.js";
import { Root as i, Trigger as l, Portal as f, Content as p, Close as d, Anchor as C } from "../../../../../../../@radix-ui_react-popover@1.1.1_@types_react-dom@18.3.6_@types_react@18.3.3__@types_react_6b4ff5d6cfe094e5abd0a13f5634a4e4/node_modules/@radix-ui/react-popover/dist/index.js";
import { extractProps as P } from "../helpers/extract-props.js";
import { requireReactElement as a } from "../helpers/require-react-element.js";
import { popoverContentPropDefs as h } from "./popover.props.js";
import { Theme as R } from "./theme.js";
const v = (r) => e.createElement(i, { ...r });
v.displayName = "Popover.Root";
const g = e.forwardRef(({ children: r, ...o }, t) => e.createElement(l, { ...o, ref: t, asChild: !0 }, a(r)));
g.displayName = "Popover.Trigger";
const E = e.forwardRef((r, o) => {
  const { className: t, forceMount: n, container: s, ...m } = P(r, h);
  return e.createElement(f, { container: s, forceMount: n }, e.createElement(R, { asChild: !0 }, e.createElement(p, { align: "start", sideOffset: 8, collisionPadding: 10, ...m, ref: o, className: c("rt-PopperContent", "rt-PopoverContent", t) })));
});
E.displayName = "Popover.Content";
const u = e.forwardRef(({ children: r, ...o }, t) => e.createElement(d, { ...o, ref: t, asChild: !0 }, a(r)));
u.displayName = "Popover.Close";
const N = e.forwardRef(({ children: r, ...o }, t) => e.createElement(C, { ...o, ref: t }));
N.displayName = "Popover.Anchor";
export {
  N as Anchor,
  u as Close,
  E as Content,
  v as Root,
  g as Trigger
};
//# sourceMappingURL=popover.js.map
