/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
import d from"./OSA3KXKL.js";import c from"./Y4DAIYBP.js";import b from"./DTE4O2DP.js";import{e as o}from"./LYMDZ73M.js";import"./MG6XDMQJ.js";import"./HITJFSBP.js";import{B as t,E as s,P as a,U as r,j as i}from"./3VKC6PRK.js";export default $geoscene.t(([h,,,n])=>{var d=i`@layer{geoscene-legend{display:block}}`,l=n(h),e=class extends a{constructor(){super(...arguments),this.widget=l(this),this.viewModel=this.widget.viewModel,this.activeLayerInfos=this.widget.activeLayerInfos,this.autoDestroyDisabled=!1,this.basemapLegendVisible=this.widget.basemapLegendVisible,this.headingLevel=this.widget.headingLevel,this.hideLayersNotInCurrentView=this.widget.hideLayersNotInCurrentView,this.icon=this.widget.icon,this.label=this.widget.label,this.layerInfos=this.widget.layerInfos,this.legendStyle=this.widget.style,this.position="bottom-left",this.respectLayerDefinitionExpression=this.widget.respectLayerDefinitionExpression,this.respectLayerVisibilityDisabled=this.widget.respectLayerVisibility,this.state=this.viewModel.state,this.geoscenePropertyChange=o()("state"),this.geosceneReady=t()}static{this.properties={activeLayerInfos:0,autoDestroyDisabled:5,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,icon:1,label:1,layerInfos:0,legendStyle:1,position:1,referenceElement:1,respectLayerDefinitionExpression:5,respectLayerVisibilityDisabled:5,state:3}}static{this.shadowRootOptions=s}static{this.styles=d}async destroy(){await this.manager.destroy()}};r("geoscene-legend",e);return e},"widgets/Legend",b,c,d)