PageSourceSearch

https://katapult.com/wp-content/themes/katapult/library/dist/js/script-min.js?ver=6ab579000acda

js katapult.com collected 2026-09-24 19:26:32 UTC 33,143 bytes, 1 lines download raw bytes

1var Cookie=function(){var e=function(e){var t;return decodeURIComponent(document.cookie).split("; ").forEach(function(i){0===i.indexOf(e+"=")&&(t=i.split("=")[1])}),t},t=function(e,t,i,s){var o="";if(s=s||"/",i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3),o="expires="+n.toUTCString()+";"}document.cookie=e+"="+t+";"+o+"path="+s};return{get:e,set:t,delete:function(i){void 0!==e(i)&&t(i,"_",-1)}}}();!function(e){var t={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return t.Android()||t.BlackBerry()||t.Opera()||t.Windows()}};e(document).ready(function(){if(t.iOS()){e(".mobile_store > a").attr("href","https://apps.apple.com/us/app/katapult-shop-lease-to-own/id1612074883")}if(t.Android()){e(".mobile_store > a").attr("href","https://play.google.com/store/apps/details?id=com.katapult.katapultapp")}});for(var i=document.querySelectorAll("a"),s=0;s<i.length;s++){var o=i[s];o.hostname!=location.hostname&&(o.rel="noopener",o.target="_blank")}function n(){var t=e(window).width(),i=e(".header_wrapper").outerHeight(),s=e(".alert-modal").outerHeight(),o=(e(".resources_filter").outerHeight(),e("#wpadminbar").outerHeight()),n=e("#top_ribbon");e("#wpadminbar").length?headerOffset=o:headerOffset=0,t>=1081?e(".header_wrapper").stickit({screenMinWidth:1081,top:headerOffset}):e(".header_wrapper").stickit("destroy").css({transform:"",willChange:""}),e(".close-alert").click(function(){var t=e(".main-header").outerHeight();e(".header_wrapper").find(".alert-modal").hide(),e(".main-nav").css("top",i),e("#content").css("margin-top",t),e(".header_wrapper").hasClass("transparent_header")&&e("#content").css("margin-top",0)}),t<=1080?(e(".header_wrapper").css("top",o),e("#content").css("margin-top","-"+i),e("#wpadminbar").length?e(".main-nav").css("top",i+s):(e(".header_wrapper").css("top",0),n.length&&e("body").hasClass("header-with-ribbon")&&!e("body").hasClass("collapse_menu")?e(".main-nav").css("top",i-n.outerHeight()-20):e(".main-nav").css("top",i-20)),e(".vc_row.hero_section, .vc_row.video_hero_section, .vc_row.inner_hero, .vc_row.hero-mba, .home-header-dark, .th_section").length?(e(".header_wrapper").addClass("transparent_header"),e("#content").css("margin-top",0)):(e(".header_wrapper").addClass("solid_header"),e("#content").css("margin-top",i))):e(".vc_row.hero_section, .vc_row.video_hero_section, .vc_row.inner_hero, .vc_row.hero-mba, .home-header-dark, .th_section").length?(e(".header_wrapper").addClass("transparent_header"),e("#content").css("margin-top",i)):(e(".header_wrapper").addClass("solid_header"),e("#content").css("margin-top",i))}function a(){e(window).width()<=1080&&(e(".banner h4 br").remove(),e(".vc_custom_heading br").remove(),e(".slide_content h3 br").remove(),e(".slide_content p br").remove(),e(".wpb_content_element p br").remove(),e(".retailers_grid .item_content p br").remove())}e(function(){e(".search_modal").appendTo("footer.footer")}),e(document).ready(function(){e(".open_modal a").attr({"data-target":"#modal-application-modal","data-toggle":"modal"}),e(".open_modal a").removeAttr("href")}),e(document).ready(function(){n(),e(window).resize(function(){n()})}),e(function(){e(window).scroll(function(){e(window).scrollTop()>=100?e(".main-header").addClass("sticky"):e(".main-header").removeClass("sticky")})}),e(window).on("scroll",function(){if(scrollTop=e(document).scrollTop(),e(window).width()<=1024)Math.min(190,scrollTop);else{Math.min(190,scrollTop);0===scrollTop&&e(".light_logo").css("opacity",1)}e(".main-header").hasClass("sticky")&&e(".main-header").hasClass("transparent_header")||(e(".dark_logo").css("opacity",e(window).scrollTop()/150),e(".fake-bg").css("opacity",0+e(window).scrollTop()/120),scrollTop)}),e(function(){e("#featured_stores.desktop_slider").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,prevArrow:e("#featured_nav .nav-previous"),nextArrow:e("#featured_nav .nav-next"),arrows:!0,dots:!1}),e(window).width()<=767&&e("#featured_stores.mobile_slider").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,prevArrow:e("#featured_nav .nav-previous"),nextArrow:e("#featured_nav .nav-next"),arrows:!0,dots:!1,adaptiveHeight:!0})}),e(function(){e(".gallery-slider").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,dots:!0,responsive:[{breakpoint:767,settings:{arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,autoPlay:!1}
1}]})}),e(function(){e(".carousel-slider").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,dots:!1,autoplay:!0,fade:!0,autoplaySpeed:3e3,pauseOnHover:!1}),e(".shop_slider__carousel").not(".slick-initialized").slick({slidesToShow:3,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,dots:!0,autoplay:!0,autoplaySpeed:5e3,pauseOnHover:!0,responsive:[{breakpoint:990,settings:{arrows:!1,dots:!0,slidesToShow:2,slidesToScroll:1,autoPlay:!1,pauseOnHover:!0}},{breakpoint:767,settings:{arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,autoPlay:!1,pauseOnHover:!0}}]})}),e(function(){e(".testimonial-slider").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,arrows:!1,dots:!0,infinite:!0,autoplay:!1,fade:!0,autoplaySpeed:6e3,pauseOnHover:!1,responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,arrows:!1,dots:!0,adaptiveHeight:!1}}]})}),e(function(){e(".counter").countUp({time:2e3,delay:30})}),e(function(){e(window).width()<=767&&e(".vc_row.mobile_swap").wrapAll('<div class="mobile_swap_wrapper" />')}),e(function(){e('.main-nav-list a[href*="#"]').click(function(t){0==e(t.currentTarget).parent().hasClass("allow-hash-click")&&t.preventDefault()})}),e(function(){e(".top-pagination .pagination div").each(function(){e(this).is(":empty")?e(this).addClass("empty_nav"):e(this).removeClass("empty_nav")})}),e(function(){}),e(function(){e.fn.customerPopup=function(e,t,i,s){e.preventDefault(),t=t||"500",i=i||"400",strResize=s?"yes":"no";var o=void 0!==this.attr("title")?this.attr("title"):"Social Share",n="width="+t+",height="+i+",resizable="+strResize;window.open(this.attr("href"),o,n).focus()},e(document).ready(function(e){e(".social-share").on("click",function(t){e(this).customerPopup(t)})})}),e(document).ready(function(){var t=e("body");e(".mobile-toggle-wrap").click(function(){t.toggleClass("collapse_menu")}),e(window).width()<=1279&&(e("#mobile-menu li.menu-item-has-children").each(function(t){e(this).prepend("<a class='open-menu'></a>")}),e("#mobile-menu li.menu-item-has-children:has(ul)").addClass("inactive"),e("#mobile-menu li.menu-item-has-children:has(ul) ul").css("display","none"),e(".open-menu").click(function(){e(this).parent("li.menu-item-has-children").hasClass("active")&&e(this+"a").attr("aria-expanded","false"),e(this).parent("li.menu-item-has-children").hasClass("inactive")&&e(this+"a").attr("aria-expanded","true");var t=e(this).next().next();return e("ul li.menu-item-has-children ").removeClass("active"),e(this).closest("li.menu-item-has-children").addClass("active").removeClass("inactive"),t.is("ul")&&t.is(":visible")&&(e(this).closest("li.menu-item-has-children ").removeClass("active").addClass("inactive"),t.slideUp("normal")),t.is("ul")&&!t.is(":visible")&&(e("ul ul:visible").not(e(this).parents("ul")).slideUp("normal"),t.slideDown("normal")),!t.is("ul")}))}),e('a[href^="#"].scrollTo, .scrollTo a[href^="#"]').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var t=e(this.hash),i=e(".header_wrapper").outerHeight()+50;if((t=t.length?t:e("[name="+this.hash.slice(1)+"]")).length)return e("html,body").animate({scrollTop:t.offset().top-i},1e3),!1}}),e('.main-nav a[href^="#"], .vc_tta-panel-title').click(function(){if(e("body").removeClass("collapse_menu"),location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var t=e(this.hash),i=e(".header_wrapper").outerHeight(),s=e(".sticky_nav").outerHeight();t=t.length?t:e("[name="+this.hash.slice(1)+"]");if(headerOffset=i+s,t.length)return console.log(i),e("html,body").animate({scrollTop:t.offset().top-headerOffset},500),!1}}),e(window).resize(a),e(window).load(a),e(document).ready(a),e(".shop_slider ").click(function(t){e(t.target).hasClass("shop_slider__see-more")?(e(".shop_slider__tooltip").removeClass("shop_slider__tooltip--visible"),e(t.target).siblings(".shop_slider__tooltip").addClass("shop_slider__tooltip--visible")):e(".shop_slider__tooltip").removeClass("shop_slider__tooltip--visible")})}(jQuery),function(e){var t,i,s,o,n,a;0!=(t=jQuery(".product-pay-slider .shop_slider__carousel")).length&&(t.hasClass("slick-initialized")&&t.slick("unslick"),t.slick({slidesToShow:2.2,slidesToScroll:1,infinite:!1,dots:!0,arrows:!1,responsive:[{breakpoint:1380,settings:{slidesToShow:1.5,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:1,centerMode:!0,centerPadding:"10%"}}]})),function(){var e=!1,t=jQuery(".media_features_slider_js .cta_boxes");function i(){window.innerWidth<=767?e||(t.slick({slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}),e=!0):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(t.addClass("slider-primary-arrows"),i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=!1,t=jQuery(".payment-steps").not(".payment_steps_v2");function i(){window.innerWidth<=767?e||(t.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!1,responsive:[{breakpoint:575,settings:{slidesToShow:1.5,slidesToScroll:1}}]}),e=!0):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(t.addClass("slider-primary-arrows"),i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=jQuery(".landing-testimonials__list");
10!=e.length&&(e.addClass("slider-darkblue-arrows"),e.slick({slidesToShow:3,slidesToScroll:1,dots:!1,infinite:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1,dots:!0}}]}))}(),function(){var e=jQuery(".shoppers-slider");function t(){jQuery(window).width()<=767?e.hasClass("slick-initialized")||e.slick({slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1,arrows:!0}):e.hasClass("slick-initialized")&&e.slick("unslick")}e.length<0||(t(),jQuery(window).on("resize",function(){t()}))}(),function(){var t=e("#featured_stores_v2.desktop_slider");t.length>0&&t.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,prevArrow:jQuery("#featured_nav_v2 .nav-previous"),nextArrow:jQuery("#featured_nav_v2 .nav-next"),arrows:!0,dots:!1})}(),function(){var e=jQuery(".landing-header");function t(){jQuery(window).scrollTop()>50?e.addClass("landing-header--afix"):e.removeClass("landing-header--afix")}0!==e.length&&(t(),jQuery(window).on("scroll",t))}(),function(){var e=jQuery(".value-props");function t(){if(!e.hasClass("hidden")){var t=jQuery(".value-props ul:visible"),i=t.parent().outerWidth(),s=t[0].scrollWidth-i;s>0&&(s+=30);var o=s/25;jQuery(".value-props").css({"--v-props-scroll-dist":`-${s}px`,"--v-props-anim-duration":`${o}s`})}}0!==e.length&&(jQuery(window).on("resize",t),setTimeout(t,1500))}(),(i=jQuery("div.btn-kat-apply-masthead")).length>0&&i.find("button, a").addClass("btn-kat-apply-masthead"),function(){var e=jQuery('a[data-target="#modal-v2-exit"]'),t=jQuery("#modal-v2-exit"),i=!1;if(e){var s=-1!==navigator.userAgent.indexOf("Macintosh")||-1!==navigator.userAgent.indexOf("Mac OS X")?"Mac":"Other";setTimeout(function(){i=!0},500),document.addEventListener("mouseout",function(e){if(!e.relatedTarget||e.relatedTarget===document.documentElement){var t=e.clientX,i=e.clientY,n=.27*window.innerWidth;("Mac"===s&&t<=n&&i<=25||"Other"===s&&t>=window.innerWidth-n&&i<=25)&&o()}}),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&o()}),jQuery(".close-disclosure-modal").on("click",function(){var e=jQuery(this).closest(".disclosure-modal-v2");e.css({display:"none"}),e.removeClass("in"),jQuery("body").removeClass("modal-open")})}function o(){if(i&&t.length&&!t.hasClass("hidden")){var e=t.data("cookie-slug")||"exit-intent-popup";Cookie.get(e)||(!function(e){e.addClass("in"),e.css({display:"block"}),jQuery("body").addClass("modal-open"),e.prop("aria-hidden",!1)}(t),Cookie.set(e,1,730,"/"))}}}(),function(){var e=jQuery("#testimonial_cards_slider .testimonial-slider");0!=e.length&&(e.hasClass("slick-initialized")&&e.slick("unslick"),e.slick({slidesToShow:3.5,slidesToScroll:1,infinite:!1,arrows:!1,touchMove:!0,swipeToSlide:!0,swipe:!0,autoplay:!1,speed:500,cssEase:"linear",responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1}}]}))}(),0!==(s=jQuery(".h-scroll")).length&&s.each(function(){var e,t,i=jQuery(this),s=!1;i.on("mousedown",function(o){s=!0,i.addClass("is-dragging"),e=o.pageX-i.offset().left,t=i.scrollLeft()}),i.on("mouseleave mouseup",function(){s=!1,i.removeClass("is-dragging")}),i.on("mousemove",function(o){if(s){o.preventDefault();var n=2*(o.pageX-i.offset().left-e);i.scrollLeft(t-n)}}),i.on("dragstart",function(e){e.preventDefault()}),i.css({userSelect:"none",cursor:"grab"}),i.on("mousedown",function(){i.css("cursor","grabbing")}),i.on("mouseup",function(){i.css("cursor","grab")})}),function(){var e=jQuery("#how_works_steps_slider");e&&(e.slick({slidesToShow:1.9,slidesToScroll:1,infinite:!1,focusOnSelect:!0,arrows:!0,prevArrow:jQuery("#c_arrows .arrow--prev"),nextArrow:jQuery("#c_arrows .arrow--next"),dots:!1,variableWidth:!0,responsive:[{breakpoint:1440,settings:{slidesToShow:1.2,slidesToScroll:1,variableWidth:!1}},{breakpoint:1080,settings:{slidesToShow:1,slidesToScroll:1,variableWidth:!1}},{breakpoint:992,settings:{slidesToShow:1.5,slidesToScroll:1,variableWidth:!1}},{breakpoint:551,settings:{slidesToShow:1.05,slidesToScroll:1,variableWidth:!1}}]}),jQuery(".c-slider-nav li").on("click",function(){var t=jQuery(this).data("slide");e.slick("slickGoTo",t),jQuery(".c-slider-nav li").removeClass("is-active"),jQuery(this).addClass("is-active")}),e.on("afterChange",function(e,t,i){jQuery(".c-slider-nav li").removeClass("is-active"),jQuery('.c-slider-nav li[data-sli
1de="'+i+'"]').addClass("is-active")}))}(),function(){var t=e(".c-tabs-group .c-tabs-group__tab"),i=e(".step_block_container");function s(t){i.each(function(){e(this).is(t)||function(e){e.hasClass("slick-initialized")&&e.slick("unslick")}(e(this))}),t.hasClass("slick-initialized")||t.slick({slidesToShow:4,slidesToScroll:1,infinite:!1,focusOnSelect:!0,arrows:!1,dots:!1,responsive:[{breakpoint:1081,settings:{slidesToShow:3.5,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:3.2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2.7,slidesToScroll:1}},{breakpoint:651,settings:{slidesToShow:1.6,slidesToScroll:1}},{breakpoint:376,settings:{slidesToShow:1.3,slidesToScroll:1}}]})}t.length&&i.length&&(t.on("click",function(){var o=e(this).attr("id");i.addClass("hidden"),e("."+o).removeClass("hidden"),t.removeClass("is-active"),e(this).addClass("is-active"),s(e("."+o))}),i.each(function(){e(this).hasClass("hidden")||s(e(this))}))}(),function(){var e=!1,t=jQuery(".steps_mob_slider_js");function i(){window.innerWidth<=767?e||(t.slick({slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}),e=!0):e&&(t.slick("unslick"),e=!1)}0!==t.length&&(i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=!1,t=jQuery(".media_mba_slider_js");function i(){window.innerWidth<=991?e||(t.slick({slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!1}),e=!0):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=!1,t=jQuery(".steps_mba_mob_slider_js");function i(){var e=t.find(".slick-slide.slick-active"),i=e.find("img");if(i.length){var s=i.offset(),o=i.outerHeight(),n=e.offset(),a=s.top+o/2-n.top;t.find(".slick-arrow.slick-next").css("top",a+"px"),t.find(".slick-arrow.slick-prev").css("top",a+"px")}}function s(){window.innerWidth<=767?(e||(t.slick({slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}),e=!0),i()):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(s(),jQuery(window).on("resize",function(){s()}))}(),function(){var e=!1,t=jQuery(".amazon_steps_cards_slider_js");function i(){window.innerWidth<=767?e||(t.slick({slidesToShow:1.1,arrows:!1,dots:!0,infinite:!1,adaptiveHeight:!1}),e=!0):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=!1,t=jQuery(".pay_schedule_slider_js");function i(){window.innerWidth<=767?e||(t.slick({slidesToShow:1.2,arrows:!1,dots:!0,infinite:!1,adaptiveHeight:!1}),e=!0):e&&(t.slick("unslick"),e=!1)}0!=t.length&&(i(),jQuery(window).on("resize",function(){i()}))}(),function(){var e=document.querySelector(".top-ribbon");if(e){var t=document.querySelector(".top-ribbon__inner"),i=document.querySelectorAll(".top-ribbon__item"),s=i.length,o=1e3*parseInt(e.getAttribute("data-interval"));if(t&&!(s<=1)){var n=0,a=i[0].cloneNode(!0);t.appendChild(a),setInterval(function(){var e;n++,e=n,t.style.transition="transform 0.6s ease-in-out",t.style.transform="translateX(-"+100*e+"%)",n===s&&setTimeout(function(){t.style.transition="none",t.style.transform="translateX(0%)",n=0},600)},o)}}}(),jQuery(document).on("click","[data-trigger]",function(e){e.preventDefault();var t=jQuery(this).data("trigger"),i=jQuery(t);i.length&&i.trigger("click")}),document.querySelectorAll(".filter-tags-wrap").forEach(function(e){var t=e.querySelectorAll(".filter-tags__item"),i=e.querySelector(".filtert-grid");if(t&&i){var s=i.querySelectorAll(".filtert-grid__item");t.forEach(function(e){e.addEventListener("click",function(){var e=this.getAttribute("data-type");this.classList.contains("is-active")?(this.classList.remove("is-active"),i.classList.remove("is-active"),s.forEach(function(e){e.classList.remove("is-active")})):(t.forEach(function(e){e.classList.remove("is-active")}),this.classList.add("is-active"),i.classList.add("is-active"),function(e){s.forEach(function(t){t.getAttribute("data-type")===e?t.classList.add("is-active"):t.classList.remove("is-active")})}(e))})})}}),document.querySelectorAll(".filtert-grid").forEach(function(e){var t=e.getAttribute("data-modal-id"),i=document.querySelector("#"+t);i&&e.querySelectorAll(".filtert-grid__item a[data-brand]").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var s=e.getAttribute("data-brand");if(s){var o=i.querySelector(".brand-name");o&&(o.textContent=s)}})})}),(o=document.querySelectorAll(".c-accordion")).length&&o.forEach(function(e){var t=e.querySelectorAll(".c-accordion__item");t.forEach(function(e){var i=e.querySelector(".c-accordion__header");i&&i.addEventListener("click",function(){t.forEach(function(t){t!==e&&t.classList.remove("is-active")}),e.classList.toggle("is-active")})})}),(n=document.querySelectorAll(".faq-filters-wrap")).length&&n.forEac
1h(function(e){var t=e.querySelectorAll('div[data-id="faq_accordion_item"]'),i=e.querySelectorAll('[data-id="faq_filter_tag"]');t.length&&i.length&&i.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var s=this.getAttribute("data-filter");i.forEach(function(e){e.classList.remove("is-active")}),this.classList.add("is-active"),t.forEach(function(e){e.getAttribute("data-category").includes(s)?e.classList.add("is-visible"):e.classList.remove("is-visible")})})})}),jQuery('[data-id="faq_search_field"]').each(function(){var e=jQuery(this),t=e.data("target");if(t){var i=jQuery(t);if(i.length){var s=e.find("button"),o=e.find('input[type="search"]'),n=i.find(".c-accordion__item"),a=i.find('.faq-filters [data-id="faq_filter_tag"]'),r=n.filter(".is-visible"),l=a.filter(".is-active"),c=!1;o.on("input",function(){var e=o.val().trim().length;0===e&&(n.removeClass("is-visible"),r.addClass("is-visible"),a.removeClass("is-active"),l.addClass("is-active")),s.prop("disabled",e<3)}),a.on("click",function(e){o.val().length>0&&(o.val(""),s.prop("disabled",!0)),r=n.filter(".is-visible"),l=a.filter(".is-active")}),s.on("click",d),o.on("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),d())})}}function d(){if(!c){c=!0;var e=o.val().toLowerCase().trim();e.length<3||(n.each(function(){var t=jQuery(this),i=(t.find(".c-accordion__header").text()+" "+t.find(".c-accordion__content").text()).toLowerCase();t.toggleClass("is-visible",i.includes(e))}),a.removeClass("is-active"),c=!1)}}}),0!=jQuery(".brand-filters-sec").length&&"undefined"!=window.dataLayer&&jQuery(document).on("click",".brand-filters-sec .filtert-grid__item.is-active a",function(){var e=jQuery(this).attr("data-brand");e||(e="unknow"),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"partner_logo_click",partner_name:e}),console.log("dataLayer - partner_logo_click: ",e)}),setTimeout(function(){var e=document.querySelector(".sticky-head");if(e){var t=function(){for(var e=document.querySelectorAll(".maincontent > .wpb-content-wrapper > div"),t=0;t<e.length;t++){var i=e[t];if(!i.classList.contains("hidden"))return i}return null}();if(t){var i=document.querySelector(".main-header");s(),window.addEventListener("scroll",s),window.addEventListener("resize",s)}}function s(){var s=t.offsetTop+t.offsetHeight+30,o=0;1!=(o=window.scrollY+i.offsetHeight>s?1:-1)||e.classList.contains("is-active")?-1==o&&e.classList.contains("is-active")&&e.classList.remove("is-active"):e.classList.add("is-active")}},1e3),0!=(a=jQuery('[data-id="ebook_promo_slider"]')).length&&a.slick({slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!1,adaptiveHeight:!0}),document.addEventListener("DOMContentLoaded",function(){if(window.location.pathname.includes("/katapult-for-shoppers/shop/")){var e=new URLSearchParams(window.location.search),t=e.get("_sft_shop-type"),i=e.get("_sft_shop-category");if("categories"===t&&null!==i&&""!==i.trim()){var s=document.querySelector(".sf-field-taxonomy-shop-category");s&&(s.style.display="block")}}}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".hubspot_form_wrap");if(e.length){var t=document.createElement("script");t.src="//js.hsforms.net/forms/embed/v2.js",t.async=!0,document.body.appendChild(t),t.onload=function(){window.hbspt&&e.forEach(function(e){var t=e.dataset.portalId,i=e.dataset.formId,s=e.dataset.region,o='.hubspot_form_wrap[data-form-id="'+e.dataset.formId+'"]',n=e.dataset.event;hbspt.forms.create({portalId:t,formId:i,region:s,target:o,onFormReady:function(t){n&&document.dispatchEvent(new CustomEvent("hubspot:"+n,{detail:{$form:t,form:e}}))}})})}}}),document.addEventListener("hubspot:schedule-demo",function(e){var t=e.detail.$form,i=(e.detail.form,t[0]),s=0,o=null,n=Array.from(i.querySelectorAll("fieldset")).filter(function(e){return null!==e.offsetParent&&e.querySelector('input:not([type="hidden"]), select, textarea')}),a=[],r=[],l=0;function c(){var e=i.querySelector('.hs-step[data-step="'+s+'"]');if(!e)return!1;if(e.querySelectorAll(".hs-error-msgs").length>0)return!1;var t=e.querySelectorAll("input, select, textarea");return!Array.from(t).some(function(e){return e.hasAttribute("required")&&(!e.value||""===e.value.trim())})}function d(){var e=i.querySelector('.hs-step[data-step="'+s+'"]');e&&(o&&o.disconnect(),(o=new MutationObserver(function(){u()}
1)).observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"]}))}function u(){var e=i.querySelector(".hs-next");if(e){var t=c();e.disabled=!t}}function h(){i.querySelectorAll(".hs-step").forEach(function(e,t){e.classList.toggle("hidden",t!==s)}),i.parentNode.querySelectorAll(".hs-form-steps__step").forEach(function(e,t){e.classList.toggle("active",t<=s)});var e=i.querySelector('input[type="submit"]'),t=i.querySelector(".hs-prev"),o=i.querySelector(".hs-next");t.classList.toggle("hidden",0===s),s===a.length-1?(o.classList.add("hidden"),e.classList.remove("hidden")):(o.classList.remove("hidden"),e.classList.add("hidden")),d(),u(),m()}function f(e){if(!e.dataset.customized){e.dataset.customized=!0;var t=document.getElementById("cselect_template");if(t){var i=t.cloneNode(!0);i.removeAttribute("id"),i.classList.remove("hidden");var s=i.querySelector(".cselect-tmp__trigger"),o=i.querySelector(".cselect-tmp__dropdown");s.textContent=p(e),Array.from(e.options).forEach(function(t){if(t.value){var n=document.createElement("div");n.className="cselect-tmp__option",n.textContent=t.textContent,n.dataset.value=t.value,n.addEventListener("click",function(){e.value=t.value,e.dispatchEvent(new Event("change",{bubbles:!0})),s.textContent=t.textContent,i.classList.remove("open"),v(o,t.value)}),o.appendChild(n)}}),s.addEventListener("click",function(t){t.stopPropagation();var s=i.classList.contains("open");m(),s?(i.classList.remove("open"),w(e)):i.classList.add("open")}),e.parentNode.appendChild(i),e.style.position="absolute",e.style.opacity="0",e.style.pointerEvents="none",e.addEventListener("change",function(){s.textContent=p(e),v(o,e.value)})}}}function p(e){var t=e.options[e.selectedIndex];return t?t.textContent:"Please Select"}function v(e,t){e.querySelectorAll(".cselect-tmp__option").forEach(function(e){e.classList.toggle("selected",e.dataset.value===t)})}function m(){document.querySelectorAll(".cselect-tmp.open").forEach(function(e){var t=e.previousElementSibling;e.classList.remove("open"),t&&w(t)})}function w(e){e.value||(e.focus(),setTimeout(function(){e.blur()},0))}n.forEach(function(e){var t=function(e){return e.querySelectorAll('input:not([type="hidden"]), select, textarea').length}(e);l+t>3&&(a.push(r),r=[],l=0),r.push(e),l+=t}),r.length&&a.push(r),document.addEventListener("click",function(){m()}),a.forEach(function(e,t){var s=document.createElement("div");s.className="hs-step",s.dataset.step=t,e.forEach(function(e){s.appendChild(e)}),i.insertBefore(s,i.querySelector(".hs_submit"))}),function(){var e=document.createElement("div");e.className="hs-form-steps";var t=document.createElement("div");t.className="hs-form-steps__inner",a.forEach(function(e,i){var s=document.createElement("span");s.className="hs-form-steps__step",s.innerText=i+1,t.appendChild(s)}),e.appendChild(t),i.parentNode.insertBefore(e,i)}(),function(){var e=i.querySelector(".hs_submit .actions"),t=document.createElement("button");t.type="button",t.className="hs-prev hidden",t.innerText="Back",e.prepend(t),t.addEventListener("click",function(){s>0&&(s--,h())});var o=document.createElement("button");o.type="button",o.className="hs-next",o.innerText="Next",e.appendChild(o),o.addEventListener("click",function(){c()&&s<a.length-1&&(s++,h())}),i.addEventListener("submit",function(e){s<a.length-1&&e.preventDefault()})}(),h(),i.addEventListener("input",function(e){var t=i.querySelector('.hs-step[data-step="'+s+'"]');t&&t.contains(e.target)&&u()}),i.addEventListener("blur",function(e){var t=i.querySelector('.hs-step[data-step="'+s+'"]');t&&t.contains(e.target)&&setTimeout(u,50)},!0),d(),function(e){var t=e.querySelectorAll("select.hs-input");t.forEach(f)}(i)}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector('[data-id="c_search_brands"]');if(e){var t=e.querySelector(".js-brand-search"),i=e.querySelector(".c-brand-dropdown"),s=e.querySelector(".c-brand-dropdown__inner"),o=e.getAttribute("data-modal-id"),n=document.querySelector("#"+o);if(t&&i&&s){var a=e.querySelector("button"),r=e.querySelector(".c-placeholder"),l=JSON.parse(e.dataset.brands),c={};
1l.forEach(function(e){e.partners.forEach(function(t){c[t.title]||(c[t.title]={title:t.title,categories:[]}),-1===c[t.title].categories.indexOf(e.category_title)&&c[t.title].categories.push(e.category_title)})});var d,u=Object.values(c);t.addEventListener("input",function(e){f(),clearTimeout(d),d=setTimeout(function(){h(e.target.value)},350)}),t.addEventListener("focus",function(){""!==t.value.trim()&&h(t.value)}),a.addEventListener("click",function(){t.value="",i.classList.add("hidden"),e.classList.remove("active"),a.disabled=!0,t.focus(),f()}),document.addEventListener("click",function(t){e.contains(t.target)||(i.classList.add("hidden"),e.classList.remove("active"))})}}function h(o){var r=o.toLowerCase().trim();if(s.innerHTML="",""===r)return i.classList.add("hidden"),e.classList.remove("active"),void(a.disabled=!0);var l=u.filter(function(e){var t=-1!==e.title.toLowerCase().indexOf(r),i=e.categories.some(function(e){return-1!==e.toLowerCase().indexOf(r)});return t||i});if(0===l.length){var c=document.createElement("div");return c.className="c-brand-dropdown-empty",c.innerHTML="No results found.",s.appendChild(c),i.classList.remove("hidden"),e.classList.add("active"),void(a.disabled=!1)}l.forEach(function(o){var r=document.createElement("div");r.className="c-brand-dropdown-item",r.innerHTML="<span>"+o.title+"</span>",r.setAttribute("data-trigger",'[data-target="#modal-brand"]'),r.setAttribute("data-brand",o.title),r.addEventListener("click",function(){t.value=o.title,i.classList.add("hidden"),e.classList.remove("active"),a.disabled=!0;var s=r.getAttribute("data-brand");if(s){var l=n.querySelector(".brand-name");l&&(l.textContent=s)}}),s.appendChild(r)}),i.classList.remove("hidden"),e.classList.add("active"),a.disabled=!1}function f(){r&&(""===t.value.trim()?r.classList.remove("hidden"):r.classList.add("hidden"))}}),function(){var e=jQuery(".process_slider_js");e.length&&e.slick({slidesToShow:4,arrows:!1,dots:!0,infinite:!1,adaptiveHeight:!1,responsive:[{breakpoint:1081,settings:{slidesToShow:3}},{breakpoint:992,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1.2}}]})}(),function(){var e=jQuery(".payment_steps_v2");0!=e.length&&(e.addClass("slider-primary-arrows"),e.slick({slidesToShow:5,slidesToScroll:1,arrows:!0,dots:!1,infinite:!1,responsive:[{breakpoint:1081,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:575,settings:{slidesToShow:1.5,slidesToScroll:1}}]}))}(),document.addEventListener("DOMContentLoaded",function(){var e=1e3,t=null;function i(s,o){s[o].classList.add("is-visible"),t=setTimeout(function(){o+1<s.length?i(s,o+1):t=setTimeout(function(){for(var o=0;o<s.length;o++)s[o].classList.remove("is-visible");t=setTimeout(function(){i(s,0)},e)},e)},e)}function s(){clearTimeout(t);var e=function(){var e=window.innerWidth<=767?"mob-":"desk-",t=Array.prototype.slice.call(document.querySelectorAll(".store-logos .float-brand"));return t.sort(function(t,i){function s(t){for(var i=t.className.split(" "),s=0;s<i.length;s++)if(0===i[s].indexOf(e))return parseInt(i[s].replace(e,""),10);return 999}return s(t)-s(i)}),t}();if(e.length){for(var s=0;s<e.length;s++)e[s].classList.remove("is-visible");i(e,0)}}s(),window.addEventListener("resize",function(){s()})}),function(){var e=jQuery('[data-id="c_testimonials_slider"]');if(0!=e.length){var t=!0===e.data("autoplay")||"true"===e.data("autoplay"),i=parseInt(e.data("autoplay-speed"))||5e3;e.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,infinite:!0,autoplay:t,autoplaySpeed:i,fade:!0,speed:500,adaptiveHeight:!0})}}(),function(){var e=jQuery(".process_slider_v2_js");e.length&&e.slick({slidesToShow:4,arrows:!1,dots:!0,infinite:!1,adaptiveHeight:!1,responsive:[{breakpoint:1081,settings:{slidesToShow:3}},{breakpoint:992,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1,centerMode:!0,centerPadding:"15%"}}]})}(),function(){var e=jQuery(".options_slider_js");e.length&&e.slick({slidesToShow:3,arrows:!1,dots:!0,infinite:!1,adaptiveHeight:!1,responsive:[{breakpoint:992,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1.06}}]})}(),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".kat_price_calculator");e.length&&e.forEach(function(e){e.addEventListener("click",function(e){e.target.closest("a, button")&&(e.preventDefault(),window.k
1atapult&&"function"==typeof window.katapult.loadPriceCalculator?window.katapult.loadPriceCalculator():console.error("Katapult SDK not loaded or loadPriceCalculator function not available"))})})}),document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll('[data-id="c_faq_slider"]');t.length&&t.forEach(function(t){var i=t.id;if(i){var s=document.querySelector('[data-faq-prev="'+i+'"]'),o=document.querySelector('[data-faq-next="'+i+'"]'),n={slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,infinite:!1,fade:!0,adaptiveHeight:!0,responsive:[{breakpoint:768,settings:{dots:!0}}]};s&&o&&(n.arrows=!0,n.prevArrow=s,n.nextArrow=o),e(t).slick(n)}})}),document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".c-faq");t.length&&t.forEach(function(t){t.addEventListener("click",function(){var i=t.querySelector(".c-faq__header"),s=t.querySelector(".c-faq__content");if(i&&s){s.classList.contains("hidden")?(s.classList.remove("hidden"),i.classList.add("hidden"),t.classList.add("active")):(s.classList.add("hidden"),i.classList.remove("hidden"),t.classList.remove("active"));var o=t.closest('[data-id="c_faq_slider"]');o&&e(o).hasClass("slick-initialized")&&e(o).slick("setPosition")}})})})}(jQuery);

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.