PageSourceSearch

https://www.hr2.de/assets_4.49.0/js/temp-components-podcast-podcast-player-alpine.bundle.js

js hr2.de collected 2026-10-02 02:52:45 UTC 4,004 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["temp_js_components_podcast_podcast_player_alpine_js"],{6556:function(t,e,i){function n(){return{dispatchCustomEvent:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.data,s=void 0===n?void 0:n,a=i.element,l=void 0===a?document:a,o=i.handleIframe,r=void 0!==o&&o,u=i.id,d=void 0===u?void 0:u;null!=s?(s={detail:s},e=new CustomEvent(t,s)):"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),void 0!==d&&(e.id=d),r&&(document.getElementById("js-iFrame")&&document.getElementById("js-iFrame").contentWindow.document.dispatchEvent(e),this.inIframe()&&parent.document.dispatchEvent(e)),l.dispatchEvent(e)},inIframe:function(){try{return window.self!==window.top}catch(t){return!0}},playerCount:0,playlist:{},registerPlayer:function(t,e){var i={};i.id=e,i.button=document.querySelector("#playbutton"+e),i.playIcon=i.button.querySelector(".js-playbutton"),i.pauseIcon=i.button.querySelector(".js-pausebutton"),i.range=document.querySelector("#range"+e),i.timeDisplay=document.querySelector("#timedisplay"+e),i.audioElement=this.$el,i.audioSrc=this.$el.querySelector("source").src,i.duration=t,i.currentlyPlaying=!1,i.init=!1,i.firstPlay=!0,this.playerCount++,this.playlist[e]=i},listenToGlobalStop:function(){document.addEventListener("hr:global:stopOtherAVs",this.stopAllPlayersBecauseOfGlobalStop.bind(this))},rangeInput:function(t){0==this.playlist[t].init&&(this.playAndStop(t),this.playAndStop(t)),this.playlist[t].audioElement.currentTime=this.playlist[t].range.value/1e3*this.playlist[t].audioElement.duration},setTime:function(t,e){var i=t.split(":");if(i.length<3)var n=(60*+i[0]+ +i[1]).toFixed(3);else n=(3600*+i[0]+60*+i[1]+ +i[2]).toFixed(3);document.getElementById("range"+e).value=0,this.$el.querySelector(".js-currentTime").innerHTML=this.fancyTimeFormat("0",!1),this.$el.querySelector(".js-audioDuration").innerHTML=this.fancyTimeFormat(n,!0)},updateCurrentTime:function(t,e,i,n){var s;s=window.matchMedia("(prefers-color-scheme: dark)").matches&&document.getElementsByTagName("html")[0].classList.contains("tw-dark")?"var(--color-podcast) ":"white ",e.querySelector(".js-currentTime").innerHTML=this.fancyTimeFormat(i,!1),t.style.background="linear-gradient(to right, var(--color-podcast) "+t.value/10+"%,"+s+t.value/10+"% )",t.value=100*i/this.playlist[n].audioElement.duration*10},playAndStop:function(t){1==this.playlist[t].init?this.stopAudio(t):(this.stopAllOtherPlayers(t,!1),this.startAudio(t),this.playlist[t].range.parentNode.classList.remove("max-h-0"),this.playlist[t].range.parentNode.classList.add("max-h-9"),this.playlist[t].playIcon.classList.add("hidden"),this.playlist[t].pauseIcon.classList.remove("hidden"),this.dispatchCustomEvent("hr:global:stopOtherAVs",{handleIframe:!0,id:t}))},stopAllOtherPlayers:function(t,e){for(var i in this.playlist)i!=t&&(this.stopAudio(i),e||(this.playlist[i].range.parentNode.classList.add("max-h-0"),this.playlist[i].range.parentNode.classList.remove("max-h-9")))},stopAllPlayersBecauseOfGlobalStop:function(t){this.stopAllOtherPlayers(t.id,!0)},startAudio:function(t){0==this.playlist[t].init&&(this.initAudioEventListener(t),this.playlist[t].init=!0),this.playlist[t].audioElement.play(),this.playlist[t].currentlyPlaying=!0},stopAudio:function(t){this.playlist[t].audioElement.pause(),this.playlist[t].init=!1,this.playlist[t].currentlyPlaying=!1,this.playlist[t].playIcon.classList.remove("hidden"),this.playlist[t].pauseIcon.classList.add("hidden")},initAudioEventListener:function(t){var e=this,i=this.playlist[t].audioElement,n=this.playlist[t].range,s=this.playlist[t].timeDisplay;i.ontimeupdate=function(a){e.updateCurrentTime(n,s,i.currentTime,t)}},fancyTimeFormat:function(t,e){var i=~~(t/3600),n=~~(t%3600/60),s=~~t%60,a="";return i>0&&(a+=i+":"+(n<10?"0":"")),a+=n+":"+(s<10?"0":""),a+=""+s,e&&(a+=i>0?" Std.":" Min."),a}}}i.r(e),i.d(e,{default:function(){return n}})}}]);

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.