/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../renderers/support/HeatmapColorStop"],(function(e,o){"use strict";function r(e){if(!e.colorStops)return[];const r=[...e.colorStops].filter((e=>{var o;return(null==(o=e.color)?void 0:o.a)>0}));let t=r.length-1;if(r&&r[0]){const e=r[t];e&&1!==e.ratio&&(r.push(new o({ratio:1,color:e.color})),t++)}return r.map(((o,r)=>{let l="";var n;if(0===r)l=(null==(n=e.legendOptions)?void 0:n.minLabel)||"low";else if(r===t){var i;l=(null==(i=e.legendOptions)?void 0:i.maxLabel)||"high"}return{color:o.color,label:l,ratio:o.ratio}})).reverse()}e.getHeatmapRampStops=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
