import{r as t,h as e}from"./p-1a7a8b00.js";const r=class{constructor(e){t(this,e),this.createAppFormHandler=void 0,this.buttonDisabled=!1,this.text="Create New App Form",this.useExternal=!1}resetState(){}connectedCallback(){this.resetState()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-create-app-form"),customElements.whenDefined("bp-sdk-external-create-app-form").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-create-app-form",{buttonDisabled:this.buttonDisabled,createAppFormHandler:this.createAppFormHandler,text:this.text})}renderInternal(){return e("div",{class:"bp-sdk-create-app-form__container"},e("bp-sdk-create-app-form-button",{text:this.text,buttonDisabled:this.buttonDisabled,onClick:this.createAppFormHandler}))}};r.style="";export{r as bp_sdk_create_app_form}