/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as r}from"tslib";import{property as e,subclass as o}from"../../../core/accessorSupport/decorators.js";import t from"../SizeSlider/SizeSliderViewModel.js";let i=class extends t{constructor(r){super(r),this.primaryHandleEnabled=!0}getGradientStopInfo(r,e){if(!this.stops?.length)return[];const{min:o,max:t,stops:i}=this,s=[e,e,e,r,r],l=[],a=t-o;return i.forEach((r,e)=>{const o=s[e],n=(t-r.value)/a,d=0===e?n:(t-i[e-1].value)/a;l.push({offset:d,color:o},{offset:n,color:o})}),l}};r([e({readOnly:!0})],i.prototype,"primaryHandleEnabled",void 0),i=r([o("esri.widgets.smartMapping.BinaryColorSizeSlider.BinaryColorSizeSliderViewModel")],i);const s=i;export{s as default};
