PageSourceSearch

https://www.radiogalaxy.de/wp-content/themes/cmms-theme-galaxy/assets/dist/1.66/LastVideo.js

js radiogalaxy.de collected 2026-10-02 17:53:52 UTC 3,873 bytes, 1 lines download raw bytes

1import{_ as p,h as E,i as l,g,j as s,k as c,c as f,s as w,d as b}from"./app.js";import"./swiper.js";const v={name:"SoylentLastVideo",props:["element"],components:{CroppedText:g,CmmsPlayer:l,AppPlayerControlPlay:E},data(){return{currentElement:this.element,elementKey:"".concat(Date.now(),"_").concat(Math.random()),audioEndedCallback:null}},computed:{...b("player",["playerAudioObject"]),audioModel(){return this.currentElement.data.media_data.model},hasMediaData(){try{return!!this.currentElement.data.media_data}catch(t){}return!1},title:function(){return this.currentElement.data.media_data.model.title},description:function(){return this.currentElement.data.media_data.model.excerpt},show_ad_label:function(){return this.currentElement.data.media_data.model.show_ad_label},backgroundImageId(){return this.currentElement.data.media_data.model.image?this.currentElement.data.media_data.model.image.media_id:null},backgroundImage(){if(this.backgroundImageId)return"".concat(window.cmms_thumbs_base,"1024x/").concat(this.backgroundImageId,".webp")},isAudio(){return this.currentElement.data.media_data.model.type==="audio"},playerComponent:function(){return w.getByName("cmmsPlayer",l)}},methods:{triggerAudio:function(){this.$refs.playButton.togglePlayer()},refreshId:function(){this.elementKey="".concat(Date.now(),"_").concat(Math.random())},loadNextVideo:function(){this.currentElement.data.continuous===1&&this.currentElement.data.loop===0&&f.post("/cmms-api-v2/soylent/element/get_last_video/",JSON.stringify({last_video__autoplay:this.currentElement.data.autoplay,last_video__player_only:this.currentElement.data.player_only,last_video__no_ads:this.currentElement.data.no_ads,last_video__taxonomy:this.currentElement.data.taxonomy,last_video__random:this.currentElement.data.random,last_video__hide_meta:this.currentElement.data.hide_meta,last_video__ignore_media_id:this.currentElement.data.ignore_media_id})).then(t=>{t.data&&t.data.data&&(this.currentElement=Object.assign({},t.data),this.refreshId())}).catch(t=>{t.response||console.debug(t)})},onAudioEnded(){this.playerAudioObject.post_id===this.currentElement.data.media_data.model.post_id&&this.loadNextVideo()}},mounted(){this.audioEndedCallback=this.onAudioEnded,s.on(c.AUDIO_ENDED,this.audioEndedCallback)},beforeUnmount(){s.off(c.AUDIO_ENDED,this.audioEndedCallback)}},r=window.Vue.createElementVNode,n=window.Vue.openBlock,d=window.Vue.createElementBlock,o=window.Vue.createCommentVNode,m=window.Vue.resolveComponent,k=window.Vue.createVNode,C=window.Vue.resolveDynamicComponent,u=window.Vue.createBlock,V=window.Vue.toDisplayString,A=window.Vue.normalizeClass,x={class:"lastVideoInner"},I={key:0,class:"audio-teaser__background"},D=["src"],N={class:"lastVideoInner__audioTeaser"},P={key:2,class:"entry"},B={key:0,class:"zone-label"},j={class:"title"};function M(t,i,O,S,a,e){const _=m("AppPlayerControlPlay"),h=m("CroppedText");return n(),d("div",{class:A(["element",a.currentElement.type,a.currentElement.subtype,e.isAudio===!0?"--audio":"",a.currentElement.data.player_only===1?"-video-only":""])},[r("div",x,[e.isAudio?(n(),d("div",{key:0,class:"audio-teaser__container",onClick:i[0]||(i[0]=(...y)=>e.triggerAudio&&e.triggerAudio(...y))},[e.backgroundImage?(n(),d("div",I,[r("img",{src:e.backgroundImage},null,8,D)])):o("",!0),r("div",N,[k(_,{"audio-object":e.audioModel,ref:"playButton"},null,8,["audio-object"])])])):o("",!0),e.isAudio?o("",!0):(n(),u(C(e.playerComponent),{key:a.elementKey,element:a.currentElement,onEnded:e.loadNextVideo},null,40,["element","onEnded"])),e.hasMediaData?(n(),d("div",P,[e.show_ad_label?(n(),d("span",B,"Anzeige")):o("",!0),r("div",j,V(e.title),
11),a.currentElement.data.hide_meta===0?(n(),u(h,{key:a.elementKey,class:"description",tag:"div",text:e.description,lines:5},null,8,["text"])):o("",!0)])):o("",!0)])],2)}const T=p(v,[["render",M]]);export{T as default};

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.