import{r as t,h as s}from"./p-3ba9c73c.js";import{R as i}from"./p-6b3481e9.js";const e=class{constructor(s){t(this,s),this.resolveLocation=i.NOOP,this.url=""}componentWillLoad(){this.template&&(this.template.location.startsWith("BCE://")?this.resolveLocation(this.template.location).then(t=>this.url=t):this.url=this.template.location)}render(){return this.template?s("audio",{key:this.url,autoplay:this.template.autoplay,controls:!0},s("source",{src:this.url})):null}static get style(){return"bce-element-audio{display:block;margin:1rem 0}"}};export{e as bce_element_audio};