import{r as t,h as e}from"./p-1a7a8b00.js";const s=class{constructor(e){t(this,e),this.sendToExchangeHandler=void 0,this.buttonDisabled=!1,this.text="Send to Exchange",this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-send-to-exchange"),customElements.whenDefined("bp-sdk-external-send-to-exchange").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-send-to-exchange",{buttonDisabled:this.buttonDisabled,sendToExchangeHandler:this.sendToExchangeHandler,text:this.text})}renderInternal(){return e("div",{class:"bp-sdk-send-to-exchange__container"},e("bp-sdk-send-to-exchange-button",{text:this.text,buttonDisabled:this.buttonDisabled,onClick:this.sendToExchangeHandler}))}};s.style="";const n=class{constructor(e){t(this,e),this.text="",this.buttonDisabled=!1,this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-send-to-exchange-button"),customElements.whenDefined("bp-sdk-external-send-to-exchange-button").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-send-to-exchange-button",{buttonDisabled:this.buttonDisabled,text:this.text})}renderInternal(){return e("bp-sdk-button",{buttonDisabled:this.buttonDisabled,text:this.text})}};n.style="";export{s as bp_sdk_send_to_exchange,n as bp_sdk_send_to_exchange_button}