/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";var n;const p=new t({slider:"slider",picker:"picker"});let l=n=class extends r{constructor(e){super(e),this.interactionMode=null,this.numStops=null,this.stopInterval=null}clone(){return new n({interactionMode:this.interactionMode,numStops:this.numStops,stopInterval:this.stopInterval})}};e([o({type:p.apiValues,nonNullable:!0,json:{type:p.jsonValues,default:null,read:{reader:p.read},write:{isRequired:!0,writer:p.write}}})],l.prototype,"interactionMode",void 0),e([o({type:i,json:{read:{source:"numberOfStops"},write:{target:"numberOfStops",overridePolicy(){const e=null!=this.stopInterval;return{enabled:!e,isRequired:!e}}}}})],l.prototype,"numStops",void 0),e([o({type:Number,json:{write:{overridePolicy(){return{isRequired:null==this.numStops}}}}})],l.prototype,"stopInterval",void 0),l=n=e([s("esri.webdoc.widgets.Range")],l);const u=l;export{u as default};
