/*
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/lang","../../../core/accessorSupport/decorators/property","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/subclass","../../../core/accessorSupport/decorators/writer","../../../renderers/visualVariables/SizeVariable","../../../renderers/visualVariables/support/sizeVariableUtils"],(function(e,i,s,t,a,r,l,n,o,p){"use strict";var u;e.LevelDependentSizeVariable=u=function(e){function s(){return e.apply(this,arguments)||this}i._inheritsLoose(s,e);var a=s.prototype;return a.writeLevels=function(e,i,s){for(const t in e){const e=this.levels[t];return void(i.stops=e)}},a.clone=function(){return new u({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:p.isSizeVariable(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:p.isSizeVariable(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone(),levels:t.clone(this.levels)})},s}(o),s.__decorate([a.property()],e.LevelDependentSizeVariable.prototype,"levels",void 0),s.__decorate([n.writer("levels")],e.LevelDependentSizeVariable.prototype,"writeLevels",null),e.LevelDependentSizeVariable=u=s.__decorate([l.subclass("esri.views.2d.engine.LevelDependentSizeVariable")],e.LevelDependentSizeVariable),Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
