1(async()=>{const{Core}=await importModule("Core"),CN_ACTIVE="!active";customElements.define("slideshow-thumbnails",class extends Core{elements={items:"*[data-item]"};async render(){this.$ref&&(await this._initRefSlider(),this._handleItemsClick(),this._handleSlideChange())}async _initRefSlider(){await customElements.whenDefined(this.$ref.localName),this._updateActive()}_handleSlideChange(){this.$ref.slider.on("slideChange",this._updateActive.bind(this))}_handleItemsClick(){this.$items.map(($item,index)=>{$item.addEventListener("click",()=>this.$ref.slider.slideTo(index))})}_updateActive(){this.active=this.$ref.slider.activeIndex,this._scrollToActiveView()}_scrollToActiveView(){this.scroll(0,this.$activeItem.offsetTop-this.$activeItem.offsetHeight*3)}get $ref(){return document.querySelector(this.getAttribute("ref"))}set active(index){const $item=this.$items[index];this.$activeItem!==$item&&(this.$activeItem&&this.$activeItem.classList.remove(CN_ACTIVE),$item.classList.add(CN_ACTIVE),this.$activeItem=$item)}})})(); 2//# sourceMappingURL=/cdn/shop/t/5/assets/slideshow-thumbnails.js.map?v=164820599801005844291742543985
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.