Liferay.Loader.define('site-navigation-item-selector-web$dom-helpers@5.2.0/esm/filterEventHandler', ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import contains from './contains';
    import qsa from './querySelectorAll';
    export default function filterEvents(selector, handler) {
      return function filterHandler(e) {
        var top = e.currentTarget;
        var target = e.target;
        var matches = qsa(top, selector);
        if (matches.some(function (match) {
          return contains(match, target);
        })) handler.call(this, e);
      };
    }
  }
});
//# sourceMappingURL=filterEventHandler.js.map