1const{Core,Events,onBlazeLoad}=Global;customElements.define("product-gallery-slider",class extends Core{propTypes={"listen-variants":Boolean};elements={slider:"slideshow-blaze"};render(){this.prop("listen-variants")&&this.sub(Events.VARIANT_UPDATE,this._onVariantChange),this.sub(Events.PRODUCT_GALLERY_SLIDE_CHANGE,this._changeSlide),onBlazeLoad(this._handleSlider.bind(this))}_onVariantChange({imageIndex}){imageIndex>=0&&(this.pub(Events.PRODUCT_GALLERY_SLIDE_CHANGE,imageIndex),this._changeSlide(imageIndex))}async _handleSlider(){await customElements.whenDefined(this.elements.slider),this.$("slider").slider.onSlide(this._handleSlideChange.bind(this))}_handleSlideChange(index){this.pub(Events.PRODUCT_GALLERY_SLIDE_CHANGE,index)}_changeSlide(index){this.$("slider")?.slideTo(index)}}); 2//# sourceMappingURL=/cdn/shop/t/78/assets/product-gallery-slider.js.map?v=27412884422930315261774326691
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.