var jquerySwipeHandler = function (e) { var t = {}; function n(o) { if (t[o]) return t[o].exports; var r = t[o] = { i: o, l: !1, exports: {} }; return e[o].call(r.exports, r, r.exports, n), r.l = !0, r.exports } return n.m = e, n.c = t, n.d = function (e, t, o) { n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: o }) }, n.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }) }, n.t = function (e, t) { if (1 & t && (e = n(e)), 8 & t) return e; if (4 & t && "object" == typeof e && e && e.__esModule) return e; var o = Object.create(null); if (n.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e) for (var r in e) n.d(o, r, function (t) { return e[t] }.bind(null, r)); return o }, n.n = function (e) { var t = e && e.__esModule ? function () { return e.default } : function () { return e }; return n.d(t, "a", t), t }, n.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t) }, n.p = "", n(n.s = 0) }([function (e, t, n) { "use strict"; n.r(t), n.d(t, "SWIPE_LEFT", function () { return o }), n.d(t, "SWIPE_RIGHT", function () { return r }), n.d(t, "SWIPE_UP", function () { return u }), n.d(t, "SWIPE_DOWN", function () { return c }), n.d(t, "CLICK", function () { return i }), n.d(t, "handleSwipe", function () { return a }); const o = "SWIPE_LEFT", r = "SWIPE_RIGHT", u = "SWIPE_UP", c = "SWIPE_DOWN", i = "CLICK", f = 50, d = 700; function a(e, t, n) { let a = void 0, l = void 0, s = !1; const p = function () { s = !0 }; function h(e) { return e.touches && e.touches[0] ? { x: e.touches[0].pageX, y: e.touches[0].pageY } : e.changedTouches && e.changedTouches[0] ? { x: e.changedTouches[0].pageX, y: e.changedTouches[0].pageY } : { x: e.pageX, y: e.pageY } } $(e).bind("mousedown touchstart", function (e) { a = Date.now(), l = h(e), "touchstart" === e.type && (t.includes(u) || t.includes(c)) && e.preventDefault(), s = !1, $(window).bind("scroll", p) }), $(e).bind("mouseup touchend", function (y) { if (a && Date.now() - a < d) { const d = h(y), p = function (e, t) { const n = t.x - e.x, i = t.y - e.y, d = []; n > f ? d.push(r) : n < -f && d.push(o); i > f ? d.push(c) : i < -f && d.push(u); return d }(l, d); let b = !1, g = !1; for (var i = 0; i < p.length; i++)t.includes(p[i]) && (n(p[i]), b = !0); p.length || s || (n(i, d.x - $(p[i]).offset().left, d.y - $(p[i]).offset().top),g=!0),(b||g)&&(y.cancelable&&"touchend"===y.type&&y.preventDefault(),y.stopPropagation()),a=void 0}$(window).unbind("scroll",p)})}}]);
