https://rekindlecandle.co/cdn/shop/t/23/assets/component-animated-…?v=118720627857189534311766032380
1(()=>{class animatedBackgroundTextColors extends HTMLElement{constructor(){super(),this.blocks=this.querySelectorAll("[data-announcement-block]"),this.index=1,this.interval}connectedCallback(){this.init(),window.Shopify.designMode&&(document.addEventListener("shopify:block:select",this.handleBlockSelect.bind(this)),document.addEventListener("shopify:block:deselect",this.handleBlockDeselect.bind(this)))}init(){this.interval=setInterval(this.changeColors.bind(this),7e3)}changeColors(){const activeBlock=this.blocks[this.index],backgroundColor=activeBlock.getAttribute("data-background-color-block"),frontColor=activeBlock.getAttribute("data-front-color-block");setTimeout(()=>{this.style.backgroundColor=backgroundColor,this.style.color=frontColor},350);const prevActiveBlock=this.querySelector("[data-announcement-block].active");prevActiveBlock&&prevActiveBlock.classList.remove("active"),activeBlock.classList.add("active"),this.index=(this.index+1)%this.blocks.length}handleBlockSelect(e){const blockIndex=e.target.dataset.announcementBlockIndex;blockIndex&&(this.blocks.forEach(block=>block.classList.remove("active")),e.target.classList.add("active"),this.style.transition="none",this.style.backgroundColor=e.target.getAttribute("data-background-color-block"),this.style.color=e.target.getAttribute("data-front-color-block"),clearInterval(this.interval),this.index=parseInt(blockIndex))}handleBlockDeselect(e){const blockIndex=e.target.dataset.announcementBlockIndex;blockIndex&&(this.style.transition="",this.index=(parseInt(blockIndex)+1)%this.blocks.length,this.init())}}customElements.define("animated-background-text-colors",animatedBackgroundTextColors)})(); 2//# sourceMappingURL=/cdn/shop/t/23/assets/component-animated-background-text-colors.js.map?v=118720627857189534311766032380
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.