import{r as t,h as e}from"./p-1a7a8b00.js";import{e as s}from"./p-19cd3f24.js";const n=class{constructor(e){t(this,e),this.text="",this.buttonId=s(8),this.buttonDisabled=!1,this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-quote-request-button"),customElements.whenDefined("bp-sdk-external-quote-request-button").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-quote-request-button",{buttonId:this.buttonId,buttonDisabled:this.buttonDisabled,text:this.text})}renderInternal(){return e("bp-sdk-button",{class:"bp-sdk-quote-request-button__container",text:this.text,buttonId:this.buttonId,buttonDisabled:this.buttonDisabled})}};n.style="";export{n as bp_sdk_quote_request_button}