import e from "./Menu.js";
import { h as t, render as n } from "vue";
function r(r, i) {
	r.preventDefault();
	let a = () => {
		n(null, document.body);
	}, o = t(e, {
		options: i,
		onClose: () => {
			a();
		}
	});
	n(o, document.body);
	let s = o.el;
	return s.style.top = r.clientY + "px", s.style.left = r.clientX + "px", document.addEventListener("click", (e) => {
		s.contains(e.target) || a();
	}), a;
}
export { r as showContextMenu };

//# sourceMappingURL=index.js.map