import{r as t,h as s}from"./p-1a7a8b00.js";import{I as i}from"./p-a44cd541.js";import{s as e}from"./p-b4467cc2.js";const r=class{constructor(s){t(this,s),this.handleSubscriptions=()=>{this.storeUnsubscribe&&this.storeUnsubscribe(),this.storeUnsubscribe=e.mapStateToProps(this,this.mapStateToProps)},this.mapStateToProps=t=>({state:i(t)}),this.targetState=void 0,this.state=void 0,this.useExternal=!1}resetState(){}connectedCallback(){this.resetState(),this.handleSubscriptions()}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-filter-application-form-state-container"),customElements.whenDefined("bp-sdk-external-filter-application-form-state-container").then((()=>{this.useExternal=!0})),this.handleSubscriptions()}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return s("bp-sdk-external-filter-application-form-state-container",{targetState:this.targetState,state:this.state})}renderInternal(){return this.state===this.targetState&&s("div",{class:"bp-sdk-filter-application-form-state-container__container"},s("host",null))}};r.style="";export{r as bp_sdk_filter_application_form_state_container}