UNPKG

@arcgis/map-components

Version:
2 lines 570 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */ import b from"./LKOVDQTE.js";import a from"./OAWV35F7.js";import{a as n}from"./AKBXFBDL.js";export default $arcgis.t(([{watch:a},{b:i},{c:r}])=>{var v=(e,o)=>s=>p(s,e),t=class extends r{#s=void 0;constructor(o,s){super(o,s),new i(this.component)}hostLoad(){let o=!0;this.#s=a(()=>this.component.el.view,s=>{this.instance.view=s,s==null?o||(this.instance.map=s):this.instance.map=s.map,o=!1},{sync:!0,initial:!0})}hostDestroy(){this.#s?.remove(),super.hostDestroy()}},p=n(t);return v},"core/reactiveUtils",a,b)