const event=function(){const getTrackStyle=function(item){$(".range-labels li").removeClass("active selected");const currentLabel=$(".range-labels").find("li:nth-child("+item.value+")");currentLabel.addClass("active selected");currentLabel.prevAll().addClass("selected");uiChartGlobal.populateBandwidthChartUI(currentLabel[0].dataset.label)};function initStaticEvents(){const $rangeInput=$(".range input");const $mobileRangeInput=$("#bandwidth-slider");const header=document.querySelector("#header-container");if(header){header.addEventListener("click",changeDatacenterLocation)}if($rangeInput){$rangeInput.on("input",(function(){uiChartGlobal.sheet=getTrackStyle(this)}));$(".range-labels li").on("click",(function(){const index=$(this).index();$rangeInput.val(index+1).trigger("input")}))}if($mobileRangeInput){const inputRange=$mobileRangeInput.find("input");if(inputRange[0]!==undefined&&window.innerWidth<=1024){$mobileRangeInput.on("input",(function(){uiChartGlobal.mobileChangeDatacenterLocation(inputRange[0].value)}))}}}return{initStaticEvents:initStaticEvents}}();