1import{Component}from"@theme/component";import{ThemeEvents}from"@theme/events";export class MediaGallery extends Component{connectedCallback(){super.connectedCallback();const{signal}=this.#controller;this.closest(".shopify-section, dialog")?.addEventListener(ThemeEvents.variantUpdate,this.#handleVariantUpdate,{signal}),this.refs.zoomDialogComponent?.addEventListener(ThemeEvents.zoomMediaSelected,this.#handleZoomMediaSelected,{signal})}#controller=new AbortController;disconnectedCallback(){super.disconnectedCallback(),this.#controller.abort()}#handleVariantUpdate=event=>{const source=event.detail.data.html;if(!source)return;const newMediaGallery=source.querySelector("media-gallery");newMediaGallery&&this.replaceWith(newMediaGallery)};#handleZoomMediaSelected=async event=>{this.slideshow?.select(event.detail.index,void 0,{animate:!1})};zoom(index,event){this.refs.zoomDialogComponent?.open(index,event)}preloadImage(index){const zoomDialogMedia=this.refs.zoomDialogComponent?.refs.media[index];zoomDialogMedia&&this.refs.zoomDialogComponent?.loadHighResolutionImage(zoomDialogMedia)}get slideshow(){return this.refs.slideshow}get media(){return this.refs.media}get presentation(){return this.dataset.presentation}}customElements.get("media-gallery")||customElements.define("media-gallery",MediaGallery); 2//# sourceMappingURL=/cdn/shop/t/5/assets/media-gallery.js.map?v=14624021005636302161773931804
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.