/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{b as c}from"./2I5LGZNX.js";import{E as s,F as a,G as r,J as l,h as t,i as e}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var y=t`:host{display:block}`,i=class extends r{constructor(){super(...arguments),this.layerListRef=s(),this.visibilityIcon="eyeball"}static{this.properties={mapView:0,layerListRef:0,visibilityIcon:1}}static{this.styles=y}willUpdate(o){o.has("visibilityIcon")&&this.visibilityIconWatchHandler()}async visibilityIconWatchHandler(){this.layerListRef.value&&(this.layerListRef.value.visibilityAppearance=this.visibilityIcon==="checkbox"?"checkbox":"default")}render(){return this.mapView&&e`<arcgis-layer-list style=${l(document.dir==="rtl"?"direction: rtl;":"direction: ltr;")} auto-destroy-disabled .view=${this.mapView} .visibilityAppearance=${this.visibilityIcon==="checkbox"?"checkbox":"default"} ${a(this.layerListRef)}></arcgis-layer-list>`||""}};c("layer-list-widget",i);export{i as LayerListWidget};
