import{a as t}from"./p-8538de1a.js";import{i as o}from"./p-b4056f43.js";import{createGesture as s}from"./p-f2599c25.js";import"./p-45316f86.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const n=(n,c,r,e,a)=>{const i=n.ownerDocument.defaultView;let p=o(n);const f=t=>{const o=50;const{startX:s}=t;if(p){return s>=i.innerWidth-o}return s<=o};const m=t=>p?-t.deltaX:t.deltaX;const u=t=>p?-t.velocityX:t.velocityX;const h=t=>{p=o(n);return f(t)&&c()};const j=t=>{const o=m(t);const s=o/i.innerWidth;e(s)};const l=o=>{const s=m(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 f=p?1-c:c;const h=f*n;let j=0;if(h>5){const t=h/Math.abs(r);j=Math.min(t,540)}a(p,c<=0?.01:t(0,c,.9999),j)};return s({el:n,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:h,onStart:r,onMove:j,onEnd:l})};export{n as createSwipeBackGesture};
//# sourceMappingURL=p-23d8b367.js.map