import{r as t,h as e}from"./p-fdd3ce28.js";var r;const n=class{constructor(e){t(this,e),r.set(this,window.BCE.file)}render(){if(!this.template)return;const{autoplay:t}=this.template;return this.template.location.map(n=>{const o=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}(this,r).get(n);return o&&e("video",{key:n,autoplay:t,muted:t,playsInline:t,controls:!0},e("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};