import{B as BalSwipeSubject}from"./swipe.subject-1e73a83d.js";function ListenToSwipe(i){if(i===void 0){i={mobileOnly:false}}return function(t,e,n){var s=t.connectedCallback,o=t.disconnectedCallback;t.connectedCallback=function(){if(!this._balSwipeSubject){this._balSwipeSubject=new BalSwipeSubject(i);this._balSwipeSubject.attach(this)}return s&&s.call(this)};t.disconnectedCallback=function(){if(this._balSwipeSubject){this._balSwipeSubject.detach();this._balSwipeSubject=undefined}return o&&o.call(this)}}}export{ListenToSwipe as L};