import { useEventListener as e } from "./useEventListener.js";
import { flatValue as t } from "../helpers/functions.js";
function n(n, r) {
	e(document, "click", (e) => {
		document.contains(e.target) && (t(n).map((e) => e.value).filter((e) => !!e).some((t) => t?.contains(e.target)) || r());
	});
}
export { n as useClickOutside };

//# sourceMappingURL=useClickOutside.js.map