Liferay.Loader.define("@liferay/comment-taglib@4.0.29/discussion/js/hooks/useOnClickOutside",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,n){var o;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,n){e((()=>{const e=e=>{const{target:o}=e;t.filter((e=>"string"==typeof e?!!o.closest(e):e&&e.contains(o))).length||n(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[t,n])};var r=(o=n("liferay!frontend-js-react-web$react"))&&o.__esModule?o:{default:o};const{useEffect:e}=r.default}}));
//# sourceMappingURL=useOnClickOutside.js.map