import e from"../dom-utils/getWindow.js";var t={passive:!0};var n={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(n){var r=n.state,o=n.instance,s=n.options,a=s.scroll,i=void 0===a||a,c=s.resize,d=void 0===c||c,p=e(r.elements.popper),l=[].concat(r.scrollParents.reference,r.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",o.update,t)})),d&&p.addEventListener("resize",o.update,t),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",o.update,t)})),d&&p.removeEventListener("resize",o.update,t)}},data:{}};export default n;
//# sourceMappingURL=eventListeners.js.map
