/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/Logger","../../core/promiseUtils","../../core/reactiveUtils","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass"],(function(e,r,s,o,t,c,i,a,n,l){"use strict";const p=i=>{let a=function(r){function c(){return r.apply(this,arguments)||this}return e._inheritsLoose(c,r),c.prototype.initialize=function(){this.handles.add(t.on((()=>this.layer),"refresh",(e=>{this.doRefresh(e.dataChanged).catch((e=>{o.isAbortError(e)||s.getLogger(this.declaredClass).error(e)}))})),"RefreshableLayerView")},c}(i);return r.__decorate([c.property()],a.prototype,"layer",void 0),a=r.__decorate([l.subclass("esri.layers.mixins.RefreshableLayerView")],a),a};return p}));
