1import{o as m,s as b,p as g}from"./index-9500bb17.js";/*! 2 * (C) Ionic http://ionicframework.com - MIT License 3 */const y=(o,p,X,f,w)=>{const i=o.ownerDocument.defaultView;let r=m(o);const l=t=>r?-t.deltaX:t.deltaX;return b({el:o,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:t=>(r=m(o),(e=>{const{startX:n}=e;return r?n>=i.innerWidth-50:n<=50})(t)&&p()),onStart:X,onMove:t=>{const e=l(t);f(e/i.innerWidth)},onEnd:t=>{const e=l(t),n=i.innerWidth,a=e/n,c=(s=>r?-s.velocityX:s.velocityX)(t),d=c>=0&&(c>.2||e>n/2),h=(d?1-a:a)*n;let u=0;if(h>5){const s=h/Math.abs(c);u=Math.min(s,540)}w(d,a<=0?.01:g(0,a,.9999),u)}})};export{y as createSwipeBackGesture};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.