import{r as e,h as t}from"./p-aee8b1df.js";var r;const n=class{constructor(t){e(this,t),r.set(this,window.BCE.file)}render(){if(!this.template)return;const{autoplay:e}=this.template;return this.template.location.map(n=>{const o=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(this,r).get(n);return o&&t("video",{key:n,autoplay:e,muted:e,playsInline:e,controls:!0},t("source",{src:o.url,type:o.type}))})}static get style(){return":host{position:relative;display:block;margin:1rem auto;max-width:1200px;text-align:center}:host img,:host video{width:100%;height:auto}:host img{opacity:0}:host iframe{position:absolute;top:0;left:0;width:100%;height:100%}\@media screen and (min-width: 1024px){:host{text-align:left;width:auto}}"}};r=new WeakMap;export{n as bce_element_video};