1if(typeof complementaryProductsComponent>"u"){class ComplementaryProductsComponent extends HTMLElement{constructor(){super()}connectedCallback(){const url=this.dataset.url;this.buildProducts(url)}buildProducts(url){(async url2=>{let text=await(await fetch(url2)).text();const html=document.createElement("div");text=text.replaceAll("variant-selects","div").replaceAll("variant-radios","div").replaceAll("product-tab","div").replaceAll("compare-color","div").replaceAll("breadcrumb-component","div"),html.innerHTML=text;const recommendations=html.querySelector("[data-complementary-product]");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML,window.sharedFunctions.checkNeedToConvertCurrency()&&Currency.convertAll(window.shop_currency,$("#currencies .active").attr("data-currency"),"span.money","money_format"));const productCarousel=this.querySelector(".products-carousel");this.initializeSlider(productCarousel)})(url)}initializeSlider(productCarousel=null){if(productCarousel){const itemArrows=productCarousel.dataset.itemArrows==="true",itemDots=productCarousel.dataset.itemDots==="true",itemRows=parseInt(productCarousel.dataset.itemRows),itemToShow=parseInt(productCarousel.dataset.itemToShow),complementaryStyle=!!this.classList.contains("style-1");$(productCarousel).on("init",()=>{this.calculateCard06Padding()}),productCarousel.classList.contains("slick-slider")||$(productCarousel).slick({dots:itemDots,arrows:itemArrows,slidesToShow:complementaryStyle?itemToShow:1,rows:complementaryStyle?1:itemRows,slidesToScroll:1,slidesPerRow:1,infinite:!0,rtl:window.rtl_slick,nextArrow:window.arrows.icon_next,prevArrow:window.arrows.icon_prev,responsive:[{breakpoint:1025,settings:{get slidesToShow(){}}},{breakpoint:992,settings:{get slidesToShow(){}}},{breakpoint:768,settings:{get slidesToShow(){}}},{breakpoint:321,settings:{slidesToShow:1}}]})}}calculateCard06Padding(){if(!document.body.classList.contains("product-card-layout-06"))return;const selectOptionsHeight=this.querySelector(".product .card-action").scrollHeight;this.querySelector(".slick-list").style.paddingBottom=selectOptionsHeight+"px"}}window.addEventListener("load",()=>{customElements.define("complementary-products",ComplementaryProductsComponent)});var complementaryProductsComponent=ComplementaryProductsComponent} 2//# sourceMappingURL=/cdn/shop/t/2/assets/build-complementary-products.js.map?v=73501869613274300751731387972
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.