1!function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){"use strict";document.querySelectorAll(".card-lift--with-filters").forEach(function(element){var filterLinks=element.querySelectorAll(".js-filter"),posts=element.querySelectorAll(".js-posts");function swiperWidth(){var minSize,viewportRelativeSize,maxSize,viewportWidth,sidePadding=(minSize=24,viewportRelativeSize=.6,maxSize=96,viewportWidth=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.min(maxSize,Math.max(minSize,viewportRelativeSize*viewportWidth+9.6))),containerWidth=element.querySelector(".container").offsetWidth,filtersWidth=element.querySelector(".card-lift__filters").offsetWidth,swiper=element.querySelector(".js-swipers"),screenWidth=window.innerWidth;!function(){var mql=window.matchMedia("screen and (min-width: 768px) and (max-width: 1920px)");function checkMedia(mql){if(mql.matches){var width=containerWidth-filtersWidth-"42"+sidePadding;swiper.style.width=width+"px"}}checkMedia(mql),mql.addListener(checkMedia)}(),function(){var mql=window.matchMedia("screen and (min-width: 1920px) and (max-width: 2560px)");function checkMedia(mql){if(mql.matches){var width=screenWidth-(screenWidth-containerWidth)/2-filtersWidth-"32";swiper.style.width=width+"px"}}checkMedia(mql),mql.addListener(checkMedia)}()}filterLinks.forEach(function(link){link.addEventListener("click",function(event){!function(link){filterLinks.forEach(function(filter){filter.setAttribute("aria-selected","false"),filter.classList.remove("active")}),posts.forEach(function(post){post.setAttribute("aria-hidden","true"),post.classList.remove("active")});var filterId=link.getAttribute("data-filter"),post=element.querySelector('[data-id="'+filterId+'"]');link.setAttribute("aria-selected","true"),link.classList.add("active"),post.setAttribute("aria-hidden","false"),post.classList.add("active")}(event.target)})}),swiperWidth(),window.addEventListener("resize",swiperWidth)})},{}]},{},[1]); 2//# sourceURL=https://139784269.fs1.hubspotusercontent-eu1.net/hubfs/139784269/hub_generated/template_assets/1/85067974081/1789367922206/template_card-lift-with-filters.js
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.