/*
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 r}from"tslib";import e from"../../core/Collection.js";import{property as t,subclass as i}from"../../core/accessorSupport/decorators.js";import o from"./LayerView.js";const a=o=>{const a=o;let y=class extends a{constructor(...r){super(...r),this.layerViews=new e}get dynamicGroupLayerView(){return this.layerViews.find(r=>r.layer===this.layer?.dynamicGroupLayer)}get footprintLayerView(){return this.layerViews.find(r=>r.layer===this.layer?.footprintLayer)}isUpdating(){return!this.dynamicGroupLayerView||!this.footprintLayerView||this.dynamicGroupLayerView.updating||this.footprintLayerView.updating}};return r([t()],y.prototype,"layer",void 0),r([t()],y.prototype,"layerViews",void 0),r([t({readOnly:!0})],y.prototype,"dynamicGroupLayerView",null),r([t({readOnly:!0})],y.prototype,"footprintLayerView",null),y=r([i("esri.views.layers.CatalogLayerView")],y),y},y=a(o);export{y as CatalogLayerView,a as CatalogLayerViewMixin};
