/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass"],(function(e,r,t,i,s,o,n,a){"use strict";function c(e){return"portalItem"in e}const u=e=>{let s=function(e){function t(){return e.apply(this,arguments)||this}return r._inheritsLoose(t,e),r._createClass(t,[{key:"apiKey",get:function(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):c(this)?null==(e=this.portalItem)?void 0:e.apiKey:null},set:function(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}}]),t}(e);return t.__decorate([i.property({type:String})],s.prototype,"apiKey",null),s=t.__decorate([a.subclass("esri.layers.mixins.APIKeyMixin")],s),s};e.APIKeyMixin=u,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
