1import{ThemeEvents}from"@theme/events";class ProductMediaGallery extends HTMLElement{connectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.addEventListener(ThemeEvents.variantUpdated,this.updateMediaGallery)}disconnectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.removeEventListener(ThemeEvents.variantUpdated,this.updateMediaGallery)}updateMediaGallery=event=>{const newMediaGallery=event.detail.data.html.querySelector("product-media-gallery slider-component"),currentMediaGallery=this.querySelector("slider-component");!newMediaGallery||!currentMediaGallery||currentMediaGallery.innerHTML!==newMediaGallery.innerHTML&¤tMediaGallery.replaceWith(newMediaGallery)}}customElements.get("product-media-gallery")||customElements.define("product-media-gallery",ProductMediaGallery); 2//# sourceMappingURL=/cdn/shop/t/18/assets/product-media-gallery.js.map?v=102017594908559136101781090903
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.