/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as i}from"./EH5576ZY.js";import a from"./KTDXN3YM.js";import{z as s}from"./GRFF5Y4R.js";export default $arcgis.t(([c,{a:o}])=>{var l=n=>h(n),t=class extends s{#e;constructor(e){super(e),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&o(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:e}=this.component,r=e.shadowRoot?.firstElementChild??e.firstElementChild??void 0;e.childElem??=r,this.#e=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),e.isConnected&&o(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#e?.remove()}hostUpdate(e){e.has("referenceElement")&&o(this.component)}},h=i(t);return{a:l,b:t}},"core/reactiveUtils",a)