import{r as t,h as e,g as s}from"./p-3ba9c73c.js";import{l as i}from"./p-2b74e80e.js";const h=class{constructor(e){t(this,e),this.metadata={},this.text="",this.location="",this.placeholderText="File description",this.placeholderLocation="File URL",this._link=i(this,this.handleInput),this._text=this._link("text"),this._location=this._link("location")}handleInput(t,e){const s=e.target;s&&(e.cancelBubble=!0,this[t]=s.value,this.value=this.updateValue({[t]:s.value}),this.el.dispatchEvent(new Event("input",{bubbles:!0})))}updateValue(t={}){const e={text:this.text,location:this.location,metadata:Object.assign({},this.metadata)};return Object.assign({},e,t)}componentDidLoad(){this.value=this.updateValue(),this.el.dispatchEvent(new Event("input",{bubbles:!0}))}render(){const t={labelUploadButton:this.labelUploadButton,labelDeleteButton:this.labelDeleteButton};return[e("bce-input",Object.assign({type:"text"},this._text)),e("bce-upload-input",Object.assign({},this._location,t))]}get el(){return s(this)}};export{h as bce_element_download_template};