import{r as s,c as t,g as r}from"./p-1a7a8b00.js";import{g as i}from"./p-a44cd541.js";import{o}from"./p-487241b6.js";import{s as e}from"./p-b4467cc2.js";const h=[(new o).name],c=class{constructor(r){s(this,r),this.sdkError=t(this,"sdkError",7),this.handleError=s=>{try{const{error:t}=s;h.includes(null==t?void 0:t.name)&&(this.sdkError.emit({error:t}),this.isDebug&&console.error(t),this.errorHandler&&this.errorHandler(t))}catch(s){}},this.handleSubscriptions=()=>{this.storeUnsubscribe&&this.storeUnsubscribe(),this.storeUnsubscribe=e.mapStateToProps(this,this.mapStateToProps)},this.mapStateToProps=s=>({isDebug:i(s)}),this.errorHandler=void 0,this.isDebug=!1}resetState(){}connectedCallback(){this.resetState(),this.handleSubscriptions()}componentWillLoad(){window.addEventListener("error",this.handleError),this.handleSubscriptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return null}get el(){return r(this)}};export{c as bp_sdk_error_event_container}