import{w as t}from"./p-d00c3523.js";import{h as o,a as e,b as n}from"./p-adeb1d66.js";import{createGesture as r}from"./p-b3e6427d.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const s=(s,a)=>{let d,i;const c=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)?n!==d&&(p(),m(n,e)):p()},m=(o,e)=>{d=o,i||(i=d);const n=d;t((()=>n.classList.add("ion-activated"))),e()},p=(o=!1)=>{if(!d)return;const e=d;t((()=>e.classList.remove("ion-activated"))),o&&i!==d&&d.click(),d=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>c(t.currentX,t.currentY,e),onMove:t=>c(t.currentX,t.currentY,n),onEnd:()=>{p(!0),o(),i=void 0}})};export{s as c}