import { jsx as n } from "react/jsx-runtime";
import { u as i, e as o } from "./provider.js";
import { Q as a } from "./index2.js";
import { useEffect as c } from "react";
const r = (t) => {
  const e = t.target;
  e instanceof Element && e.getAttribute("data-a") === "intr" && o.emit("interactions", {
    action: "tap",
    payload: {}
  });
}, d = () => {
  const t = i();
  return c(() => (document == null || document.addEventListener("click", r), () => {
    document == null || document.removeEventListener("click", r);
  }), []), t ? /* @__PURE__ */ n(a, { sdk: t }) : null;
};
export {
  d as BetPackProvider
};
