1import{Slideshow}from"@archetype-themes/modules/slideshow";class ProductRecommendations extends HTMLElement{connectedCallback(){this.el=this,this.url=this.dataset.url,this.intent=this.dataset.intent,this.placeholder=this.querySelector(".product-recommendations-placeholder"),this.productResults=this.querySelector(".grid-product"),this.sectionId=this.dataset.sectionId,this.blockId=this.dataset.blockId,fetch(this.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector(".product-recommendations");if(!recommendations){this.el.classList.add("hide");return}this.placeholder.innerHTML="",this.placeholder.innerHTML=recommendations.innerHTML,this.slideshow=this.querySelector("[data-slideshow]"),this.slideshow&&this.setupSlider()}).catch(e=>{console.error(e)})}setupSlider(){const controlType=this.slideshow.dataset.controls,perSlide=parseFloat(this.slideshow.dataset.perSlide),count=parseFloat(this.slideshow.dataset.count);let prevNextButtons=!1,pageDots=!0;controlType==="arrows"&&(pageDots=!1,prevNextButtons=!0),perSlide<count&&(this.flickity=new Slideshow(this.slideshow,{prevNextButtons,pageDots,adaptiveHeight:!0,wrapAround:!1}))}}customElements.define("product-recommendations",ProductRecommendations); 2//# sourceMappingURL=/cdn/shop/t/3/assets/product-recommendations.js.map?v=76410797257285949611744275110
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.