import * as n from "react";
import * as p from "react-dom";
import { Slot as f } from "../../../../../@radix-ui_react-slot@1.1.0_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/@radix-ui/react-slot/dist/index.js";
import { j as u } from "../../../../../../../_virtual/jsx-runtime.js";
var c = [
  "a",
  "button",
  "div",
  "form",
  "h2",
  "h3",
  "img",
  "input",
  "label",
  "li",
  "nav",
  "ol",
  "p",
  "span",
  "svg",
  "ul"
], v = c.reduce((r, i) => {
  const t = n.forwardRef((o, e) => {
    const { asChild: s, ...m } = o, a = s ? f : i;
    return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(a, { ...m, ref: e });
  });
  return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
}, {});
function h(r, i) {
  r && p.flushSync(() => r.dispatchEvent(i));
}
export {
  v as Primitive,
  h as dispatchDiscreteCustomEvent
};
//# sourceMappingURL=index.js.map
