import{r as t,h as e}from"./p-1a7a8b00.js";import{l as s}from"./p-a44cd541.js";import{s as i}from"./p-b4467cc2.js";const r=class{constructor(e){t(this,e),this.handleSubscriptions=()=>{this.storeUnsubscribe&&this.storeUnsubscribe(),this.storeUnsubscribe=i.mapStateToProps(this,this.mapStateToProps)},this.mapStateToProps=t=>({state:s(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-remote-application-form-state-container"),customElements.whenDefined("bp-sdk-external-filter-remote-application-form-state-container").then((()=>{this.useExternal=!0})),this.handleSubscriptions()}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-filter-remote-application-form-state-container",{state:this.state,targetState:this.targetState})}renderInternal(){return this.targetState===this.state&&e("div",{class:"bp-sdk-filter-remote-application-form-state-container__container"},e("host",null))}};r.style="";export{r as bp_sdk_filter_remote_application_form_state_container}