1import{S as s}from"./core-yLxMmMVl.js";import{N as t}from"./navigation-DeDrypyO.js";import{S as r}from"./scrollbar-BBy0WH1R.js";import{K as i}from"./klevu-recommendations-DbD3U9fr.js";import"./create-element-if-not-defined-Ck3fV3vE.js";class a extends HTMLElement{constructor(){super(),this.klevu=new i(this.dataset.klevuId,"4834810167389","32980359446621"),this.initialise()}async initialise(){const e=await this.klevu.getRecommendations();if(e instanceof Error){this.innerHTML=` 2 <div class="flex flex-col items-center justify-center py-20"> 3 <h3 class="text-black mb-4 text-[26px]">Failed to load products</h3> 4 5 <p class="text-black">${e}</p> 6 </div> 7 `;return}e.records.length!==0&&this.render()}render(e){this.initCarousel()}initCarousel(){this.swiper=new s(this.querySelector(".swiper"),{slidesPerView:1.1,spaceBetween:20,navigation:{nextEl:this.querySelector("[data-carousel-next]"),prevEl:this.querySelector("[data-carousel-prev]")},scrollbar:{el:".swiper-scrollbar",draggable:!0},modules:[t,r],breakpoints:{640:{slidesPerView:1.5},768:{slidesPerView:1.75},1024:{slidesPerView:1.75},1280:{slidesPerView:2.5}}})}}customElements.define("customers-also-bought",a);
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.