PageSourceSearch

https://ocic.com/hubfs/hub_generated/module_assets/1/128951560586/1785337248142/module_top-tabber.min.js

js ocic.com collected 2026-10-07 10:18:43 UTC 2,867 bytes, 2 lines download raw bytes

1var module_128951560586=function(){const topTabberMobileTabs=document.querySelectorAll(".top-mobile-tabber button");topTabberMobileTabs.forEach(tab=>{tab.addEventListener("click",e=>{const el=e.currentTarget;let neighbor=el.nextElementSibling;el.classList.contains("active")?(el.classList.remove("active"),el.setAttribute("aria-expanded","false"),neighbor.classList.remove("active"),neighbor.setAttribute("hidden","")):(el.classList.add("active"),el.setAttribute("aria-expanded","true"),neighbor.classList.add("active"),neighbor.removeAttribute("hidden"))})});const setupTabber=tabber=>{const slidesContainer=tabber.querySelector(".top-tabber__slides"),slides=slidesContainer.querySelectorAll(".top-tabber__slide"),tabberTabs=tabber.querySelectorAll(".top-tabber__nav button"),recalc=()=>{slides.forEach(slide=>{const cards=slide.querySelectorAll(".top-tabber__card"),steps=slide.querySelectorAll(".top-tabber__step");cards.length&&(cards=>{if(!cards||!cards.length)return;cards.forEach(card=>{const header=card.querySelector(".top-tabber__card--header");header&&(header.style.height="auto")});let maxHeight=0;cards.forEach(card=>{const header=card.querySelector(".top-tabber__card--header");if(!header)return;const h=header.getBoundingClientRect().height;h>maxHeight&&(maxHeight=h)}),cards.forEach(card=>{const header=card.querySelector(".top-tabber__card--header");header&&(header.style.height=`${Math.ceil(maxHeight)}px`)})})(cards),steps.length&&(steps=>{if(!steps||!steps.length)return;steps.forEach(step=>{step.style.height="auto"});let maxHeight=0;steps.forEach(step=>{const h=step.getBoundingClientRect().height;h>maxHeight&&(maxHeight=h)}),steps.forEach(step=>{step.style.height=`${Math.ceil(maxHeight)}px`})})(steps)})};recalc();const onResize=((fn,ms=120)=>{let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn(...args),ms)}})(recalc,120);window.addEventListener("resize",onResize),tabberTabs.forEach(tab=>{tab.addEventListener("click",e=>{((tab,tabs,slidesContainer)=>{const slides=slidesContainer.querySelectorAll(".top-tabber__slide"),activeIndex=tab.getAttribute("index");tabs.forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-selected","false")}),tab.classList.add("active"),tab.setAttribute("aria-selected","true"),((slides,index)=>
1{slides.forEach(slide=>{slide.classList.remove("active"),slide.setAttribute("hidden",""),slide.getAttribute("index")==index&&(slide.classList.add("active"),slide.removeAttribute("hidden"))})})(slides,activeIndex)})(e.currentTarget,tabber.querySelectorAll(".top-tabber__nav button"),slidesContainer),recalc()})})};window.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".top-tabber").forEach(tabber=>setupTabber(tabber))})}();
2//# sourceURL=https://22522971.fs1.hubspotusercontent-na1.net/hubfs/22522971/hub_generated/module_assets/1/128951560586/1785337248142/module_top-tabber.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.