@splunk/visualizations 25.13.1 → 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 +273 -261
  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 +471 -465
  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 +2 -2
  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
package/Pie.js CHANGED
@@ -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 = 437);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 440);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -145,14 +145,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
145
145
  var width = _ref.width;
146
146
  return {
147
147
  style: {
148
- width: style_1.toPx(width)
148
+ width: (0, style_1.toPx)(width)
149
149
  }
150
150
  };
151
151
  }).withConfig({
152
152
  displayName: "FixedSizeContainer__Item",
153
153
  componentId: "sc-1yhgpod-0"
154
154
  })(["position:relative;background-color:", "};"], function (props) {
155
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
155
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
156
156
  });
157
157
  // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
158
158
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
@@ -160,16 +160,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
160
160
  height = _ref2.height;
161
161
  return {
162
162
  style: Object.assign(Object.assign({}, width && {
163
- width: style_1.toPx(width)
163
+ width: (0, style_1.toPx)(width)
164
164
  }), height && {
165
- height: style_1.toPx(height)
165
+ height: (0, style_1.toPx)(height)
166
166
  })
167
167
  };
168
168
  }).withConfig({
169
169
  displayName: "FixedSizeContainer__FixSizeItem",
170
170
  componentId: "sc-1yhgpod-1"
171
171
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
172
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
172
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
173
173
  });
174
174
  var ItemContent = styled_components_1.default.div.withConfig({
175
175
  displayName: "FixedSizeContainer__ItemContent",
@@ -193,7 +193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
193
193
  }
194
194
  return React.createElement(FixSizeItem, {
195
195
  "data-test": "fix-size-item",
196
- "data-splunk-visualization-version": "25.13.1 - ea48ec41e",
196
+ "data-splunk-visualization-version": "26.0.0 - 2f7458907",
197
197
  width: width,
198
198
  height: height,
199
199
  backgroundColor: backgroundColor
@@ -213,7 +213,7 @@ exports.default = withFixedSizeContainer;
213
213
 
214
214
  /***/ }),
215
215
 
216
- /***/ 132:
216
+ /***/ 133:
217
217
  /***/ (function(module, exports) {
218
218
 
219
219
  module.exports = require("@splunk/visualization-encoding/utils/dsl");
@@ -265,7 +265,7 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
265
265
 
266
266
  /***/ }),
267
267
 
268
- /***/ 161:
268
+ /***/ 164:
269
269
  /***/ (function(module, exports, __webpack_require__) {
270
270
 
271
271
  "use strict";
@@ -288,15 +288,15 @@ exports.config = exports.themes = exports.showPlaceHolderIcon = exports.computeV
288
288
  var lodash_1 = __webpack_require__(3);
289
289
  // Charting imports i18n which needs to be run to instantiate window globals in the
290
290
  // eslint-disable-next-line import/order
291
- var Charting_1 = __webpack_require__(64);
292
- var charting_bundle_1 = __webpack_require__(56);
293
- var simpleXMLOptions_1 = __webpack_require__(69);
294
- var config_1 = __webpack_require__(438);
291
+ var Charting_1 = __webpack_require__(65);
292
+ var charting_bundle_1 = __webpack_require__(55);
293
+ var simpleXMLOptions_1 = __webpack_require__(70);
294
+ var config_1 = __webpack_require__(441);
295
295
  exports.config = config_1.default;
296
296
  var withDashboardViz_1 = __webpack_require__(36);
297
- var pieUtils_1 = __webpack_require__(440);
298
- var chartingUtils_1 = __webpack_require__(55);
299
- var IconPlaceholder_1 = __webpack_require__(31);
297
+ var pieUtils_1 = __webpack_require__(443);
298
+ var chartingUtils_1 = __webpack_require__(56);
299
+ var IconPlaceholder_1 = __webpack_require__(32);
300
300
  var validOptions = Object.keys(config_1.default.optionsSchema);
301
301
  exports.PieInnerSize = 0.7;
302
302
  var computeVizProps = function computeVizProps(_a) {
@@ -313,8 +313,8 @@ var computeVizProps = function computeVizProps(_a) {
313
313
  var labelField = otherOptions.labelField,
314
314
  valueField = otherOptions.valueField,
315
315
  hasEventHandlers = otherOptions.hasEventHandlers;
316
- computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(pieUtils_1.convertToPieSCProperties).thru(function (options) {
317
- return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
316
+ computedProps.options = (0, lodash_1.chain)(otherOptions).pick(validOptions).thru(pieUtils_1.convertToPieSCProperties).thru(function (options) {
317
+ return Object.assign(Object.assign({}, (0, simpleXMLOptions_1.getSimpleXMLOptionsForProps)(options)), {
318
318
  chart: 'pie'
319
319
  });
320
320
  }).value();
@@ -336,7 +336,7 @@ var computeVizProps = function computeVizProps(_a) {
336
336
  }
337
337
  });
338
338
  if (truncationLimit) {
339
- primaryData = chartingUtils_1.truncateData(primaryData, truncationLimit);
339
+ primaryData = (0, chartingUtils_1.truncateData)(primaryData, truncationLimit);
340
340
  }
341
341
  computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign({}, primaryData));
342
342
  if (showDonutHole) {
@@ -352,14 +352,14 @@ var computeVizProps = function computeVizProps(_a) {
352
352
  exports.computeVizProps = computeVizProps;
353
353
  // Returns true to display the placeholder icon, if invalid datasource condition or invalid data value/labels condition is met
354
354
  var showPlaceHolderIcon = function showPlaceHolderIcon(dataSources, loading, options) {
355
- return IconPlaceholder_1.shouldShowIconPlaceholder(dataSources, loading) || pieUtils_1.invalidOptionField('value', dataSources, options, config_1.default) || pieUtils_1.invalidOptionField('label', dataSources, options, config_1.default) || pieUtils_1.allInvalidDataValues(dataSources, options, config_1.default);
355
+ return (0, IconPlaceholder_1.shouldShowIconPlaceholder)(dataSources, loading) || (0, pieUtils_1.invalidOptionField)('value', dataSources, options, config_1.default) || (0, pieUtils_1.invalidOptionField)('label', dataSources, options, config_1.default) || (0, pieUtils_1.allInvalidDataValues)(dataSources, options, config_1.default);
356
356
  };
357
357
  exports.showPlaceHolderIcon = showPlaceHolderIcon;
358
- var Pie = withDashboardViz_1.default({
358
+ var Pie = (0, withDashboardViz_1.default)({
359
359
  ReactViz: Charting_1.default,
360
360
  computeVizProps: exports.computeVizProps,
361
361
  useIconPlaceholder: function useIconPlaceholder(dataSources, loading, options) {
362
- return exports.showPlaceHolderIcon(dataSources, loading, options);
362
+ return (0, exports.showPlaceHolderIcon)(dataSources, loading, options);
363
363
  },
364
364
  vizConfig: config_1.default
365
365
  });
@@ -557,8 +557,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
557
557
  */
558
558
  function getInitialPreset(vizContext, vizOptions, presets) {
559
559
  return presets.find(function (preset) {
560
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
561
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
560
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
561
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
562
562
  var presetContextKeys = Object.keys(presetContext);
563
563
  var presetOptionKeys = Object.keys(presetOptions);
564
564
  // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
@@ -575,7 +575,7 @@ exports.getInitialPreset = getInitialPreset;
575
575
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
576
576
  */
577
577
  function generatePrecisionValues(numPrecisionValues) {
578
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
578
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
579
579
  return {
580
580
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
581
581
  value: i
@@ -618,35 +618,35 @@ module.exports = require("@splunk/themes/pick");
618
618
  /***/ 25:
619
619
  /***/ (function(module, exports) {
620
620
 
621
- module.exports = require("@splunk/visualization-context/TimezoneContext");
621
+ module.exports = require("@splunk/ui-utils/id");
622
622
 
623
623
  /***/ }),
624
624
 
625
625
  /***/ 26:
626
626
  /***/ (function(module, exports) {
627
627
 
628
- module.exports = require("@splunk/visualizations-shared/hocUtils");
628
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
629
629
 
630
630
  /***/ }),
631
631
 
632
632
  /***/ 27:
633
633
  /***/ (function(module, exports) {
634
634
 
635
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
635
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
636
636
 
637
637
  /***/ }),
638
638
 
639
639
  /***/ 28:
640
640
  /***/ (function(module, exports) {
641
641
 
642
- module.exports = require("@splunk/visualizations-shared/propUtils");
642
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
643
643
 
644
644
  /***/ }),
645
645
 
646
646
  /***/ 29:
647
647
  /***/ (function(module, exports) {
648
648
 
649
- module.exports = require("@splunk/visualization-encoding/Options");
649
+ module.exports = require("@splunk/visualizations-shared/propUtils");
650
650
 
651
651
  /***/ }),
652
652
 
@@ -657,7 +657,14 @@ module.exports = require("lodash");
657
657
 
658
658
  /***/ }),
659
659
 
660
- /***/ 31:
660
+ /***/ 30:
661
+ /***/ (function(module, exports) {
662
+
663
+ module.exports = require("@splunk/visualization-encoding/Options");
664
+
665
+ /***/ }),
666
+
667
+ /***/ 32:
661
668
  /***/ (function(module, exports, __webpack_require__) {
662
669
 
663
670
  "use strict";
@@ -681,9 +688,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
681
688
  */
682
689
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
683
690
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
684
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
691
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
685
692
  var noData = data === undefined;
686
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
693
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
687
694
  var noFields = fields === undefined;
688
695
  return loading || noData || noFields;
689
696
  };
@@ -724,7 +731,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
724
731
  width: width,
725
732
  height: height,
726
733
  level: "warning",
727
- message: i18n_1._('No DataSource Connected')
734
+ message: (0, i18n_1._)('No DataSource Connected')
728
735
  });
729
736
  };
730
737
  IconPlaceholder.propTypes = propTypes;
@@ -732,14 +739,7 @@ IconPlaceholder.defaultProps = {
732
739
  width: '100%',
733
740
  height: 250
734
741
  };
735
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
736
-
737
- /***/ }),
738
-
739
- /***/ 32:
740
- /***/ (function(module, exports) {
741
-
742
- module.exports = require("@splunk/ui-utils/id");
742
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
743
743
 
744
744
  /***/ }),
745
745
 
@@ -774,7 +774,7 @@ var getSortingParams = function getSortingParams(_ref) {
774
774
  };
775
775
  var onSort;
776
776
  if (typeof onRequestParamsChange === 'function') {
777
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
777
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
778
778
  currentSortKey = Object.keys(requestParams.sort).shift();
779
779
  currentSortDir = requestParams.sort[currentSortKey];
780
780
  }
@@ -783,7 +783,7 @@ var getSortingParams = function getSortingParams(_ref) {
783
783
  var sortKey = _ref2.sortKey,
784
784
  sortDir = _ref2.sortDir;
785
785
  if (typeof sortKey === 'string') {
786
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
786
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
787
787
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
788
788
  offset: 0,
789
789
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -834,7 +834,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
834
834
  var onChangeHandler = function onChangeHandler(e, _ref2) {
835
835
  var page = _ref2.page,
836
836
  countArg = _ref2.count;
837
- var newParams = lodash_1.cloneDeep(requestParams);
837
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
838
838
  if (typeof countArg === 'number') {
839
839
  newParams.count = countArg;
840
840
  newParams.offset = 0;
@@ -898,16 +898,16 @@ Object.defineProperty(exports, "__esModule", {
898
898
  var React = __webpack_require__(1);
899
899
  var lodash_1 = __webpack_require__(3);
900
900
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
901
- var Options_1 = __webpack_require__(29);
901
+ var Options_1 = __webpack_require__(30);
902
902
  var SanitizeProps_1 = __webpack_require__(38);
903
- var TimezoneContext_1 = __webpack_require__(25);
903
+ var TimezoneContext_1 = __webpack_require__(26);
904
904
  var moment_1 = __webpack_require__(39);
905
905
  var FeatureFlagContext_1 = __webpack_require__(21);
906
906
  var styled_components_1 = __webpack_require__(4);
907
- var hocUtils_1 = __webpack_require__(26);
908
- var JSONSchemaUtils_1 = __webpack_require__(27);
907
+ var hocUtils_1 = __webpack_require__(27);
908
+ var JSONSchemaUtils_1 = __webpack_require__(28);
909
909
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
910
- var id_1 = __webpack_require__(32);
910
+ var id_1 = __webpack_require__(25);
911
911
  var SplunkVisualization_1 = __webpack_require__(41);
912
912
  var VizBehavior_1 = __webpack_require__(6);
913
913
  var getSorting_1 = __webpack_require__(33);
@@ -928,8 +928,8 @@ var withDashboardViz = function withDashboardViz(opts) {
928
928
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
929
929
  disableEditModeCover = opts.disableEditModeCover,
930
930
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
931
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
932
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
931
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
932
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
933
933
  var DashboardViz = function DashboardViz(props) {
934
934
  var _a;
935
935
  var mode = props.mode,
@@ -964,19 +964,19 @@ var withDashboardViz = function withDashboardViz(opts) {
964
964
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
965
965
  };
966
966
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
967
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
967
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
968
968
  theme: theme
969
969
  }),
970
- currentThemeFamily = _getSettingsFromTheme.family,
971
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
972
- currentThemeDensity = _getSettingsFromTheme.density;
970
+ currentThemeFamily = _ref.family,
971
+ currentThemeColorScheme = _ref.colorScheme,
972
+ currentThemeDensity = _ref.density;
973
973
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
974
974
  var _React$useState = React.useState({}),
975
975
  _React$useState2 = _slicedToArray(_React$useState, 2),
976
976
  evaluatedOptionsAsync = _React$useState2[0],
977
977
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
978
978
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
979
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
979
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
980
980
  _React$useState4 = _slicedToArray(_React$useState3, 1),
981
981
  visualizationID = _React$useState4[0];
982
982
  var _React$useState5 = React.useState({}),
@@ -987,16 +987,17 @@ var withDashboardViz = function withDashboardViz(opts) {
987
987
  _React$useState8 = _slicedToArray(_React$useState7, 2),
988
988
  dataFramesInState = _React$useState8[0],
989
989
  setDataFramesInState = _React$useState8[1];
990
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
990
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
991
991
  _React$useState10 = _slicedToArray(_React$useState9, 2),
992
992
  useAsyncEvaluatedOptions = _React$useState10[0],
993
993
  setUseAsyncEvaluatedOptions = _React$useState10[1];
994
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
994
+ var isMounted = React.useRef(true);
995
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
995
996
  try {
996
997
  if (useAsyncEvaluatedOptions) {
997
998
  var optionsToEvaluate = {
998
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
999
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
999
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1000
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
1000
1001
  };
1001
1002
  var asyncDynamicOptionsEvaluatorParams = {
1002
1003
  visualizationID: visualizationID,
@@ -1007,10 +1008,10 @@ var withDashboardViz = function withDashboardViz(opts) {
1007
1008
  };
1008
1009
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1009
1010
  setEvaluatedOptionsAsync(results.results);
1010
- }).catch(function (e) {
1011
- // eslint-disable-next-line no-console
1012
- console.error("unexpected error evaluating options - async: ".concat(e.message));
1013
- setUseAsyncEvaluatedOptions(false);
1011
+ }).catch(function () {
1012
+ if (isMounted.current) {
1013
+ setUseAsyncEvaluatedOptions(false);
1014
+ }
1014
1015
  });
1015
1016
  } else {
1016
1017
  var dataFrames = dataFramesInState;
@@ -1020,8 +1021,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1020
1021
  setDataFramesInState(dataFrames);
1021
1022
  }
1022
1023
  return Options_1.Options.evaluate({
1023
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1024
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1024
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1025
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
1025
1026
  }, dataSources, themeFunc, dataFrames);
1026
1027
  }
1027
1028
  } catch (e) {
@@ -1050,6 +1051,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1050
1051
  React.useEffect(function () {
1051
1052
  return function () {
1052
1053
  if (useAsyncEvaluatedOptions) {
1054
+ isMounted.current = false;
1053
1055
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
1054
1056
  }
1055
1057
  };
@@ -1059,7 +1061,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1059
1061
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1060
1062
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1061
1063
  supports = vizConfig.supports;
1062
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1064
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
1063
1065
  if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
1064
1066
  ) {
1065
1067
  return React.createElement(MissingPropsMessage_1.default, {
@@ -1075,7 +1077,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1075
1077
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1076
1078
  var supportedEvents = vizConfig.events;
1077
1079
  Object.keys(supportedEvents).forEach(function (eventName) {
1078
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1080
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
1079
1081
  eventCallbackProps[eventCallbackPropName] = null;
1080
1082
  // todo: refactor single value and single value icon to send payload from viz
1081
1083
  // then remove these lines
@@ -1118,19 +1120,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1118
1120
  */
1119
1121
  var dataSourceMetadata = {};
1120
1122
  var OptionKey = 'paginateDataSourceKey';
1121
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1122
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1123
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1124
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1123
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1124
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1125
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1126
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1125
1127
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1126
1128
  return onRequestParamsChange(paginateDataSourceKey, payload);
1127
1129
  };
1128
- var sortParams = getSorting_1.getSortingParams({
1130
+ var sortParams = (0, getSorting_1.getSortingParams)({
1129
1131
  requestParams: requestParams,
1130
1132
  meta: meta,
1131
1133
  onRequestParamsChange: handleRequestParamsChange
1132
1134
  });
1133
- var paginatorParams = getPagination_1.getPaginationParams({
1135
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1134
1136
  requestParams: requestParams,
1135
1137
  meta: meta,
1136
1138
  onRequestParamsChange: handleRequestParamsChange
@@ -1158,7 +1160,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1158
1160
  // attach viz config
1159
1161
  DashboardViz.config = vizConfig;
1160
1162
  // @ts-ignore: TODO fix sc upgrade TS issues
1161
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1163
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1162
1164
  };
1163
1165
  exports.default = withDashboardViz;
1164
1166
 
@@ -1376,7 +1378,46 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1376
1378
 
1377
1379
  /***/ }),
1378
1380
 
1379
- /***/ 437:
1381
+ /***/ 44:
1382
+ /***/ (function(module, exports, __webpack_require__) {
1383
+
1384
+ "use strict";
1385
+
1386
+
1387
+ Object.defineProperty(exports, "__esModule", {
1388
+ value: true
1389
+ });
1390
+ exports.useDeepMemo = void 0;
1391
+ var react_1 = __webpack_require__(1);
1392
+ var lodash_1 = __webpack_require__(3);
1393
+ /**
1394
+ * This hook evaluates and stores the result of a passed function and only
1395
+ * re-evaluates the function when passed dependencies change.
1396
+ *
1397
+ * It is different from the internal React useMemo in the following aspects:
1398
+ * - it only stores the last evaluated result
1399
+ * - it uses a deep equality check to determine if dependencies have changed
1400
+ *
1401
+ * Inspired by apollo-client's useDeepMemo
1402
+ *
1403
+ * @param fn the function to be executed and
1404
+ * @param dependencies an array of dependencies
1405
+ */
1406
+ var useDeepMemo = function useDeepMemo(fn, dependencies) {
1407
+ var ref = (0, react_1.useRef)();
1408
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1409
+ ref.current = {
1410
+ dependencies: dependencies,
1411
+ value: fn()
1412
+ };
1413
+ }
1414
+ return ref.current.value;
1415
+ };
1416
+ exports.useDeepMemo = useDeepMemo;
1417
+
1418
+ /***/ }),
1419
+
1420
+ /***/ 440:
1380
1421
  /***/ (function(module, exports, __webpack_require__) {
1381
1422
 
1382
1423
  "use strict";
@@ -1384,12 +1425,16 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1384
1425
 
1385
1426
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
1386
1427
  if (k2 === undefined) k2 = k;
1387
- Object.defineProperty(o, k2, {
1388
- enumerable: true,
1389
- get: function get() {
1390
- return m[k];
1391
- }
1392
- });
1428
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1429
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1430
+ desc = {
1431
+ enumerable: true,
1432
+ get: function get() {
1433
+ return m[k];
1434
+ }
1435
+ };
1436
+ }
1437
+ Object.defineProperty(o, k2, desc);
1393
1438
  } : function (o, m, k, k2) {
1394
1439
  if (k2 === undefined) k2 = k;
1395
1440
  o[k2] = m[k];
@@ -1403,8 +1448,8 @@ Object.defineProperty(exports, "__esModule", {
1403
1448
  value: true
1404
1449
  });
1405
1450
  exports.default = void 0;
1406
- __exportStar(__webpack_require__(161), exports);
1407
- var Pie_1 = __webpack_require__(161);
1451
+ __exportStar(__webpack_require__(164), exports);
1452
+ var Pie_1 = __webpack_require__(164);
1408
1453
  Object.defineProperty(exports, "default", {
1409
1454
  enumerable: true,
1410
1455
  get: function get() {
@@ -1414,7 +1459,7 @@ Object.defineProperty(exports, "default", {
1414
1459
 
1415
1460
  /***/ }),
1416
1461
 
1417
- /***/ 438:
1462
+ /***/ 441:
1418
1463
  /***/ (function(module, exports, __webpack_require__) {
1419
1464
 
1420
1465
  "use strict";
@@ -1423,8 +1468,8 @@ Object.defineProperty(exports, "default", {
1423
1468
  Object.defineProperty(exports, "__esModule", {
1424
1469
  value: true
1425
1470
  });
1426
- var ChartPie_1 = __webpack_require__(439);
1427
- var placeholders_1 = __webpack_require__(49);
1471
+ var ChartPie_1 = __webpack_require__(442);
1472
+ var placeholders_1 = __webpack_require__(50);
1428
1473
  var i18n_1 = __webpack_require__(2);
1429
1474
  var schemaUtils_1 = __webpack_require__(16);
1430
1475
  var visualization_color_palettes_1 = __webpack_require__(51);
@@ -1491,7 +1536,7 @@ var optionsSchema = {
1491
1536
  labelDisplay: {
1492
1537
  description: 'Specify whether to display the labels and/or slice percentages.',
1493
1538
  type: 'string',
1494
- pattern: schemaUtils_1.getPattern(['values', 'valuesAndPercentage', 'off']),
1539
+ pattern: (0, schemaUtils_1.getPattern)(['values', 'valuesAndPercentage', 'off']),
1495
1540
  default: 'values'
1496
1541
  },
1497
1542
  resultLimit: {
@@ -1532,7 +1577,7 @@ var optionsSchema = {
1532
1577
  };
1533
1578
  var themes = {
1534
1579
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1535
- return pick_1.default({
1580
+ return (0, pick_1.default)({
1536
1581
  enterprise: {
1537
1582
  dark: variables_1.default.black(props),
1538
1583
  light: variables_1.default.backgroundColor(props)
@@ -1542,9 +1587,9 @@ var themes = {
1542
1587
  }
1543
1588
  };
1544
1589
  var editorConfig = [{
1545
- label: i18n_1._('Data configurations'),
1590
+ label: (0, i18n_1._)('Data configurations'),
1546
1591
  layout: [[{
1547
- label: i18n_1._('Label'),
1592
+ label: (0, i18n_1._)('Label'),
1548
1593
  editor: 'editor.columnSelector',
1549
1594
  option: 'label',
1550
1595
  context: 'valuesContext',
@@ -1552,7 +1597,7 @@ var editorConfig = [{
1552
1597
  dataSourceKey: 'primary'
1553
1598
  }
1554
1599
  }], [{
1555
- label: i18n_1._('Value'),
1600
+ label: (0, i18n_1._)('Value'),
1556
1601
  editor: 'editor.columnSelector',
1557
1602
  option: 'value',
1558
1603
  context: 'valuesContext',
@@ -1561,38 +1606,38 @@ var editorConfig = [{
1561
1606
  }
1562
1607
  }]]
1563
1608
  }, {
1564
- label: i18n_1._('Data display'),
1609
+ label: (0, i18n_1._)('Data display'),
1565
1610
  layout: [[{
1566
- label: i18n_1._('Display type'),
1611
+ label: (0, i18n_1._)('Display type'),
1567
1612
  option: 'showDonutHole',
1568
1613
  editor: 'editor.radioBar',
1569
1614
  editorProps: {
1570
1615
  values: [{
1571
- label: i18n_1._('Pie'),
1616
+ label: (0, i18n_1._)('Pie'),
1572
1617
  value: false
1573
1618
  }, {
1574
- label: i18n_1._('Donut'),
1619
+ label: (0, i18n_1._)('Donut'),
1575
1620
  value: true
1576
1621
  }]
1577
1622
  }
1578
1623
  }], [{
1579
- label: i18n_1._('Label display'),
1624
+ label: (0, i18n_1._)('Label display'),
1580
1625
  option: 'labelDisplay',
1581
1626
  editor: 'editor.select',
1582
1627
  editorProps: {
1583
1628
  values: [{
1584
- label: i18n_1._('Values'),
1629
+ label: (0, i18n_1._)('Values'),
1585
1630
  value: 'values'
1586
1631
  }, {
1587
- label: i18n_1._('Values & Percent'),
1632
+ label: (0, i18n_1._)('Values & Percent'),
1588
1633
  value: 'valuesAndPercentage'
1589
1634
  }, {
1590
- label: i18n_1._('Off'),
1635
+ label: (0, i18n_1._)('Off'),
1591
1636
  value: 'off'
1592
1637
  }]
1593
1638
  }
1594
1639
  }], [{
1595
- label: i18n_1._('Collapse threshold'),
1640
+ label: (0, i18n_1._)('Collapse threshold'),
1596
1641
  option: 'collapseThreshold',
1597
1642
  editor: 'editor.number',
1598
1643
  editorProps: {
@@ -1601,17 +1646,17 @@ var editorConfig = [{
1601
1646
  step: 0.01
1602
1647
  }
1603
1648
  }], [{
1604
- label: i18n_1._('Collapsed slice label'),
1649
+ label: (0, i18n_1._)('Collapsed slice label'),
1605
1650
  option: 'collapseLabel',
1606
1651
  editor: 'editor.text'
1607
1652
  }]]
1608
1653
  }, {
1609
- label: i18n_1._('Color and style'),
1654
+ label: (0, i18n_1._)('Color and style'),
1610
1655
  layout: [[{
1611
- label: i18n_1._('Series colors'),
1656
+ label: (0, i18n_1._)('Series colors'),
1612
1657
  option: 'seriesColors',
1613
1658
  editor: 'editor.seriesColors'
1614
- }], BackgroundColor_1.default({
1659
+ }], (0, BackgroundColor_1.default)({
1615
1660
  themes: themes
1616
1661
  })]
1617
1662
  }];
@@ -1626,7 +1671,7 @@ var config = {
1626
1671
  /**
1627
1672
  * viz name
1628
1673
  */
1629
- name: i18n_1._('Pie'),
1674
+ name: (0, i18n_1._)('Pie'),
1630
1675
  category: VizCategory_1.VizCategory.COMPARISONS,
1631
1676
  /**
1632
1677
  * viz icon
@@ -1646,57 +1691,18 @@ var config = {
1646
1691
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
1647
1692
  themes: themes
1648
1693
  };
1649
- exports.default = configUtils_1.enhanceConfig(config);
1694
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1650
1695
 
1651
1696
  /***/ }),
1652
1697
 
1653
- /***/ 439:
1698
+ /***/ 442:
1654
1699
  /***/ (function(module, exports) {
1655
1700
 
1656
1701
  module.exports = require("@splunk/react-icons/enterprise/ChartPie");
1657
1702
 
1658
1703
  /***/ }),
1659
1704
 
1660
- /***/ 44:
1661
- /***/ (function(module, exports, __webpack_require__) {
1662
-
1663
- "use strict";
1664
-
1665
-
1666
- Object.defineProperty(exports, "__esModule", {
1667
- value: true
1668
- });
1669
- exports.useDeepMemo = void 0;
1670
- var react_1 = __webpack_require__(1);
1671
- var lodash_1 = __webpack_require__(3);
1672
- /**
1673
- * This hook evaluates and stores the result of a passed function and only
1674
- * re-evaluates the function when passed dependencies change.
1675
- *
1676
- * It is different from the internal React useMemo in the following aspects:
1677
- * - it only stores the last evaluated result
1678
- * - it uses a deep equality check to determine if dependencies have changed
1679
- *
1680
- * Inspired by apollo-client's useDeepMemo
1681
- *
1682
- * @param fn the function to be executed and
1683
- * @param dependencies an array of dependencies
1684
- */
1685
- var useDeepMemo = function useDeepMemo(fn, dependencies) {
1686
- var ref = react_1.useRef();
1687
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1688
- ref.current = {
1689
- dependencies: dependencies,
1690
- value: fn()
1691
- };
1692
- }
1693
- return ref.current.value;
1694
- };
1695
- exports.useDeepMemo = useDeepMemo;
1696
-
1697
- /***/ }),
1698
-
1699
- /***/ 440:
1705
+ /***/ 443:
1700
1706
  /***/ (function(module, exports, __webpack_require__) {
1701
1707
 
1702
1708
  "use strict";
@@ -1717,10 +1723,10 @@ Object.defineProperty(exports, "__esModule", {
1717
1723
  });
1718
1724
  exports.allInvalidDataValues = exports.invalidOptionField = exports.getPieOptionFieldIndex = exports.getPieMergedOptions = exports.convertToPieSCProperties = exports.mapToOldKey = exports.mapLabelDisplay = exports.convertToStringValues = void 0;
1719
1725
  var lodash_1 = __webpack_require__(3);
1720
- var propUtils_1 = __webpack_require__(28);
1721
- var dsl_1 = __webpack_require__(132);
1722
- var hocUtils_1 = __webpack_require__(26);
1723
- var JSONSchemaUtils_1 = __webpack_require__(27);
1726
+ var propUtils_1 = __webpack_require__(29);
1727
+ var dsl_1 = __webpack_require__(133);
1728
+ var hocUtils_1 = __webpack_require__(27);
1729
+ var JSONSchemaUtils_1 = __webpack_require__(28);
1724
1730
  // CONVERT THIS TO PIE THEN ADD TO Pie.TSX
1725
1731
  // map for key names which are either new or not present in SimpleXML options mapping
1726
1732
  var pieOptionsSCMapping = {
@@ -1737,7 +1743,7 @@ var pieOptionsSCMapping = {
1737
1743
  * @returns {Object}
1738
1744
  */
1739
1745
  var convertToStringValues = function convertToStringValues(options) {
1740
- var updatedOptions = propUtils_1.convertPropsToString({
1746
+ var updatedOptions = (0, propUtils_1.convertPropsToString)({
1741
1747
  vizProps: options,
1742
1748
  propNames: ['seriesColors', 'fieldColors']
1743
1749
  });
@@ -1774,7 +1780,7 @@ exports.mapLabelDisplay = mapLabelDisplay;
1774
1780
  * @returns {Object}
1775
1781
  */
1776
1782
  var mapToOldKey = function mapToOldKey(options) {
1777
- return lodash_1.mapKeys(options, function (val, key) {
1783
+ return (0, lodash_1.mapKeys)(options, function (val, key) {
1778
1784
  return pieOptionsSCMapping[key] ? pieOptionsSCMapping[key] : key;
1779
1785
  });
1780
1786
  };
@@ -1788,7 +1794,7 @@ exports.mapToOldKey = mapToOldKey;
1788
1794
  * @returns {Object}
1789
1795
  */
1790
1796
  var convertToPieSCProperties = function convertToPieSCProperties(originalOptions) {
1791
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(exports.convertToStringValues).thru(exports.mapLabelDisplay).value();
1797
+ return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru(exports.convertToStringValues).thru(exports.mapLabelDisplay).value();
1792
1798
  };
1793
1799
  exports.convertToPieSCProperties = convertToPieSCProperties;
1794
1800
  /**
@@ -1798,7 +1804,7 @@ exports.convertToPieSCProperties = convertToPieSCProperties;
1798
1804
  * @returns
1799
1805
  */
1800
1806
  var getPieMergedOptions = function getPieMergedOptions(options, vizConfig) {
1801
- return hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default'));
1807
+ return (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default'));
1802
1808
  };
1803
1809
  exports.getPieMergedOptions = getPieMergedOptions;
1804
1810
  /**
@@ -1810,9 +1816,9 @@ exports.getPieMergedOptions = getPieMergedOptions;
1810
1816
  * @returns
1811
1817
  */
1812
1818
  var getPieOptionFieldIndex = function getPieOptionFieldIndex(optionName, dataSources, options, vizConfig) {
1813
- var mergedOptions = exports.getPieMergedOptions(options, vizConfig);
1819
+ var mergedOptions = (0, exports.getPieMergedOptions)(options, vizConfig);
1814
1820
  // find the field name configured for pie "value"
1815
- var fieldName = dsl_1.getFieldsFromDSL(mergedOptions[optionName], dataSources)[0];
1821
+ var fieldName = (0, dsl_1.getFieldsFromDSL)(mergedOptions[optionName], dataSources)[0];
1816
1822
  var fields = dataSources.primary.data.fields; // find the field index configured for pie "value"
1817
1823
  var fieldIndex = fields.findIndex(function (field) {
1818
1824
  return (typeof field === 'string' ? field : field.name.toString()) === fieldName;
@@ -1830,7 +1836,7 @@ exports.getPieOptionFieldIndex = getPieOptionFieldIndex;
1830
1836
  */
1831
1837
  var invalidOptionField = function invalidOptionField(optionName, dataSources, options, vizConfig) {
1832
1838
  var columns = dataSources.primary.data.columns;
1833
- var fieldIndex = exports.getPieOptionFieldIndex(optionName, dataSources, options, vizConfig);
1839
+ var fieldIndex = (0, exports.getPieOptionFieldIndex)(optionName, dataSources, options, vizConfig);
1834
1840
  if (fieldIndex === -1 || !columns[fieldIndex] || !Array.isArray(columns[fieldIndex]) || Array.isArray(columns[fieldIndex]) && !columns[fieldIndex].length) {
1835
1841
  return true;
1836
1842
  }
@@ -1842,7 +1848,7 @@ exports.invalidOptionField = invalidOptionField;
1842
1848
  */
1843
1849
  var allInvalidDataValues = function allInvalidDataValues(dataSources, options, vizConfig) {
1844
1850
  var columns = dataSources.primary.data.columns; // find the field index configured for pie "value"
1845
- var valueFieldIndex = exports.getPieOptionFieldIndex('value', dataSources, options, vizConfig);
1851
+ var valueFieldIndex = (0, exports.getPieOptionFieldIndex)('value', dataSources, options, vizConfig);
1846
1852
  // check if all values are invalid
1847
1853
  if (Array.isArray(columns) && columns[valueFieldIndex] && Array.isArray(columns[valueFieldIndex])) {
1848
1854
  return !columns[valueFieldIndex].some(function (value) {
@@ -1887,7 +1893,7 @@ exports.isMissing = isMissing;
1887
1893
  */
1888
1894
  var missingKeys = function missingKeys(keys, target) {
1889
1895
  return keys.filter(function (k) {
1890
- return exports.isMissing(target[k]);
1896
+ return (0, exports.isMissing)(target[k]);
1891
1897
  });
1892
1898
  };
1893
1899
  exports.missingKeys = missingKeys;
@@ -1911,7 +1917,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
1911
1917
  "data-test": "message",
1912
1918
  width: width,
1913
1919
  height: height,
1914
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
1920
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
1915
1921
  });
1916
1922
  };
1917
1923
  exports.MissingPropsMessage = MissingPropsMessage;
@@ -1920,7 +1926,7 @@ exports.MissingPropsMessage.defaultProps = {
1920
1926
  width: '100%',
1921
1927
  height: 250
1922
1928
  };
1923
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1929
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
1924
1930
 
1925
1931
  /***/ }),
1926
1932
 
@@ -1941,7 +1947,7 @@ var Cover = styled_components_1.default.div.withConfig({
1941
1947
  componentId: "sc-1gsbnxb-0"
1942
1948
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1943
1949
  var Blocker = styled_components_1.default.div.attrs({
1944
- 'data-splunk-visualization-version': "25.13.1 - ea48ec41e"
1950
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
1945
1951
  }).withConfig({
1946
1952
  displayName: "withEditModeCover__Blocker",
1947
1953
  componentId: "sc-1gsbnxb-1"
@@ -1960,7 +1966,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1960
1966
  "data-test": "edit-mode-cover"
1961
1967
  }));
1962
1968
  };
1963
- hocUtils_1.extendStaticWrapperProps({
1969
+ (0, hocUtils_1.extendStaticWrapperProps)({
1964
1970
  Wrapper: Wrapper,
1965
1971
  Visualization: Visualization
1966
1972
  });
@@ -1982,7 +1988,7 @@ Object.defineProperty(exports, "__esModule", {
1982
1988
  var React = __webpack_require__(1);
1983
1989
  var colorUtils_1 = __webpack_require__(12);
1984
1990
  var variables_1 = __webpack_require__(11);
1985
- var IconPlaceholder_1 = __webpack_require__(31);
1991
+ var IconPlaceholder_1 = __webpack_require__(32);
1986
1992
  var VizBehavior_1 = __webpack_require__(6);
1987
1993
  var hocUtils_1 = __webpack_require__(15);
1988
1994
  var withPlaceholder = function withPlaceholder(Visualization) {
@@ -1997,7 +2003,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1997
2003
  height = props.height,
1998
2004
  width = props.width;
1999
2005
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
2000
- var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2006
+ var bgColorFromTheme = (0, colorUtils_1.isColor)(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2001
2007
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
2002
2008
  var iconColor = variables_1.default.contentColorActive(props);
2003
2009
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
@@ -2012,7 +2018,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
2012
2018
  }
2013
2019
  return React.createElement(Visualization, Object.assign({}, props));
2014
2020
  };
2015
- hocUtils_1.extendStaticWrapperProps({
2021
+ (0, hocUtils_1.extendStaticWrapperProps)({
2016
2022
  Wrapper: Wrapper,
2017
2023
  Visualization: Visualization
2018
2024
  });
@@ -2022,7 +2028,7 @@ exports.default = withPlaceholder;
2022
2028
 
2023
2029
  /***/ }),
2024
2030
 
2025
- /***/ 49:
2031
+ /***/ 50:
2026
2032
  /***/ (function(module, exports) {
2027
2033
 
2028
2034
  module.exports = require("@splunk/visualization-icons/placeholders");
@@ -2051,7 +2057,7 @@ var background = function background(_ref) {
2051
2057
  themes = _ref.themes,
2052
2058
  labelPosition = _ref.labelPosition;
2053
2059
  return [{
2054
- label: i18n_1._(label || 'Background'),
2060
+ label: (0, i18n_1._)(label || 'Background'),
2055
2061
  option: 'backgroundColor',
2056
2062
  editor: 'editor.color',
2057
2063
  editorProps: {
@@ -2065,6 +2071,13 @@ exports.default = background;
2065
2071
  /***/ }),
2066
2072
 
2067
2073
  /***/ 55:
2074
+ /***/ (function(module, exports) {
2075
+
2076
+ module.exports = require("@splunk/charting-bundle");
2077
+
2078
+ /***/ }),
2079
+
2080
+ /***/ 56:
2068
2081
  /***/ (function(module, exports, __webpack_require__) {
2069
2082
 
2070
2083
  "use strict";
@@ -2140,9 +2153,9 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
2140
2153
  return function (options) {
2141
2154
  var convertedOptions = Object.assign({}, options);
2142
2155
  Object.keys(optionValuesSCMapping).forEach(function (key) {
2143
- if (lodash_1.has(options, key)) {
2156
+ if ((0, lodash_1.has)(options, key)) {
2144
2157
  var updatedValue = optionValuesSCMapping[key][options[key]];
2145
- if (!lodash_1.isUndefined(updatedValue)) {
2158
+ if (!(0, lodash_1.isUndefined)(updatedValue)) {
2146
2159
  convertedOptions[key] = updatedValue;
2147
2160
  }
2148
2161
  }
@@ -2163,7 +2176,7 @@ var convertY2AxisOptions = function convertY2AxisOptions(_a) {
2163
2176
  var convertedOptions = Object.assign({}, originalOptions);
2164
2177
  if (y2Fields) {
2165
2178
  convertedOptions['axisY2.enabled'] = true;
2166
- convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
2179
+ convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
2167
2180
  return name;
2168
2181
  }).join(',') : y2Fields;
2169
2182
  }
@@ -2205,7 +2218,7 @@ exports.isMultiSeriesData = isMultiSeriesData;
2205
2218
  * @return {array}
2206
2219
  */
2207
2220
  var toArrayForSeries = function toArrayForSeries(data, value) {
2208
- return exports.isMultiSeriesData(data) ? value : [value];
2221
+ return (0, exports.isMultiSeriesData)(data) ? value : [value];
2209
2222
  };
2210
2223
  exports.toArrayForSeries = toArrayForSeries;
2211
2224
  var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
@@ -2217,10 +2230,10 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
2217
2230
  yFields = _ref2.yFields,
2218
2231
  y2 = _ref2.y2,
2219
2232
  y2Fields = _ref2.y2Fields;
2220
- var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
2233
+ var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
2221
2234
  return series.map(String);
2222
2235
  })));
2223
- var yFieldsArray = exports.toArrayForSeries(y, yFields);
2236
+ var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
2224
2237
  var fields = [{
2225
2238
  name: xField
2226
2239
  }].concat(_toConsumableArray(yFieldsArray.map(function (field) {
@@ -2232,8 +2245,8 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
2232
2245
  // when y & y2 options are configured with different (mutually exclusive) series
2233
2246
  // y2 columns need to be added to columns
2234
2247
  if (y2Fields) {
2235
- var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
2236
- var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
2248
+ var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
2249
+ var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
2237
2250
  return series === null || series === void 0 ? void 0 : series.map(String);
2238
2251
  });
2239
2252
  y2FieldsArray.forEach(function (y2Field, index) {
@@ -2254,13 +2267,6 @@ exports.constructFieldsAndColumns = constructFieldsAndColumns;
2254
2267
 
2255
2268
  /***/ }),
2256
2269
 
2257
- /***/ 56:
2258
- /***/ (function(module, exports) {
2259
-
2260
- module.exports = require("@splunk/charting-bundle");
2261
-
2262
- /***/ }),
2263
-
2264
2270
  /***/ 57:
2265
2271
  /***/ (function(module, exports) {
2266
2272
 
@@ -2305,7 +2311,7 @@ var VizBehavior;
2305
2311
 
2306
2312
  /***/ }),
2307
2313
 
2308
- /***/ 64:
2314
+ /***/ 65:
2309
2315
  /***/ (function(module, exports, __webpack_require__) {
2310
2316
 
2311
2317
  "use strict";
@@ -2322,16 +2328,16 @@ var visualization_color_palettes_1 = __webpack_require__(51);
2322
2328
  var react_1 = __webpack_require__(1);
2323
2329
  var React = __webpack_require__(1);
2324
2330
  var T = __webpack_require__(0);
2325
- var react_event_listener_1 = __webpack_require__(65);
2326
- __webpack_require__(66); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
2327
- var charting_bundle_1 = __webpack_require__(56);
2328
- var TimezoneContext_1 = __webpack_require__(25);
2331
+ var react_event_listener_1 = __webpack_require__(66);
2332
+ __webpack_require__(67); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
2333
+ var charting_bundle_1 = __webpack_require__(55);
2334
+ var TimezoneContext_1 = __webpack_require__(26);
2329
2335
  var style_1 = __webpack_require__(14);
2330
2336
  var styled_components_1 = __webpack_require__(4);
2331
2337
  var Message_1 = __webpack_require__(10);
2332
2338
  var useSplunkTheme_1 = __webpack_require__(57);
2333
- var themeUtils_1 = __webpack_require__(67);
2334
- var ChartingApi_1 = __webpack_require__(68);
2339
+ var themeUtils_1 = __webpack_require__(68);
2340
+ var ChartingApi_1 = __webpack_require__(69);
2335
2341
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
2336
2342
  var changedOptions = function changedOptions(curOptions, nextOptions) {
2337
2343
  return Object.keys(curOptions).filter(function (key) {
@@ -2341,10 +2347,9 @@ var changedOptions = function changedOptions(curOptions, nextOptions) {
2341
2347
  }));
2342
2348
  };
2343
2349
  exports.changedOptions = changedOptions;
2344
- charting_bundle_1.default.enableScaledEvents();
2345
2350
  function usePrevious(value) {
2346
- var ref = react_1.useRef();
2347
- react_1.useEffect(function () {
2351
+ var ref = (0, react_1.useRef)();
2352
+ (0, react_1.useEffect)(function () {
2348
2353
  ref.current = value;
2349
2354
  });
2350
2355
  return ref.current;
@@ -2357,7 +2362,7 @@ var canUpdateInPlace = function canUpdateInPlace(curOptions, nextOptions) {
2357
2362
  }
2358
2363
  return !exports.NO_INPLACE_PROPS.some(function (p) {
2359
2364
  return curOptions[p] !== nextOptions[p];
2360
- }) && !exports.changedOptions(curOptions, nextOptions).some(function (p) {
2365
+ }) && !(0, exports.changedOptions)(curOptions, nextOptions).some(function (p) {
2361
2366
  return p.toLowerCase().endsWith('color');
2362
2367
  });
2363
2368
  };
@@ -2393,7 +2398,7 @@ var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
2393
2398
  displayName: "Charting__ChartingContainer",
2394
2399
  componentId: "sc-3wbgm0-0"
2395
2400
  })(["& .highcharts-a11y-proxy-container{pointer-events:none;}overflow:hidden;position:relative;", ";"], function (props) {
2396
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
2401
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
2397
2402
  });
2398
2403
  var propTypes = {
2399
2404
  width: T.oneOfType([T.string, T.number]),
@@ -2411,12 +2416,12 @@ var propTypes = {
2411
2416
  themeKey: T.string
2412
2417
  };
2413
2418
  var Charting = function Charting(props) {
2414
- var container = react_1.useRef(null);
2415
- var needsInit = react_1.useRef(true);
2416
- var chart = react_1.useRef();
2417
- var needsRedraw = react_1.useRef(true);
2418
- var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
2419
- var timezone = react_1.useContext(TimezoneContext_1.default);
2419
+ var container = (0, react_1.useRef)(null);
2420
+ var needsInit = (0, react_1.useRef)(true);
2421
+ var chart = (0, react_1.useRef)();
2422
+ var needsRedraw = (0, react_1.useRef)(true);
2423
+ var api = (0, react_1.useRef)(new ChartingApi_1.ChartingApiFunctional(chart));
2424
+ var timezone = (0, react_1.useContext)(TimezoneContext_1.default);
2420
2425
  var computeChartingSize = function computeChartingSize() {
2421
2426
  if (container.current) {
2422
2427
  var rect = container.current.getBoundingClientRect();
@@ -2427,8 +2432,8 @@ var Charting = function Charting(props) {
2427
2432
  }
2428
2433
  return {};
2429
2434
  };
2430
- var splunkTheme = useSplunkTheme_1.default();
2431
- var themeKey = props.themeKey ? props.themeKey : themeUtils_1.getChartingThemeKey({
2435
+ var splunkTheme = (0, useSplunkTheme_1.default)();
2436
+ var themeKey = props.themeKey ? props.themeKey : (0, themeUtils_1.getChartingThemeKey)({
2432
2437
  splunkThemeV1: splunkTheme
2433
2438
  });
2434
2439
  var width = props.width,
@@ -2445,13 +2450,13 @@ var Charting = function Charting(props) {
2445
2450
  var prevOptions = usePrevious(options);
2446
2451
  var prevTimezone = usePrevious(timezone);
2447
2452
  var handleClick = function handleClick(chartEvent, type) {
2448
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
2453
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
2449
2454
  payload.name = payload.name2;
2450
2455
  delete payload.name2;
2451
2456
  if (type === VizChartEventType.POINT_CLICK) {
2452
2457
  payload.value = payload.value2;
2453
2458
  delete payload.value2;
2454
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2459
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2455
2460
  }
2456
2461
  onClick({
2457
2462
  type: type,
@@ -2473,7 +2478,7 @@ var Charting = function Charting(props) {
2473
2478
  onSelect({
2474
2479
  type: 'range.select',
2475
2480
  originalEvent: chartEvent,
2476
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2481
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2477
2482
  });
2478
2483
  return;
2479
2484
  }
@@ -2481,16 +2486,16 @@ var Charting = function Charting(props) {
2481
2486
  onEventTrigger({
2482
2487
  type: 'range.select',
2483
2488
  originalEvent: chartEvent,
2484
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2489
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
2485
2490
  });
2486
2491
  };
2487
2492
  var handlePointMouseOut = function handlePointMouseOut(chartEvent, type) {
2488
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2493
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2489
2494
  payload.name = payload.name2;
2490
2495
  delete payload.name2;
2491
2496
  payload.value = payload.value2;
2492
2497
  delete payload.value2;
2493
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2498
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2494
2499
  onPointMouseOut({
2495
2500
  type: type,
2496
2501
  originalEvent: chartEvent,
@@ -2498,12 +2503,12 @@ var Charting = function Charting(props) {
2498
2503
  });
2499
2504
  };
2500
2505
  var handlePointMouseOver = function handlePointMouseOver(chartEvent, type) {
2501
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2506
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
2502
2507
  payload.name = payload.name2;
2503
2508
  delete payload.name2;
2504
2509
  payload.value = payload.value2;
2505
2510
  delete payload.value2;
2506
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
2511
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
2507
2512
  onPointMouseOver({
2508
2513
  type: type,
2509
2514
  originalEvent: chartEvent,
@@ -2585,14 +2590,14 @@ var Charting = function Charting(props) {
2585
2590
  window.console.error('Caught error rendering chart:', e);
2586
2591
  }
2587
2592
  };
2588
- var debouncedDrawChart = lodash_1.debounce(drawChart, 5);
2593
+ var debouncedDrawChart = (0, lodash_1.debounce)(drawChart, 5);
2589
2594
  var onContainerMount = function onContainerMount(chartingContainer) {
2590
2595
  container.current = chartingContainer;
2591
2596
  debouncedDrawChart();
2592
2597
  };
2593
2598
  var prevTheme = usePrevious(themeKey);
2594
2599
  var prevOnClick = usePrevious(onClick);
2595
- react_1.useEffect(function () {
2600
+ (0, react_1.useEffect)(function () {
2596
2601
  debouncedDrawChart();
2597
2602
  props.visualizationApiRef(api.current);
2598
2603
  return function () {
@@ -2600,10 +2605,10 @@ var Charting = function Charting(props) {
2600
2605
  destroyChart();
2601
2606
  };
2602
2607
  }, []);
2603
- react_1.useEffect(function () {
2608
+ (0, react_1.useEffect)(function () {
2604
2609
  // TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
2605
2610
  // seems like redraw doesn't suffice to update the background colors
2606
- if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
2611
+ if (!chart.current || !(0, exports.canUpdateInPlace)(prevOptions, options) ||
2607
2612
  // timezone is a simple object so this comparison should be fast
2608
2613
  JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2609
2614
  needsInit.current = true;
@@ -2647,13 +2652,13 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2647
2652
  var chartData = props.chartData;
2648
2653
  if (!chartData) {
2649
2654
  return React.createElement(Message_1.default, {
2650
- message: i18n_1._('No DataSource'),
2655
+ message: (0, i18n_1._)('No DataSource'),
2651
2656
  level: "warning"
2652
2657
  });
2653
2658
  }
2654
2659
  if (chartData && !Object.keys(chartData).length) {
2655
2660
  return React.createElement(Message_1.default, {
2656
- message: i18n_1._('No Result'),
2661
+ message: (0, i18n_1._)('No Result'),
2657
2662
  level: "info"
2658
2663
  });
2659
2664
  }
@@ -2669,28 +2674,28 @@ exports.default = withEmptyChartMessage(Charting);
2669
2674
 
2670
2675
  /***/ }),
2671
2676
 
2672
- /***/ 65:
2677
+ /***/ 66:
2673
2678
  /***/ (function(module, exports) {
2674
2679
 
2675
2680
  module.exports = require("react-event-listener");
2676
2681
 
2677
2682
  /***/ }),
2678
2683
 
2679
- /***/ 66:
2684
+ /***/ 67:
2680
2685
  /***/ (function(module, exports) {
2681
2686
 
2682
2687
  module.exports = require("@splunk/visualizations-shared/i18n");
2683
2688
 
2684
2689
  /***/ }),
2685
2690
 
2686
- /***/ 67:
2691
+ /***/ 68:
2687
2692
  /***/ (function(module, exports) {
2688
2693
 
2689
2694
  module.exports = require("@splunk/visualizations-shared/themeUtils");
2690
2695
 
2691
2696
  /***/ }),
2692
2697
 
2693
- /***/ 68:
2698
+ /***/ 69:
2694
2699
  /***/ (function(module, exports, __webpack_require__) {
2695
2700
 
2696
2701
  "use strict";
@@ -2748,17 +2753,17 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
2748
2753
 
2749
2754
  /***/ }),
2750
2755
 
2751
- /***/ 69:
2756
+ /***/ 7:
2752
2757
  /***/ (function(module, exports) {
2753
2758
 
2754
- module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2759
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2755
2760
 
2756
2761
  /***/ }),
2757
2762
 
2758
- /***/ 7:
2763
+ /***/ 70:
2759
2764
  /***/ (function(module, exports) {
2760
2765
 
2761
- module.exports = require("@babel/runtime/helpers/defineProperty");
2766
+ module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2762
2767
 
2763
2768
  /***/ }),
2764
2769