1import{B as b}from"./ch-BasePlayButton-KnNBlgqU.js";import{_ as f,r as o,o as i,c as s,p as l,k as r,e as d,f as p,F as w}from"./app-index-CXQob2hh.js";const y={name:"RemoteVideo",components:{BasePlayButton:b},props:{media:{type:Object,required:!0},thumbnail:{type:Object,required:!1},image_style:{type:String,required:!0},rounded:{type:Boolean,required:!1},priority:{type:Boolean,required:!1,default:!1},newButton:{type:Boolean,required:!1}},computed:{thumbnailImageData(){return!this.thumbnail||!this.thumbnail.data?null:this.thumbnail.data[this.image_style]||this.thumbnail.data.default||null}},methods:{isSource(e){return e!=="default"},roundedClass(){return this.rounded?"rounded":""},show(){this.$refs.popup.show()},getWidth(){const e=window.innerWidth;return e>=1440?1280:e>=1280?1120:e>=1024?880:e>=768?656:e>=576?480:e-64},getHeight(){return 9*this.getWidth()/16}}},B={width:"640",height:"480"},g=["src","type"];function _(e,a,t,v,P,n){const u=o("BasePlayButton"),m=o("BasePicture"),c=o("BasePopup");return i(),s(w,null,[t.thumbnail?(i(),s("div",l({key:0,class:["bub-image",n.roundedClass()]},e.$attrs,{onClick:a[0]||(a[0]=h=>n.show())}),[r(u,{"new-button":t.newButton,"watch-label":t.media.watch_label??"Play"},null,8,["new-button","watch-label"]),r(m,{"image-data":n.thumbnailImageData,priority:t.priority},null,8,["image-data","priority"])],16)):(i(),s("div",l({key:1,class:["bub-video",n.roundedClass()]},e.$attrs,{onClick:a[1]||(a[1]=h=>n.show())}),[r(u,{"new-button":t.newButton,"watch-label":t.media.watch_label??"Watch"},null,8,["new-button","watch-label"]),d("video",B,[d("source",{src:t.media.data.src,type:t.media.data.type},null,8,g),a[2]||(a[2]=p(" Your browser does not support the video tag. ",-1))])],16)),r(c,{"media-type":"remote_video",media:t.media,ref:"popup"},null,8,["media"])],64)}const C=f(y,[["render",_]]);export{C 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.