System.register(["./p-3c39d395.system.js","./p-efe1606a.system.js"],function(t){"use strict";var e,a,i,n;return{setters:[function(t){e=t.r;a=t.h;i=t.g},function(t){n=t.l}],execute:function(){var u=t("bce_element_audio_template",function(){function t(t){e(this,t);this.metadata={};this.location="";this.autoplay=false;this.labelAutoplay="Autoplay";this.placeholderLocation="Audio URL";this._link=n(this,this.handleInput);this._location=this._link("location");this._autoplay=this._link("autoplay")}t.prototype.handleInput=function(t,e){var a;var i=e.target;if(!i)return;e.cancelBubble=true;this[t]=i.value;this.value=this.updateValue((a={},a[t]=i.value,a));this.el.dispatchEvent(new Event("input",{bubbles:true}))};t.prototype.updateValue=function(t){if(t===void 0){t={}}var e={location:this.location,autoplay:this.autoplay,metadata:Object.assign({},this.metadata)};return Object.assign({},e,t)};t.prototype.componentDidLoad=function(){this.value=this.updateValue();this.el.dispatchEvent(new Event("input",{bubbles:true}))};t.prototype.render=function(){var t={labelUploadButton:this.labelUploadButton,labelDeleteButton:this.labelDeleteButton};return[a("bce-upload-input",Object.assign({},this._location,t)),a("bce-input",Object.assign({type:"switch"},this._autoplay))]};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});return t}())}}});