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