/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o}from"tslib";import t from"../../../Color.js";import{subclass as r}from"../../../core/accessorSupport/decorators.js";import s from"../SmartMappingSliderViewModel.js";let e=class extends s{constructor(o){super({...o,suppressDeprecationWarning:!0})}set stops(o){super.stops=o}getStopInfo(o){const{min:r,max:s,stops:e}=this;if(!e?.length)return[];const p=this._getColorForStops(o)?.toRgb();return e.map(o=>({color:new t(p&&[...p,o.opacity]),offset:(s-o.value)/(s-r)}))}_getColorForStops(o){return o?o instanceof t?o:t.fromString(o):null}};e=o([r("esri.widgets.smartMapping.OpacitySlider.OpacitySliderViewModel")],e);const p=e;export{p as default};
