import{r as registerInstance,h}from"./index-56b61ec5.js";const prestoVideoCss=":host{display:block}",PrestoVideoStyle0=prestoVideoCss,PrestoVideo=class{constructor(e){registerInstance(this,e),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 h("video",Object.assign({key:"f8942eef52dd555ddaaad75cdff70dea9e18488a",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),h("source",{key:"ab9be0a15b7d9a4df81e19b6518eb60d074ff580",src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((e=>h("track",{kind:"captions",label:(null==e?void 0:e.label)?e.label:"Captions",src:null==e?void 0:e.src,srclang:(null==e?void 0:e.srcLang)?null==e?void 0:e.srcLang:"en"}))))}};PrestoVideo.style=PrestoVideoStyle0;export{PrestoVideo as presto_video};