/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{b as n}from"./2I5LGZNX.js";import{E as i,F as r,G as a,h as s,i as t}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var l=s`:host{display:block}`,e=class extends a{constructor(){super(...arguments),this.legendRef=i()}static{this.properties={mapView:0,legendRef:0}}static{this.styles=l}render(){return this.mapView&&t`<arcgis-legend auto-destroy-disabled respect-layer-definition-expression .view=${this.mapView} ${r(this.legendRef)}></arcgis-legend>`||""}disconnectedCallback(){super.disconnectedCallback(),this.legendRef.value&&this.legendRef.value.destroy()}};n("map-legend",e);export{e as MapLegend};
