/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o}from"tslib";import r from"../../../Color.js";import{JSONSupport as e}from"../../../core/JSONSupport.js";import{property as l,subclass as t}from"../../../core/accessorSupport/decorators.js";import{Integer as s}from"../../../core/accessorSupport/ensureType.js";import{writer as i}from"../../../core/accessorSupport/decorators/writer.js";var u;let p=u=class extends e{constructor(o){super(o),this.color=null,this.label=null,this.value=null}writeValue(o,r,e){r[e]=o??0}clone(){return new u({color:this.color&&this.color.clone(),label:this.label,value:this.value})}equals(o){return this===o||this.value===o.value&&this.label===o.label&&(this.color===o.color||null!=this.color&&null!=o.color&&this.color.equals(o.color))}};o([l({type:r,json:{type:[s],write:{isRequired:!0}}})],p.prototype,"color",void 0),o([l({type:String,json:{write:!0}})],p.prototype,"label",void 0),o([l({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),o([i("value")],p.prototype,"writeValue",null),p=u=o([t("esri.renderers.visualVariables.support.ColorStop")],p);const a=p;export{a as default};
