import{r as i,h as s}from"./p-d7399561.js";const t=class{constructor(s){i(this,s),this.getRef=void 0,this.autoplay=void 0,this.src=void 0,this.preload=void 0,this.poster=void 0,this.player=void 0,this.tracks=void 0,this.playsinline=void 0,this.provider=void 0,this.videoAttributes=void 0}render(){return s("video",Object.assign({class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},this.videoAttributes),s("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((i=>s("track",{kind:"captions",label:(null==i?void 0:i.label)?i.label:"Captions",src:null==i?void 0:i.src,srclang:(null==i?void 0:i.srcLang)?null==i?void 0:i.srcLang:"en"}))))}};t.style=":host{display:block}";export{t as presto_video};