/*
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/jsonMap","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","./ClassificationDefinition"],(function(e,t,r,i,a,o,n,s,l){"use strict";const d=new r.JSONMap({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),p=new r.JSONMap({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let c=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).breakCount=null,e.classificationField=null,e.classificationMethod=null,e.normalizationField=null,e.normalizationType=null,e.type="class-breaks-definition",e}return e._inheritsLoose(r,t),e._createClass(r,[{key:"standardDeviationInterval",set:function(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}},{key:"definedInterval",set:function(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}}]),r}(l);t.__decorate([i.property({json:{write:!0}})],c.prototype,"breakCount",void 0),t.__decorate([i.property({json:{write:!0}})],c.prototype,"classificationField",void 0),t.__decorate([i.property({type:String,json:{read:d.read,write:d.write}})],c.prototype,"classificationMethod",void 0),t.__decorate([i.property({json:{write:!0}})],c.prototype,"normalizationField",void 0),t.__decorate([i.property({json:{read:p.read,write:p.write}})],c.prototype,"normalizationType",void 0),t.__decorate([i.property({value:null,json:{write:!0}})],c.prototype,"standardDeviationInterval",null),t.__decorate([i.property({value:null,json:{write:!0}})],c.prototype,"definedInterval",null),t.__decorate([i.property()],c.prototype,"type",void 0),c=t.__decorate([s.subclass("esri.rest.support.ClassBreaksDefinition")],c);return c}));
