PageSourceSearch

https://www.nordfynskommune.dk/_nuxt/Bd6GCjvT.js

js nordfynskommune.dk collected 2026-10-02 16:47:36 UTC 3,193 bytes, 1 lines download raw bytes

1import{D as e,E as t,J as i,_ as a,it as s,st as o}from"./B8XHxhss.js";import{x as r}from"#entry";import{t as h}from"./DI2uc9Zh.js";var n={name:"VideoPlayerHtml5",props:{data:Object,width:{type:String,default:""},height:{type:String,default:""},muted:{type:Boolean,default:!1},srcParameters:{type:[String,Object],default:null}},emits:["emits"],data(){return{allowLoad:!(void 0===this.$attrs.autoplay),initialMutedValue:this.muted}},computed:{sources(){return(this.data?.details?.files||[]).map(e=>{const t=new URL(e.url,"https://example.com"),i=t.hash?.length?t.hash:"t=0.01";return{src:`${h(e.url,this.srcParameters)}#${i}`,type:e.type,width:e.width,height:e.height}})},computedWidth(){return this.width||this.data?.details?.width||"100%"},computedHeight(){return this.height||this.data?.details?.height||"100%"},showElement(){return this.sources.length&&this.allowLoad},oncanplay(){return[this.initialMutedValue&&"this.muted = true;",this.$attrs.autoplay&&"this.play();"].filter(Boolean).join(" ")||""}},watch:{showElement(){this.initialMutedValue=this.muted}},beforeMount(){window.requestAnimationFrame(()=>{this.allowLoad=!0})},beforeUnmount(){if(this.$refs.video)try{this.$refs.video.pause(),this.$refs.video.removeAttribute("src"),this.$refs.video.load(),this.$refs.video.querySelectorAll("source").forEach(e=>e.remove())}catch(e){}},methods:{play(){this.$refs.video?this.$refs.video.play?.():(this.allowLoad=!0,this.$nextTick(()=>{this.$refs.video?.play?.()}))},pause(){this.$refs.video?this.$refs.video.pause?.():this.$nextTick(()=>{this.$refs.video?.pause?.()})},stop(){this.$refs.video?(this.$refs.video.pause(),this.$refs.video.currentTime=0):this.$nextTick(()=>{this.$refs.video&&(this.$refs.video.pause(),this.$refs.video.currentTime=0)})},emit(...e){this.$emit("emits",e)}}},l=["width","height","oncanplay"],d=["src","type"],u=["width","height","oncanplay"],p=["src","type"];var m=Object.assign(r(n,[["render",function(r,h,n,m,c,y){return c.initialMutedValue&&y.showElement?(s(),e("video",i({key:0,ref:"video"},r.$attrs,{width:y.computedWidth,height:y.computedHeight,oncanplay:y.oncanplay,onCanplay:h[0]||(h[0]=e=>y.emit(e,"canplay")),onCanplaythrough:h[1]||(h[1]=e=>y.emit(e,"canplaythrough")),onComplete:h[2]||(h[2]=e=>y.emit(e,"complete")),onEnded:h[3]||(h[3]=e=>y.emit(e,"ended")),onPause:h[4]||(h[4]=e=>y.emit(e,"pause")),onPlay:h[5]||(h[5]=e=>y.emit(e,"play")),onWaiting:h[6]||(h[6]=e=>y.emit(e,"waiting"))}),[(s(!0),e(a,null,o(y.sources,(t,i)=>(s(),e("source",{key:i,src:t.src,type:t.type},null,8,d))),128))],16,l)):!c.initialMutedValue&&y.showElement?(s(),e("video",i({key:1,ref:"video"},r.$attrs,{width:y.computedWidth,height:y.computedHeight,oncanplay:y.oncanplay,onCanplay:h[7]||(h[7]=e=>y.emit(e,"canplay")),onCanplaythrough:h[8]||(h[8]=e=>y.emit(e,"canplaythrough")),onComplete:h[9]||(h[9]=e=>y.emit(e,"complete")),onEnded:h[10]||(h[10]=e=>y.emit(e,"ended")),onPause:h[11]||(h[11]=e=>y.emit(e,"pause")),onPlay:h[12]||(h[12]=e=>y.emit(e,"play")),onWaiting:h[13]||(h[13]=e=>y.emit(e,"waiting"))}),[(s(!0),e(a,null,o(y.sources,(t,i)=>(s(),e("source",{key:i,src:t.src,type:t.type},null,8,p))),128))],16,u)):t("",!0)}]]),{__name:"VideoPlayerHtml5"});export{m 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.