/*
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","../SizeSlider/SizeSliderViewModel"],(function(e,r,o,t,s,i,n,a){"use strict";let l=function(r){function o(e){var o;return(o=r.call(this,e)||this).primaryHandleEnabled=!0,o}return e._inheritsLoose(o,r),o.prototype.getGradientStopInfo=function(e,r){var o;if(null==(o=this.stops)||!o.length)return[];const{min:t,max:s,stops:i}=this,n=[r,r,r,e,e],a=[],l=s-t;return i.forEach(((e,r)=>{const o=n[r],t=(s-e.value)/l,c=0===r?t:(s-i[r-1].value)/l;a.push({offset:c,color:o},{offset:t,color:o})})),a},o}(a);r.__decorate([o.property({readOnly:!0})],l.prototype,"primaryHandleEnabled",void 0),l=r.__decorate([n.subclass("esri.widgets.smartMapping.SizeSlider.BinaryColorSizeSliderViewModel")],l);return l}));
