${shippingRates.length===0?window.themeVariables.strings.shippingEstimatorNoResults:shippingRates.length===1?window.themeVariables.strings.shippingEstimatorOneResult:window.themeVariables.strings.shippingEstimatorMultipleResults}
${formattedShippingRates===""?"":`${window.themeVariables.strings.shippingEstimatorError}
${event.detail.error}
`,this.before(errorBanner),setTimeout(async()=>{await errorBanner.animate({opacity:[1,0]},{duration:250,fill:"forwards"}).finished,errorBanner.remove()},5e3)}};window.customElements.get("buy-buttons")||window.customElements.define("buy-buttons",BuyButtons);import{PhotoSwipeLightbox}from"vendor";var ProductGallery=class extends HTMLElement{connectedCallback(){this._abortController=new AbortController;const form=document.forms[this.getAttribute("form")];form?.addEventListener("product:rerender",this._onSectionRerender.bind(this),{signal:this._abortController.signal}),form?.addEventListener("variant:change",this._onVariantChanged.bind(this),{signal:this._abortController.signal}),this._carousels=Array.from(this.querySelectorAll("media-carousel")),this._pageDots=Array.from(this.querySelectorAll("page-dots")),this._viewInSpaceButton=this.querySelector("[data-shopify-xr]"),this._customCursor=this.querySelector(".product-gallery__cursor"),this.addEventListener("carousel:change",this._onCarouselChanged),this._viewInSpaceButton&&this.addEventListener("carousel:settle",this._updateViewInSpaceButton),this.hasAttribute("allow-zoom")&&this.addEventListener("lightbox:open",event=>this.openZoom(event.detail.index))}disconnectedCallback(){this._abortController.abort()}get filteredIndexes(){return JSON.parse(this.getAttribute("filtered-indexes")).map(index=>parseInt(index)-1)}get photoswipe(){if(this._photoswipe)return this._photoswipe;const photoswipe=new PhotoSwipeLightbox({pswpModule:()=>import("photoswipe"),bgOpacity:1,maxZoomLevel:parseInt(this.getAttribute("allow-zoom"))||3,closeTitle:window.themeVariables.strings.closeGallery,zoomTitle:window.themeVariables.strings.zoomGallery,errorMsg:window.themeVariables.strings.errorGallery,arrowPrev:!1,arrowNext:!1,counter:!1,zoom:!1,closeSVG:``});return photoswipe.addFilter("thumbEl",(thumbEl,data)=>data.thumbnailElement),photoswipe.on("uiRegister",()=>{photoswipe.pswp.ui.registerElement({name:"bottom-bar",order:5,appendTo:"wrapper",html:`