1const shifter_trigger_el=document.querySelectorAll("[shifter]");for(var i=0;i<shifter_trigger_el.length;i++)shifter_trigger_el[i].addEventListener("click",function(){shifter(this.getAttribute("shifter"),this.getAttribute("shifter-item"))});function shifter(id,item){const shifter=document.getElementById(id),btn_nav=shifter.querySelector(".shifter__nav--buttons"),nav_items=shifter.querySelectorAll(".shifter__nav__item"),content_items=shifter.querySelectorAll(".shifter__content__item");if(shifter&&nav_items[item]&&content_items[item]){for(shifter.classList.add("shifter--active"),i=0;i<nav_items.length;i++)nav_items[i].classList.remove("shifter__nav__item--active"),btn_nav&&nav_items[i].setAttribute("class",btn_nav.dataset.btnDefaultClass+" shifter__nav__item");for(i=0;i<content_items.length;i++)content_items[i].classList.remove("shifter__content__item--active");if(btn_nav&&nav_items[item].setAttribute("class",btn_nav.dataset.btnActiveClass+" shifter__nav__item"),nav_items[item].classList.add("shifter__nav__item--active"),content_items[item].classList.add("shifter__content__item--active"),shifter.classList.contains("shifter--scroll-mixed")&&window.innerWidth<act.md||shifter.classList.contains("shifter--scroll-always")){const shifter_scroll=act.getOffsetTop(content_items[item])-act.scroll_offset.get();window.scroll({top:shifter_scroll,left:0,behavior:"smooth"})}}} 2//# sourceURL=https://47375101.fs1.hubspotusercontent-na2.net/hubfs/47375101/hub_generated/template_assets/1/188352080050/1791390617292/template_shifter.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.