import{r as t,h as i}from"./p-1a7a8b00.js";const n=class{constructor(i){t(this,i),this.notification=void 0,this.removeNotification=void 0,this.text=void 0,this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-notification"),customElements.whenDefined("bp-sdk-external-notification").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return i("bp-sdk-external-notification",{notification:this.notification,text:this.text,removeNotification:this.removeNotification})}renderInternal(){var t;return i("div",{class:"bp-sdk-notification__container"},i("div",{class:"bp-sdk-notification_button__container"},i("button",{type:"button",onClick:()=>this.removeNotification(this.notification)},this.text?this.text:"Close")),i("div",{innerHTML:null===(t=this.notification)||void 0===t?void 0:t.notification}))}};n.style="";export{n as bp_sdk_notification}