import{h}from"@stencil/core";export class PrestoMutedOverlay{constructor(){this.mutedPreview=void 0,this.mutedOverlay=void 0,this.preset=void 0}render(){var e,t,r,l,o,i,a,s,d;return h("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(e=this.preset)||void 0===e?void 0:e["play-large"])&&h("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},h("svg",{id:"plyr-play",viewBox:"0 0 18 18"},h("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),h("span",{class:"plyr__sr-only"},"Play")),(null===(t=this.mutedOverlay)||void 0===t?void 0:t.enabled)&&(null===(r=this.mutedOverlay)||void 0===r?void 0:r.src)?h("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(l=this.mutedOverlay)||void 0===l?void 0:l.width)||50}%`,left:100*((null===(i=null===(o=this.mutedOverlay)||void 0===o?void 0:o.focalPoint)||void 0===i?void 0:i.x)||.5)+"%",top:100*((null===(s=null===(a=this.mutedOverlay)||void 0===a?void 0:a.focalPoint)||void 0===s?void 0:s.y)||.5)+"%"}},h("img",{src:null===(d=this.mutedOverlay)||void 0===d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}static get is(){return"presto-muted-overlay"}static get originalStyleUrls(){return{$:["presto-muted-overlay.css"]}}static get styleUrls(){return{$:["presto-muted-overlay.css"]}}static get properties(){return{mutedPreview:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"muted-preview",reflect:!1},mutedOverlay:{type:"unknown",mutable:!1,complexType:{original:"MutedOverlay",resolved:"MutedOverlay",references:{MutedOverlay:{location:"import",path:"../../../../interfaces"}}},required:!1,optional:!1,docs:{tags:[],text:""}},preset:{type:"unknown",mutable:!1,complexType:{original:"presetAttributes",resolved:"presetAttributes",references:{presetAttributes:{location:"import",path:"../../../../interfaces"}}},required:!1,optional:!1,docs:{tags:[],text:""}}}}static get events(){return[{method:"playVideo",name:"playVideo",bubbles:!0,cancelable:!0,composed:!0,docs:{tags:[],text:""},complexType:{original:"void",resolved:"void",references:{}}}]}}