1import{HTMLThemeElement}from"element.theme";class HotSpots extends HTMLThemeElement{connectedCallback(){this.el=this,this.buttons=this.querySelectorAll("[data-button]"),this.hotspotBlocks=this.querySelectorAll("[data-hotspot-block]"),this.blockContainer=this.querySelector("[data-block-container]"),this._bindEvents()}_bindEvents(){this.buttons.forEach(button=>{const id=button.dataset.button;button.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._showContent(id)})})}_showContent(id){this.hotspotBlocks.forEach(block=>{block.dataset.hotspotBlock===id?block.classList.add("is-active"):block.classList.remove("is-active")})}onBlockSelect({detail:{blockId}}){this._showContent(blockId)}}customElements.define("hot-spots",HotSpots); 2//# sourceMappingURL=/cdn/shop/t/59/assets/section.hotspots.js.map?v=178007014693575642251777974924
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.