import{useEffect as t}from"react";var n=function(n,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[".MuiPopover-root",".MuiDialog-container",".ReactModalPortal"],r=o.filter((function(t){return"string"==typeof t})),i=o.filter((function(t){return!!t&&"string"!=typeof t})),u=function(t){var o=t.target,u=r.some((function(t){return o.closest(t)}))||i.some((function(t){return t.contains(o)}));!n.current||n.current.contains(o)||u||e(t)};t((function(){return document.addEventListener("mousedown",u),function(){document.removeEventListener("mousedown",u)}}))};export{n as default};
//# sourceMappingURL=useOutsideClick.js.map
