/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import o from"../Color.js";import{JSONMap as r}from"../core/jsonMap.js";import{JSONSupport as l}from"../core/JSONSupport.js";import{property as s,subclass as i}from"../core/accessorSupport/decorators.js";import{reader as t}from"../core/accessorSupport/decorators/reader.js";const p=new r({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let m=0,n=class extends l{constructor(e){super(e),this.id="sym"+m++,this.type=null,this.color=new o([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,o){}hash(){return JSON.stringify(this.toJSON())}clone(){}};e([s({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write,isRequired:!0}}})],n.prototype,"type",void 0),e([s({type:o,json:{write:{allowNull:!0}}})],n.prototype,"color",void 0),e([t("color")],n.prototype,"readColor",null),n=e([i("esri.symbols.Symbol")],n);export{n as default};
