import{r as s,h as i}from"./p-1a7a8b00.js";const e=class{constructor(i){s(this,i),this.onYesClick=s=>{var i;this.handleYesClick(null===(i=this.refilter)||void 0===i?void 0:i.key,s)},this.onNoClick=s=>{var i;this.handleNoClick(null===(i=this.refilter)||void 0===i?void 0:i.key,s)},this.useExternal=!1,this.refilter=void 0,this.handleYesClick=void 0,this.handleNoClick=void 0}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-business-classification-selector-nudge"),customElements.whenDefined("bp-sdk-external-business-classification-selector-nudge").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return i("bp-sdk-external-business-classification-selector-nudge",{refilter:this.refilter,handleYesClick:this.handleYesClick,handleNoClick:this.handleNoClick})}renderInternal(){var s;return i("div",{class:"bp-sdk-business-classification-selector-nudge__container"},i("span",{class:"bp-sdk-business-classification-selector-nudge__question"},null===(s=this.refilter)||void 0===s?void 0:s.text),i("button",{class:"bp-sdk-business-classification-selector-nudge__btn bp-sdk-business-classification-selector-nudge__btn--yes",onClick:this.onYesClick},"Yes"),i("button",{class:"bp-sdk-business-classification-selector-nudge__btn bp-sdk-business-classification-selector-nudge__btn--no",onClick:this.onNoClick},"No"))}};e.style="";export{e as bp_sdk_business_classification_selector_nudge}