PageSourceSearch

https://www.paperplane.shop/cdn/shop/t/1106/assets/hero-slider.js?v=36175356424277151321790351873

js paperplane.shop collected 2026-09-27 21:33:12 UTC 1,760 bytes, 2 lines download raw bytes

1(()=>{if(customElements.get("hero-slider"))return;class HeroSlider extends HTMLElement{constructor(){super(),this.slider=null,this.sliderOptions={}}connectedCallback(){this.productPanels=this.closest(".slider-hero")?.querySelectorAll("[data-hero-products] .hero-slide-products__panel")||[],this.initSlider(),this.detectFullBled(),window.addEventListener("load",()=>{this.detectFullBled()}),window.addEventListener("resize",()=>{this.detectFullBled()})}initSlider(){this.querySelector("[data-slider]")&&(this.sliderOptions={autoHeight:!0,calculateHeight:!0,slidesPerView:1,on:{slideChange:()=>{this.handleSlideChange()}}},this.slider=new Swiper(this.querySelector("[data-slider]"),this.sliderOptions))}handleSlideChange(){const that=this,popups=this.querySelectorAll("video-popup");if(this.productPanels.length){const idx=this.slider.activeIndex;this.productPanels.forEach(panel=>{const isActive=Number(panel.dataset.panelIndex)===idx;panel.classList.toggle("is-active",isActive),isActive&&panel.querySelector("products-row")?.refresh()})}setTimeout(function(){that.querySelectorAll(".hero__video video").forEach(video=>{video.pause(),video.currentTime=0}),popups.forEach(popup=>{const videoPopup=popup.querySelector(".hero__video-popup");that.querySelector("video-popup").closeVideo(videoPopup)}),that.querySelector(".swiper-slide-active").querySelectorAll(".hero__video video").forEach(activeVideo=>{activeVideo&&activeVideo.play()})},10)}detectFullBled(){if(this.classList.contains("js-slider-container")){const header=document.querySelector(".header-group");this.style.marginTop=`${header.offsetHeight}px`}}}customElements.define("hero-slider",HeroSlider)})();
2//# sourceMappingURL=/cdn/shop/t/1106/assets/hero-slider.js.map?v=36175356424277151321790351873

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.