import{i as n}from"./property-ChPqBGW_.js";import{L as o,b as t}from"./index-fe5hJ7Kl.js";class l extends n{constructor(e){super(),this._initialized=!1,this.logger=o.create(e)}get initialized(){return this._initialized}connectedCallback(){super.connectedCallback(),this.logger.debug("Connected to DOM")}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect(),this.logger.debug("Disconnected from DOM")}firstUpdated(e){super.firstUpdated(e),this._initialized=!0,this.onInitialize(),this.logger.debug("First update complete")}onInitialize(){}onDisconnect(){}setDebug(e){this.logger.setLevel(e?t.DEBUG:t.INFO)}dispatchCustomEvent(e,i,s){this.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,...s}))}}export{l as B};
