import{h}from"@stencil/core";export class PrestoMutedOverlay{render(){var e,t,r,a,l,o,i,s,d;return h("div",{key:"d65899750134c7f2e369720c2d035c27825e1ce4",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",{key:"231db6abba50bbe06312e3c6a162c651cb1408a8",class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},h("svg",{key:"4bd21f713381abfafbcab0e26e7af9fefd3c10de",id:"plyr-play",viewBox:"0 0 18 18"},h("path",{key:"6ffa3046759503f5a46a7f6fcaef328494868811",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",{key:"c00867bba01ae310176b7609bcb3cfb4218ef125",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===(a=this.mutedOverlay)||void 0===a?void 0:a.width)||50}%`,left:100*((null===(o=null===(l=this.mutedOverlay)||void 0===l?void 0:l.focalPoint)||void 0===o?void 0:o.x)||.5)+"%",top:100*((null===(s=null===(i=this.mutedOverlay)||void 0===i?void 0:i.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",attribute:"muted-preview",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1},mutedOverlay:{type:"unknown",attribute:"muted-overlay",mutable:!1,complexType:{original:"MutedOverlay",resolved:"MutedOverlay",references:{MutedOverlay:{location:"import",path:"../../../../interfaces",id:"src/interfaces.ts::MutedOverlay"}}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1},preset:{type:"unknown",attribute:"preset",mutable:!1,complexType:{original:"presetAttributes",resolved:"presetAttributes",references:{presetAttributes:{location:"import",path:"../../../../interfaces",id:"src/interfaces.ts::presetAttributes"}}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1}}}static get events(){return[{method:"playVideo",name:"playVideo",bubbles:!0,cancelable:!0,composed:!0,docs:{tags:[],text:""},complexType:{original:"void",resolved:"void",references:{}}}]}}