/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../../../core/Collection.js";import{property as r,subclass as a}from"../../../core/accessorSupport/decorators.js";import{LayerView2D as i}from"./LayerView2D.js";import o from"../../layers/CatalogLayerView.js";let s=class extends(i(o)){constructor(){super(...arguments),this.layerViews=new t}update(e){}viewChange(){}moveEnd(){}attach(){this.addAttachHandles([this._updatingHandles.addOnCollectionChange(()=>this.layerViews,()=>this._updateStageChildren(),{initial:!0})])}detach(){this.container.removeAllChildren()}_updateStageChildren(){this.container.removeAllChildren(),this.layerViews.forEach((e,t)=>this.container.addChildAt(e.container,t))}};e([r()],s.prototype,"layerViews",void 0),s=e([a("esri.views.2d.layers.CatalogLayerView2D")],s);const l=s;export{l as default};
