import{a as t}from"./p-7cbdb4ea.js";import{i as o}from"./p-506221fe.js";import{createGesture as s}from"./p-e9431eeb.js";import"./p-076f0239.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const n=(n,c,r,e,a)=>{const i=n.ownerDocument.defaultView;const p=o(n);const m=t=>{const o=50;const{startX:s}=t;if(p){return s>=i.innerWidth-o}return s<=o};const f=t=>p?-t.deltaX:t.deltaX;const u=t=>p?-t.velocityX:t.velocityX;const b=t=>m(t)&&c();const h=t=>{const o=f(t);const s=o/i.innerWidth;e(s)};const j=o=>{const s=f(o);const n=i.innerWidth;const c=s/n;const r=u(o);const e=n/2;const p=r>=0&&(r>.2||s>e);const m=p?1-c:c;const b=m*n;let h=0;if(b>5){const t=b/Math.abs(r);h=Math.min(t,540)}a(p,c<=0?.01:t(0,c,.9999),h)};return s({el:n,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:b,onStart:r,onMove:h,onEnd:j})};export{n as createSwipeBackGesture};
//# sourceMappingURL=p-5104cd55.js.map