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