import{p as t,H as e,h as s,t as o}from"./p-BHHBMN0G.js";const i=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.styleClass="",this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.zoom=!1}getClass(){const t=["ecl-video",this.styleClass];return this.zoom&&t.push("ecl-video--zoom"),t.join(" ")}getAttr(){const t={playsInline:!0};return this.muted&&(t.muted=!0),this.loop&&(t.loop=!0),this.autoplay&&(t.autoplay=!0),this.controls&&(t.controls=!0),this.poster&&(t.poster=this.poster),this.videoTitle&&this.srVideoLabel?t["aria-label"]=`${this.videoTitle} ${this.srVideoLabel}`:this.videoTitle&&this.srVideoPlayer&&(t["aria-label"]=`${this.videoTitle} ${this.srVideoPlayer}`),t}componentWillLoad(){var t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t:this.theme||"ec"}render(){return s("video",Object.assign({key:"3404b5aa11142ac219018bff48a4e3ab9331f2dd",class:this.getClass()},this.getAttr()),s("slot",{key:"da3ff53de8cff0bb6bb448e6801025a2dc065a16"}))}static get style(){return{ec:".ecl-video--zoom{transition:transform .5s}.ecl-video--zoom:hover{transform:scale(1.1)}",eu:".ecl-video--zoom{transition:transform .5s}.ecl-video--zoom:hover{transform:scale(1.1)}"}}},[292,"ecl-video",{styleClass:[1,"style-class"],theme:[1025],videoTitle:[1,"video-title"],srVideoPlayer:[1,"sr-video-player"],srVideoLabel:[1,"sr-video-label"],poster:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],zoom:[4]}]);function l(){"undefined"!=typeof customElements&&["ecl-video"].forEach((t=>{"ecl-video"===t&&(customElements.get(o(t))||customElements.define(o(t),i))}))}export{i as E,l as d}