/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import s from"../../LayerList/LayerListViewModel.js";import{isValidOverlayLayer as r}from"../support/typeUtils.js";let i=class extends s{_compileList(){const e=this.view?.map?.allLayers;if(!e)return;const t=e.filter(r);this._watchLayersListMode(t);const s=this._getViewableLayers(t);s?.length?(this._createNewItems(s),this._removeItems(s),this._sortItems(s)):this._removeAllItems()}};i=e([t("esri.widgets.OrientedImageryViewer.components.OverlayLayersListViewModel")],i);export{i as default};
