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