{"version":3,"file":"jquery.touchSwipe.min.js","sources":["../../../../src/resources/js/plugins/jquery.touchSwipe.js"],"names":["factory","define","amd","jQuery","module","exports","require","$","LEFT","RIGHT","UP","DOWN","IN","OUT","NONE","AUTO","SWIPE","PINCH","TAP","DOUBLE_TAP","LONG_TAP","HORIZONTAL","VERTICAL","ALL_FINGERS","DOUBLE_TAP_THRESHOLD","PHASE_START","PHASE_MOVE","PHASE_END","PHASE_CANCEL","SUPPORTS_TOUCH","window","SUPPORTS_POINTER_IE10","navigator","msPointerEnabled","PointerEvent","SUPPORTS_POINTER","PLUGIN_NS","TouchSwipe","element","options","extend","useTouchEvents","fallbackToMouseEvents","START_EV","MOVE_EV","END_EV","LEAVE_EV","CANCEL_EV","distance","direction","currentDirection","duration","startTouchesDistance","endTouchesDistance","pinchZoom","pinchDistance","pinchDirection","maximumsMap","$element","phase","fingerCount","fingerData","startTime","endTime","previousTouchEndTime","fingerCountAtRelease","doubleTapStartTime","singleTapTimeout","holdTimeout","on","touchStart","touchCancel","e","error","jqEvent","data","target","closest","excludedElements","length","event","originalEvent","pointerType","ret","touches","evt","preventDefaultEvents","preventDefault","maxData","createMaximumVO","cancelMultiFingerRelease","createFingerData","fingers","hasPinches","getTimeStamp","calculateTouchesDistance","start","swipeStatus","pinchStatus","triggerHandler","hold","setTimeout","proxy","trigger","call","this","longTapThreshold","setTouchInProgress","touchMove","point","startPoint","endPoint","inMultiFingerRelease","currentFinger","updateFingerData","clearTimeout","end","toFixed","Math","abs","calculateDirection","allowPageScroll","auto","swipeLeft","swipeRight","swipeUp","swipeDown","validateDefaultEvent","last","round","sqrt","pow","x","y","calculateDuration","max","getMaxDistance","triggerOnTouchEnd","triggerOnTouchLeave","inBounds","bounds","left","offset","el","right","outerWidth","top","bottom","outerHeight","getNextPhase","touchEnd","didSwipeBackToCancel","validateSwipeDistance","cancelable","hasTap","triggerHandlerForGesture","touchLeave","removeListeners","off","currentPhase","nextPhase","validTime","validateSwipeTime","validDistance","didCancel","validateSwipe","hasSwipes","validatePinch","validateDoubleTap","hasDoubleTap","isNaN","threshold","gesture","swipe","pinchIn","pinchOut","tap","doubleTapThreshold","doubleTap","longTap","valid","cancelled","cancelThreshold","result","maxTimeThreshold","hasCorrectFingerCount","validateFingers","hasEndPoint","validateEndPoint","hasCorrectDistance","pinchThreshold","hasValidTime","hasValidDistance","now","withinThreshold","fingerReleaseThreshold","val","id","f","pageX","clientX","pageY","clientY","undefined","identifier","dir","diffX","diffY","pointB","pointA","angle","r","atan2","PI","Date","getTime","enable","disable","destroy","option","property","value","fn","method","$this","plugin","apply","Array","prototype","slice","arguments","click","defaults","each","version","phases","directions","pageScroll","ONE","TWO","THREE","FOUR","FIVE","ALL"],"mappings":"CAsJC,SAASA,GACc,mBAAXC,QAAyBA,OAAOC,KAAOD,OAAOC,IAAIC,OAE3DF,OAAO,CAAC,UAAWD,GACQ,oBAAXI,QAA0BA,OAAOC,QAEjDL,EAAQM,QAAQ,WAGhBN,EAAQG,QATZ,CAWE,SAASI,iBAIT,IACEC,GAAO,OACPC,GAAQ,QACRC,GAAK,KACLC,GAAO,OACPC,GAAK,KACLC,GAAM,MAENC,GAAO,OACPC,GAAO,OAEPC,GAAQ,QACRC,GAAQ,QACRC,GAAM,MACNC,GAAa,YACbC,GAAW,UAGXC,GAAa,aACbC,GAAW,WAEXC,GAAc,MAEdC,GAAuB,GAEvBC,GAAc,QACdC,GAAa,OACbC,GAAY,MACZC,GAAe,SAEfC,GAAiB,iBAAkBC,OAEnCC,GAAwBD,OAAOE,UAAUC,mBAAqBH,OAAOI,eAAiBL,GAEtFM,IAAoBL,OAAOI,cAAgBJ,OAAOE,UAAUC,oBAAsBJ,GAElFO,GAAY,aA8Pd,SAASC,EAAWC,EAASC,GAG3B,IAAIA,EAAUhC,GAAEiC,OAAO,GAAID,GAEvBE,EAAkBZ,IAAkBM,KAAqBI,EAAQG,sBACnEC,EAAWF,EAAkBN,GAAoBJ,GAAwB,gBAAkB,cAAiB,aAAgB,YAC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