Liferay.Loader.define("layout-seo-web@2.0.47/js/seo/display_page_templates/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=>{t.filter((t=>t&&t.contains(e.target))).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