1import{_ as h,e as s}from"./_plugin-vue_export-helper-CZPp-EVN.js";import{r as a,c as o}from"./mediaPlayer-C6ZFkrx5.js";import{j as d,q as r,x as l,M as n,D as u}from"./vendor-vue-n3skSn-P.js";import"./InstagramOembed-aIHqn3P9.js";const p={created(){s.on("playingNewEpisode",t=>{this.loading=!0,a("my-video-"+this.videoId),this.$nextTick(()=>{this.videoId=t.id+Date.now(),this.path=t.audio_url,setTimeout(()=>{this.setAudioPlayer()},1e3)})}),s.on("destroyPlayer",()=>{a("my-video-"+this.videoId)})},mounted(){var t={};this.bearer!=""&&(t={Authorization:this.bearer}),this.is_footer||(this.audio_url?(this.path=this.audio_url,setTimeout(()=>{this.setAudioPlayer()},1e3)):axios.post("/ajax/videoCompletion/"+this.id,{},{headers:t}).then(e=>{e.data.status=="complete"&&(this.videoThumbnail=e.data.thumbnail,this.type=="video"?(this.path=e.data.jwPath,this.setVideoPlayer()):(this.path=e.data.jwAudioPath,this.setAudioPlayer()))}))},props:{id:[Number,String],bearer:{type:String,default:""},type:{type:String,default:"video"},audio_image:{type:String,default:""},audio_url:{type:String,default:""},is_footer:{type:Boolean,default:!1}},data(){return{videoId:this.id+Date.now(),player:null,videoThumbnail:void 0,path:"",loading:!!this.audio_url,isBee:this.$store.getters.siteTitle=="Babylon Bee"}},methods:{setAudioPlayer(){this.player=o("my-video-"+this.videoId,{sources:[{file:this.path}],height:"40",width:"100%",aspectratio:"",hlshtml:!0,primary:"html5",fallback:!1,autostart:!1,mute:!1,rewind:!1,playbackRateControls:!0,pipIcon:"disabled",allowFullscreen:!1,playbackRateControls:!0}),this.$nextTick(()=>{this.loading=!1,this.is_footer&&this.player.play()})},setVideoPlayer(){this.player=o("my-video-"+this.videoId,{cast:{},preload:"auto",playlist:[{file:this.path,image:this.videoThumbnail}]})}},beforeUnmount(){a("my-video-"+this.videoId)}},f={key:0,class:"w-full flex items-center p-2 bg-gray-900 text-gray-300 justify-center rounded-xl"},m=["id"];function y(t,e,c,v,i,_){return d(),r("div",null,[i.isBee&&i.loading?(d(),r("div",f,[...e[0]||(e[0]=[l("i",{class:"far fa-spin fa-sync-alt mr-1"},null,-1),n(" Loading... ",-1)])])):u("",!0),l("div",{id:"my-video-"+i.videoId},null,8,m)])}const T=h(p,[["render",y]]);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.