/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{areaUnitsJSONMap as t,lengthUnitsJSONMap as s}from"../../core/units.js";import{property as p,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends(r(o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};e([p({type:String,json:{read:{source:"shapeAreaFieldName"}}})],a.prototype,"shapeAreaField",void 0),e([p({type:String,json:{read:{source:"shapeLengthFieldName"}}})],a.prototype,"shapeLengthField",void 0),e([p({type:String,json:{read:e=>t.read(e)||s.read(e)}})],a.prototype,"units",void 0),a=e([i("esri.layers.support.GeometryFieldsInfo")],a);export{a as default};
