PageSourceSearch

https://www.abrigo.com/wp-content/themes/kps3-abrigo/assets/scripts/min/main.js?ver=05488

js abrigo.com collected 2026-09-25 19:09:03 UTC 18,859 bytes, 323 lines download raw bytes

1/** 
2 * Automatically Generated - DO NOT EDIT 
3 * KPS3 / v3.1.1 / 2026-09-23 
4 */
5!function(m) {
6    "use strict";
7    document.querySelectorAll(".js-full-width-image-slider").forEach(e => {
8        const n = new Swiper(e.querySelector(".swiper"), {
9            "slidesPerView": 1.25,
10            "spaceBetween": 20,
11            "centeredSlides": !0
12        }), t = e.querySelectorAll(".js-full-width-image-slider-pagination-button");
13        n.on("slideChange", () => {
14            t.forEach(e => {
15                e.classList.remove("full-width-image-slider__pagination-button--active");
16            }), t[n.realIndex].classList.add("full-width-image-slider__pagination-button--active");
17        }), t.forEach((e, t) => {
18            e.addEventListener("click", () => {
19                n.slideTo(t);
20            });
21        });
22    });
23    var e = document.querySelector(".js-logo-row-marquee");
24    function t(n, o, a) {
25        var i;
26        return function() {
27            var e = this, t = arguments;
28            a && clearTimeout(i), !a && i || (i = setTimeout(function() {
29                i = null, n.apply(e, t);
30            }, o));
31        };
32    }
33    e && (e.addEventListener("mouseenter", function() {
34        e.style.animationPlayState = "paused";
35    }), e.addEventListener("mouseleave", function() {
36        e.style.animationPlayState = "running";
37    }));
38    var o = m(document), n = m(window), a = m("body"), i = (m(".js-primary-nav-toggle").on("click", function() {
39        a.toggleClass("menu-active");
40    }), m(".js-nav")), r = (a.hasClass("home") ? m(".js-nav-headroom").headroom({
41        "offset": 220,
42        "tolerance": {
43            "up": 15,
44            "down": 0
45        }
46    }) : m(".js-nav-headroom").headroom({
47        "offset": 40,
48        "tolerance": {
49            "up": 15,
50            "down": 0
51        }
52    }), m(".nav__primary ul ul .menu-item-has-children")), s = m(".nav__primary-list"), d = m(".nav__primary-list > .menu-item-has-children"), c = !1;
53    m('<button class="nav__primary-subnav-toggle">Expand sub-menu</button>').insertBefore(r.find("ul")), 
54    m('<button class="nav__primary-nav-toggle">Expand sub-menu</button>').insertBefore(d.find("ul")), 
55    s.on("mouseenter", "> .menu-item-has-children", function() {
56        document.body.classList.add("has-menu-dropdown-open");
57    }), s.on("mouseleave", "> .menu-item-has-children", function() {
58        c || document.body.classList.remove("has-menu-dropdown-open");
59    }), s.find("a").on("focus", function() {
60        c || (document.body.classList.add("has-menu-dropdown-open"), c = !0, a.on("focus.navdropdown", "a, button", function(e) {
61            c && !m.contains(s.get(0), e.target) && (document.body.classList.remove("has-menu-dropdown-open"), 
62            c = !1, a.off("focus.navdropdown", "a, button"), a.off("click.navdropdown"));
63        }), a.on("click.navdropdown", function(e) {
64            c && !m.contains(s.get(0), e.target) && (document.body.classList.remove("has-menu-dropdown-open"), 
65            c = !1, a.off("focus.navdropdown", "a, button"), a.off("click.navdropdown"));
66        }));
67    }), m(".nav__primary-subnav-toggle").on("click", function() {
68        m(this).parent().toggleClass("is-active");
69    });
70    m(".nav__primary-nav-toggle").on("click", function() {
71        m(this).parent().toggleClass("is-active");
72    });
73    var l = m(".js-nav-search"), u = l.find(".nav-search__input"), f = (l.on("submit", function(e) {
74        var t = u.val().trim();
75        l.hasClass("is-expanded") ? "" === t && (e.preventDefault(), l.removeClass("is-expanded")) : (e.preventDefault(), 
76        l.addClass("is-expanded"), u.focus());
77    }), m(".js-dropdown"));
78    f.each(function() {
79        var a, e = m(this), i = e.find(".js-dropdown-toggle"), r = e.find(".js-dropdown-label"), s = e.find(".js-dropdown-color"), t = e.find('.js-dropdown-option[aria-selected="true"]'), n = t.text(), t = t.find("div").attr("class");
80        r.text(n), s.attr("class", t), i.on("click", function() {
81            "true" == i.attr("aria-expanded") ? i.attr("aria-expanded", "false") : i.attr("aria-expanded", "true");
82        }), m(document).on("click", function(e) {
83            e.stopPropagation(), 0 === f.has(e.target).length && i.attr("aria-expanded", "false");
84        }), 0 < m(".js-dropdown-button-option").length && (n = e.find(".js-dropdown-button-option"), 
85        a = m(".js-dropdown-filterable-item"), n.on("click", function() {
86            var e = m(this), t = e.text(), n = e.data("filter"), e = e.find(".js-dropdown-color-option").data("c
86olor"), o = m(".js-filter-" + n);
87            ("all" === n ? a : (a.hide(), o)).show(), s.attr("class", "bg--" + e), 
88            r.text(t), i.attr("aria-expanded", "false");
89        }));
90    }), m(".js-expand-text").each(function() {
91        var e = m(this), t = e.siblings(".js-expand-text-content");
92        e.on("click", function() {
93            "false" === t.attr("aria-expanded") ? (t.slideDown(), t.attr("aria-expanded", "true"), 
94            e.text("Hide Text")) : (t.slideUp(), t.attr("aria-expanded", "false"), 
95            e.text("Read More"));
96        });
97    }), m(".js-truncate, .js-search-truncate p").dotdotdot({
98        "ellipsis": "\u2026",
99        "watch": !0
100    });
101    m(".js-sidebar-toggle").on("click", function() {
102        var e = m(this), t = e.siblings(".sidebar__links");
103        e.hasClass("is-active") ? (e.removeClass("is-active"), t.slideUp()) : (e.addClass("is-active"), 
104        t.slideDown());
105    });
106    var p, h, $ = new LazyLoad({
107        "elements_selector": "img",
108        "callback_enter": function(e) {}
109    }), g = m(".js-calculate-reading-time"), R = m(".js-calculated-reading-time");
110    function v(e) {
111        e = e.text().replace(/\s+/g, " ").split(" ").length, e = Math.ceil(e / 170);
112        R.text(e);
113    }
114    function D() {
115        function e() {
116            var e = parseInt(n.find(".slick-current").attr("data-slick-index")) + 1, t = n.find(".slick-slide:not(.slick-cloned)").length;
117            i.text(e), r.text(t);
118        }
119        var n = m(this), t = n.siblings(".slider-nav"), o = t.find(".slider-nav__arrow--prev"), a = t.find(".slider-nav__arrow--next"), i = t.find(".slider-nav__current-slide"), r = t.find(".slider-nav__total-slides");
120        n.on("init", e).on("afterChange", e), n.slick({
121            "lazyLoad": "ondemand",
122            "speed": 200,
123            "prevArrow": o,
124            "nextArrow": a
125        });
126    }
127    function I() {
128        var i = m(this), r = i.next(".js-countdown-message"), s = i.find(".js-countdown-days"), d = i.find(".js-countdown-hours"), c = i.find(".js-countdown-minutes"), l = i.find(".js-countdown-seconds"), u = i.data("countdownEnd") - i.data("currentTime"), f = setInterval(function e() {
129            var t = Math.floor(u / 86400), n = Math.floor(u / 3600), o = Math.floor(u / 60), a = n - 24 * t, n = o - 60 * n, o = Math.floor(u) - 60 * o;
130            return u--, s.text(t), d.text(a), c.text(n), l.text(o), u < 0 ? (r.show(), 
131            i.hide(), void clearInterval(f)) : e;
132        }(), 1e3);
133    }
134    function B() {
135        var n = m(this);
136        "shown" != sessionStorage.getItem("exitPopup") && (o.on("mouseout", function e(t) {
137            t.clientY < 3 && (o.off("mouseout", e), n.trigger("click"));
138        }), sessionStorage.setItem("exitPopup", "shown"));
139    }
140    function H() {
141        var e = m(this), t = i.offset().top, n = i.outerHeight(), o = e.find(".js-sidebar-notification-close");
142        e.css("top", t + n - 1 + "px"), e.headroom({
143            "offset": 40,
144            "tolerance": {
145                "up": 15,
146                "down": 0
147            }
148        }), o.on("click", function() {
149            e.hide();
150        });
151    }
152    g && v(g), 0 < m(".js-fixed-addthis").length && (p = m(".js-fixed-addthis"), 
153    r = m(".js-fixed-addthis-container"), h = p.offset().top - 50, r.css("height", r.outerHeight()), 
154    n.on("scroll", t(function() {
155        n.scrollTop() > h ? p.addClass("is-fixed") : p.removeClass("is-fixed");
156    }, 55)));
157    var w, b = m(".js-scroll-indicator");
158    function N() {
159        b.removeClass("is-active"), clearTimeout(w), n.scrollTop() < m("#menu-footer-menu").offset().top - n.height() && (w = setTimeout(function() {
160            b.addClass("is-active");
161        }, 5e3));
162    }
163    0 === m(".js-hide-scroll-indicator").length && (b.addClass("is-active"), n.on("scroll", t(N, 500))), 
164    m(".js-modal").on("click", function() {
165        m(".wistia_embed") && m(".wistia_embed").each(function() {
166            m(this).attr("src", m(this).data("src"));
167        }), setTimeout(function() {
168            m(".responsive-embed").closest(".modal__wrapper").addClass("modal__wrapper--wide");
169        }, 10);
170    });
171    var _, y = m(".gated-content"), x = window.location.href, S = localStorage.getItem("unlockedPages"), j = !1;
172    y.length && (_ = parseInt(y.data("scroll-depth")), Number.isNaN(_) && (_ = 100), 
173    null !== S && S.includes(x) || m(window).scroll(function() {
174        m(this).scrollTop() > _ && (j || (y.addClass("show"), m("body").addClass("no-scroll"), 
175        j = !0));
176    }), window.addEventListener("message", function(e) {
177        "https://www.web.abrigo.com" == e.origin && "pardotFormSubmitted" == e.data && (y.removeClass("show"), 
178        m("body").removeClass("no-scroll"), null === S ? localStorage.setItem("unlockedPages", x) : ((e = S.split(",")).push(x), 
179        localStorage.setItem("unlockedPages", e)));
180    })), window.addEventListener("message", function(e) {
181        "https://www.web.abrigo.com" == e.origin && "pardotFormSubmitted" == e.data && dataLayer.push({
182            "event": "pardotFormSubmitted"
183        });
184    }), window.addEventListener("message", function(e) {
185        "https://www.web.abrigo.com" == e.origin && "abPardotFormSubmitted" == e.data && dataLayer.push({
186            "event": "abPardotFormSubmitted"
187        });
188    }), m(document).ready(function() {
189        var t;
190        0 < m(".sidebar").length && new StickySidebar(".sidebar", {
191            "topSpacing": 80,
192            "containerSelector": ".js-sticky-sidebar-container",
193            "innerWrapperSelector": ".js-sticky-sidebar"
194        }), 0 < m(".assessment-calculator").length && (t = !1, m(".assessment-calculator input").change(function(e) {
195            t || dataLayer.push({
196                "event": "Calculator Interaction"
197            }), t = !0;
198        }));
199    }), m(function() {
200        objectFitImages();
201    }), n.on("elementor/frontend/init", function() {
202        elementorFrontend.hooks.addAction("frontend/element_ready/global", function() {
203            $.update(), g && v(g);
204        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-before-after-slider.default", function(e) {
205            var t, n, o, a;
206            e = e.find(".js-bfimg-card"), t = e.find(".js-bfimg-handle"), n = e.find(".js-bfimg-button"), 
207            o = e.find(".js-bfimg-lines"), a = e.find(".js-bfimg-image"), t.on("input", function(e) {
208                e = e.target.value;
209                a.css("clip-path", "inset(0 0 0 " + e + "%"), n.css("left", "calc(" + e + "% - 15px)"), 
210                o.css("left", "calc(" + e + "%)");
211            });
212        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-hero-slider.default", function(e) {
213            e.find(".js-hero-slider").slick();
214        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-content-slider.default", function(e) {
215            e.find(".js-content-slider").slick();
216        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-image-slider.default", function(e) {
217            e.find(".js-slider").each(D);
218        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-exit-popup.default", function(e) {
219            e.find(".js-exit-popup").each(B);
220        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-countdown.default", function(e) {
221            e.find(".js-countdown").each(I);
222        }), elementorFrontend.hooks.addAction("frontend/element_ready/abo-sidebar-notification.default", function(e) {
223            e.find(".js-sidebar-notification").each(H);
224        });
225    });
226    for (var k = function(e, t, n) {
227        var o, a = "";
228        n && ((o = new Date()).setTime(o.getTime() + 24 * n * 60 * 60 * 1e3), a = "; expires=" + o.toUTCString()), 
229        document.cookie = e + "=" + (t || "") + a + "; path=/";
230    }, L = function(e) {
231        for (var t = e + "=", n = document.cookie.split(";"), o = 0; o < n.length; o++) {
232            for (var a = n[o]; " " == a.charAt(0); ) a = a.substring(1, a.length);
233            if (0 == a.indexOf(t)) return a.substring(t.length, a.length);
234        }
235    }, d = function(e, t) {
236        void 0 === L(e) && k(e, t, 365);
237    }, r = function(e, t) {
238        void 0 === L(e) && k(e, t, 0);
239    }, T = document.referrer || "Direct", C = document.location.href, O = (d("__abrigoReferrer", T), 
240    d("__abrigoTarget", C), r("__abrigoSessionReferrer", T), r("__abrigoSessionTarget", C), 
241    document.querySelectorAll("iframe[data-pardot-src]")), M = 0; M < O.length; M++) {
242        var z = O[M], F = z.dataset.pardotSrc, F = new URL(F), Q = new URLSearchParams(F.search), A = L("__abrigoTarget"), V = L("__abrigoReferrer"), E = L("__abrigoSessionTarget"), W = L("__abrigoSessionReferrer"), A = new URL(A), E = new URL(E), q = new URLSearchParams(A.search), P = new URLSearchParams(E.search), A = A.pathname, E = E.pathname, U = function(e, t) {
243            void 0 !== t && "" !== t && null !== t && Q.set(e, t);
244        };
245        U("UTM_Campaign", q.get("utm_campaign")), U("UTM_Source", q.get("utm_source")), 
246        U("UTM_Medium", q.get("utm_medium")), U("UTM_Content", q.get("utm_content")), 
247        U("UTM_Term", q.get("utm_term")), U("Last_UTM_Campaign", P.get("utm_campaign")), 
248        U("Last_UTM_Source", P.get("utm_source")), U("Last_UTM_Medium", P.get("utm_medium")), 
249        U("Last_UTM_Content", P.get("utm_content")), U("Last_UTM_Term", P.get("utm_term")), 
250        U("First_Landing_Page", A), U("First_Traffic_Source", V), U("Last_Landing_Page", E), 
251        U("Last_Traffic_Source", W), U("Converting_Page", location.pathname), F.search = Q.toString(), 
252        z.setAttribute("src", F.toString());
253    }
254    document.addEventListener("DOMContentLoaded", function() {
255        "undefined" != typeof gform && gform.addAction("gform_input_change", function(e, n, t) {
256            var o = document.querySelector(".fraud-calculator-form"), o = o ? o.dataset.formid : null;
257            if (n === o) {
258                var a = document.querySelector(".fraud-calculator-result"), n = document.querySelector(".fraud-calculator-benefit input:checked"), o = n ? n.value : null, n = document.querySelectorAll('.fraud-calculator-input input[aria-required="true"]');
259                let t = !0;
260                n.forEach(e => {
261                    e.value || (t = !1);
262                });
263                var n = {
264                    "hourlyRate": document.querySelector(".fraud-calculator-hourly-rate input"),
265                    "fraudDetected": document.querySelector(".fraud-calculator-fraud-detected input"),
266                    "timeSavings": document.querySelector(".fraud-calculator-time-savings input"),
267                    "monthlySavings": document.querySelector(".fraud-calculator-monthly-savings input")
268                }, i = e => e && e.value && parseFloat(e.value.replace(/^\$|,/g, "")) || 0, r = i(n.hourlyRate), s = i(n.fraudDetected), d = i(n.timeSavings), c = i(n.monthlySavings), l = ((e, t) => {
269                    for (var [ n, o ] of t) if (e <= n) return o;
270                    return t[t.length - 1][1];
271                })(d, [ [ 200, `Based on our calculations, you could cut the time spent reviewing checks by between 0 and ${0 !== r ? (200 / r).toFixed(1) : "160"} hours per month, which equates to between $0 and $200 in value.` ], [ 500, `Based on our calculations, you could cut the time spent reviewing checks by between ${(201 / r).toFixed(1)} and ${(500 / r).toFixed(1)} hours per month, which equates to between $201 and $500 in value.` ], [ 999, `Based on our calculations, you could cut the time spent reviewing checks by between ${(501 / r).toFixed(1)} and ${(999 / r).toFixed(1)} hours per month, which equates to between $501 and $999 in value.` ], [ 1 / 0, `Based on our calculations, you could cut the time spent reviewing checks by ${(1e3 / r).toFixed(1)} or more hours per month, which equates to $1000 or more in value.` ] ]);
272                if (t) if (o) switch (o) {
273                  case "Accuracy":
274                    a.innerHTML = `Based on our calculations, you can expect to improve your fraud detection accuracy by at least ${Math.max(0, s)}%, likely more.`;
275                    break;
276
277                  case "Time":
278                    a.innerHTML = l;
279                    break;
280
281                  case "Efficiency":
282                    a.innerHTML = 0 === r ? "Based on our calculations, you could save up to 1 hour currently spent reconciling accounts." : `Based on our calculations, you could free up ${(c / r).toFixed(1)} hours currently spent reconciling accounts. That's time you can spend elsewhere, and represents about $${c} in value.`;
283                    break;
284
285                  default:
286                    a.innerHTML = "Invalid benefit selection.";
287                } else a.innerHTML = "Please select a benefit to see the potential improvement."; else a.innerHTML = "Please complete all form fields to see your results.";
288            }
289        }, 10, 3);
290    });
291}(jQuery), function() {
292    var t = ".js-osano-dns-dialog";
293    function n(e) {
294        return e && e.closest && e.closest(t);
295    }
296    function e(e) {
297        "BUTTON" === e.tagName || e.hasAttribute("role") || e.setAttribute("role", "button"), 
298        e.setAttribute("aria-haspopup", "dialog");
299    }
300    function o(e) {
301        e.preventDefault();
302        e = window.Osano && window.Osano.cm;
303        e && "function" == typeof e.showDoNotSell && e.showDoNotSell();
304    }
305    function a() {
306        document.querySelectorAll(t).forEach(e);
307    }
308    document.addEventListener("click", function(e) {
309        n(e.target) && o(e);
310    }), document.addEventListener("keydown", function(e) {
311        " " !== e.key && "Spacebar" !== e.key || n(e.target) && o(e);
312    }), "loading" === document.readyState ? document.addEventListener("DOMContentLoaded", a) : a();
313}(), document.querySelectorAll(".js-video-section__video wistia-player").forEach(n => {
314    n.addEventListener("api-ready", () => {
315        n.roundedPlayer = 10;
316        var e = n.shadowRoot, t = document.createElement("style");
317        t.textContent = `
318      .w-chrome {
319        box-shadow: 0 2px 12px 4px rgba(0, 0, 0, 0.1) !important;
320      }
321    `, e.appendChild(t);
322    });
323});

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.