"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("../constants.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),o=["active","paused","complete","idle","unknown"],u=function(e,n){return t.StatusColors[e][n].default.fill};exports.getClusterColorExpression=function(e){var t=[];o.slice(0,-1).forEach((function(n,a){var c=o.slice(a+1);t.push(function(e,t){var n=t.map((function(t){return[">=",["get","count_".concat(e)],["get","count_".concat(t)]]}));return 1===n.length?n[0]:["all"].concat(r.default(n))}(n,c),u(e,n))}));var n=o[o.length-1];return["case"].concat(t,[u(e,n)])};
//# sourceMappingURL=getClusterColorExpression.js.map
