/*
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","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/decorators/cast","../../core/accessorSupport/decorators/subclass","./commonProperties"],(function(e,r,t,o,s,l,n,i,p){"use strict";var c;let u=c=function(r){function t(e){var t;return(t=r.call(this,e)||this).description=null,t.label=null,t.symbol=null,t.value=null,t}e._inheritsLoose(t,r);var o=t.prototype;return o.castValue=function(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`},o.clone=function(){return new c({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})},o.getMeshHash=function(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`},t}(t.JSONSupport);r.__decorate([o.property({type:String,json:{write:!0}})],u.prototype,"description",void 0),r.__decorate([o.property({type:String,json:{write:!0}})],u.prototype,"label",void 0),r.__decorate([o.property(p.rendererSymbolProperty)],u.prototype,"symbol",void 0),r.__decorate([o.property({json:{type:String,write:{writer:(e,r)=>{r.value=null==e?void 0:e.toString()}}}})],u.prototype,"value",void 0),r.__decorate([n.cast("value")],u.prototype,"castValue",null),u=c=r.__decorate([i.subclass("esri.renderers.support.UniqueValueInfo")],u);return u}));
