/*
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","../request","../core/Error","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/subclass","./Layer","./mixins/BlendLayer","./mixins/RefreshableLayer","./mixins/ScaleRangeLayer"],(function(e,r,t,a,s,o,n,i,c,p,l,y,u){"use strict";let d=function(r){function s(){var e;return(e=r.apply(this,arguments)||this).type="base-dynamic",e}e._inheritsLoose(s,r);var o=s.prototype;return o.getImageUrl=function(){throw new a("basedynamiclayer:getImageUrl-not-implemented","getImageUrl() is not implemented")},o.fetchImage=function(e,r,a,s){const o=this.getImageUrl(e,r,a),n={responseType:"image",signal:s&&s.signal,query:{...this.refreshParameters}};return"string"==typeof o?t(o,n).then((e=>e.data)):o.then((e=>t(e,n))).then((e=>e.data))},s}(l.BlendLayer(u.ScaleRangeLayer(y.RefreshableLayer(p))));r.__decorate([s.property({readOnly:!0,value:"base-dynamic"})],d.prototype,"type",void 0),r.__decorate([s.property({type:["show","hide"]})],d.prototype,"listMode",void 0),d=r.__decorate([c.subclass("esri.layers.BaseDynamicLayer")],d);return d}));
