/*
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{property as r,subclass as a}from"../../core/accessorSupport/decorators.js";import t from"./Domain.js";import{enumeration as o}from"../../core/accessorSupport/decorators/enumeration.js";var i;let s=class extends t{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};e([r({json:{type:[Number],read:{source:"range",reader:(e,r)=>r.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,r,a){r[a]=[this.minValue||0,e]},isRequired:!0}}})],s.prototype,"maxValue",void 0),e([r({json:{type:[Number],read:{source:"range",reader:(e,r)=>r.range?.[0]},write:{target:"range",writer(e,r,a){r[a]=[e,this.maxValue||0]},isRequired:!0}}})],s.prototype,"minValue",void 0),e([o({range:"range"})],s.prototype,"type",void 0),s=i=e([a("esri.layers.support.RangeDomain")],s);export{s as default};
