import{r as t,h as s}from"./p-1a7a8b00.js";import{e}from"./p-19cd3f24.js";const i=class{constructor(s){t(this,s),this.text="",this.buttonId=e(8),this.buttonDisabled=!1,this.extraCssClasses=void 0,this.cssClasses="bp-sdk-vehicle-question-set-button__container",this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-vehicle-question-set-button"),customElements.whenDefined("bp-sdk-external-vehicle-question-set-button").then((()=>{this.useExternal=!0})),this.calculateButtonClasses(this.extraCssClasses)}calculateButtonClasses(t=""){this.cssClasses=`bp-sdk-vehicle-question-set-button__container ${t}`}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return s("bp-sdk-external-vehicle-question-set-button",{text:this.text,buttonId:this.buttonId,buttonDisabled:this.buttonDisabled})}renderInternal(){return s("bp-sdk-button",{class:this.cssClasses,text:this.text,buttonId:this.buttonId,buttonDisabled:this.buttonDisabled})}static get watchers(){return{extraCssClasses:["calculateButtonClasses"]}}};i.style="";export{i as bp_sdk_vehicle_question_set_button}