/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import o from"../../Color.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import t from"../../core/Logger.js";import{property as l,cast as s,subclass as i}from"../../core/accessorSupport/decorators.js";import{ensureString as p}from"../../core/accessorSupport/ensureType.js";var n;let u=n=class extends r{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(t.getLogger(this).error(".field: field must be a string value"),null):p(e)}clone(){return new n({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};e([l({type:o,json:{type:[Number],write:!0}})],u.prototype,"color",void 0),e([l({type:String,json:{write:!0}})],u.prototype,"field",void 0),e([s("field")],u.prototype,"castField",null),e([l({type:String,json:{write:!0}})],u.prototype,"label",void 0),e([l({type:String,json:{write:!0}})],u.prototype,"valueExpression",void 0),e([l({type:String,json:{write:!0}})],u.prototype,"valueExpressionTitle",void 0),u=n=e([i("esri.renderers.support.AttributeColorInfo")],u);const a=u;export{a as default};
