/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import r from"../../core/Logger.js";import{isAbortError as s}from"../../core/promiseUtils.js";import{on as o}from"../../core/reactiveUtils.js";import{subclass as t}from"../../core/accessorSupport/decorators.js";const i=i=>{const a=i;let c=class extends a{initialize(){this.addHandles(o(()=>this.layer,"refresh",e=>{this.doRefresh(e.dataChanged).catch(e=>{s(e)||r.getLogger(this).error(e)})}),"RefreshableLayerView")}};return c=e([t("esri.views.layers.RefreshableLayerView")],c),c};export{i as RefreshableLayerView};
