import{r as e,h as s}from"./p-1a7a8b00.js";const t=class{constructor(s){e(this,s),this.message=void 0,this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-message"),customElements.whenDefined("bp-sdk-external-message").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return s("bp-sdk-external-message",{message:this.message})}renderInternal(){var e;return s("aside",{role:"alert","aria-live":"polite",class:"bp-sdk-message__container",innerHTML:null===(e=this.message)||void 0===e?void 0:e.target})}};export{t as bp_sdk_message}