https://casasola.com/cdn/shop/t/1/assets/collection-header-slider.js?v=45971951985385993301769411168
1document.addEventListener("DOMContentLoaded",function(){const sliders=document.querySelectorAll(".collection-header-slider");let swiperInstances=[];function checkAndToggleSwiper(){sliders.forEach((container,index)=>{const wrapper=container.querySelector(".swiper-wrapper");if(!wrapper)return;const sliderIndex=container.getAttribute("data-slider-index"),prevBtn=document.querySelector(`.swiper-button-prev[data-slider-index="${sliderIndex}"]`),nextBtn=document.querySelector(`.swiper-button-next[data-slider-index="${sliderIndex}"]`),contentWidth=wrapper.scrollWidth,containerWidth=container.clientWidth,shouldEnableSwiper=contentWidth>containerWidth;let swiperInstance=swiperInstances[index];shouldEnableSwiper&&!swiperInstance?typeof Swiper<"u"&&(swiperInstance=new Swiper(container,{slidesPerView:"auto",navigation:{nextEl:nextBtn,prevEl:prevBtn}}),swiperInstances[index]=swiperInstance,prevBtn&&(prevBtn.style.display="flex"),nextBtn&&(nextBtn.style.display="flex")):!shouldEnableSwiper&&swiperInstance&&(swiperInstance.destroy(!0,!0),swiperInstances[index]=null,wrapper.removeAttribute("style"),prevBtn&&(prevBtn.style.display="none"),nextBtn&&(nextBtn.style.display="none"))})}window.addEventListener("resize",checkAndToggleSwiper),window.addEventListener("load",checkAndToggleSwiper),checkAndToggleSwiper()}); 2//# sourceMappingURL=/cdn/shop/t/1/assets/collection-header-slider.js.map?v=45971951985385993301769411168
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.