1(()=>{const getType=unknown=>Object.prototype.toString.call(unknown);IIN.helpers={countdown:(container,endTimeUTC,interval=1e3)=>{if(!container||!endTimeUTC)return;const endDate=new Date(endTimeUTC),updateCountdown=()=>{const currentDate=new Date,timeDifference=endDate-currentDate;if(timeDifference<=0)return void container.classList.add("hidden");const days=Math.floor(timeDifference/864e5),hours=Math.floor(timeDifference/36e5%24),minutes=Math.floor(timeDifference/6e4%60),seconds=Math.floor(timeDifference/1e3%60),setValue=(selector,value)=>{container.querySelectorAll(selector).forEach(element=>{element.textContent=value})};setValue(".days",String(days).padStart(2,"0")),setValue(".hours",String(hours).padStart(2,"0")),setValue(".minutes",String(minutes).padStart(2,"0")),setValue(".seconds",String(seconds).padStart(2,"0")),container.classList.remove("invisible")};updateCountdown();const countdownInterval=setInterval(()=>{const currentDate=new Date;endDate-currentDate>0?updateCountdown():(container.classList.add("hidden"),clearInterval(countdownInterval))},interval)},debounce:(func,timeout=300)=>{let timeoutID;return(...args)=>{timeoutID&&clearTimeout(timeoutID),timeoutID=setTimeout(()=>{func.apply(this,args)},timeout)}},extractCents:value=>{let cents=0;if(value){const decimals=String(value)?.split(".")[1];decimals&&(cents=parseFloat(decimals))}return cents},formatCurrency:(amount,includeZeroCents)=>{const currency=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(amount);return includeZeroCents?currency:currency.replace(".00","")},getType:getType,isNodeList:unknown=>"[object NodeList]"===getType(unknown),throttle:(func,delay=100)=>{let previousTime=0;return(...args)=>{const now=Date.now();if(!(now-previousTime<delay))return previousTime=now,func(...args)}},updateClasses:(element,action,classNames)=>{element&&classNames.forEach(className=>{element.classList[action](className)})}}})(); 2//# sourceURL=https://23273748.fs1.hubspotusercontent-na1.net/hubfs/23273748/hub_generated/template_assets/1/178411390600/1790876454488/template__helpers.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.