1(()=>{if(customElements.get("countdown-clock"))return;class CountdownClock extends HTMLElement{constructor(){super(),this.date=this.dataset.date,this.clock=this.querySelector(".js-clock-preview"),this.ends=this.querySelectorAll(".hero__countdown-end"),this.images=this.querySelectorAll(".hero__countdown-image"),this.content=this.querySelector(".hero__countdown-content"),this.initCountdown()}initCountdown(){var targetTime=new Date(this.date).getTime();const that=this,clock=this.clock;let currentTime=new Date().getTime(),timeDifference=targetTime-currentTime;timeDifference<=0&&this.countdownClear();var countdownInterval=setInterval(function(){currentTime=new Date().getTime(),timeDifference=targetTime-currentTime;var days=Math.floor(timeDifference/(1e3*60*60*24)),hours=Math.floor(timeDifference%(1e3*60*60*24)/(1e3*60*60)),minutes=Math.floor(timeDifference%(1e3*60*60)/(1e3*60)),seconds=Math.floor(timeDifference%(1e3*60)/1e3);clock.innerHTML=`<span><strong>${days}</strong> <small>days</small></span><span><strong>${hours}</strong> <small>hours</small></span><span><strong>${minutes}</strong> <small>minutes</small></span><span><strong>${seconds}</strong> <small>seconds</small></span>`,timeDifference<0&&(clearInterval(countdownInterval),that.content.classList.add("hidden"),that.images.forEach(image=>{image.classList.add("hidden")}),that.ends.forEach(end=>{end.classList.remove("hidden")}))},1e3)}countdownClear(){this.content.classList.add("hidden"),this.images.forEach(image=>{image.classList.add("hidden")}),this.ends.forEach(end=>{end.classList.remove("hidden")})}}customElements.define("countdown-clock",CountdownClock)})(); 2//# sourceMappingURL=/cdn/shop/t/1106/assets/countdown-clock.js.map?v=68024364965573084801790351837
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.