/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{O as l,U as o,a as n,b as r}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";var p=n`:host{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxs)}`,t=class extends l{constructor(){super(...arguments),this._expandedLine=void 0,this.featureSelected=!1}static{this.properties={_expandedLine:16,effectiveDisplayUnits:0,featureSelected:5,messages:0,results:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}_onToggleExpand(s){let e=s.detail;this._expandedLine=e===this._expandedLine?void 0:e}render(){let{messages:s,effectiveDisplayUnits:e,_expandedLine:d}=this,i=this.results??[],c=i.length<=1;return i.map(a=>r`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${e} .expanded=${a.profile===d} .featureSelected=${this.featureSelected} .hideCheckbox=${c} .messages=${s} @arcgisExpandedToggle=${this._onToggleExpand} .result=${a}></arcgis-elevation-profile-legend-item>`)}};o("arcgis-elevation-profile-legend",t);export{t as ArcgisElevationProfileLegend};
