/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
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{LayerView2DMixin as i}from"./LayerView2D.js";import{CatalogLayerViewMixin as o}from"../../layers/CatalogLayerView.js";import s from"../../layers/LayerView.js";let l=class extends(o(i(s))){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()],l.prototype,"layerViews",void 0),l=e([a("esri.views.2d.layers.CatalogLayerView2D")],l);const n=l;export{n as default};
