/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.7 */
import{a as i}from"./SRDD32D4.js";import{a as t}from"./EPSDPGVP.js";import{u as s}from"./RNRMSLW5.js";export default $arcgis.t(([c])=>{var p=n=>m(n),e=class extends s{#o;constructor(o){super(o),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&t(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:o}=this.component,h=o.shadowRoot?.firstElementChild??o.firstElementChild??void 0;o.childElem??=h,this.#o=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),o.isConnected&&t(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#o?.remove()}hostUpdate(o){o.has("position")&&this.component.el.childElem!=null&&typeof this.component.position=="string"&&t(this.component),o.has("referenceElement")&&t(this.component)}},m=i(e);return{a:p,b:e}},"core/reactiveUtils")