/*
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/accessorSupport/decorators/property","../../../core/arrayUtils","../../../core/has","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/subclass","../SmartMappingSliderViewModel"],(function(e,r,o,t,s,n,c,a){"use strict";let l=function(r){function o(e){var o;return(o=r.call(this,e)||this).zoomingEnabled=!1,o}return e._inheritsLoose(o,r),o.prototype.getStopInfo=function(){const{breaks:e,max:r,min:o}=this,t=r-o;if(!e||!e.length||!t)return[];const s=[];return e.forEach((e=>{const{color:n,max:c,min:a}=e;let l,i;r===o?l=i=0:(l=(r-a)/t,i=(r-c)/t),s.push({offset:l,color:n},{offset:i,color:n})})),s},e._createClass(o,[{key:"breaks",get:function(){return this.breaks}}]),o}(a);r.__decorate([o.property()],l.prototype,"breaks",null),r.__decorate([o.property({readOnly:!0})],l.prototype,"zoomingEnabled",void 0),l=r.__decorate([c.subclass("esri.widgets.smartMapping.ClassedColorSlider.ClassedColorSliderViewModel")],l);return l}));
