import{proxyCustomElement,HTMLElement,createEvent,h}from"@stencil/core/internal/client";const prestoMutedOverlayCss=":host{display:block}",PrestoMutedOverlayStyle0=prestoMutedOverlayCss,PrestoMutedOverlay=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.playVideo=createEvent(this,"playVideo",7),this.mutedPreview=void 0,this.mutedOverlay=void 0,this.preset=void 0}render(){var e,t,l,r,a,o,s,d,i;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===(l=this.mutedOverlay)||void 0===l?void 0:l.src)?h("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(r=this.mutedOverlay)||void 0===r?void 0:r.width)||50}%`,left:100*((null===(o=null===(a=this.mutedOverlay)||void 0===a?void 0:a.focalPoint)||void 0===o?void 0:o.x)||.5)+"%",top:100*((null===(d=null===(s=this.mutedOverlay)||void 0===s?void 0:s.focalPoint)||void 0===d?void 0:d.y)||.5)+"%"}},h("img",{src:null===(i=this.mutedOverlay)||void 0===i?void 0:i.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}static get style(){return PrestoMutedOverlayStyle0}},[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["presto-muted-overlay"].forEach((e=>{"presto-muted-overlay"===e&&(customElements.get(e)||customElements.define(e,PrestoMutedOverlay))}))}export{PrestoMutedOverlay as P,defineCustomElement as d};