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