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