import{r as t,h as s}from"./p-1a7a8b00.js";import{e}from"./p-19cd3f24.js";const n=class{constructor(s){t(this,s),this.text=void 0,this.buttonId=e(8),this.buttonDisabled=!1,this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-button"),customElements.whenDefined("bp-sdk-external-button").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return s("bp-sdk-external-button",{buttonId:this.buttonId,text:this.text,buttonDisabled:this.buttonDisabled},s("slot",null))}renderInternal(){return s("button",{type:"button",class:"bp-sdk-button",id:this.buttonId,disabled:this.buttonDisabled},s("slot",null),s("span",{class:"bp-sdk-button__text"},this.text))}};n.style=".bp-sdk-button{--bp-sdk-button-color:var(--theme-color);color:var(--bp-sdk-button-color)}.bp-sdk-button__text{pointer-events:none}";export{n as bp_sdk_button}