import{r as t,c as s,h as e}from"./p-1a7a8b00.js";const n=class{constructor(e){t(this,e),this.navigateNext=s(this,"navigateNext",7),this.text="",this.icon="chevron-right",this.buttonDisabled=!1,this.cssClasses=void 0,this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-next-button"),customElements.whenDefined("bp-sdk-external-next-button").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-next-button",{buttonDisabled:this.buttonDisabled,cssClasses:this.cssClasses,icon:this.icon,text:this.text})}renderInternal(){return e("div",{class:"bp-sdk-next-button__container"},e("bp-sdk-button",{onClick:()=>this.navigateNext.emit(),text:this.text,buttonDisabled:this.buttonDisabled,class:this.cssClasses},e("bp-sdk-icon-container",{name:this.icon})))}};n.style="";export{n as bp_sdk_next_button}