PageSourceSearch

https://www.transporeon.com/cache-buster-1788358318/dist/stage-relaunch.js

js transporeon.com collected 2026-09-24 09:37:25 UTC 4,560 bytes, 1 lines download raw bytes

1import{S as d}from"./assets/swiper-core-D0PNu2gI.js";import{N as o}from"./assets/navigation-CHY7BKBM.js";import{P as r}from"./assets/pagination-hX7HWd3B.js";import{A as n}from"./assets/autoplay-70frEwGs.js";import{YoutubePlayer as h}from"./youtube-player.js";import"./assets/create-element-if-not-defined-JgnD-RhU.js";import"./assets/helper-qsFk-eJT.js";class u{constructor(t){this.$stage=t,this.$stageSlider=this.$stage.querySelector('[data-stage-relaunch-slider="slider"]'),this.$stageSlidePrev=this.$stage.querySelector('[data-stage-relaunch-slider="prev"]'),this.$stageSlideNext=this.$stage.querySelector('[data-stage-relaunch-slider="next"]'),this.$stageSliderPagination=this.$stage.querySelector('[data-stage-relaunch-slider="pagination"]'),this.$stageSliderNavigation=this.$stage.querySelector('[data-stage-relaunch-slider="navigation"]'),this.stageSlider=void 0,this.$videos=this.$stage.querySelectorAll("[data-youtube]"),this.videos=[],this.$fullVideo=this.$stage.querySelector("[data-stage-relaunch-video]"),this.$muteButton=this.$stage.querySelector("[data-stage-relaunch-video-mute]"),this.activeVideo=null,this.YTPlayers={}}init(){this.$stageSlider&&this.initSlider(),this.$videos.length>0&&this.initVideo(),this.$fullVideo&&this.fullVideoEvents()}fullVideoEvents(){this.$muteButton&&this.$muteButton.addEventListener("click",()=>{this.$fullVideo.muted?(this.$fullVideo.muted=!1,this.$muteButton.classList.add("is--active")):(this.$fullVideo.muted=!0,this.$muteButton.classList.remove("is--active"))})}initVideo(){this.$videos.forEach((e,s)=>{this.videos[s]=new h(e,{silent:!0,fullscreen:!1,loop:!0,controls:0,autoplay:!0,showinfo:0,rel:0,disablekb:1,onCall:()=>{e.classList.add("show--video")},onStart:a=>{},onEnd:a=>{this.videos[s].player.video.isMuted()===!1&&(this.videos[s].destroy(),e.classList.remove("show--video"))},onPause:(a,c)=>{}}),e.setAttribute("data-video-index",s),this.$muteButton&&this.$muteButton.addEventListener("click",()=>{this.videos[s].player.video.isMuted()?(this.videos[s].player.video.unMute(),this.$muteButton.classList.add("is--active")):(this.videos[s].player.video.mute(),this.$muteButton.classList.remove("is--active"))})});const t=this.$stage.querySelectorAll(".yout-tube__placeholder"),i=setInterval(()=>{if(typeof UC_UI<"u")if(UC_UI.getServicesBaseInfo().find(e=>e.id==="BJz7qNsdj-7").consent.status===!0){for(let e=0;e<t.length;e++)t[e].src=t[e].getAttribute("data-stage-video-img");clearInterval(i)}else clearInterval(i)},300)}initSlider(){this.$stageSlider&&(this.slider=new d(this.$stageSlider,{slidesPerView:1,spaceBetween:0,speed:500,modules:[n,o,r],autoplay:{delay:6e3,pauseOnMouseEnter:!0},navigation:{disabledClass:"is--disabled",prevEl:this.$stageSlidePrev,nextEl:this.$stageSlideNext},pagination:{el:this.$stageSliderPagination},updateOnWindowResize:!0,autoHeight:!1}),this.checkSlideColor(0),this.slider.on("activeIndexChange",()=>{this.checkSlideColor(this.slider.activeIndex)}),this.$stage.addEventListener("mouseleave",()=>{window.innerWidth>=1024&&this.slider.autoplay.start()}),this.slider.on("slideChangeTransitionEnd",()=>{window.innerWidth<1024&&this.slider.autoplay.start()}),this.setSliderEvents())}checkSlideColor(t){const i=this.slider.slides[t].classList.contains("is--half-image");this.slider.slides[t].classList.contains("is--light")?(this.$stageSliderNavigation.classList.remove("is--dark"),this.$stageSliderNavigation.classList.add("is--light")):(this.$stageSliderNavigation.classList.remove("is--light"),this.$stageSliderNavigation.classList.add("is--dark")),i?this.$stageSliderNavigation.classList.add("is--half-image"):this.$stageSliderNavigation.classList.remove("is--half-image")}setSliderEvents(){this.slider.on("slideChange",()=>{const i=this.slider.slides[this.slider.activeIndex].querySelector("[data-youtube]");i?(this.activeVideo=this.videos[i.getAttribute("data-video-index")],this.videos[i.getAttribute("data-video-index")].player.video.playVideo()):this.activeVideo!==null&&(this.activeVideo.player.video.pauseVideo(),this.activeVideo=null)}),this.$stageSlider.addEventListener("mouseenter",()=>{this.$stageSlidePrev.classList.remove("is--hidden"),this.$stageSlideNext.classList.remove("is--hidden")}),this.$stageSlider.addEventListener("mouseleave",()=>{this.$stageSlidePrev.classList.add("is--hidden"),this.$stageSlideNext.classList.add("is--hidden")})}}window.addEventListener("content.loaded",l=>{var e;const t=(e=l.detail)==null?void 0:e.context;if(!t)return;const i=t.querySelectorAll('[data-stage-relaunch="root"]');
1i==null||i.forEach(s=>{new u(s).init()})});

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.