/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{property as r,subclass as i}from"../../../core/accessorSupport/decorators.js";import{getIconForLayer as l}from"../iconUtils.js";let o=class extends t{constructor(e){super(e),this.layer=null,this.viewModel=null}get _layerViewSuspended(){return!0===this.layerView?.suspended}get iconName(){return this.layerIsVisible?l(this.layer):"layer-hide"}get layerIsVisible(){const{layer:e}=this,t=e.parent;return!(this._layerViewSuspended||!e.visible||t&&"visible"in t&&!t.visible)}get key(){return this.layer.id}get layerView(){return this.viewModel.layerViewMap.get(this.layer.id)}get title(){return this.layer.title}get view(){return this.viewModel.view}};e([r()],o.prototype,"_layerViewSuspended",null),e([r()],o.prototype,"iconName",null),e([r()],o.prototype,"layerIsVisible",null),e([r()],o.prototype,"key",null),e([r()],o.prototype,"layer",void 0),e([r()],o.prototype,"layerView",null),e([r()],o.prototype,"title",null),e([r()],o.prototype,"view",null),e([r()],o.prototype,"viewModel",void 0),o=e([i("esri.widgets.support.SelectionList.ItemBase")],o);const s=o;export{s as default};
