PageSourceSearch

https://www.bauing-gerdom.de/_Resources/Static/Packages/7S.Nebula/JavaScript/DynamicVideo.js?bust=748a69c6

js bauing-gerdom.de collected 2026-10-08 22:44:00 UTC 5,819 bytes, 1 lines download raw bytes

1(window.novaJsonp=window.novaJsonp||[]).push([[27],{179:function(e,t,i){"use strict";i.r(t);var a=i(5),s=i.n(a);Promise.all([i.e(1),i.e(2)]).then(i.bind(null,1)).then((e=>{const{NovaNode:t}=e;class Video extends t{constructor(e){super(e),this.requireGdpr=!1,this.sourceType="",this.videoId="",this.videoCaption="",this.containerOutside=null,this.container=null,this.player=null,this.isPlaying=!1,this.mode=null,this.ignoreViewport=!1}initialize(){if(this.sourceType=this.element.dataset.sourceType,this.containerOutside=this.element.querySelector(".dynamic-video__container"),this.container=this.element.querySelector(".dynamic-video__container__iframe"),this.videoId=this.element.dataset.videoId,this.videoCaption=this.element.dataset.videoCaption,this.gdprConfirmationElement=this.element.querySelector(".gdpr-confirmation"),this.mode=this.element.dataset.mode,this.ignoreViewport=!!this.element.dataset.ignoreViewport,"inline"!==this.mode&&Video.playerRegistry.push(this),this.handleYoutubeStateChange=this.handleYoutubeStateChange.bind(this),this.handleGdprConfirm=this.handleGdprConfirm.bind(this),this.handleGdprRevoke=this.handleGdprRevoke.bind(this),this.gdprConfirmationElement?t.waitElementReady(this.gdprConfirmationElement,(()=>{this.gdprConfirmation=t.instanceMapping.get(this.gdprConfirmationElement),this.element.querySelector(".dynamic-video__controls__play").addEventListener("click",(e=>{this.gdprConfirmation.requestConfirmation(this.handleGdprConfirm,this.handleGdprRevoke),e.preventDefault(),e.stopImmediatePropagation()}))})):"inline"!==this.mode?this.element.querySelector(".dynamic-video__controls__play").addEventListener("click",(e=>{this.handleGdprConfirm(),e.preventDefault(),e.stopImmediatePropagation()})):this.handleGdprConfirm(),"inline"!==this.mode){new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.target===this.element&&(e.isIntersecting||this.ignoreViewport||this.pausePlayer())}))}),{root:document.documentElement.body}).observe(this.element)}}handleGdprConfirm(){this.element.classList.add("loading"),this.createPlayerSdkScript(this.createPlayerIframe)}handleGdprRevoke(){if(this.isPlaying&&this.player&&this.pausePlayer(),this.player){this.element.classList.remove("loaded"),this.element.classList.remove("loading");try{switch(this.sourceType){case"youtube":this.player.removeEventListener("onStateChange",this.handleYoutubeStateChange);break;case"vimeo":this.player.off("play",(()=>{this.handlePlayerPlay()})),this.player.off("pause",(()=>{this.handlePlayerPause()})),this.player.off("ended",(()=>{this.handlePlayerEnded()}))}this.player.destroy()}catch(e){}}}pausePlayer(){if(this.isPlaying&&this.player)switch(this.sourceType){case"vimeo":case"cloudflare":this.player.pause();break;case"youtube":case"local":this.player.pauseVideo()}}handlePlayerPlay(){this.isPlaying||(Video.playerRegistry.forEach((e=>{e.pausePlayer()})),this.isPlaying=!0)}handlePlayerPause(){this.isPlaying=!1}handlePlayerEnded(){this.isPlaying=!1}handleYoutubeStateChange(e){switch(e.data){case-1:break;case 0:this.handlePlayerEnded();break;case 1:this.handlePlayerPlay();break;case 2:this.handlePlayerPause()}}createYoutubePlayer(){this.player=new YT.Player(this.container,{videoId:this.videoId,host:"https://www.youtube-nocookie.com",playerVars:{autoplay:1,enablejsapi:1,rel:0,color:"white"}}),this.player.addEventListener("onStateChange",this.handleYoutubeStateChange)}createPlayerIframe(){if(this.element.classList.add("loaded"),"vimeo"===this.sourceType){const e=this.container.parentElement;e.removeChild(this.container),this.container=document.createElement("iframe"),this.container.classList.add("dynamic-video__container__iframe"),this.container.setAttribute("src",`https://player.vimeo.com/video/${this.videoId}`),this.container.setAttribute("allow","accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"),this.container.setAttribute("allowfullscreen","true"),e.appendChild(this.container),this.player=new Vimeo.Player(this.container),this.player.on("play",(()=>{this.handlePlayerPlay()})),this.player.on("pause",(()=>{this.handlePlayerPause()})),this.player.on("ended",(()=>{this.handlePlayerEnded()})),this.player.play()}
1else"youtube"===this.sourceType?Video.youtubeApiReady?this.createYoutubePlayer():window.onYouTubeIframeAPIReady=()=>{Video.youtubeApiReady=!0,this.createYoutubePlayer()}:"local"===this.sourceType&&(this.playerVideo=this.element.querySelector("video"),this.player=t.instanceMapping.get(this.element.querySelector(".responsive-video")),"inline"!==this.mode?(this.playerVideo.addEventListener("play",(e=>{this.handlePlayerPlay()})),this.playerVideo.addEventListener("pause",(e=>{this.handlePlayerPause()})),this.playerVideo.addEventListener("ended",(e=>{this.handlePlayerEnded()}))):this.playerVideo.addEventListener("play",(e=>{this.element.classList.remove("loading")})),"inline"===this.mode||this.playerVideo.getAttribute("autostart")&&!1!==this.playerVideo.getAttribute("autostart")||setTimeout((()=>{this.player.playVideo()}),800));this.containerOutside.removeAttribute("inert"),this.playerVideo&&"inline"!==this.mode?this.playerVideo.focus():this.container&&this.container.querySelector("iframe")&&this.container.querySelector("iframe").focus()}createPlayerSdkScript(e){const t=document.createElement("script");"vimeo"===this.sourceType?t.setAttribute("src","https://player.vimeo.com/api/player.js"):"youtube"===this.sourceType?t.setAttribute("src","https://www.youtube.com/iframe_api"):"cloudflare"===this.sourceType?t.setAttribute("src","https://embed.videodelivery.net/embed/sdk.latest.js"):"local"===this.sourceType&&e.call(this),t.onload=()=>{e.call(this)},document.body.appendChild(t)}static get selector(){return".dynamic-video"}}s()(Video,"playerRegistry",[]),s()(Video,"youtubeApiReady",!1),e.listenDocumentReady(Video)}))}},[[179,0,1]]]);

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.