PageSourceSearch

https://www.gatewayfarmexpo.org/js/angular/angular-touch.min.js?sv=8.6.3

js gatewayfarmexpo.org collected 2026-10-05 09:47:30 UTC 4,670 bytes, 1 lines download raw bytes

1!function (e, n, t) { "use strict"; var o = n.module("ngTouch", []); function c(e, t) { var o = !1, c = !1; this.ngClickOverrideEnabled = function (r) { return n.isDefined(r) ? (r && !c && (c = !0, i.$$moduleName = "ngTouch", t.directive("ngClick", i), e.decorator("ngClickDirective", ["$delegate", function (e) { if (o) e.shift(); else for (var n = e.length - 1; n >= 0;) { if ("ngTouch" === e[n].$$moduleName) { e.splice(n, 1); break } n-- } return e }])), o = r, this) : o }, this.$get = function () { return { ngClickOverrideEnabled: function () { return o } } } } o.provider("$touch", c), c.$inject = ["$provide", "$compileProvider"], o.factory("$swipe", [function () { var e = { mouse: { start: "mousedown", move: "mousemove", end: "mouseup" }, touch: { start: "touchstart", move: "touchmove", end: "touchend", cancel: "touchcancel" } }; function t(e) { var n = e.originalEvent || e, t = n.touches && n.touches.length ? n.touches : [n], o = n.changedTouches && n.changedTouches[0] || t[0]; return { x: o.clientX, y: o.clientY } } function o(t, o) { var c = []; return n.forEach(t, function (n) { var t = e[n][o]; t && c.push(t) }), c.join(" ") } return { bind: function (e, n, c) { var i, r, u, a, s = !1; c = c || ["mouse", "touch"], e.on(o(c, "start"), function (e) { u = t(e), s = !0, i = 0, r = 0, a = u, n.start && n.start(u, e) }); var l = o(c, "cancel"); l && e.on(l, function (e) { s = !1, n.cancel && n.cancel(e) }), e.on(o(c, "move"), function (e) { if (s && u) { var o = t(e); if (i += Math.abs(o.x - a.x), r += Math.abs(o.y - a.y), a = o, !(i < 10 && r < 10)) return r > i ? (s = !1, void (n.cancel && n.cancel(e))) : (e.preventDefault(), void (n.move && n.move(o, e))) } }), e.on(o(c, "end"), function (e) { s && (s = !1, n.end && n.end(t(e), e)) }) } } }]); var i = ["$parse", "$timeout", "$rootElement", function (e, t, o) { var c, i, r, u = 2500, a = 25, s = "ng-click-active"; function l(e, n, t) { for (var o = 0; o < e.length; o += 2)if (c = e[o], i = e[o + 1], r = n, u = t, Math.abs(c - r) < a && Math.abs(i - u) < a) return e.splice(o, o + 2), !0; var c, i, r, u; return !1 } function h(e) { if (!(Date.now() - c > u)) { var t, o = e.touches && e.touches.length ? e.touches : [e], a = o[0].clientX, s = o[0].clientY; if (!(a < 1 && s < 1)) if (!r || r[0] !== a || r[1] !== s) r && (r = null), "label" === (t = e.target, n.lowercase(t.nodeName || t[0] && t[0].nodeName)) && (r = [a, s]), l(i, a, s) || (e.stopPropagation(), e.preventDefault(), e.target && e.target.blur && e.target.blur()) } } function f(e) { var n = e.touches && e.touches.length ? e.touches : [e], o = n[0].clientX, c = n[0].clientY; i.push(o, c), t(function () { for (var e = 0; e < i.length; e += 2)if (i[e] == o && i[e + 1] == c) return void i.splice(e, e + 2) }, u, !1) } return function (t, r, u) { var a, d, v, g, p = e(u.ngClick), m = !1; function w() { m = !1, r.removeClass(s) } r.on("touchstart", function (e) { m = !0, 3 == (a = e.target ? e.target : e.srcElement).nodeType && (a = a.parentNode), r.addClass(s), d = Date.now(); var n = e.originalEvent || e, t = (n.touches && n.touches.length ? n.touches : [n])[0]; v = t.clientX, g = t.clientY }), r.on("touchcancel", function (e) { w() }), r.on("touchend", function (e) { var t = Date.now() - d, s = e.originalEvent || e, p = (s.changedTouches && s.changedTouches.length ? s.changedTouches : s.touches && s.touches.length ? s.touches : [s])[0], $ = p.clientX, b = p.clientY, k = Math.sqrt(Math.pow($ - v, 2) + Math.pow(b - g, 2)); m && t < 750 && k < 12 && (!function (e, n) { i || (o[0].addEventListener("click", h, !0), o[0].addEventListener("touchstart", f, !0), i = []), c = Date.now(), l(i, e, n) }($, b), a && a.blur(), n.isDefined(u.disabled) && !1 !== u.disabled || r.triggerHandler("click", [e])), w() }), r.onclick = function (e) { }, r.on("click", function (e, n) { t.$apply(function () { p(t, { $event: n || e }) }) }), r.on("mousedown", function (e) { r.addClass(s) }), r.on("mousemove mouseup", function (e) { r.removeClass(s) }) } }]; function r(e, t, c) { o.directive(e, ["$parse", "$swipe", function (o, i) { var r = 75, u = .3, a = 30; return function (s, l, h) { var f, d, v = o(h[e]); var g = ["touch"]; n.isDefined(h.ngSwipeDisableMouse) || g.push("mouse"), i.bind(l, { start: function (e, n) { f = e, d = !0 }, cancel: function (e) { d = !1 }, end: function (e, n) { (function (e) { if (!f) return !1; var n = Math.abs(e.y - f.y), o = (e.x - f.x) * t; return d && n < r && o > 0 && o > a && n / o < u })(e) && s.$apply(function () { l.triggerHandler(c), v(s, { $event: n }) }) } }, g) } }]) } r("ngSwipeLeft", -1, "swipeleft"), r("ngSwipeRight", 1, "swiperight") }(window, window.angular);

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.