{"version":3,"sources":["libs/ngTouch/ngTouch.js"],"names":["angular","module","directive","controller","$scope","$element","bind","onTouchStart","event","method","attr","$event","$apply","preventDefault","onTouchMove","onTouchEnd","unbind"],"mappings":"AAAA;;AAEAA,OAAO,CAACC,MAAR,CAAe,SAAf,EAA0B,EAA1B,EACCC,SADD,CACW,cADX,EAC2B,YAAY;AACnC,SAAO;AACHC,IAAAA,UAAU,EAAE,CAAC,QAAD,EAAW,UAAX,EAAuB,UAAUC,MAAV,EAAkBC,QAAlB,EAA4B;AAC3DA,MAAAA,QAAQ,CAACC,IAAT,CAAc,YAAd,EAA4BC,YAA5B;;AACA,eAASA,YAAT,CAAsBC,KAAtB,EAA6B;AACzB,YAAIC,MAAM,GAAGJ,QAAQ,CAACK,IAAT,CAAc,oBAAd,CAAb;AACAN,QAAAA,MAAM,CAACO,MAAP,GAAgBH,KAAhB;AACAJ,QAAAA,MAAM,CAACQ,MAAP,CAAcH,MAAd;AACH;AAEJ,KARW;AADT,GAAP;AAWH,CAbD,EAcCP,SAdD,CAcW,aAdX,EAc0B,YAAY;AAClC,SAAO;AACHC,IAAAA,UAAU,EAAE,CAAC,QAAD,EAAW,UAAX,EAAuB,UAAUC,MAAV,EAAkBC,QAAlB,EAA4B;AAE3DA,MAAAA,QAAQ,CAACC,IAAT,CAAc,YAAd,EAA4BC,YAA5B;;AACA,eAASA,YAAT,CAAsBC,KAAtB,EAA6B;AACzBA,QAAAA,KAAK,CAACK,cAAN;AACAR,QAAAA,QAAQ,CAACC,IAAT,CAAc,WAAd,EAA2BQ,WAA3B;AACAT,QAAAA,QAAQ,CAACC,IAAT,CAAc,UAAd,EAA0BS,UAA1B;AACH;;AACD,eAASD,WAAT,CAAqBN,KAArB,EAA4B;AACxB,YAAIC,MAAM,GAAGJ,QAAQ,CAACK,IAAT,CAAc,mBAAd,CAAb;AACAN,QAAAA,MAAM,CAACO,MAAP,GAAgBH,KAAhB;AACAJ,QAAAA,MAAM,CAACQ,MAAP,CAAcH,MAAd;AACH;;AACD,eAASM,UAAT,CAAoBP,KAApB,EAA2B;AACvBA,QAAAA,KAAK,CAACK,cAAN;AACAR,QAAAA,QAAQ,CAACW,MAAT,CAAgB,WAAhB,EAA6BF,WAA7B;AACAT,QAAAA,QAAQ,CAACW,MAAT,CAAgB,UAAhB,EAA4BD,UAA5B;AACH;AAEJ,KAnBW;AADT,GAAP;AAsBH,CArCD,EAsCCb,SAtCD,CAsCW,YAtCX,EAsCyB,YAAY;AACjC,SAAO;AACHC,IAAAA,UAAU,EAAE,CAAC,QAAD,EAAW,UAAX,EAAuB,UAAUC,MAAV,EAAkBC,QAAlB,EAA4B;AAE3DA,MAAAA,QAAQ,CAACC,IAAT,CAAc,UAAd,EAA0BS,UAA1B;;AACA,eAASA,UAAT,CAAoBP,KAApB,EAA2B;AACvB,YAAIC,MAAM,GAAGJ,QAAQ,CAACK,IAAT,CAAc,kBAAd,CAAb;AACAN,QAAAA,MAAM,CAACO,MAAP,GAAgBH,KAAhB;AACAJ,QAAAA,MAAM,CAACQ,MAAP,CAAcH,MAAd;AACH;AAEJ,KATW;AADT,GAAP;AAYH,CAnDD","sourcesContent":["\"use strict\";\r\n\r\nangular.module(\"ngTouch\", [])\r\n.directive(\"ngTouchstart\", function () {\r\n return {\r\n controller: [\"$scope\", \"$element\", function ($scope, $element) {\r\n $element.bind(\"touchstart\", onTouchStart);\r\n function onTouchStart(event) {\r\n var method = $element.attr(\"data-ng-touchstart\");\r\n $scope.$event = event;\r\n $scope.$apply(method);\r\n }\r\n\r\n }]\r\n }\r\n})\r\n.directive(\"ngTouchmove\", function () {\r\n return {\r\n controller: [\"$scope\", \"$element\", function ($scope, $element) {\r\n\r\n $element.bind(\"touchstart\", onTouchStart);\r\n function onTouchStart(event) {\r\n event.preventDefault();\r\n $element.bind(\"touchmove\", onTouchMove);\r\n $element.bind(\"touchend\", onTouchEnd);\r\n }\r\n function onTouchMove(event) {\r\n var method = $element.attr(\"data-ng-touchmove\");\r\n $scope.$event = event;\r\n $scope.$apply(method);\r\n }\r\n function onTouchEnd(event) {\r\n event.preventDefault();\r\n $element.unbind(\"touchmove\", onTouchMove);\r\n $element.unbind(\"touchend\", onTouchEnd);\r\n }\r\n\r\n }]\r\n }\r\n})\r\n.directive(\"ngTouchend\", function () {\r\n return {\r\n controller: [\"$scope\", \"$element\", function ($scope, $element) {\r\n\r\n $element.bind(\"touchend\", onTouchEnd);\r\n function onTouchEnd(event) {\r\n var method = $element.attr(\"data-ng-touchend\");\r\n $scope.$event = event;\r\n $scope.$apply(method);\r\n }\r\n\r\n }]\r\n }\r\n});\r\n"],"file":"../../../libs/ngTouch/ngTouch.js"}