PageSourceSearch

https://www.transporeon.com/cache-buster-1790752285/dist/video.js

js transporeon.com collected 2026-10-01 11:52:52 UTC 2,932 bytes, 1 lines download raw bytes

1import{S as n}from"./assets/swiper-core-D0PNu2gI.js";import{N as c}from"./assets/navigation-CHY7BKBM.js";import{P as h}from"./assets/pagination-hX7HWd3B.js";import{s as v}from"./assets/helper-qsFk-eJT.js";import{Y as r}from"./youtube-swiper-player.js";import"./assets/create-element-if-not-defined-JgnD-RhU.js";class a{constructor(i){this.$video=i,this.$slider=this.$video.querySelector('[data-video-slider="slider"]'),this.$single=this.$video.querySelector('[data-video-single="single"]'),this.$slidePrev=this.$video.querySelector('[data-video-slider="prev"]'),this.$slideNext=this.$video.querySelector('[data-video-slider="next"]'),this.$sliderPagination=this.$video.querySelector('[data-video-slider="pagination"]'),this.slider=void 0,this.YTPlayers={},this.overlays={}}init(){this.initSlider(),this.setEvents(),this.checkUrl()}initSlider(){var i;this.$slider&&(this.slider=new n(this.$slider,{slidesPerView:1,spaceBetween:32,speed:500,modules:[c,h],navigation:{disabledClass:"is--disabled",prevEl:this.$slidePrev,nextEl:this.$slideNext},pagination:{el:this.$sliderPagination},observer:!0,observeParents:!0,updateOnWindowResize:!0}),(i=this.$slider)==null||i.querySelectorAll(".video-module__slider__slide").forEach(s=>{const e=s.querySelector("[data-youtube]");this.overlays[e.id]=document.createElement("div"),this.overlays[e.id].classList.add("video-module__slider__slide__video__overlay"),this.YTPlayers[e.id]=new r(e,{onPause:()=>{this.overlays[e.id].classList.add("active")}}),this.overlays[e.id].addEventListener("click",()=>this.handleOverlayClick()),e.append(this.overlays[e.id])}))}initSingleVideo(){var i;(i=this.$single)==null||i.querySelectorAll(".video-module__slider__slide").forEach(s=>{const e=s.querySelector("[data-youtube]");this.overlays[e.id]=document.createElement("div"),this.overlays[e.id].classList.add("video-module__slider__slide__video__overlay"),this.YTPlayers[e.id]=new r(e,{onPause:()=>{}}),this.overlays[e.id].addEventListener("click",()=>this.handleOverlayClick()),e.append(this.overlays[e.id]),this.checkUrl()})}setEvents(){var i;(i=this.slider)==null||i.on("slideChange",()=>{Object.keys(this.YTPlayers).forEach(s=>{this.YTPlayers[s].pause()})})}handleOverlayClick(){this.overlays[$video.id].classList.remove("active"),this.YTPlayers[$video.id].play()}checkUrl(){const i=window.location.href;if(!i.includes("?"))return;const s=i.split("?")[1].split("&"),e=s[0].split("=")[1];if(typeof s[1]<"u"){const t=s[1].split("=")[1],l=this.$video.getAttribute("data-share-module-id");e===l&&(v(0,this.$video.offsetTop,500),this.slider&&setTimeout(()=>{this.slider.slideTo(t-1,500,!0)},500))}}}window.addEventListener("content.loaded",o=>{var d;const i=(d=o.detail)==null?void 0:d.context;if(!i)return;const s=i.querySelectorAll("[data-video-module]");s==null||s.forEach(t=>{new a(t).init()});const e=i.querySelectorAll("[data-video-single-module]");e==null||e.forEach(t=>{new a(t).initSingleVideo()})});

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.