import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";const prestoVideoCss=":host{display:block}",PrestoVideoStyle0=prestoVideoCss,PrestoVideo=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),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"}))))}static get style(){return PrestoVideoStyle0}},[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1],videoAttributes:[16]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["presto-video"].forEach((e=>{"presto-video"===e&&(customElements.get(e)||customElements.define(e,PrestoVideo))}))}export{PrestoVideo as P,defineCustomElement as d};