@splunk/visualizations 25.13.0 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/Area.config.js +216 -216
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +529 -561
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +213 -213
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +394 -386
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +140 -140
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +313 -305
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +15 -15
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +149 -144
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +205 -205
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +387 -379
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +45 -45
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +157 -144
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +11 -11
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +274 -262
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +46 -46
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -262
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +8 -8
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +110 -104
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +220 -220
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +404 -396
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +27 -27
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +557 -548
  44. package/LinkGraph.js.map +1 -1
  45. package/Map.config.js +71 -71
  46. package/Map.config.js.map +1 -1
  47. package/Map.js +472 -466
  48. package/Map.js.map +1 -1
  49. package/Markdown.config.js +23 -23
  50. package/Markdown.config.js.map +1 -1
  51. package/Markdown.js +151 -145
  52. package/Markdown.js.map +1 -1
  53. package/MarkerGauge.config.js +84 -84
  54. package/MarkerGauge.config.js.map +1 -1
  55. package/MarkerGauge.js +295 -289
  56. package/MarkerGauge.js.map +1 -1
  57. package/ParallelCoordinates.config.js +23 -23
  58. package/ParallelCoordinates.config.js.map +1 -1
  59. package/ParallelCoordinates.js +164 -162
  60. package/ParallelCoordinates.js.map +1 -1
  61. package/Pie.config.js +24 -24
  62. package/Pie.config.js.map +1 -1
  63. package/Pie.js +233 -228
  64. package/Pie.js.map +1 -1
  65. package/Punchcard.config.js +33 -33
  66. package/Punchcard.config.js.map +1 -1
  67. package/Punchcard.js +278 -279
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +46 -46
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +154 -142
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.config.js +19 -19
  74. package/Sankey.config.js.map +1 -1
  75. package/Sankey.js +281 -275
  76. package/Sankey.js.map +1 -1
  77. package/Scatter.config.js +135 -135
  78. package/Scatter.config.js.map +1 -1
  79. package/Scatter.js +304 -299
  80. package/Scatter.js.map +1 -1
  81. package/SingleValue.config.js +119 -119
  82. package/SingleValue.config.js.map +1 -1
  83. package/SingleValue.js +359 -341
  84. package/SingleValue.js.map +1 -1
  85. package/SingleValueBasic.js +14 -14
  86. package/SingleValueBasic.js.map +1 -1
  87. package/SingleValueIcon.config.js +117 -117
  88. package/SingleValueIcon.config.js.map +1 -1
  89. package/SingleValueIcon.js +373 -371
  90. package/SingleValueIcon.js.map +1 -1
  91. package/SingleValueRadial.config.js +157 -115
  92. package/SingleValueRadial.config.js.map +1 -1
  93. package/SingleValueRadial.js +1114 -540
  94. package/SingleValueRadial.js.map +1 -1
  95. package/SparkLine.js +50 -20
  96. package/SparkLine.js.map +1 -1
  97. package/Table.config.js +54 -54
  98. package/Table.config.js.map +1 -1
  99. package/Table.js +302 -286
  100. package/Table.js.map +1 -1
  101. package/common/Charting.js +41 -41
  102. package/common/Charting.js.map +1 -1
  103. package/common/EventsDoc.js +15 -14
  104. package/common/EventsDoc.js.map +1 -1
  105. package/common/GaugeMajorTicks.js +2 -2
  106. package/common/GaugeMajorTicks.js.map +1 -1
  107. package/common/GaugeValueMarker.js +2 -2
  108. package/common/GaugeValueMarker.js.map +1 -1
  109. package/common/OptionsDoc.js +22 -22
  110. package/common/OptionsDoc.js.map +1 -1
  111. package/common/OverviewDoc.js +32 -27
  112. package/common/OverviewDoc.js.map +1 -1
  113. package/common/SplunkVisualization.js +4 -4
  114. package/common/SplunkVisualization.js.map +1 -1
  115. package/common/SplunkVisualizationApi.js +2 -2
  116. package/common/SplunkVisualizationApi.js.map +1 -1
  117. package/common/ThemesDoc.js +14 -14
  118. package/common/ThemesDoc.js.map +1 -1
  119. package/common/chartingUtils.js +12 -12
  120. package/common/chartingUtils.js.map +1 -1
  121. package/common/docUtils.js +4 -4
  122. package/common/docUtils.js.map +1 -1
  123. package/common/gaugeUtils.js +112 -112
  124. package/common/gaugeUtils.js.map +1 -1
  125. package/common/shapeUtils.js +21 -15
  126. package/common/shapeUtils.js.map +1 -1
  127. package/common/utils/configUtils.js +10 -9
  128. package/common/utils/configUtils.js.map +1 -1
  129. package/common/utils/dataUtils.js +3 -3
  130. package/common/utils/dataUtils.js.map +1 -1
  131. package/common/utils/hocUtils.js +2 -2
  132. package/common/utils/hocUtils.js.map +1 -1
  133. package/common/utils/layoutUtils.js +2 -2
  134. package/common/utils/layoutUtils.js.map +1 -1
  135. package/common/utils/mapUtils.js +84 -80
  136. package/common/utils/mapUtils.js.map +1 -1
  137. package/common/utils/singleValueUtils.js +2 -2
  138. package/common/utils/singleValueUtils.js.map +1 -1
  139. package/common/utils/testHelper.js +27 -9
  140. package/common/utils/testHelper.js.map +1 -1
  141. package/common/utils/trellisUtils.js +26 -26
  142. package/common/utils/trellisUtils.js.map +1 -1
  143. package/common/utils/urlUtils.js +2 -2
  144. package/common/utils/urlUtils.js.map +1 -1
  145. package/common/withDashboardViz.js +107 -104
  146. package/common/withDashboardViz.js.map +1 -1
  147. package/package.json +19 -19
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 18);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 19);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -134,22 +134,28 @@ module.exports = require("@splunk/visualization-encoding/utils/types");
134
134
  /* 10 */
135
135
  /***/ (function(module, exports) {
136
136
 
137
- module.exports = require("styled-components");
137
+ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
138
138
 
139
139
  /***/ }),
140
140
  /* 11 */
141
141
  /***/ (function(module, exports) {
142
142
 
143
+ module.exports = require("styled-components");
144
+
145
+ /***/ }),
146
+ /* 12 */
147
+ /***/ (function(module, exports) {
148
+
143
149
  module.exports = require("@splunk/visualizations-shared/colorUtils");
144
150
 
145
151
  /***/ }),
146
- /* 12 */,
147
152
  /* 13 */,
148
153
  /* 14 */,
149
154
  /* 15 */,
150
155
  /* 16 */,
151
156
  /* 17 */,
152
- /* 18 */
157
+ /* 18 */,
158
+ /* 19 */
153
159
  /***/ (function(module, exports, __webpack_require__) {
154
160
 
155
161
  "use strict";
@@ -160,10 +166,10 @@ Object.defineProperty(exports, "__esModule", {
160
166
  });
161
167
  exports.columnsNullToZeros = void 0;
162
168
  var types_1 = __webpack_require__(9);
163
- var dsl_1 = __webpack_require__(19);
164
- var hocUtils_1 = __webpack_require__(20);
165
- var JSONSchemaUtils_1 = __webpack_require__(21);
166
- var BubbleLayer_1 = __webpack_require__(22);
169
+ var dsl_1 = __webpack_require__(20);
170
+ var hocUtils_1 = __webpack_require__(21);
171
+ var JSONSchemaUtils_1 = __webpack_require__(22);
172
+ var BubbleLayer_1 = __webpack_require__(23);
167
173
  var columnsNullToZeros = function columnsNullToZeros(config, dataSources, options) {
168
174
  var _a, _b;
169
175
  var primary = dataSources.primary;
@@ -171,10 +177,10 @@ var columnsNullToZeros = function columnsNullToZeros(config, dataSources, option
171
177
  columns = _primary$data.columns,
172
178
  fields = _primary$data.fields;
173
179
  var newColumns = columns;
174
- var mergedOptions = hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, JSONSchemaUtils_1.pickFieldFromJSONSchema(config.optionsSchema, 'default'));
180
+ var mergedOptions = (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(config.optionsSchema, 'default'));
175
181
  if (((_b = (_a = mergedOptions.layers) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type) === 'bubble') {
176
- var latitudeField = dsl_1.getFieldsFromDSL(mergedOptions.layers[0].latitude, dataSources)[0] || '';
177
- var longitudeField = dsl_1.getFieldsFromDSL(mergedOptions.layers[0].longitude, dataSources)[0] || '';
182
+ var latitudeField = (0, dsl_1.getFieldsFromDSL)(mergedOptions.layers[0].latitude, dataSources)[0] || '';
183
+ var longitudeField = (0, dsl_1.getFieldsFromDSL)(mergedOptions.layers[0].longitude, dataSources)[0] || '';
178
184
  var excludedFields = [latitudeField, longitudeField, 'geobin'].concat(BubbleLayer_1.GEO_LAT_AND_LONG_FIELD);
179
185
  var indicesToEvaluate = new Set(fields.reduce(function (arr, e, i) {
180
186
  var field = typeof e === 'string' ? e : e.name.toString();
@@ -187,7 +193,7 @@ var columnsNullToZeros = function columnsNullToZeros(config, dataSources, option
187
193
  if (indicesToEvaluate.has(i)) {
188
194
  // sanitize value and convert string to numeric numbers
189
195
  return column.map(function (value) {
190
- return !value || !types_1.isNumber(value) ? 0 : +value;
196
+ return !value || !(0, types_1.isNumber)(value) ? 0 : +value;
191
197
  });
192
198
  }
193
199
  return column;
@@ -205,25 +211,25 @@ var columnsNullToZeros = function columnsNullToZeros(config, dataSources, option
205
211
  exports.columnsNullToZeros = columnsNullToZeros;
206
212
 
207
213
  /***/ }),
208
- /* 19 */
214
+ /* 20 */
209
215
  /***/ (function(module, exports) {
210
216
 
211
217
  module.exports = require("@splunk/visualization-encoding/utils/dsl");
212
218
 
213
219
  /***/ }),
214
- /* 20 */
220
+ /* 21 */
215
221
  /***/ (function(module, exports) {
216
222
 
217
223
  module.exports = require("@splunk/visualizations-shared/hocUtils");
218
224
 
219
225
  /***/ }),
220
- /* 21 */
226
+ /* 22 */
221
227
  /***/ (function(module, exports) {
222
228
 
223
229
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
224
230
 
225
231
  /***/ }),
226
- /* 22 */
232
+ /* 23 */
227
233
  /***/ (function(module, exports, __webpack_require__) {
228
234
 
229
235
  "use strict";
@@ -232,16 +238,18 @@ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
232
238
  var _slicedToArray = __webpack_require__(7);
233
239
  var _defineProperty = __webpack_require__(1);
234
240
  var _toConsumableArray = __webpack_require__(2);
241
+ var _taggedTemplateLiteral = __webpack_require__(10);
242
+ var _templateObject;
235
243
  Object.defineProperty(exports, "__esModule", {
236
244
  value: true
237
245
  });
238
246
  exports.Bubble = exports.PieSegment = exports.GEO_LAT_AND_LONG_FIELD = exports.GEO_BOUND_PREFIX = void 0;
239
247
  var React = __webpack_require__(3);
240
- var styled_components_1 = __webpack_require__(10);
248
+ var styled_components_1 = __webpack_require__(11);
241
249
  var lodash_1 = __webpack_require__(0);
242
- var colorUtils_1 = __webpack_require__(11);
243
- var MapUtils_1 = __webpack_require__(23);
244
- var MarkerWrapper_1 = __webpack_require__(27);
250
+ var colorUtils_1 = __webpack_require__(12);
251
+ var MapUtils_1 = __webpack_require__(24);
252
+ var MarkerWrapper_1 = __webpack_require__(28);
245
253
  exports.GEO_BOUND_PREFIX = '_geo_bounds_';
246
254
  exports.GEO_LAT_AND_LONG_FIELD = ['_geo_long_field', '_geo_lat_field'];
247
255
  exports.PieSegment = React.memo(function (_ref) {
@@ -288,10 +296,7 @@ exports.PieSegment = React.memo(function (_ref) {
288
296
  });
289
297
  });
290
298
  exports.PieSegment.displayName = 'MapBubblePieSegment';
291
- var StyledMarkerWrapper = styled_components_1.default(MarkerWrapper_1.default).withConfig({
292
- displayName: "BubbleLayer__StyledMarkerWrapper",
293
- componentId: "sc-8aqbb-0"
294
- })(["cursor:pointer;"]);
299
+ var StyledMarkerWrapper = (0, styled_components_1.default)(MarkerWrapper_1.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n"])));
295
300
  exports.Bubble = React.memo(function (_ref3) {
296
301
  var originalValues = _ref3.originalValues,
297
302
  valueRange = _ref3.valueRange,
@@ -327,7 +332,7 @@ exports.Bubble = React.memo(function (_ref3) {
327
332
  offsets.push(total);
328
333
  total += count;
329
334
  });
330
- var radius = MapUtils_1.matchBubbleSize(valueRange, total);
335
+ var radius = (0, MapUtils_1.matchBubbleSize)(valueRange, total);
331
336
  var width = radius * 2;
332
337
  return React.createElement("svg", {
333
338
  width: width,
@@ -375,10 +380,10 @@ var BubbleLayer = function BubbleLayer(props) {
375
380
  bubbleLayer.seriesColors = bubbleLayer.seriesColors || MapUtils_1.DEFAULT_SERIES_COLORS;
376
381
  bubbleLayer.bubbleSize = bubbleLayer.bubbleSize || [];
377
382
  var bakedData = React.useMemo(function () {
378
- return MapUtils_1.bakeBubbleData(bubbleLayer);
383
+ return (0, MapUtils_1.bakeBubbleData)(bubbleLayer);
379
384
  }, [bubbleLayer]);
380
385
  var staticColors = React.useMemo(function () {
381
- return MapUtils_1.getStaticColors(bubbleLayer.bubbleSize.length, bubbleLayer.seriesColors);
386
+ return (0, MapUtils_1.getStaticColors)(bubbleLayer.bubbleSize.length, bubbleLayer.seriesColors);
382
387
  }, [bubbleLayer.bubbleSize.length, bubbleLayer.seriesColors]);
383
388
  var _ref4 = bakedData !== null && bakedData !== void 0 ? bakedData : {},
384
389
  _ref4$data = _ref4.data,
@@ -404,7 +409,7 @@ var BubbleLayer = function BubbleLayer(props) {
404
409
  }
405
410
  return acc;
406
411
  }, []).slice(0, resultLimit || MapUtils_1.DEFAULT_RESULT_LIMIT).sort(function (a, b) {
407
- return lodash_1.sum(b.data.values) - lodash_1.sum(a.data.values);
412
+ return (0, lodash_1.sum)(b.data.values) - (0, lodash_1.sum)(a.data.values);
408
413
  });
409
414
  }, [data, resultLimit, roundedZoom]);
410
415
  var _handleMapClick = React.useCallback(function (e, name, value, i) {
@@ -426,7 +431,7 @@ var BubbleLayer = function BubbleLayer(props) {
426
431
  }, [dataToRender, onMapClick]);
427
432
  return React.createElement(React.Fragment, null, dataToRender.map(function (datum, i) {
428
433
  var colors = dynamicColors ? [dataToRender.map(function (obj) {
429
- return colorUtils_1.isColor(dynamicColors[obj.idx]) ? dynamicColors[obj.idx] : MapUtils_1.DEFAULT_CLUSTER_COLOR;
434
+ return (0, colorUtils_1.isColor)(dynamicColors[obj.idx]) ? dynamicColors[obj.idx] : MapUtils_1.DEFAULT_CLUSTER_COLOR;
430
435
  })[i]] : staticColors;
431
436
  var _datum$data$coordinat = _slicedToArray(datum.data.coordinates, 2),
432
437
  longitude = _datum$data$coordinat[0],
@@ -465,7 +470,7 @@ var BubbleLayer = function BubbleLayer(props) {
465
470
  exports.default = BubbleLayer;
466
471
 
467
472
  /***/ }),
468
- /* 23 */
473
+ /* 24 */
469
474
  /***/ (function(module, exports, __webpack_require__) {
470
475
 
471
476
  "use strict";
@@ -479,10 +484,10 @@ Object.defineProperty(exports, "__esModule", {
479
484
  });
480
485
  exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.LAYER_TYPE = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
481
486
  var lodash_1 = __webpack_require__(0);
482
- var d3_scale_1 = __webpack_require__(24);
483
- var chroma = __webpack_require__(25);
484
- var colorUtils_1 = __webpack_require__(11);
485
- var visualization_color_palettes_1 = __webpack_require__(26);
487
+ var d3_scale_1 = __webpack_require__(25);
488
+ var chroma = __webpack_require__(26);
489
+ var colorUtils_1 = __webpack_require__(12);
490
+ var visualization_color_palettes_1 = __webpack_require__(27);
486
491
  var types_1 = __webpack_require__(9);
487
492
  exports.MAX_LATITUDE = 90;
488
493
  exports.MIN_LATITUDE = -90;
@@ -524,7 +529,7 @@ var getTilePreset = function getTilePreset(_ref) {
524
529
  var defaultTileLight = {};
525
530
  var defaultTileDark = {};
526
531
  var tileConfigs = [].concat(defaultTileConfig).concat(customTileConfig);
527
- lodash_1.forEach(tileConfigs, function (tileConfig) {
532
+ (0, lodash_1.forEach)(tileConfigs, function (tileConfig) {
528
533
  var key = tileConfig === null || tileConfig === void 0 ? void 0 : tileConfig.key;
529
534
  var updatedConfig = Object.assign(Object.assign({
530
535
  theme: 'all'
@@ -657,7 +662,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
657
662
  if (baseLayerTileServer && sources[sourceKeys[i]].tiles.indexOf(baseLayerTileServer) !== -1) {
658
663
  matchedBaseLayerTileServer = true;
659
664
  }
660
- if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
665
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_1.isNumber)(minzoom) && (0, lodash_1.isNumber)(maxzoom)) {
661
666
  return {
662
667
  minZoom: minzoom,
663
668
  maxZoom: maxzoom
@@ -669,7 +674,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
669
674
  var _layers$_i = layers[_i],
670
675
  _minzoom = _layers$_i.minzoom,
671
676
  _maxzoom = _layers$_i.maxzoom;
672
- if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
677
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_1.isNumber)(_minzoom) && (0, lodash_1.isNumber)(_maxzoom)) {
673
678
  return {
674
679
  minZoom: _minzoom,
675
680
  maxZoom: _maxzoom
@@ -707,13 +712,13 @@ var getStaticColors = function getStaticColors(colorCount, colorArray) {
707
712
  // loop through colorArray to pick the first $colorCount colors
708
713
  // start from begining again if colorCount > colorArray.length
709
714
  return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
710
- return colorUtils_1.isColor(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
715
+ return (0, colorUtils_1.isColor)(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
711
716
  });
712
717
  };
713
718
  exports.getStaticColors = getStaticColors;
714
719
  // Bubble size
715
720
  var matchBubbleSize = function matchBubbleSize(dataRange, data) {
716
- var size = d3_scale_1.scalePow().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
721
+ var size = (0, d3_scale_1.scalePow)().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
717
722
  if (size > exports.MAX_BUBBLE_RADIUS) {
718
723
  return exports.MAX_BUBBLE_RADIUS;
719
724
  }
@@ -746,7 +751,7 @@ var sanitizeValues = function sanitizeValues(values) {
746
751
  }
747
752
  // array
748
753
  return values.map(function (arr) {
749
- return exports.sanitizeValues(arr);
754
+ return (0, exports.sanitizeValues)(arr);
750
755
  });
751
756
  };
752
757
  exports.sanitizeValues = sanitizeValues;
@@ -758,7 +763,7 @@ var bakeBubbleData = function bakeBubbleData(layer) {
758
763
  // if bubbleSize is passed as an array of single number array (data series)
759
764
  // e.g. [value0, value1, ...]
760
765
  // format each value as an array to unify data operations for data series and frames
761
- var sanitizedBubbleSize = exports.sanitizeValues(layer.bubbleSize);
766
+ var sanitizedBubbleSize = (0, exports.sanitizeValues)(layer.bubbleSize);
762
767
  var transposedBubbleSize;
763
768
  var transposedSanitizedBubbleSize;
764
769
  var isPie = false;
@@ -771,8 +776,8 @@ var bakeBubbleData = function bakeBubbleData(layer) {
771
776
  // to [[column0data]]
772
777
  // for easy access of values at each geo location,
773
778
  // and min max pie size computation
774
- transposedBubbleSize = exports.transposeArray(layer.bubbleSize);
775
- transposedSanitizedBubbleSize = exports.transposeArray(sanitizedBubbleSize);
779
+ transposedBubbleSize = (0, exports.transposeArray)(layer.bubbleSize);
780
+ transposedSanitizedBubbleSize = (0, exports.transposeArray)(sanitizedBubbleSize);
776
781
  // if multiple series in the dataframe, set isPie to true
777
782
  if (layer.bubbleSize.length > 1) {
778
783
  isPie = true;
@@ -790,7 +795,7 @@ var bakeBubbleData = function bakeBubbleData(layer) {
790
795
  }
791
796
  var data = layer.latitude.map(function (lat, i) {
792
797
  return {
793
- zoom: exports.getZoomLevelFromGeobin(layer.geobin[i]),
798
+ zoom: (0, exports.getZoomLevelFromGeobin)(layer.geobin[i]),
794
799
  values: transposedBubbleSize[i],
795
800
  sanitizedValues: transposedSanitizedBubbleSize[i],
796
801
  coordinates: [layer.longitude[i], lat],
@@ -800,10 +805,10 @@ var bakeBubbleData = function bakeBubbleData(layer) {
800
805
  return Boolean(d.values);
801
806
  });
802
807
  // compute the min/max value to encode min/max pie or bubble size
803
- var min = lodash_1.sum(transposedSanitizedBubbleSize[0]);
804
- var max = lodash_1.sum(transposedSanitizedBubbleSize[1]);
808
+ var min = (0, lodash_1.sum)(transposedSanitizedBubbleSize[0]);
809
+ var max = (0, lodash_1.sum)(transposedSanitizedBubbleSize[1]);
805
810
  transposedSanitizedBubbleSize.forEach(function (row) {
806
- var bubbleSize = lodash_1.sum(row);
811
+ var bubbleSize = (0, lodash_1.sum)(row);
807
812
  max = bubbleSize > max ? bubbleSize : max;
808
813
  min = bubbleSize < min ? bubbleSize : min;
809
814
  });
@@ -823,10 +828,10 @@ var isValidLatLon = function isValidLatLon(latlon) {
823
828
  var _latlon = _slicedToArray(latlon, 2),
824
829
  lat = _latlon[0],
825
830
  lon = _latlon[1];
826
- if (!types_1.isNumber(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
831
+ if (!(0, types_1.isNumber)(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
827
832
  return false;
828
833
  }
829
- if (!types_1.isNumber(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
834
+ if (!(0, types_1.isNumber)(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
830
835
  return false;
831
836
  }
832
837
  return true;
@@ -840,7 +845,7 @@ exports.isValidLatLon = isValidLatLon;
840
845
  */
841
846
  var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
842
847
  var getClusterValues = function getClusterValues(clusterLayer) {
843
- return lodash_1.get(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
848
+ return (0, lodash_1.get)(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
844
849
  };
845
850
  var getChoroplethValues = function getChoroplethValues(choroplethLayer) {
846
851
  var slicedGeomList = choroplethLayer.geom.slice(0, choroplethLayer.resultLimit);
@@ -881,7 +886,7 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
881
886
  var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(function (x) {
882
887
  return +x;
883
888
  });
884
- return lodash_1.min([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
889
+ return (0, lodash_1.min)([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
885
890
  }, getDefaultMax(field));
886
891
  };
887
892
  var getMax = function getMax(field) {
@@ -890,7 +895,7 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
890
895
  }
891
896
  return layers.reduce(function (prevVal, layer) {
892
897
  var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(Number);
893
- return lodash_1.max([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
898
+ return (0, lodash_1.max)([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
894
899
  }, getDefaultMin(field));
895
900
  };
896
901
  return [[getMin(LONGITUDE), getMin(LATITUDE)], [getMax(LONGITUDE), getMax(LATITUDE)]];
@@ -916,12 +921,12 @@ var compareBaseStyles = function compareBaseStyles(curr, next) {
916
921
  var nextBaseLayer = (_b = next === null || next === void 0 ? void 0 : next.layers) === null || _b === void 0 ? void 0 : _b.find(function (layer) {
917
922
  return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
918
923
  });
919
- var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_c = currBaseLayer === null || currBaseLayer === void 0 ? void 0 : currBaseLayer.source) !== null && _c !== void 0 ? _c : '');
920
- var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_d = nextBaseLayer === null || nextBaseLayer === void 0 ? void 0 : nextBaseLayer.source) !== null && _d !== void 0 ? _d : '');
924
+ var currBaseSource = (0, lodash_1.get)(curr === null || curr === void 0 ? void 0 : curr.sources, (_c = currBaseLayer === null || currBaseLayer === void 0 ? void 0 : currBaseLayer.source) !== null && _c !== void 0 ? _c : '');
925
+ var nextBaseSource = (0, lodash_1.get)(next === null || next === void 0 ? void 0 : next.sources, (_d = nextBaseLayer === null || nextBaseLayer === void 0 ? void 0 : nextBaseLayer.source) !== null && _d !== void 0 ? _d : '');
921
926
  if (!currBaseLayer || !nextBaseLayer || !currBaseSource || !nextBaseSource) {
922
927
  return false;
923
928
  }
924
- return lodash_1.isEqual(currBaseLayer, nextBaseLayer) && lodash_1.isEqual(currBaseSource, nextBaseSource);
929
+ return (0, lodash_1.isEqual)(currBaseLayer, nextBaseLayer) && (0, lodash_1.isEqual)(currBaseSource, nextBaseSource);
925
930
  };
926
931
  exports.compareBaseStyles = compareBaseStyles;
927
932
  var formatMetadata = function formatMetadata(choroplethLayer, i) {
@@ -936,32 +941,32 @@ var formatMetadata = function formatMetadata(choroplethLayer, i) {
936
941
  };
937
942
  return Object.keys(metadata).reduce(function (result, curr) {
938
943
  var key = "row.".concat(curr, ".value");
939
- var val = lodash_1.isObject(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
944
+ var val = (0, lodash_1.isObject)(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
940
945
  return Object.assign(Object.assign({}, result), _defineProperty({}, key, val));
941
946
  }, base);
942
947
  };
943
948
  exports.formatMetadata = formatMetadata;
944
949
 
945
950
  /***/ }),
946
- /* 24 */
951
+ /* 25 */
947
952
  /***/ (function(module, exports) {
948
953
 
949
954
  module.exports = require("d3-scale");
950
955
 
951
956
  /***/ }),
952
- /* 25 */
957
+ /* 26 */
953
958
  /***/ (function(module, exports) {
954
959
 
955
960
  module.exports = require("chroma-js");
956
961
 
957
962
  /***/ }),
958
- /* 26 */
963
+ /* 27 */
959
964
  /***/ (function(module, exports) {
960
965
 
961
966
  module.exports = require("@splunk/visualization-color-palettes");
962
967
 
963
968
  /***/ }),
964
- /* 27 */
969
+ /* 28 */
965
970
  /***/ (function(module, exports, __webpack_require__) {
966
971
 
967
972
  "use strict";
@@ -981,9 +986,9 @@ var __rest = this && this.__rest || function (s, e) {
981
986
  Object.defineProperty(exports, "__esModule", {
982
987
  value: true
983
988
  });
984
- var maplibre_gl_1 = __webpack_require__(28);
989
+ var maplibre_gl_1 = __webpack_require__(29);
985
990
  var React = __webpack_require__(3);
986
- var Tooltip_1 = __webpack_require__(29);
991
+ var Tooltip_1 = __webpack_require__(30);
987
992
  var MarkerWrapper = function MarkerWrapper(_a) {
988
993
  var longitude = _a.longitude,
989
994
  latitude = _a.latitude,
@@ -1062,45 +1067,44 @@ var MarkerWrapper = function MarkerWrapper(_a) {
1062
1067
  exports.default = MarkerWrapper;
1063
1068
 
1064
1069
  /***/ }),
1065
- /* 28 */
1070
+ /* 29 */
1066
1071
  /***/ (function(module, exports) {
1067
1072
 
1068
1073
  module.exports = require("maplibre-gl");
1069
1074
 
1070
1075
  /***/ }),
1071
- /* 29 */
1076
+ /* 30 */
1072
1077
  /***/ (function(module, exports, __webpack_require__) {
1073
1078
 
1074
1079
  "use strict";
1075
1080
 
1076
1081
 
1082
+ var _taggedTemplateLiteral = __webpack_require__(10);
1083
+ var _templateObject;
1077
1084
  Object.defineProperty(exports, "__esModule", {
1078
1085
  value: true
1079
1086
  });
1080
1087
  exports.convertDegToDMS = void 0;
1081
1088
  var React = __webpack_require__(3);
1082
- var styled_components_1 = __webpack_require__(10);
1083
- var Popover_1 = __webpack_require__(30);
1084
- var i18n_1 = __webpack_require__(31);
1085
- var StyledPopover = styled_components_1.default(Popover_1.default).withConfig({
1086
- displayName: "Tooltip__StyledPopover",
1087
- componentId: "xwewsa-0"
1088
- })(["width:250px;font-size:12px;"]);
1089
+ var styled_components_1 = __webpack_require__(11);
1090
+ var Popover_1 = __webpack_require__(31);
1091
+ var i18n_1 = __webpack_require__(32);
1092
+ var StyledPopover = (0, styled_components_1.default)(Popover_1.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 250px;\n font-size: 12px;\n"])));
1089
1093
  var StyledTable = styled_components_1.default.table.withConfig({
1090
1094
  displayName: "Tooltip__StyledTable",
1091
- componentId: "xwewsa-1"
1095
+ componentId: "xwewsa-0"
1092
1096
  })(["margin:2px 6px 2px 6px;width:calc(100% - 12px);"]);
1093
1097
  var StyledTitleColumn = styled_components_1.default.td.withConfig({
1094
1098
  displayName: "Tooltip__StyledTitleColumn",
1095
- componentId: "xwewsa-2"
1099
+ componentId: "xwewsa-1"
1096
1100
  })(["opacity:0.85;"]);
1097
1101
  var StyledValueColumn = styled_components_1.default.td.withConfig({
1098
1102
  displayName: "Tooltip__StyledValueColumn",
1099
- componentId: "xwewsa-3"
1103
+ componentId: "xwewsa-2"
1100
1104
  })(["text-align:right;"]);
1101
1105
  var StyledColorBlock = styled_components_1.default.div.withConfig({
1102
1106
  displayName: "Tooltip__StyledColorBlock",
1103
- componentId: "xwewsa-4"
1107
+ componentId: "xwewsa-3"
1104
1108
  })(["background-color:", ";display:inline-block;margin-right:4px;border-radius:2px;width:6px;height:11px;transform:translateY(1px);"], function (props) {
1105
1109
  return props.color;
1106
1110
  });
@@ -1150,11 +1154,11 @@ var Tooltip = function Tooltip(_ref) {
1150
1154
  "data-test": "area-id"
1151
1155
  }, areaId), React.createElement(StyledValueColumn, {
1152
1156
  "data-test": "area-value"
1153
- }, areaValue)), latitude && React.createElement("tr", null, React.createElement(StyledTitleColumn, null, i18n_1._('Latitude')), React.createElement(StyledValueColumn, {
1157
+ }, areaValue)), latitude && React.createElement("tr", null, React.createElement(StyledTitleColumn, null, (0, i18n_1._)('Latitude')), React.createElement(StyledValueColumn, {
1154
1158
  "data-test": "latitude"
1155
- }, exports.convertDegToDMS(latitude, 'latitude'))), longitude && React.createElement("tr", null, React.createElement(StyledTitleColumn, null, i18n_1._('Longitude')), React.createElement(StyledValueColumn, {
1159
+ }, (0, exports.convertDegToDMS)(latitude, 'latitude'))), longitude && React.createElement("tr", null, React.createElement(StyledTitleColumn, null, (0, i18n_1._)('Longitude')), React.createElement(StyledValueColumn, {
1156
1160
  "data-test": "longitude"
1157
- }, exports.convertDegToDMS(longitude, 'longitude'))), additionalFields.filter(function (_ref2) {
1161
+ }, (0, exports.convertDegToDMS)(longitude, 'longitude'))), additionalFields.filter(function (_ref2) {
1158
1162
  var value = _ref2.value;
1159
1163
  return value && String(value) !== '0';
1160
1164
  }).map(function (_ref3, index) {
@@ -1176,13 +1180,13 @@ var Tooltip = function Tooltip(_ref) {
1176
1180
  exports.default = Tooltip;
1177
1181
 
1178
1182
  /***/ }),
1179
- /* 30 */
1183
+ /* 31 */
1180
1184
  /***/ (function(module, exports) {
1181
1185
 
1182
1186
  module.exports = require("@splunk/react-ui/Popover");
1183
1187
 
1184
1188
  /***/ }),
1185
- /* 31 */
1189
+ /* 32 */
1186
1190
  /***/ (function(module, exports) {
1187
1191
 
1188
1192
  module.exports = require("@splunk/ui-utils/i18n");