PageSourceSearch

https://www.saint-malo-tourisme.com/app/dist/saint-malo-tourisme/a…/card/card-slider-component.8d250943f1.mjs

js saint-malo-tourisme.com collected 2026-10-02 10:36:03 UTC 1,661 bytes, 1 lines download raw bytes

1import s from"woody_library_woody_component";class r extends s{#e={item:".item"};constructor(){super()}init(i){super.init(i),this.style.display="block",this.config=Object.assign(this.#e,this.config);const e=this.querySelector(`${this.config.wrapper}`);e?e.swiper?window.innerWidth>=1024?e.swiper.on("slideChangeTransitionStart",()=>{this.dispatchEvent(new CustomEvent("slidechange",{detail:{index:this.getActiveIndex(!1)}}))}):e.swiper.on("beforeTransitionStart",()=>{e.swiper.isEnd?this.dispatchEvent(new CustomEvent("slidechange",{detail:{index:this.getActiveIndex(!0)}})):this.dispatchEvent(new CustomEvent("slidechange",{detail:{index:this.getActiveIndex(!1)}}))}):console.error("CardSliderComponent: Swiper not found"):console.error("CardSliderComponent: Swiper wrapper not found")}setActiveIndex(i){const e=this.querySelector(`${this.config.wrapper}`);e?.swiper?e.swiper.slideToLoop(i,600):this.setCardActiveIndex(i)}getActiveIndex(i){if(this.querySelector(`${this.config.wrapper}`)?.swiper){if(window.innerWidth>=1024)return this.querySelector(`${this.config.activeTogglerClass}`).dataset.swiperSlideIndex;if(i==!1)return this.querySelector(".swiper-slide-active").dataset.swiperSlideIndex;if(i==!0)return this.querySelectorAll(`${this.config.activeTogglerClass}`)[this.querySelectorAll(`${this.config.activeTogglerClass}`).length-1].dataset.swiperSlideIndex}else{let e=0;return this.setCardActiveIndex(e),e}}setCardActiveIndex(i){if(window.innerWidth>=1024){this.querySelectorAll(".cell").forEach(t=>{t.classList.remove("active")});const e=this.querySelector(`.cell[data-swiper-slide-index="${i}"]`);e&&e.classList.add("active")}}}export{r as default};

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.