1class IndexRecentlyViewed extends HTMLElement{constructor(){super(),this.wrapper=this.querySelector(".js-recently-viewed-wrapper"),this.splitContainer=this.querySelector(".js-recently-viewed-split-container"),this.slider=this.querySelector(".recently-viewed-product-slider"),this.init()}init(){const productTemplateId="index-recently-viewed-product-template",wrapperId=this.slider.id,list=Shopify.Products.getList()||[];if(list.length>0)this.show(),list.length==1&&this.slider.classList.add("has-only-one-item");else return;Shopify.Products.showRecentlyViewed({wrapperId,templateId:productTemplateId,onComplete:this.loadComplete.bind(this)})}show(){this.wrapper.style.display="block"}loadComplete(){console.log("slider",this.slider);const slider=this.slider;if(!slider)return;const initFlickity=()=>{const flkty=new Flickity(slider,{cellAlign:"left",contain:!0,wrapAround:!1,pageDots:!0,prevNextButtons:!0,draggable:!0,imagesLoaded:!0}),stripCellAriaSelected=()=>{flkty.getCellElements().forEach(function(el){el.removeAttribute("aria-selected")})};stripCellAriaSelected(),flkty.on("select",stripCellAriaSelected),slider.dataset.flickityInitialized="true",slider.classList.add("flickity-initialized")};window.theme&&window.theme.whenFlickityReady?window.theme.whenFlickityReady(initFlickity):window.Flickity&&initFlickity()}}customElements.define("index-recently-viewed",IndexRecentlyViewed),document.addEventListener("keydown",function(e){var t=e.target;t&&t.classList&&t.classList.contains("recently-viewed-btn")&&(e.key==="Enter"||e.key===" "||e.keyCode===13||e.keyCode===32)&&(e.preventDefault(),t.click())}); 2//# sourceMappingURL=/cdn/shop/t/460/assets/index-recently-viewed.js.map?v=45773550698982298111790919040
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.