import{h}from"@stencil/core";export class PrestoVideo{render(){return h("video",{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"})))}static get is(){return"presto-video"}static get originalStyleUrls(){return{$:["presto-video.css"]}}static get styleUrls(){return{$:["presto-video.css"]}}static get properties(){return{getRef:{type:"unknown",attribute:"get-ref",mutable:!0,complexType:{original:"(elm?: HTMLVideoElement) => void",resolved:"(elm?: HTMLVideoElement) => void",references:{HTMLVideoElement:{location:"global",id:"global::HTMLVideoElement"}}},required:!1,optional:!0,docs:{tags:[],text:""},getter:!1,setter:!1},autoplay:{type:"boolean",attribute:"autoplay",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},src:{type:"string",attribute:"src",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},preload:{type:"string",attribute:"preload",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},poster:{type:"string",attribute:"poster",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},player:{type:"any",attribute:"player",mutable:!1,complexType:{original:"any",resolved:"any",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},tracks:{type:"unknown",attribute:"tracks",mutable:!1,complexType:{original:"{ label: string; src: string; srcLang: string }[]",resolved:"{ label: string; src: string; srcLang: string; }[]",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1},playsinline:{type:"boolean",attribute:"playsinline",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},provider:{type:"string",attribute:"provider",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},videoAttributes:{type:"unknown",attribute:"video-attributes",mutable:!1,complexType:{original:"object",resolved:"object",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1}}}}